UNPKG

gis-tools-ts

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

42 lines 2.15 kB
/** * Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format * @param data The data to decompress * @param dict - The dictionary used to compress the original data. If no dictionary was used during * compression, this option has no effect. Supplying the wrong dictionary during decompression * usually yields corrupt output or causes an invalid distance error. * @returns The decompressed version of the data */ export declare function decompressSync(data: Uint8Array, dict?: Uint8Array): Uint8Array; /** * Expands GZIP data * @param data The data to decompress * @param dict - The dictionary used to compress the original data. If no dictionary was used during * compression, this option has no effect. Supplying the wrong dictionary during decompression * usually yields corrupt output or causes an invalid distance error. * @returns The decompressed version of the data */ export declare function gunzipSync(data: Uint8Array, dict?: Uint8Array): Uint8Array; /** * Expands DEFLATE data with no wrapper * @param data The data to decompress * @param dict - The dictionary used to compress the original data. If no dictionary was used during * compression, this option has no effect. Supplying the wrong dictionary during decompression * usually yields corrupt output or causes an invalid distance error. * @returns The decompressed version of the data */ export declare function inflateSync(data: Uint8Array, dict?: Uint8Array): Uint8Array; /** * Expands Zlib data * @param data The data to decompress * @param dict - The dictionary used to compress the original data. If no dictionary was used during * compression, this option has no effect. Supplying the wrong dictionary during decompression * usually yields corrupt output or causes an invalid distance error. * @returns The decompressed version of the data */ export declare function unzlibSync(data: Uint8Array, dict?: Uint8Array): Uint8Array; /** An error generated within this library */ export interface FlateError extends Error { /** The code associated with this error */ code: number; } //# sourceMappingURL=fflate.d.ts.map