import type { DispatchExecutionOutcome, ExecutionOutcome, ManifestoDomainShape, TypedIntent } from "@manifesto-ai/sdk"; import type { GovernanceRuntimeDeps } from "./runtime-deps.js"; import type { Proposal, ProposalId } from "./types.js"; /** * Settlement/finalization seam: seals an approved execution into lineage and * compensates settlement failures with a terminal proposal record. */ export interface SettlementEngine { finalizeApprovedExecution(executingProposal: Proposal & { readonly status: "executing"; }, intent: TypedIntent): Promise; compensateSettlementFailure(proposalId: ProposalId, fallbackProposal: Proposal, resultWorld?: string): Promise; } export declare function createSettlementEngine(deps: GovernanceRuntimeDeps): SettlementEngine; export declare function toTypedComputeIntent(proposal: Proposal): TypedIntent; export declare function toSettlementOutcome(dispatchOutcome: DispatchExecutionOutcome, proposal: Proposal): ExecutionOutcome;