import type { AINodeEditorProps } from "../state/editorTypes"; import type { Graph, NodeDefinition } from "../../core/graph/types"; import type { NodeConfig } from "../../core/schema/configSchema"; import { updateNode } from "../../core/graph/graph"; import { type EditorEventSink, type EditorInteractionSource } from "../../core/observability/editorEvents"; export declare function useEditorState(props: AINodeEditorProps, eventSink: EditorEventSink): { graph: Graph; registry: import("../..").NodeRegistry; definitions: NodeDefinition[]; selection: import("../..").SelectionState; selectedNode: import("../..").NodeInstance | undefined; commitGraph: (nextGraph: Graph) => void; selectNode: (nodeId: string | undefined, additive?: boolean) => void; addNodeDefinition: (definition: NodeDefinition, position: { x: number; y: number; }, source?: EditorInteractionSource) => import("../..").NodeInstance; updateNodePatch: (nodeId: string, patch: Parameters[2]) => void; updateNodeConfig: (nodeId: string, config: NodeConfig) => void; }; //# sourceMappingURL=useEditorState.d.ts.map