tornado-core/dist/zip.d.ts
2024-10-04 12:58:47 +00:00

10 lines
397 B
TypeScript
Vendored

import { AsyncZippable, Unzipped } from 'fflate';
export declare function zipAsync(file: AsyncZippable): Promise<Uint8Array>;
export declare function unzipAsync(data: Uint8Array): Promise<Unzipped>;
export declare function downloadZip<T>({ staticUrl, zipName, zipDigest, parseJson, }: {
staticUrl?: string;
zipName: string;
zipDigest?: string;
parseJson?: boolean;
}): Promise<T>;