import { type RowColumn, type RowValue } from './row-codec.js'; export declare const ROWS_SEGMENT_MAGIC = "SSG2"; export declare const ROWS_SEGMENT_FORMAT_VERSION = 1; /** One §5.2 row record: the row's `server_version` plus its values. */ export interface SegmentRow { /** The row's `server_version` at `asOfCommitSeq` (§2.2); always ≥ 1. */ readonly serverVersion: number; readonly values: readonly RowValue[]; } export interface RowsSegment { readonly table: string; readonly schemaVersion: number; readonly columns: readonly RowColumn[]; /** Row blocks in wire order; each block is applied in one transaction. */ readonly blocks: readonly (readonly SegmentRow[])[]; } export declare function encodeRowsSegment(segment: RowsSegment): Uint8Array; export declare function decodeRowsSegment(bytes: Uint8Array): RowsSegment;