import type { Context } from "@manifesto-ai/core"; import { type ActionName, type GovernanceSettlementResult, type ManifestoDomainShape, type PreviewDiagnosticsMode, type ProposalRef, type SubmitReportMode, type TypedIntent } from "@manifesto-ai/sdk"; import { type GovernanceRuntimeKernel } from "@manifesto-ai/sdk/provider"; import type { LineageRuntimeController } from "@manifesto-ai/lineage/provider"; import type { GovernanceInstance } from "./runtime-types.js"; import type { ActorAuthorityBinding, ActorId, BranchId, DecisionId, DecisionRecord, IntentScope, Proposal, ProposalId } from "./types.js"; type RuntimeExecutionView = { readonly context?: ReturnType["getExternalContext"]>; readonly diagnostics?: PreviewDiagnosticsMode; readonly report?: SubmitReportMode; }; export type GovernanceRuntimeServices = { readonly lineage: LineageRuntimeController; readonly ensureReady: () => Promise; readonly createSubmission: (intent: TypedIntent, context: Context) => Promise; readonly settleSubmission: (proposalId: ProposalId) => Promise; readonly resumePendingSettlements: () => Promise; readonly waitForSettlement: >(proposalId: ProposalRef, actionName?: Name, reportMode?: SubmitReportMode) => Promise>; readonly approve: (proposalId: ProposalId, approvedScope?: IntentScope | null) => Promise; readonly reject: (proposalId: ProposalId, reason?: string) => Promise; readonly getProposal: (proposalId: ProposalId) => Promise; readonly getProposals: (branchId?: BranchId) => Promise; readonly bindActor: (binding: ActorAuthorityBinding) => Promise; readonly getActorBinding: (actorId: ActorId) => Promise; readonly getDecisionRecord: (decisionId: DecisionId) => Promise; }; export declare function createGovernanceRuntimeInstance(kernel: GovernanceRuntimeKernel, services: GovernanceRuntimeServices, view?: RuntimeExecutionView, isView?: boolean): GovernanceInstance; export {};