/** check input before coercion */
export declare function checkInput(input: unknown): asserts input is BinaryData;
/** check and clamp compress level */
export declare function checkLevel(level: number | undefined): number;
/** warp module */
export declare function createModule<TBinary extends Uint8Array>(options: {
    coercion: (input: BinaryData) => TBinary;
    compress: (data: TBinary, level: number) => TBinary;
    decompress: (data: TBinary) => TBinary;
}): {
    /** ZStandard compress */
    compress: (data: BinaryData, level?: number) => Uint8Array;
    /** ZStandard decompress */
    decompress: (data: BinaryData) => Uint8Array;
};
