/** * TAR Parser * * Parses TAR archives from various input sources. * Supports POSIX ustar, GNU tar (long filenames), and PAX extensions. */ import type { TarEntryInfo } from "./tar-entry-info.js"; export interface TarParseOptions { /** Maximum file size to extract into memory (default: 100MB) */ maxFileSize?: number; /** Abort signal for cancellation */ signal?: AbortSignal; } export interface TarEntry { /** Entry metadata */ info: TarEntryInfo; /** Extract entry data as Uint8Array */ data(): Promise; /** Extract entry data as string (UTF-8) */ text(): Promise; /** Skip this entry without reading data */ skip(): Promise; } /** * Parse TAR archive from Uint8Array */ export declare function parseTar(data: Uint8Array, options?: TarParseOptions): TarEntry[]; /** * Parse TAR archive from async iterable (streaming) */ export declare function parseTarStream(source: AsyncIterable, options?: TarParseOptions): AsyncGenerator; }>; /** * Parse TAR archive and return all entries with their data */ export declare function untar(source: Uint8Array | AsyncIterable, options?: TarParseOptions): Promise>;