import type { Engine, Session } from "../shared/types.js"; import type { ApiContext } from "./api.js"; /** * How a turn on a web-surfaced session is dispatched and run. * * Lifted out of api.ts unchanged so a caller that is not an HTTP route — the * plugin host's `sessions.spawn` — starts a turn the same way every route does, * rather than through a second copy of the queue, attempt and settlement dance. */ /** The turn surface every web-dispatched turn reports through. */ export declare function webTurnSurface(sessionId: string, context: ApiContext): import("../sessions/turn/types.js").TurnSurface; export declare function dispatchWebSessionRun(session: Session, prompt: string, engine: Engine, context: ApiContext, opts?: { delayMs?: number; queueItemId?: string; attachments?: string[]; }): void; /** Resolve an array of file IDs to local filesystem paths for engine consumption. */ export declare function resolveAttachmentPaths(fileIds: unknown): string[]; //# sourceMappingURL=web-session-dispatch.d.ts.map