/** * Code Mode commands for tool chaining * * P1-07: each command returns a CommandResult instead of writing * directly to stdout/stderr. stdin is read through CommandContext rather * than the process stream. No Provider selection is added; Phase 0 * Code Mode semantics (run, eval, logs, timeout, interfaces, prompt * template) are preserved. */ import type { CommandContext, CommandResult } from "../command-invocation.js"; export interface CodeRunOptions { timeout?: number; includeLogs?: boolean; /** * T2b — Credential view: resolved env (injected env + file keys) * forwarded to the Code Mode client so a wizard-written key * authorises transport without ambient state. */ env?: NodeJS.ProcessEnv; } export declare function runCodeFile(filePath: string, options?: CodeRunOptions, context?: CommandContext): Promise; export declare function evalCode(code: string, options?: CodeRunOptions, context?: CommandContext): Promise; export declare function printInterfaces(options?: { env?: NodeJS.ProcessEnv; }, context?: CommandContext): Promise; export declare function printPromptTemplate(context?: CommandContext): CommandResult; export declare const CODE_HELP: string; //# sourceMappingURL=code.d.ts.map