import type { CodeModeToolDefinition } from "./types.js"; import type { CodeModeExecutionKind } from "./shared-runtime.js"; export declare const EXEC_DESCRIPTION = "Run JavaScript to compose tools; source only, no JSON or fences\nOptional // @exec: {\"yield_time_ms\": 10000, \"max_output_tokens\": 1000}; defaults 30000 ms/10000 tokens\nAwait work; use a timeout when an operation might not finish on its own\nBare values are discarded; globals: tools, image, generatedImage, store, load, exit, setTimeout, clearTimeout, ALL_TOOLS; text(value) serializes output, notify(value) emits, yield_control() yields"; export declare const GPT_EXEC_DESCRIPTION = "JavaScript tool composition; source ONLY, NO JSON/fences\nOptional // @exec: {\"yield_time_ms\": 10000, \"max_output_tokens\": 1000}; defaults=30000ms/10000tokens\nAwait work; possibly nonterminating\u2192timeout\nBare values discarded; globals: tools, image, generatedImage, store, load, exit, setTimeout, clearTimeout, ALL_TOOLS; text(value)\u2192serialized output, notify(value)\u2192emit, yield_control()\u2192yield"; export declare const ISOLATED_EXEC_GUIDANCE = "For independent work while another cell runs, add \"isolated\":true to // @exec. Starts from last saved state; leaves shared variables unchanged"; export declare const GPT_ISOLATED_EXEC_GUIDANCE = "Concurrent isolated: // @exec: {\"isolated\":true}; last checkpoint; shared vars unchanged"; export declare const JS_EXEC_DESCRIPTION = "Run JavaScript in a persistent kernel; source only, no JSON or fences\nOptional // @exec: {\"yield_time_ms\": 10000, \"max_output_tokens\": 1000}; defaults 30000 ms/10000 tokens\nFor independent work while another cell runs, add \"isolated\":true to // @exec. Starts from last checkpoint; leaves shared variables unchanged\nTop-level await supported. Await host calls; dangling calls prevent checkpointing\nBare values discarded; globals: tools, text, image, notify, generatedImage, store, load, yield_control, exit, ALL_TOOLS\nNo Node, imports, fetch, timers or TypeScript checking"; export declare const GPT_JS_EXEC_DESCRIPTION = "Persistent JS kernel; source ONLY, NO JSON/fences\nOptional // @exec: {\"yield_time_ms\": 10000, \"max_output_tokens\": 1000}; defaults=30000ms/10000tokens\nConcurrent isolated: // @exec: {\"isolated\":true}; last checkpoint; shared vars unchanged\nTop-level await; await host calls; dangling calls block checkpoint\nBare values discarded; globals: tools, text, image, notify, generatedImage, store, load, yield_control, exit, ALL_TOOLS\nNO Node/imports/fetch/timers/TSchecking"; export declare const WAIT_DESCRIPTION = "Resume or terminate a yielded exec cell"; export declare const CODE_MODE_TOOLS_SECTION = "exec_tools"; export interface CodeModeSystemPromptOptions { forceSystemPrompt?: string | undefined; sections?: Record | undefined; } export declare function codeModeCustomizationGuidance(options: CodeModeSystemPromptOptions): string; export declare function isCodeModeToolDiscoverable(tool: CodeModeToolDefinition): boolean; export declare function formatCodeModeToolHelp(tool: CodeModeToolDefinition): string; export declare function buildCodeModeToolsPrompt(tools: CodeModeToolDefinition[], executionKind?: CodeModeExecutionKind, gpt?: boolean): string; export declare function prepareCodeModeToolsPrompt(options: CodeModeSystemPromptOptions, tools: CodeModeToolDefinition[], documentationPath?: string, isEnabled?: () => boolean, executionKind?: CodeModeExecutionKind, gpt?: boolean): string;