import { type ReactNode } from 'react'; import type { GraphLayout } from '../editing.js'; import { type DependencyGraphEditor } from './editorApi.js'; import { type GraphEditorApi } from './graphEditorState.js'; import type { WorkflowJob } from './types.js'; /** * Editor state, handlers and overlays for a DependencyGraph given `editor`. * `yamlJobs` are the jobs as written, before previews expand matrices. */ declare function useGraphEditorState({ editor, jobs, yamlJobs, inputs, workflow, layout, container, }: { editor: DependencyGraphEditor; jobs: Record; yamlJobs: Record | undefined; inputs: Record | undefined; workflow: Record | undefined; layout: GraphLayout | undefined; container: HTMLDivElement | null; }): { api: GraphEditorApi; overlays: ReactNode; }; /** The editor's state and overlays for a DependencyGraph, loaded only where a graph is edited. */ export default function GraphEditorOverlays({ onApi, ...inputs }: Parameters[0] & { /** Hands the graph the editor's api once it's ready, and null when it goes. */ onApi: (api: GraphEditorApi | null) => void; }): ReactNode; export {};