import type { TaskResult } from "@db-lyon/flowkit"; import { UeMcpTask } from "../task.js"; /** * Generic task for bridge-delegation actions. * * Used two ways: * * 1. **YAML-defined tasks** (`class_path: flow.bridge`): * The `method` option specifies the bridge method to call. * Remaining options are passed as bridge params. * * 2. **Built-in tasks** via `bridgeTaskClass()` factory: * The bridge method is baked into the class closure. * Options are passed through as bridge params. * * Handlers may attach a `rollback: { method, payload }` to their response. * When present, it is lifted onto `TaskResult.rollback` so the flow runner * can invoke the inverse on failure when `rollback_on_failure` is enabled. */ export declare class BridgeTask extends UeMcpTask { get taskName(): string; execute(): Promise; }