import type { AssistantMessage } from "@earendil-works/pi-ai";
export type AssistantSemanticProjection = {
    role: AssistantMessage["role"];
    api: AssistantMessage["api"];
    provider: AssistantMessage["provider"];
    model: AssistantMessage["model"];
    content: unknown[];
};
/**
 * The captured projection must be a snapshot, not a reference: the rewrite
 * class this exists for (senpi#1472, senpi#1975) mutates tool-call arguments in
 * place between `message_update` and `message_end`, and a shared reference
 * would follow the mutation and blind the walk to exactly that case.
 */
export declare function snapshotProjection(projection: AssistantSemanticProjection): AssistantSemanticProjection;
/**
 * First diverged path between the provider-final and committed projections:
 * `content.length`, then per block `type`, its semantic fields, and for
 * toolCall blocks `arguments.<path>`, then `api` / `provider` / `model`.
 * Only paths leave this function; no value from either side is embedded.
 */
export declare function firstDivergedPath(providerFinal: AssistantSemanticProjection, committed: AssistantSemanticProjection): string;
//# sourceMappingURL=session-commit-divergence.d.ts.map