from typing import Any

from django.http.request import HttpRequest
from django.http.response import FileResponse

def serve(
    request: HttpRequest, path: str, document_root: str = ..., show_indexes: bool = ...
) -> FileResponse: ...

DEFAULT_DIRECTORY_INDEX_TEMPLATE: str
template_translatable: Any

def directory_index(path: Any, fullpath: Any) -> Any: ...
def was_modified_since(
    header: str | None = ..., mtime: float = ..., size: int = ...
) -> bool: ...
