import { Command, CommandContribution, CommandRegistry } from '@theia/core'; import { ApplicationShell, KeybindingContribution, KeybindingRegistry } from '@theia/core/lib/browser'; import { ContextKey, ContextKeyService } from '@theia/core/lib/browser/context-key-service'; import { PendingToolConfirmation, PendingToolConfirmationTracker } from '@theia/ai-chat/lib/browser/pending-tool-confirmation-tracker'; export declare const HAS_PENDING_TOOL_CONFIRMATION_CONTEXT_KEY = "theiaAi.hasPendingToolConfirmation"; export declare const APPROVE_LATEST_TOOL_CONFIRMATION_COMMAND: Command; export declare const DENY_LATEST_TOOL_CONFIRMATION_COMMAND: Command; export declare class ToolConfirmationKeybindingContribution implements CommandContribution, KeybindingContribution { protected readonly pendingTracker: PendingToolConfirmationTracker; protected readonly contextKeyService: ContextKeyService; protected readonly shell: ApplicationShell; protected hasPendingKey: ContextKey; protected init(): void; registerCommands(commands: CommandRegistry): void; registerKeybindings(keybindings: KeybindingRegistry): void; /** * The id of the chat the user is currently interacting with, or `undefined` if no chat view is * focused. Used to target the shortcuts at the visible confirmation rather than the globally * newest one. */ protected getActiveChatId(): string | undefined; protected hasPendingInActiveChat(): boolean; protected getLatestInActiveChat(): PendingToolConfirmation | undefined; } //# sourceMappingURL=tool-confirmation-keybinding-contribution.d.ts.map