import type { VoyantGraphRuntime, VoyantGraphRuntimeProviderLoader, VoyantGraphRuntimeResourceDefinition } from "./runtime-lowering.js"; export declare const VOYANT_GRAPH_RUNTIME_VALUE_ERROR_CODES: { readonly VOYANT_GRAPH_RUNTIME_VALUE_REQUIRED: "A required graph runtime value is missing."; readonly VOYANT_GRAPH_RUNTIME_VALUE_INVALID: "A graph runtime value failed its admitted validator."; readonly VOYANT_GRAPH_RUNTIME_VALIDATOR_INVALID: "A graph runtime validator export does not implement a supported schema interface."; }; export type VoyantGraphRuntimeValueErrorCode = keyof typeof VOYANT_GRAPH_RUNTIME_VALUE_ERROR_CODES; export interface VoyantGraphRuntimeValueIssue { code: VoyantGraphRuntimeValueErrorCode; unitId: string; declarationId: string; facet: "config" | "secrets"; key: string; } export declare class VoyantGraphRuntimeValueError extends Error { readonly issues: readonly VoyantGraphRuntimeValueIssue[]; constructor(issues: readonly VoyantGraphRuntimeValueIssue[]); } export interface ResolveVoyantGraphRuntimeValuesInput { /** * Node deployment values. Secret declarations read only from this record; * config declarations use it after unit project config and before defaults. */ deploymentValues?: Readonly>; /** Compatible deployment names, keyed by the declaration's canonical key. */ deploymentValueAliases?: Readonly>; } export interface ResolvedVoyantGraphRuntimeConfig { unitId: string; declarationId: string; key: string; value: unknown; } export interface ResolvedVoyantGraphRuntimeSecret { unitId: string; declarationId: string; key: string; } export interface ResolvedVoyantGraphRuntimeValues { graphHash: string; config: readonly ResolvedVoyantGraphRuntimeConfig[]; /** Secret metadata only. Values are intentionally non-enumerable. */ secrets: readonly ResolvedVoyantGraphRuntimeSecret[]; resources: readonly VoyantGraphRuntimeResourceDefinition[]; providers: readonly VoyantGraphRuntimeProviderLoader[]; getConfig: (declarationId: string) => T | undefined; getSecret: (declarationId: string) => T | undefined; } /** * Resolve and validate graph-owned Node runtime values before composition. * Validator and provider package bodies remain lazy until this resolver or a * provider consumer explicitly requests their admitted export. */ export declare function resolveVoyantGraphRuntimeValues(runtime: VoyantGraphRuntime, input?: ResolveVoyantGraphRuntimeValuesInput): Promise;