"""
This type stub file was generated by pyright.
"""

from typing import Any, TYPE_CHECKING
from streamlit.errors import MarkdownFormattedException, StreamlitAPIException
from streamlit.runtime.caching.cache_type import CacheType
from types import FunctionType

if TYPE_CHECKING:
    ...
CACHE_DOCS_URL = ...
def get_cached_func_name_md(func: Any) -> str:
    """Get markdown representation of the function name."""
    ...

def get_return_value_type(return_value: Any) -> str:
    ...

class UnhashableTypeError(Exception):
    ...


class UnhashableParamError(StreamlitAPIException):
    def __init__(self, cache_type: CacheType, func: FunctionType, arg_name: str | None, arg_value: Any, orig_exc: BaseException) -> None:
        ...
    


class CacheKeyNotFoundError(Exception):
    ...


class CacheError(Exception):
    ...


class CacheReplayClosureError(StreamlitAPIException):
    def __init__(self, cache_type: CacheType, cached_func: FunctionType) -> None:
        ...
    


class UnserializableReturnValueError(MarkdownFormattedException):
    def __init__(self, func: FunctionType, return_value: FunctionType) -> None:
        ...
    


class UnevaluatedDataFrameError(StreamlitAPIException):
    """Used to display a message about uncollected dataframe being used."""
    ...


