import { Command, CommandContribution, CommandRegistry } from '@theia/core'; import { ApplicationShell, KeybindingContribution, KeybindingRegistry } from '@theia/core/lib/browser'; import { ChatInputFocusService } from '../chat-input-focus-service.js'; import { ChatViewWidget } from '../chat-view-widget.js'; export declare const CHAT_FIND_COMMAND: Command; export declare const CHAT_FIND_HIDE_COMMAND: Command; /** * Ctrl+F in the chat view opens the find bar over the response tree (or refocuses it) while the session has content * to search; in a chat input it does nothing. * * Besides its own binding, the contribution registers handlers for core's `CommonCommands.FIND` and Monaco's * `actions.find` that are enabled while the focus is in a chat view or a chat input, so that Ctrl+F never falls * through to Monaco's find there: that would open the find widget inside the chat input or in the editor of the main * area. Handlers are used rather than keybindings because the latter lose to Monaco's binding in the chat input * (`KeybindingRegistry.selectBindingByLocalContext`), whereas the most recently registered enabled handler runs. */ export declare class ChatFindContribution implements CommandContribution, KeybindingContribution { protected readonly shell: ApplicationShell; protected readonly chatInputFocusService: ChatInputFocusService; registerCommands(commands: CommandRegistry): void; registerKeybindings(keybindings: KeybindingRegistry): void; /** Opens or refocuses the find bar of the focused chat view; does nothing in a chat input or without content to search. */ protected find(): void; protected isChatInputFocused(): boolean; protected findActiveChatViewWidget(): ChatViewWidget | undefined; } //# sourceMappingURL=chat-find-contribution.d.ts.map