export interface ICompressedValue { compression: string; value: string; } export interface ICompressionHandler { /** * Compresses the given data using the first plugin that can compress it. */ compress(data: T): Promise; /** * Decompresses the given data using the first plugin that can decompress it. */ decompress(data: ICompressedValue | unknown): Promise; } export declare const CompressionHandler: import("@webiny/di").Abstraction; export declare namespace CompressionHandler { type Interface = ICompressionHandler; type CompressParams = T; type CompressResponse = Promise; type DecompressParams = ICompressedValue | unknown; type DecompressResponse = Promise; }