/** * set the function used to inflate gzip/zlib data * @param fn - inflate function */ export declare function setInflateFunction(fn: ((data: string, format: string) => Uint32Array) | undefined): void; /** * decompress and decode zlib/gzip data * @param data - Base64 encoded and compressed data * @param format - compressed data format ("gzip","zlib", "zstd") * @returns Decoded and decompressed data */ export declare function decompress(data: string, format: string): Uint32Array; /** * Decode a CSV encoded array into a binary array * @param input - CSV formatted data (only numbers, everything else will be converted to NaN) * @returns Decoded data */ export declare function decodeCSV(input: string): number[]; /** * Decode a base64 encoded string into a byte array * @param input - Base64 encoded data * @param bytes - number of bytes per array entry * @returns Decoded data */ export declare function decodeBase64AsArray(input: string, bytes?: number): Uint32Array; export declare function decodeBase64Image(base64: string, format?: string, width?: number, height?: number): HTMLImageElement; /** * Decode an encoded array into a binary array * @param data - data to be decoded * @param encoding - data encoding ("csv", "base64", "none") * @param compression - data compression ("none", "gzip", "zlib", "zstd") * @returns Decoded data */ export declare function decode(data: string | number[], encoding?: string, compression?: string): number[] | Uint32Array; //# sourceMappingURL=decode.d.ts.map