/**
 * Checkpoint serialization for the current WARP state
 *
 * Provides full state serialization including ORSet internals (entries + tombstones).
 * This is the AUTHORITATIVE checkpoint format for current state.
 *
 * Key differences from StateSerializer:
 * - StateSerializer serializes the VISIBLE PROJECTION (for hashing)
 * - CheckpointSerializer serializes the FULL INTERNAL STATE (for resume)
 *
 * @module CheckpointSerializer
 * @see WARP Spec Section 10 (Checkpoints)
 */
import VersionVector from '../../crdt/VersionVector.ts';
import type { WarpState as WarpStateType } from '../JoinReducer.ts';
import type CodecPort from '../../../ports/CodecPort.ts';
/**
 * Serializes full state including ORSet internals (entries + tombstones).
 * This is the AUTHORITATIVE checkpoint format.
 */
export declare function serializeFullState(state: WarpStateType, { codec }?: {
    codec?: CodecPort;
}): Uint8Array;
/**
 * Deserializes full state. Used for resume.
 */
export declare function deserializeFullState(buffer: Uint8Array, { codec: codecOpt }?: {
    codec?: CodecPort;
}): WarpStateType;
export interface CheckpointStateEnvelopeBuffers {
    nodeAlive: Uint8Array;
    edgeAlive: Uint8Array;
    prop: Uint8Array;
    observedFrontier: Uint8Array;
    edgeBirthEvent: Uint8Array;
}
export declare function serializeCheckpointStateEnvelope(state: WarpStateType, { codec }?: {
    codec?: CodecPort;
}): CheckpointStateEnvelopeBuffers;
export declare function deserializeCheckpointStateEnvelope(buffers: CheckpointStateEnvelopeBuffers, { codec }?: {
    codec?: CodecPort;
}): WarpStateType;
/**
 * Computes appliedVV by scanning all dots in state.
 * Walks `nodeAlive` and `edgeAlive` via the ORSet's entryDotsIter.
 * Returns Map<writerId, maxCounter>.
 *
 * CRITICAL: This scans ALL entry dots, including tombstoned ones.
 * The appliedVV represents what operations have been applied, not what is visible.
 */
export declare function computeAppliedVV(state: WarpStateType): VersionVector;
/**
 * Serializes appliedVV to CBOR format.
 */
export declare function serializeAppliedVV(vv: VersionVector, { codec }?: {
    codec?: CodecPort;
}): Uint8Array;
/**
 * Deserializes appliedVV from CBOR format.
 */
export declare function deserializeAppliedVV(buffer: Uint8Array, { codec }?: {
    codec?: CodecPort;
}): VersionVector;
