import { type ZipWarning } from '../errors.js'; import type { RandomAccess } from './RandomAccess.js'; export interface ZipEntryRecord { name: string; nameSource: 'utf8-flag' | 'cp437' | 'unicode-extra'; rawNameBytes: Uint8Array; comment?: string | undefined; flags: number; method: number; crc32: number; compressedSize: bigint; uncompressedSize: bigint; offset: bigint; mtime: Date; atime?: Date | undefined; ctime?: Date | undefined; extra: Map; extraLength: number; isDirectory: boolean; isSymlink: boolean; encrypted: boolean; madeBy: number; externalAttributes: number; zip64: boolean; } export interface CentralDirectoryResult { entries: ZipEntryRecord[]; warnings: ZipWarning[]; } export interface CentralDirectoryOptions { strict: boolean; maxEntries: number; } export interface CentralDirectoryStreamOptions extends CentralDirectoryOptions { signal?: AbortSignal; onWarning?: (warning: ZipWarning) => void; } export declare function readCentralDirectory(reader: RandomAccess, cdOffset: bigint, cdSize: bigint, totalEntries: bigint, options: CentralDirectoryOptions): Promise; export declare function iterCentralDirectory(reader: RandomAccess, cdOffset: bigint, cdSize: bigint, totalEntries: bigint, options: CentralDirectoryStreamOptions): AsyncGenerator; //# sourceMappingURL=centralDirectory.d.ts.map