import { Command, CommandContribution, CommandRegistry } from '@theia/core'; import { KeybindingContribution, KeybindingRegistry } from '@theia/core/lib/browser'; import { ChatInputFocusService } from './chat-input-focus-service.js'; /** * Handles Ctrl+V / Cmd+V in the chat input to paste images from the clipboard. * * In Electron, Theia's global paste command uses `document.execCommand('paste')`, * which does not produce a DOM paste event for image clipboard content. * In the browser, Monaco 1.108+'s EditContext API handles Ctrl+V internally * without firing a DOM paste event. * * This contribution registers a higher-priority keybinding (scoped to `chatInputFocus`) * that reads images from the clipboard via the async Clipboard API. * For non-image clipboard content, it falls through to the default paste behavior. */ export declare const CHAT_INPUT_PASTE_COMMAND: Command; export declare class ChatInputPasteContribution implements CommandContribution, KeybindingContribution { protected readonly chatInputFocusService: ChatInputFocusService; protected readonly commandRegistry: CommandRegistry; registerCommands(commands: CommandRegistry): void; registerKeybindings(keybindings: KeybindingRegistry): void; protected execute(): Promise; } //# sourceMappingURL=chat-input-paste-contribution.d.ts.map