2025-01-21 17:34:04 +00:00
|
|
|
import { AsyncZippable, Unzipped, ZipAttributes, AsyncZlibOptions, AsyncUnzlibOptions } from 'fflate';
|
|
|
|
import { fetchDataOptions } from './providers';
|
2024-11-16 19:37:40 +00:00
|
|
|
export declare function zipAsync(file: AsyncZippable, options?: ZipAttributes): Promise<Uint8Array>;
|
2024-10-04 12:58:47 +00:00
|
|
|
export declare function unzipAsync(data: Uint8Array): Promise<Unzipped>;
|
2025-01-21 17:34:04 +00:00
|
|
|
export declare function zlibAsync(data: Uint8Array, options?: AsyncZlibOptions): Promise<Uint8Array>;
|
|
|
|
export declare function unzlibAsync(data: Uint8Array, options?: AsyncUnzlibOptions): Promise<Uint8Array>;
|
|
|
|
export declare function downloadZip<T>({ staticUrl, zipName, zipDigest, parseJson, fetchOptions, }: {
|
2024-10-04 12:58:47 +00:00
|
|
|
staticUrl?: string;
|
|
|
|
zipName: string;
|
|
|
|
zipDigest?: string;
|
|
|
|
parseJson?: boolean;
|
2025-01-21 17:34:04 +00:00
|
|
|
fetchOptions?: fetchDataOptions;
|
2024-10-04 12:58:47 +00:00
|
|
|
}): Promise<T>;
|