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

from os import PathLike
from typing import NamedTuple, TYPE_CHECKING, overload

"""Image utility functions for Sphinx."""
if TYPE_CHECKING:
    ...
mime_suffixes = ...
_suffix_from_mime = ...
class DataURI(NamedTuple):
    mimetype: str
    charset: str
    data: bytes
    ...


def get_image_size(filename: str) -> tuple[int, int] | None:
    ...

@overload
def guess_mimetype(filename: PathLike[str] | str, default: str) -> str:
    ...

@overload
def guess_mimetype(filename: PathLike[str] | str, default: None = ...) -> str | None:
    ...

def guess_mimetype(filename: PathLike[str] | str = ..., default: str | None = ...) -> str | None:
    ...

def get_image_extension(mimetype: str) -> str | None:
    ...

def parse_data_uri(uri: str) -> DataURI | None:
    ...

