/** Internal durable snapshot of one map node's admitted item selection. */ export declare const INTERNAL_MAP_ITEMS_FIELD = "_mapItems"; /** Internal durable child context required to resume a paused map processor. */ export declare const INTERNAL_MAP_CONTEXT_FIELD = "_mapContext"; /** Internal durable projection sidecar for a paused map processor context. */ export declare const INTERNAL_MAP_CONTEXT_PROJECTION_FIELD = "_mapContextProjection"; /** Internal ordered child identities used to project positional map outputs. */ export declare const INTERNAL_MAP_CHILD_NODE_IDS_FIELD = "_mapChildNodeIds"; /** Internal durable state required to re-enter one paused sub-workflow. */ export declare const INTERNAL_SUBWORKFLOW_STATE_FIELD = "_subWorkflowState"; /** Internal provenance for node outputs that contain a full workflow context. */ export declare const INTERNAL_WORKFLOW_OUTPUT_KIND_FIELD = "_workflowOutputKind"; /** Provenance value for the default output of a sub-workflow node. */ export declare const SUBWORKFLOW_CONTEXT_OUTPUT_KIND = "subWorkflowContext"; /** Internal provenance for framework-owned node input snapshots. */ export declare const INTERNAL_WORKFLOW_INPUT_KIND_FIELD = "_workflowInputKind"; /** Provenance value for descendant inputs inherited from a sub-workflow. */ export declare const SUBWORKFLOW_INPUT_KIND = "subWorkflowInput"; import type { WorkflowContext } from "./types.js"; /** Internal run/checkpoint sidecar carrying public projection ownership. */ export declare const INTERNAL_WORKFLOW_PROJECTION_STATE_FIELD = "_workflowProjection"; /** Internal path ownership carried by one durable node output. */ export declare const INTERNAL_WORKFLOW_OUTPUT_PROJECTION_FIELD = "_workflowOutputProjection"; /** Internal cumulative child delta retained across immediate composite retries. */ export declare const INTERNAL_COMPOSITE_CONTEXT_PATCH_FIELD = "_compositeContextPatch"; /** A marked value is a framework execution context whose root metadata is private. */ export declare const FRAMEWORK_CONTEXT_PROJECTION_KIND = "frameworkContext"; /** A marked value is runtime bookkeeping and is absent from public state. */ export declare const INTERNAL_RUNTIME_PROJECTION_KIND = "internalRuntime"; export type WorkflowProjectionKind = typeof FRAMEWORK_CONTEXT_PROJECTION_KIND | typeof INTERNAL_RUNTIME_PROJECTION_KIND; /** A path is relative to its owning top-level context slot or node output. */ export interface WorkflowProjectionPath { readonly kind: WorkflowProjectionKind; readonly path: readonly (string | number)[]; } export type WorkflowContextProjection = Record; /** Framework-only durable sidecar; it is never inserted into user context. */ export interface WorkflowProjectionState { readonly context: WorkflowContextProjection; /** Execution-scope provenance stamped before descendant checkpoints are saved. */ readonly inputKind?: typeof SUBWORKFLOW_INPUT_KIND; } /** Current durable provenance model for newly admitted workflow runs. */ export declare const WORKFLOW_RUNTIME_STATE_VERSION = 2; /** Immutable internal run field carrying the durable provenance model version. */ export declare const INTERNAL_WORKFLOW_RUNTIME_STATE_VERSION_FIELD = "_runtimeStateVersion"; /** * Internal run field carrying the last execution's W3C `traceparent`. * * Framework-only: it exists so the next execution can link its span to the * previous one, and it names internal infrastructure, so it is stripped from * every public run projection alongside the other `_`-prefixed fields. */ export declare const INTERNAL_WORKFLOW_TRACE_CONTEXT_FIELD = "_traceContext"; /** Cycle-safe structural equality for detached durable workflow values. */ export declare function workflowRuntimeValuesEqual(left: unknown, right: unknown): boolean; /** Detach a validated list of internal output-projection paths. */ export declare function captureWorkflowProjectionPaths(value: unknown): WorkflowProjectionPath[]; /** Detach a validated context projection sidecar. */ export declare function captureWorkflowContextProjection(value: unknown): WorkflowContextProjection; /** Read a detached projection snapshot for one top-level workflow context slot. */ export declare function getWorkflowContextRootProjection(projection: WorkflowContextProjection, root: string): WorkflowProjectionPath[]; /** Replace the projection paths owned by one top-level workflow context slot. */ export declare function replaceWorkflowContextRootProjection(projection: WorkflowContextProjection, root: string, paths: readonly WorkflowProjectionPath[]): void; /** * Invoke a user callback with ordinary structured-cloneable context while * clearing only projection targets whose exact object identity was replaced. */ export declare function runWithWorkflowContextProjectionTracking(context: WorkflowContext, projection: WorkflowContextProjection, callback: (context: WorkflowContext) => T | Promise): Promise; //# sourceMappingURL=runtime-state.d.ts.map