import type { ArchiveWriter, ArchiveWriterFormat, ArchiveWriterOptions } from './contracts.js'; /** * Create an archive writer for a supported output format. * * @example * ```ts * import { createArchiveWriter } from "../../mod.ts"; * * const writer = createArchiveWriter("zip", writable); * try { * await writer.add("hello.txt", new TextEncoder().encode("hello")); * await writer.close(); * } catch (error) { * await writer.abort(error); * throw error; * } * ``` */ export declare function createArchiveWriter(format: Format, writable: WritableStream, options?: ArchiveWriterOptions): ArchiveWriter; //# sourceMappingURL=writer.d.ts.map