import { type ExecutionEnv, type ExecutionEnvExecOptions, ExecutionError, type Result } from '../types.ts'; export interface ShellCaptureOptions extends Omit { onChunk?: (chunk: string) => void; } export interface ShellCaptureResult { output: string; exitCode: number | undefined; cancelled: boolean; truncated: boolean; fullOutputPath?: string; } export declare function sanitizeBinaryOutput(str: string): string; export declare function executeShellWithCapture(env: ExecutionEnv, command: string, options?: ShellCaptureOptions): Promise>;