/** * A minimal, dependency-free ZIP reader for the server-download path — the port of the Godot CLI's * `unzip.ts`. It parses the ZIP central directory and inflates each entry (STORED `0` + DEFLATE `8`, * the only two methods GitHub's release `zip -r` produces), so cli-core carries NO third-party unzip * dependency and never shells out to a system `unzip`. Pure: takes the archive bytes, returns * `{ path, bytes }` entries; performs no filesystem writes (the caller decides where files land, after * its own path-safety checks). */ export interface ZipEntry { /** The entry's path inside the archive, using forward slashes. */ path: string; /** Decompressed bytes. Empty for directory entries. */ bytes: Buffer; /** True when the entry is a directory (path ends with `/`). */ isDirectory: boolean; } /** Parse a ZIP archive buffer into its entries. Throws a descriptive Error on a malformed archive. */ export declare function parseZip(buffer: Buffer): ZipEntry[]; //# sourceMappingURL=unzip.d.ts.map