export declare const BLOCK_SIZE = 512; export type TarEntryType = 'file' | 'directory' | 'symlink' | 'hardlink' | 'pax-header' | 'pax-global' | 'gnu-longname' | 'gnu-longlink' | 'unknown'; export interface TarEntry { name: string; /** Optional: link target for symlinks/hardlinks. */ linkname: string; type: TarEntryType; /** File mode (decoded from octal). */ mode: number; /** Modification time as Unix epoch seconds. */ mtime: number; /** File body bytes. Empty for non-file entries. */ body: Uint8Array; /** Raw uname/gname for callers that care. */ uname: string; gname: string; } /** Parse a tar archive (already-uncompressed) into entries. */ export declare function parseTar(buf: Uint8Array): TarEntry[]; export declare class TarParseError extends Error { constructor(msg: string); }