/** * The `Turn` handed to a worker handler — the entire surface a builder touches: * the pushed context (`input`/`identity`/`fs`/`history`) plus `text()` to stream. * Nothing Guuey-specific beyond this. */ import type { Fs, HistoryMessage, Identity } from "./protocol.js"; import type { Emitter } from "./emit.js"; export declare class Turn { readonly input: string; readonly identity: Identity; readonly fs: Fs; readonly history: HistoryMessage[]; private readonly emit; private readonly onText; constructor(input: string, identity: Identity, fs: Fs, history: HistoryMessage[], emit: Emitter, onText: (chunk: string) => void); /** Stream a chunk of assistant output (also accumulated into `done.result`). */ text(chunk: string): void; } /** A worker handler: do the work, return the final result string (or rely on the * accumulated `turn.text(...)`). */ export type WorkerHandler = (turn: Turn) => Promise | string | void; //# sourceMappingURL=turn.d.ts.map