import type { IncomingMessage, ServerResponse } from "http"; export interface RunScheduledTaskBody { sessionId: string; message: string; /** 该 session 绑定的 agentId,Gateway 用其本地取配置,不请求 Nest;不传则 default */ agentId?: string; workspace?: string; taskId?: string; backendBaseUrl?: string; } /** * Run a scheduled task: configure workspace, send message to agent, collect response, POST back to Nest. * 执行完成后关闭并移除 AgentSession,避免空悬占用资源。 */ export declare function handleRunScheduledTask(req: IncomingMessage, res: ServerResponse): Promise;