type RpcRecord = Record<string, unknown>;
export type QueueNode = {
    value: RpcRecord;
    line: string;
    byteLength: number;
    key?: string;
    previous?: QueueNode;
    next?: QueueNode;
    resolve?: () => void;
    reject?: (cause: unknown) => void;
};
export type RecordQueue = {
    sessionId?: string;
    targetId?: string;
    head?: QueueNode;
    tail?: QueueNode;
    latestByKey: Map<string, QueueNode>;
    ready: boolean;
};
/** Linked-queue mutations own the retained totals; in-flight records are counted by the writer. */
export declare class SessionRecordAccounting {
    count: number;
    bytes: number;
    append(queue: RecordQueue, value: RpcRecord, key?: string, resolve?: () => void, reject?: (cause: unknown) => void): QueueNode;
    replace(node: QueueNode, value: RpcRecord): void;
    unlink(queue: RecordQueue, node: QueueNode): void;
}
export {};
//# sourceMappingURL=session-record-accounting.d.ts.map