export type ArchiveFormat = "zip" | "tar" | "tar.gz"; export interface ArchivePathCandidate { archivePath: string; subPath: string; } export interface ArchiveNode { path: string; isDirectory: boolean; size: number; mtimeMs?: number; } export interface ArchiveDirectoryEntry extends ArchiveNode { name: string; } export interface ExtractedArchiveFile extends ArchiveNode { bytes: Uint8Array; } interface TarStorage { type: "tar"; file: File; } interface ZipStorage { type: "zip"; bytes: Uint8Array; } type EntryStorage = TarStorage | ZipStorage; interface ArchiveIndexEntry extends ArchiveNode { storage?: EntryStorage; } export declare function parseArchivePathCandidates(filePath: string): ArchivePathCandidate[]; export declare class ArchiveReader { #private; readonly format: ArchiveFormat; constructor(format: ArchiveFormat, entries: ArchiveIndexEntry[]); getNode(subPath?: string): ArchiveNode | undefined; listDirectory(subPath?: string): ArchiveDirectoryEntry[]; readFile(subPath: string): Promise; } export declare function openArchive(filePath: string): Promise; export {};