from .base import BaseTemplateExtension as BaseTemplateExtension, TemplateFunction as TemplateFunction
from homeassistant.helpers.template import TemplateEnvironment as TemplateEnvironment
from typing import Any

class StringExtension(BaseTemplateExtension):
    def __init__(self, environment: TemplateEnvironment) -> None: ...
    def ordinal(self, value: Any) -> str: ...
    def slugify(self, value: Any, separator: str = '_') -> str: ...
    def urlencode(self, value: Any) -> bytes: ...
