import { EventEmitter } from 'node:events';
export interface BashExecutionState {
    executionId: string;
    command: string;
    outputPreview: string;
    fullOutput: string;
    stderr: string;
    isComplete: boolean;
    exitCode: number | null;
    error: string | null;
}
export declare class BashExecutor extends EventEmitter {
    private executions;
    execute(command: string): {
        executionId: string;
        promise: Promise<BashExecutionState>;
    };
    cancel(executionId: string): boolean;
    getState(executionId: string): BashExecutionState | undefined;
    hasActiveExecutions(): boolean;
    getActiveExecutionIds(): string[];
}
export declare const bashExecutor: BashExecutor;
//# sourceMappingURL=bash-executor.d.ts.map