import { DiscoveredPromptFile } from '../../types/prompt-source'; /** * Decompress a gzipped ArrayBuffer using the native DecompressionStream API. * Available in Node.js 18+ and all modern browsers. */ export declare function decompressGzip(compressed: ArrayBuffer): Promise; /** * Minimal tar parser for read-only extraction of file entries. * * The tar format uses 512-byte header blocks followed by file data * aligned to 512-byte boundaries. We only need to iterate entries * and extract their content. */ export interface TarEntry { name: string; size: number; content: Uint8Array; } /** * Parse a tar archive (uncompressed) and yield file entries. */ export declare function parseTar(buffer: ArrayBuffer): TarEntry[]; /** * Extract .prompt files from a gzipped tarball (e.g., from npm registry). * * Looks for files matching `package/prompts/*.prompt` or `prompts/*.prompt` * within the tar archive. */ export declare function extractPromptFiles(tarballBuffer: ArrayBuffer): Promise; //# sourceMappingURL=tar-utils.d.ts.map