import type { AgentSourceContext } from '../agent/source-context/types.js'; type WorkbookTurn = { conversationId: string; runId: string; text: string; sources: readonly AgentSourceContext[]; signal?: AbortSignal; }; export declare function withWorkbookTurn(turn: WorkbookTurn, run: () => T): T; export declare function currentWorkbookTurn(conversationId: string, write?: boolean): WorkbookTurn; export declare function workbookForTurn(turn: WorkbookTurn, title?: string, versionId?: string): { id: string; title: string; versionId: string; currentVersionId: string; snapshot: { [x: string]: unknown; id: string; name: string; sheetOrder: string[]; sheets: Record>; }>; }; } | null; export declare function workbookReferenceContext(id: string, versionId?: string): AgentSourceContext | null; export {};