import type { COMPRESSION_EXTENSIONS } from '../constants'; import { COMPRESSION_FORMATS } from '../constants'; export type CompressionFormat = keyof typeof COMPRESSION_FORMATS; export type CompressionExtension = (typeof COMPRESSION_EXTENSIONS)[number]; export declare function detect_compression_format(filename: string): CompressionFormat | null; export declare function decompress_data(data: ArrayBuffer | ReadableStream | null, format: CompressionFormat): Promise; export declare function decompress_data_binary(data: ArrayBuffer | ReadableStream | null, format: CompressionFormat): Promise; export declare function decompress_file(file: File): Promise<{ content: string; filename: string; }>;