from _typeshed import Incomplete
from collections.abc import Generator
from zipfile import ZipFile

from openpyxl.packaging.relationship import RelationshipList
from openpyxl.pivot.cache import CacheDefinition
from openpyxl.workbook import Workbook

class WorkbookParser:
    archive: ZipFile
    workbook_part_name: Incomplete
    wb: Workbook
    keep_links: Incomplete
    sheets: Incomplete
    def __init__(self, archive: ZipFile, workbook_part_name, keep_links: bool = True) -> None: ...
    @property
    def rels(self) -> RelationshipList: ...
    caches: Incomplete
    def parse(self) -> None: ...
    def find_sheets(self) -> Generator[Incomplete, None, None]: ...
    def assign_names(self) -> None: ...
    @property
    def pivot_caches(self) -> dict[int, CacheDefinition]: ...
