from _typeshed import Incomplete
from typing import ClassVar, 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): ...
    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): ...
