/** zlib and header stripping are undone; encryption and the other compressions are not. */
import type { Element, Window } from "../ebml.js";
import { type Inflate } from "../io/source.js";
export interface ContentEncoding {
    order: number;
    scope: number;
    /** null for an encryption, or for a type this reader does not know. */
    compression: ContentCompression | null;
}
/** Its answer is a buffer of its own. */
export type Undo = (stored: Uint8Array) => Promise<Uint8Array>;
interface ContentCompression {
    algo: number;
    settings: Uint8Array | null;
}
export declare const FRAMES_SCOPE = 1;
export declare function undoFor(encodings: readonly ContentEncoding[] | null, scope: number, inflate: Inflate): Undo | null | false;
export declare function encodingsIn(window: Window, list: Element): ContentEncoding[] | null;
/** A stated compression that does not inflate counts as one this reader cannot undo. */
export declare function codecPrivateOf(stored: Uint8Array | null, encodings: readonly ContentEncoding[] | null, inflate: Inflate): Promise<Uint8Array | null>;
export {};
