/**
 * Bash execution types.
 *
 * The actual bash tool implementation lives in app/tools/bash.ts.
 * This module exports the shared types used across the codebase (RPC,
 * extensions, sandbox).
 */
/**
 * Pluggable operations for bash execution.
 * Override to delegate command execution to remote systems (e.g., SSH, sandbox).
 */
export interface BashOperations {
    exec: (command: string, cwd: string, options: {
        onData: (data: Buffer) => void;
        signal?: AbortSignal;
        timeout?: number;
        env?: NodeJS.ProcessEnv;
    }) => Promise<{
        exitCode: number | null;
    }>;
}
export interface BashResult {
    /** Combined stdout + stderr output (sanitized, possibly truncated) */
    output: string;
    /** Process exit code (undefined if killed/cancelled) */
    exitCode: number | undefined;
    /** Whether the command was cancelled via signal */
    cancelled: boolean;
    /** Whether the output was truncated */
    truncated: boolean;
    /** Path to temp file containing full output (if output exceeded truncation threshold) */
    fullOutputPath?: string;
}
//# sourceMappingURL=bash-types.d.ts.map