import type { TaskConstructor } from "@db-lyon/flowkit"; import { type CallPreparation } from "../call-pipeline.js"; import type { FlowContext } from "./context.js"; /** * Create a TaskConstructor for a bridge-delegation action. * The bridge method (and optional param mapper) are closed over in the class, * along with the action's authored timeout and the category's preparation. * * `timeoutMs` is the action's OWN budget, the floor it needs. It is not the * caller's: the caller's arrives in the parameters and is read off the * pipeline below, where it wins. */ export declare function bridgeTaskClass(name: string, method: string, mapParams?: (p: Record) => Record, timeoutMs?: number, prep?: CallPreparation): TaskConstructor; /** * Create a TaskConstructor that wraps an existing async handler function. * Used for the ~19 direct-handler actions (editor control, project ops, etc.). */ export declare function handlerTaskClass(name: string, fn: (ctx: FlowContext, params: Record) => Promise, prep?: CallPreparation): TaskConstructor;