/** * Tool approval dialog component. * Shows tool details and prompts user to approve or decline execution. * * Keyboard shortcuts: * y — approve this one call * n / Esc — decline this call * a — always allow this category for the session * Y — switch to YOLO mode (approve all) */ import { Box } from '@earendil-works/pi-tui'; import type { Focusable } from '@earendil-works/pi-tui'; export type ApprovalAction = { type: 'approve'; } | { type: 'decline'; } | { type: 'always_allow_category'; } | { type: 'yolo'; }; export interface ToolApprovalDialogOptions { toolCallId: string; toolName: string; args: unknown; /** Human-readable category label, e.g. "Edit" or "Execute" */ categoryLabel?: string; onAction: (action: ApprovalAction) => void; } export declare class ToolApprovalDialogComponent extends Box implements Focusable { private toolName; private args; private categoryLabel; private onAction; private resolved; private _focused; get focused(): boolean; set focused(value: boolean); constructor(options: ToolApprovalDialogOptions); private buildUI; private formatArgs; private emit; handleInput(data: string): void; render(maxWidth: number): string[]; } //# sourceMappingURL=tool-approval-dialog.d.ts.map