import type { Cursor } from "@hazae41/cursor";
export type Compression = typeof Compression.None | typeof Compression.Gzip;
export declare namespace Compression {
    namespace None {
        const type = 0;
        function cloneOrThrow(): typeof None;
        function sizeOrThrow(): number;
        function writeOrThrow(cursor: Cursor<ArrayBuffer>): void;
    }
    namespace Gzip {
        const type = 1;
        function cloneOrThrow(): typeof Gzip;
        function sizeOrThrow(): number;
        function writeOrThrow(cursor: Cursor<ArrayBuffer>): void;
    }
}
export declare namespace Compression {
    function readOrThrow(cursor: Cursor<ArrayBuffer>): Compression;
}
