import type { ActiveBlock } from "./compact-active-block.ts";
import { type CallIdentity, type CallProjection, type CallScope } from "./compact-call-model.ts";
import type { CallStep, CompactSessionCalls } from "./compact-session-calls.ts";
import type { SeededMessage } from "./compact-seeded-messages.ts";
import type { CompactTransition } from "./compact-transition.ts";
export interface CallFold {
    readonly changed: boolean;
    readonly projection?: CallProjection;
    /** An execution or hook record's call (RULING-123): the one it changed, or `callUnknown` when it changed none. */
    readonly identity?: CallIdentity;
}
type SeededBlockTransition = Extract<CompactTransition, {
    type: "seeded_block";
}>;
/** The announcement side: the seeded block records and the terminal message of one assistant stream. */
export declare function foldCallBlock(calls: CompactSessionCalls, t: SeededBlockTransition, step: CallStep, block: ActiveBlock | undefined): void;
/** The terminal payload is authoritative for every toolCall block; a block no event announced gets its call here. */
export declare function foldCallTerminal(calls: CompactSessionCalls, messageId: string, message: SeededMessage, step: CallStep, live: ReadonlyMap<number, ActiveBlock> | undefined): void;
/** The execution side: a JSON-normal legacy record folded at one lane step (RULING-13 Q9 reports `changed`). */
export declare function foldCallRecord(calls: CompactSessionCalls, record: object, scope: CallScope, sequence: number, callKey?: string): CallFold;
export {};
//# sourceMappingURL=compact-call-fold.d.ts.map