import type { AssistantMessage } from "@earendil-works/pi-ai";
export type AssistantCommitOutcome = "clean" | "rewritten" | "not-resident";
export type AssistantCommitResult = {
    outcome: AssistantCommitOutcome;
    /** senpi#1975: first diverged field path on a rewrite. Paths only, never values. */
    divergedPath?: string;
};
export declare function assistantContentHash(message: AssistantMessage): string;
export declare function isResidentAssistant(message: AssistantMessage, modelId: string): boolean;
export declare function isTerminalFailure(message: AssistantMessage): boolean;
/**
 * Divergence is decided by comparing what the provider streamed against what the
 * session ledger committed, never by in-flight staging: a result-only turn fills
 * its content at the terminal message with no preceding delta, so a staged-hash
 * comparison reports false divergence on a perfectly valid SDK response shape.
 */
export declare class AssistantCommitBoundary {
    private readonly providerFinalByKey;
    captureProviderFinal(key: string, message: AssistantMessage): void;
    commit(key: string, message: AssistantMessage, modelId: string): AssistantCommitResult;
    forget(key: string): void;
}
//# sourceMappingURL=session-commit-boundary.d.ts.map