import type { ServerContext } from "@modelcontextprotocol/server"; import type { RunAgentProgressPayload } from "@automatalabs/shared-types"; /** * The progress sink the shell hands to the engine. The engine calls it as it advances * through the run; `total` (planned units) and `message` are optional. Mirrors the engine * `onProgress(progress, total?, message?)` shape. */ export type WorkflowProgressCallback = (progress: number, total?: number, message?: string) => void; /** The v2 context the SDK passes to a tool handler: request metadata, notifications, and cancellation. */ export type WorkflowToolExtra = ServerContext; export declare function formatAgentProgressMessage(progress: RunAgentProgressPayload): string; /** * Build the engine `onProgress` sink for ONE tool call. Progress flows only when the client * attached `_meta.progressToken` to its `tools/call`; otherwise we return a no-op so the run * still proceeds but emits nothing. Notifications are advisory and fire-and-forget — a closed * or failing transport must never abort the workflow. */ export declare function createProgressReporter(extra: WorkflowToolExtra): WorkflowProgressCallback; //# sourceMappingURL=progress.d.ts.map