from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal

from .ImageFile import ImageFile

def Skip(self, marker) -> None: ...
def APP(self, marker) -> None: ...
def COM(self, marker) -> None: ...
def SOF(self, marker) -> None: ...
def DQT(self, marker) -> None: ...

MARKER: Incomplete

class JpegImageFile(ImageFile):
    format: ClassVar[Literal["JPEG", "MPO"]]
    format_description: ClassVar[str]
    def load_read(self, read_bytes): ...
    mode: Incomplete
    tile: Incomplete
    decoderconfig: Incomplete
    def draft(self, mode, size): ...
    im: Incomplete
    def load_djpeg(self) -> None: ...
    def getxmp(self): ...

RAWMODE: Incomplete
zigzag_index: Incomplete
samplings: Incomplete

def get_sampling(im): ...
def jpeg_factory(fp: Incomplete | None = None, filename: Incomplete | None = None): ...
