import { PacketCompressionAlgorithm } from './packet/NetworkSettingsPacket.js';
/**
 * A provider for decompressing packets.
 */
export declare class CompressionProvider {
    /**
     * Create a new compression provider.
     * @param {PacketCompressionAlgorithm} algorithm - The compression algorithm to use.
     * @returns {Function} A function that will decompress the buffer.
     */
    static fromAlgorithm(algorithm: PacketCompressionAlgorithm): (buffer: Buffer) => Promise<Buffer>;
    /**
     * Create a new compression provider.
     *
     * @todo Move to full async... and remove this method...
     * @param {PacketCompressionAlgorithm} algorithm - The compression algorithm to use.
     * @returns {Function} A function that will decompress the buffer.
     */
    static fromAlgorithmSync(algorithm: PacketCompressionAlgorithm): (buffer: Buffer) => Buffer;
}
//# sourceMappingURL=CompressionProvider.d.ts.map