/**
 * TUI selector that lists task subagents for the current session scope and
 * shows a per-task detail view (prompt, tool/output activity, usage).
 * Subscribes to the TaskManager so live progress updates re-render the list.
 */
import type { RegisteredTask, TaskManager } from '../../../app/tools/task/manager.js';
import { Container } from '../../../tui/index.js';
export interface AgentTasksSelectorCallbacks {
    onCancel: () => void;
    onKill: (agentId: string) => void;
    requestRender: () => void;
}
/** Render the multi-line detail view for an inspected task. */
export declare function renderDetail(task: RegisteredTask): string;
export declare class AgentTasksSelectorComponent extends Container {
    private readonly scopeId;
    private readonly taskManager;
    private readonly callbacks;
    private list;
    private selectedAgentId?;
    private detailAgentId?;
    private readonly unsubscribe;
    /** Build the agent-tasks selector and subscribe to TaskManager updates. */
    constructor(scopeId: string, taskManager: TaskManager, callbacks: AgentTasksSelectorCallbacks);
    /** Unsubscribe from TaskManager updates. */
    dispose(): void;
    /** Live list of tasks for the current scope. */
    private get tasks();
    /** Construct the SelectList component wired to selection/cancel callbacks. */
    private createList;
    /** Rebuild the list and detail view in response to TaskManager changes. */
    private refresh;
    /** Re-render the selector body, switching between list and detail views. */
    private renderContent;
    /** Route input to the detail view (kill/escape) or back to the list. */
    handleInput(data: string): void;
}
//# sourceMappingURL=agent-tasks-selector.d.ts.map