//#region src/utils/tar.d.ts type TarEntry = { path: string; data: Uint8Array; }; type TarLimits = { maxEntries: number; maxTotalBytes: number; }; /** * Serializes entries into an (uncompressed) ustar tarball. Entries whose path * ends with "/" are written as directories and must have empty data. */ declare function createTar(entries: TarEntry[]): Uint8Array; /** * Parses an (uncompressed) ustar tarball produced by `createTar` (or any tool * emitting the plain ustar subset). Strict by design — see module comment. * Directory entries are returned with a trailing "/" and empty data. * * Throws `StatusError(400, ...)` on malformed or unsafe input so backend routes * can surface it directly to the uploader. */ declare function parseTar(bytes: Uint8Array, limits: TarLimits): TarEntry[]; //#endregion export { TarEntry, TarLimits, createTar, parseTar }; //# sourceMappingURL=tar.d.ts.map