import type { VoyantGraphRuntimePorts } from "./runtime-composition.js"; import type { VoyantGraphActivatedRuntime, VoyantGraphRuntime, VoyantGraphRuntimeReferenceLoader, VoyantGraphRuntimeToolLoader } from "./runtime-lowering.js"; export interface VoyantGraphConditionalActionProvisionalUnit { unitId: string; references: readonly VoyantGraphRuntimeReferenceLoader[]; tools: readonly VoyantGraphRuntimeToolLoader[]; } /** * Keep the attestation registrar module-private while allowing framework * lowering to assemble the runtime before its identity is recorded. * * This helper is an internal source-module seam; the framework package exports * only the assertion at its public runtime-attestation subpath. */ export declare function createFrameworkOwnedRuntime(create: () => T): T; /** * Require an authentic framework runtime before crossing into MCP. * * Structural graph objects cannot satisfy this assertion, and selected * conditional actions additionally require the post-preflight activated view. */ export declare function assertVoyantGraphMcpRuntime(runtime: unknown): asserts runtime is VoyantGraphActivatedRuntime; /** Register activation-only loaders without adding them to the enumerable runtime graph. */ export declare function registerConditionalActionRuntimeState(runtime: VoyantGraphRuntime, units: readonly VoyantGraphConditionalActionProvisionalUnit[]): void; /** * Run every action-owner conformance kit for an exactly selected graph * provider before recording that its conditional actions may be activated. */ export declare function preflightSelectedConditionalActionProvider(runtimeView: VoyantGraphRuntime, portId: string, provider: unknown): Promise; /** Provider ports whose exact selected instances must pass activation preflight. */ export declare function conditionalActionProviderPortIds(runtimeView: VoyantGraphRuntime): string[]; /** * Produce the only runtime view that enumerates selected conditional actions * and Tools. The view is registered in module-private state and cannot be * manufactured by a structural callback or public marker. */ export declare function activateConditionalActionRuntime(runtimeView: VoyantGraphRuntime): VoyantGraphActivatedRuntime; /** * Require the framework-owned activated view. Composition may additionally * require every conditional port binding to be the exact attested instance. */ export declare function assertConditionalActionRuntimeActivated(runtime: VoyantGraphRuntime, ports?: VoyantGraphRuntimePorts, requireBoundPorts?: boolean): asserts runtime is VoyantGraphActivatedRuntime;