/**
 * Background Task Manager
 *
 * Launches and manages background shell commands, capturing output
 * and providing status tracking.
 */
export interface BackgroundTask {
    id: string;
    command: string;
    startTime: number;
    status: 'running' | 'completed' | 'failed';
    output: string;
    exitCode?: number;
}
/**
 * BackgroundTaskManager spawns and tracks background shell commands.
 */
export declare class BackgroundTaskManager {
    private tasks;
    private processes;
    private counter;
    /**
     * Launch a command in the background.
     * Returns the task ID.
     */
    launchTask(command: string): string;
    /**
     * Get the output for a task, optionally filtered by regex.
     */
    getTaskOutput(taskId: string, filter?: RegExp): string;
    /**
     * Get a task by ID.
     */
    getTask(taskId: string): BackgroundTask | undefined;
    /**
     * List all tasks.
     */
    listTasks(): BackgroundTask[];
    /**
     * Kill a running task.
     */
    killTask(taskId: string): boolean;
    /**
     * Kill all running tasks (for process exit cleanup).
     */
    cleanup(): void;
}
export declare function getBackgroundTaskManager(): BackgroundTaskManager;
export declare function resetBackgroundTaskManager(): void;
