import type { InputType, ZlibOptions } from '#lab/types'; export declare function useZlib(opts?: ZlibOptions): { /** * Compresses the given input data using gzip. * * @param {any} input - The data to be compressed. This can be any type of data, including strings, numbers, objects, etc. * @param {ZlibOptions} [options] - Optional configuration options for the compression process. * @returns A promise that resolves to the compressed data as a Buffer. */ gzip: (input: any, options?: ZlibOptions) => Promise; /** * Decompresses the given input data using gunzip. * * @param {InputType} input - The compressed data to be decompressed. This can be a string or ArrayBuffer. * @param {ZlibOptions} [options] - Optional configuration options for the decompression process. * @returns A promise that resolves to the decompressed data, where T is the type of the original data before compression. */ gunzip: (input: InputType, options?: ZlibOptions) => Promise; };