import type { NetworkId } from "../chains/index.js"; import type { HttpClient } from "../http.js"; import type { EventBus } from "../events.js"; import type { WorkflowStreamCreateParams, X402PaymentSigner } from "../types/index.js"; import { type RunEvent, type StreamResult } from "@compose-market/core/sse/stream"; import { type CallOptions } from "./inference.js"; export interface WorkflowResourceContext { baseUrl: string; http: HttpClient; fetch: typeof globalThis.fetch; getWalletMaybe: () => { address: string | null; network: NetworkId | null; }; getTokenMaybe: () => string | null; getX402SignerMaybe?: () => X402PaymentSigner | null; events: EventBus; userAgent: string; } export declare class WorkflowResource { private readonly ctx; constructor(ctx: WorkflowResourceContext); stream(params: WorkflowStreamCreateParams, options?: CallOptions): AsyncGenerator; stop(workflowWallet: string, threadId: string, options?: { signal?: AbortSignal; }): Promise; } export type { WorkflowStreamCreateParams, RunEvent as WorkflowEvent }; //# sourceMappingURL=workflow.d.ts.map