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

import tornado.web
from streamlit.runtime.memory_media_file_storage import MemoryMediaFileStorage

_LOGGER = ...
class MediaFileHandler(tornado.web.StaticFileHandler):
    _storage: MemoryMediaFileStorage
    @classmethod
    def initialize_storage(cls, storage: MemoryMediaFileStorage) -> None:
        """Set the MemoryMediaFileStorage object used by instances of this
        handler. Must be called on server startup.
        """
        ...
    
    def set_default_headers(self) -> None:
        ...
    
    def set_extra_headers(self, path: str) -> None:
        """Add Content-Disposition header for downloadable files.

        Set header value to "attachment" indicating that file should be saved
        locally instead of displaying inline in browser.

        We also set filename to specify the filename for downloaded files.
        Used for serving downloadable files, like files stored via the
        `st.download_button` widget.
        """
        ...
    
    def validate_absolute_path(self, root: str, absolute_path: str) -> str:
        ...
    
    def get_content_size(self) -> int:
        ...
    
    def get_modified_time(self) -> None:
        ...
    
    @classmethod
    def get_absolute_path(cls, root: str, path: str) -> str:
        ...
    
    @classmethod
    def get_content(cls, abspath: str, start: int | None = ..., end: int | None = ...): # -> bytes | None:
        ...
    


