import type { WorkflowDefinition, WorkflowNode, WorkflowNodeConfig } from "../types.js"; export declare function isCanonicalNonEmptyString(value: unknown): value is string; export declare function isPositiveSafeInteger(value: unknown): value is number; /** Validate that a node ID is a canonical non-empty string. */ export declare function validateNodeId(id: string): void; /** Reject identifiers that WHATWG URLs normalize as path navigation. */ export declare function validateWorkflowPathSegment(id: string, label: string): void; /** Namespace child IDs and every dependency reference into the same graph. */ export declare function namespaceWorkflowNodes(prefix: string, nodes: WorkflowNode[]): WorkflowNode[]; /** Restore child IDs from one known namespace for an in-flight legacy graph. */ export declare function removeWorkflowNodeNamespace(prefix: string, nodes: WorkflowNode[]): WorkflowNode[]; /** Collect statically visible node IDs from a graph and its composite descendants. */ export declare function collectWorkflowNodeIds(nodes: WorkflowNode[]): Set; export declare function rebaseCompositeDescendants(config: WorkflowNodeConfig, oldId: string, newId: string, oldPrefix?: string, newPrefix?: string): WorkflowNodeConfig; export declare function namespaceWorkflowDefinition(prefix: string, definition: WorkflowDefinition): WorkflowDefinition; //# sourceMappingURL=validation.d.ts.map