import type { TaskRegistry } from "@db-lyon/flowkit"; import type { FlowConfig } from "./schema.js"; import type { ToolDef, ToolContext } from "../types.js"; /** * The task registry and flow config a call resolves to. * * Both are per editor (#817): the registry is built from that project's tool * graph, and the config is that project's ue-mcp.yml. Passing plain values * still works and means "the same one for every call", which is what a * single-editor server and the script runner want. */ export type FlowRegistrySource = TaskRegistry | ((ctx: ToolContext) => TaskRegistry); export type FlowConfigSource = (() => FlowConfig) | ((ctx: ToolContext) => FlowConfig); export declare function createFlowTool(registrySource: FlowRegistrySource, reloadConfig: FlowConfigSource): ToolDef;