import { TarArchive } from "./tar/tar-archive.js"; import { ZipArchive, type ZipOptionsTar, type ZipOptionsZip } from "./zip/zip-archive.js"; /** * Create a new archive * * @param options - Archive options including format * @returns ZipArchive or TarArchive depending on format option * * @example * ```ts * // Create ZIP archive (default) * const zipArchive = zip(); * zipArchive.add("file.txt", "content"); * const zipBytes = await zipArchive.bytes(); * * // Create TAR archive * const tarArchive = zip({ format: "tar" }); * tarArchive.add("file.txt", "content"); * const tarBytes = await tarArchive.bytes(); * ``` */ export declare function zip(options: ZipOptionsTar): TarArchive; export declare function zip(options?: ZipOptionsZip): ZipArchive;