@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
18 lines • 1.15 kB
TypeScript
export declare class GzipDataError extends Error {
readonly exitCode: number;
readonly keepsOutput: boolean;
readonly firstHeader: boolean;
readonly reasons: readonly string[];
readonly fatal: boolean;
constructor(reasons: readonly string[], fatal: boolean, exitCode?: number, keepsOutput?: boolean, firstHeader?: boolean);
/** gzip's lines for the failure, the input named `label`. */
render(label: string): string;
}
/** Encode one member through the shared codec. */
export declare function gzip(bytes: Uint8Array, name?: string, level?: number | null): Promise<Uint8Array>;
export declare function gunzip(bytes: Uint8Array): Promise<Uint8Array>;
/** Encode bounded chunks and close an abandoned source. */
export declare function gzipCompressStream(source: AsyncIterable<Uint8Array>, level?: number | null, name?: string): AsyncGenerator<Uint8Array, void>;
/** Decode members and retain bytes produced before a checked failure. */
export declare function gunzipStream(source: AsyncIterable<Uint8Array>, test?: boolean, passthrough?: boolean): AsyncGenerator<Uint8Array, void>;
//# sourceMappingURL=compress.d.ts.map