import { FileGovernanceStore } from "./ledger.js"; import type { GovernanceConsumeRequest, GovernanceConsumeResult, GovernanceCorrelation, GovernanceDecision, GovernanceEscalationRecord, GovernanceModelTransition, GovernanceOrchestrationChildRequest, GovernancePolicy, GovernanceRetryClass, GovernanceStatusSnapshot } from "./types.js"; /** * Durable Governance admission facade. It performs only policy arithmetic and * accounting. Callers perform the admitted action through their owning * authority (Scheduler, Worker, provider stream, or executor). */ export declare class GovernanceService { readonly store: FileGovernanceStore; readonly policy: GovernancePolicy; constructor(options: { store?: FileGovernanceStore; policy: GovernancePolicy; }); ensureMission(missionId: string, parentMissionId?: string): Promise; /** Atomic admission for a single provider inference request. */ admitInference(input: { missionId: string; eventId: string; provider: string; model: string; atMs: number; }): Promise<{ allowed: boolean; reason?: string; }>; /** Record authoritative provider result telemetry after the provider returns. */ recordInferenceResult(input: { missionId: string; eventId: string; provider: string; model: string; inputTokens?: number; outputTokens?: number; costUsd?: number; costStatus?: "KNOWN" | "UNKNOWN"; atMs: number; }): Promise; recordRetry(missionId: string, eventId: string, retryClass: GovernanceRetryClass, atMs: number, correlation?: GovernanceCorrelation): Promise; recordDecision(missionId: string, eventId: string, decision: GovernanceDecision): Promise; recordEscalation(missionId: string, eventId: string, record: GovernanceEscalationRecord): Promise; recordModelTransition(input: GovernanceModelTransition): Promise; /** Record a policy-governed non-inference unit (child, retry, replan, etc.). */ consume(missionId: string, request: GovernanceConsumeRequest): Promise; recordOrchestrationChild(input: GovernanceOrchestrationChildRequest): Promise; snapshot(missionId: string): Promise; } //# sourceMappingURL=service.d.ts.map