import { encodeReverseBitstream, ReverseBitWriter } from '../bitstream/reverseBitWriter.js'; import type { Sequence } from '../decode/reconstruct.js'; import { type FSEDecodeTable } from '../entropy/fse.js'; import { buildGeneralCompressedLiteralsForBench, type LiteralEntropyTable } from './literalsEncoder.js'; interface SequenceTablesState { llTable: FSEDecodeTable; llTableLog: number; ofTable: FSEDecodeTable; ofTableLog: number; mlTable: FSEDecodeTable; mlTableLog: number; } export interface SequenceEntropyContext { prevTables: SequenceTablesState | null; prevLiteralsTable?: LiteralEntropyTable | null; } declare function buildSequenceSection(sequences: readonly Sequence[], context?: SequenceEntropyContext, reverseBitWriter?: ReverseBitWriter): { section: Uint8Array; tables: SequenceTablesState; } | null; export declare function buildCompressedBlockPayload(literals: Uint8Array, sequences: Sequence[], context?: SequenceEntropyContext): Uint8Array | null; export declare function writeCompressedBlock(payload: Uint8Array, last: boolean): Uint8Array; export declare const __benchInternals: { encodeReverseBitstream: typeof encodeReverseBitstream; buildGeneralCompressedLiterals: typeof buildGeneralCompressedLiteralsForBench; buildPredefinedSequenceSection: (sequences: readonly Sequence[]) => Uint8Array | null; buildSequenceSection: typeof buildSequenceSection; }; export {};