import type { AgentSessionInternalSurface as AgentSession } from "./agent-session-methods.ts"; import type { BashResult } from "./bash-executor.ts"; import { type BashOperations, type BashOutputChannel } from "./tools/bash.js"; export declare function executeBash(this: AgentSession, ...args: Parameters): Promise; declare function executeBashOperation(this: AgentSession, command: string, onChunk?: (chunk: string, channel: BashOutputChannel) => void, options?: { excludeFromContext?: boolean; id?: string; operations?: BashOperations; pty?: boolean; emitEvent?: boolean; recordResult?: boolean; }): Promise; /** * Record a bash execution result in session history. * Used by executeBash and by extensions that handle bash execution themselves. */ export declare function recordBashResult(this: AgentSession, command: string, result: BashResult, options?: { excludeFromContext?: boolean; persist?: boolean; defer?: boolean; }): Promise; /** Cancel one correlated bash request, or all active requests for legacy callers. */ export declare function abortBash(this: AgentSession, id?: string): void; export declare function _flushPendingBashMessages(this: AgentSession): Promise; /** * Set a display name for the current session. */ export declare const agentSessionBashMethods: { executeBash: typeof executeBash; recordBashResult: typeof recordBashResult; abortBash: typeof abortBash; _flushPendingBashMessages: typeof _flushPendingBashMessages; }; export {}; //# sourceMappingURL=agent-session-bash.d.ts.map