import CheckpointStorePort, { type CheckpointRecord, type CheckpointWriteResult, type CheckpointData } from '../../ports/CheckpointStorePort.ts';
import type CodecPort from '../../ports/CodecPort.ts';
import type BlobStoragePort from '../../ports/BlobStoragePort.ts';
interface BlobPort {
    readBlob(oid: string): Promise<Uint8Array>;
    writeBlob(content: Uint8Array | string): Promise<string>;
}
/**
 * CBOR-backed implementation of CheckpointStorePort.
 *
 * Owns the codec and raw blob persistence. Domain services call
 * writeCheckpoint(record) with domain objects; the adapter internally
 * encodes each artifact and writes blobs.
 */
export declare class CborCheckpointStoreAdapter extends CheckpointStorePort {
    private readonly _codec;
    private readonly _blobPort;
    private readonly _blobStorage;
    constructor({ codec, blobPort, blobStorage }: {
        codec: CodecPort;
        blobPort: BlobPort;
        blobStorage?: BlobStoragePort | null;
    });
    writeCheckpoint(record: CheckpointRecord): Promise<CheckpointWriteResult>;
    readCheckpoint(treeOids: Record<string, string>): Promise<CheckpointData>;
    private _encodeFullState;
    private _encodeFrontier;
    private _encodeAppliedVV;
    private _decodeFullState;
    private _decodeFrontier;
    private _decodeAppliedVV;
}
export {};
