import type { GovernanceConsumeRequest, GovernanceConsumeResult, GovernanceCorrelation, GovernanceDecision, GovernanceEscalationRecord, GovernanceLedger, GovernanceRetryClass, GovernanceStore } from "./types.js"; export declare function isSafeGovernanceMissionId(missionId: string): boolean; export declare function defaultGovernanceRoot(): string; export declare function createGovernanceLedger(missionId: string, parentMissionId?: string): GovernanceLedger; export declare function consumeGovernanceInternal(ledger: GovernanceLedger, request: GovernanceConsumeRequest): GovernanceConsumeResult; export declare function recordGovernanceRetry(ledger: GovernanceLedger, eventId: string, retryClass: GovernanceRetryClass, atMs: number, correlation?: GovernanceCorrelation): GovernanceLedger; export declare function recordGovernanceDecision(ledger: GovernanceLedger, eventId: string, decision: GovernanceDecision): GovernanceLedger; export declare function recordGovernanceEscalation(ledger: GovernanceLedger, eventId: string, record: GovernanceEscalationRecord): GovernanceLedger; export declare class FileGovernanceStore implements GovernanceStore { readonly storeId: string; private readonly root; constructor(options?: { root?: string; storeId?: string; }); private file; private locked; private read; private write; create(ledger: GovernanceLedger): Promise<"created" | "idempotent" | "conflict">; load(missionId: string): Promise<{ status: "ok"; ledger: GovernanceLedger; } | { status: "missing"; } | { status: "corrupt"; diagnostic: string; }>; mutate(missionId: string, mutation: (ledger: GovernanceLedger) => { kind: "write"; ledger: GovernanceLedger; value: T; } | { kind: "noop"; value: T; }): Promise<{ status: "missing"; } | { status: "corrupt"; diagnostic: string; value?: undefined; } | { diagnostic?: undefined; status: "ok"; value: T; }>; } //# sourceMappingURL=ledger.d.ts.map