import { AppService, ConfigService, HotkeysService, LogService, PlatformService } from 'tabby-core'; import { QuickCommandsI18n } from './i18n'; import { QuickCommandsPluginUpdateService } from './pluginUpdate.service'; /** @hidden */ export declare class QuickCommandsService { private app; private config; private platform; private i18n; private pluginUpdate; private hotkeys?; private root?; private visible; private running; private filter; private focusArea; private drawerFocusTarget; private focusAreaBeforeRootClick; private searchReturnCategory; private searchReturnCommandId; private message; private pendingExecutionId; private pendingDeleteId; private pendingRuleDeleteId; private addingCommand; private newCommandName; private newCommandNameEdited; private newCommandDescription; private movingCommandId; private moveTargetCategory; private moveCategoryMenuOpen; private editingCommandId; private editCommandName; private editCommandDescription; private addingCategory; private renamingCategory; private deletingCategory; private categoryInput; private pendingFailureMessage; private confirmInput; private composingSearch; private importPreview; private draggedCommandId; private draggedCategory; private categoryDropPlacement; private categoryMenuOpen; private targetMenuOpen; private commandMenuOpen; private categoryOverflowOpen; private libraryMenuOpen; private categoryActionsOpen; private automationRuleMenuKey; private resizeMove?; private resizeEnd?; private runState?; private executionRunner?; private ruleHeadResizeObserver?; private targetKeys; private nextTargetKey; private renderedCommandId; private pendingAutomationRuleScrollId; private writingPluginConfig; private pluginConfigDirty; private pendingPluginConfigWrite; private pluginConfigWriteTimer; private windowControlsOverlayBound; private activityLogSizeWarningShown; private readonly pluginConfigWriteDelay; private runtimeStore; private activityLog; private pluginConfigStore; private state; private logger; constructor(app: AppService, config: ConfigService, platform: PlatformService, log: LogService, i18n: QuickCommandsI18n, pluginUpdate: QuickCommandsPluginUpdateService, hotkeys?: HotkeysService); toggle(): void; open(): void; openCommand(commandId: string): void; private showDrawer; private isForegroundDrawer; get dataDirectory(): string | null; restoreInitialState(): void; close(): void; private ensureRoot; private bindWindowControlsOverlay; private syncWindowControlsOverlay; private render; private renderShortcutRail; private renderCommandListItem; private renderDetail; private renderCommandDetailsCard; private renderCommandEditorCard; private renderCommandLineEndings; private renderLineDelayEditor; private renderExecutionOptions; private renderTargetDropdown; private renderMoreSettingsCard; private renderAutomationRuleGroups; private renderAutomationRule; private getAutomationRuleTriggerOptions; private renderAutomationPatternField; private renderAutomationRuleAction; private renderAutomationMatchFlow; private renderAutomationActionDetail; private renderAutomationCommandPicker; private renderAutomationRuleSelect; private renderCategoryDropdown; private getAutomationCommandOptions; private renderFooter; private renderOverlays; private renderEditCommandDialog; private renderAddCommandDialog; private renderMoveCommandDialog; private renderExecutionConfirmDialog; private renderImportPreviewDialog; private renderDeleteRuleDialog; private renderDeleteDialog; private renderAddCategoryDialog; private renderRenameCategoryDialog; private renderDeleteCategoryDialog; private renderFailureDialog; private renderSummary; private renderEmptyDetail; private renderModeButton; private bindEvents; private bindResponsiveRuleHeads; private bindTooltips; private showTooltip; private hideTooltip; private restoreScroll; private withPreservedScroll; private scrollToPendingAutomationRule; private layoutCategories; private focusSelectedOverflowCategory; private updateCategoryDropIndicator; private clearCategoryDropIndicators; private bindResizeHandle; private handleAction; private openSettings; private updateSelectedField; private updateSearch; private clearSearchAndRestoreContext; private restoreSearchContext; private updateLineDelay; private bindLineSettings; private bindNumberInputWheel; private refreshLineSettings; private toggleLinePause; private updateAutomationRule; private updateAutomationRuleValue; private updateSelectedCommand; private toggleSelectedBoolean; private openAddCommand; private closeAddCommand; private getDefaultNewCommandName; private resetNewCommandDraft; private createCommand; private openAddCategory; private confirmAddCategory; private duplicateSelectedCommand; private openMoveCommand; private confirmMoveCommand; private clearSearchState; private moveSelectedCommand; private reorderCommand; private reorderCategory; private deleteSelectedCommand; private saveCommandListEdit; private closeCommandListEdit; private openRenameCategory; private confirmRenameCategory; private openDeleteCategory; private confirmDeleteCategory; private canDeleteSelectedCategory; private canRenameSelectedCategory; private canSortSelectedCategory; private addAutomationRule; private focusLineAutomationRules; private toggleAutomationRuleCollapsed; private toggleAllAutomationRules; private removeAutomationRule; private copySelectedCommand; private exportCommands; private renderExportFileName; private importCommandsFromFile; private importCommandsText; private applyImport; private executeSelectedCommand; private createExecutionRunner; private openUpdateSettings; private shouldShowUpdateReminder; private pauseExecution; private resumeExecution; private stopExecution; private resolveManualFailure; private updateDrawerWidthLive; private refreshFilteredCommandList; private handleDocumentKeyDown; private handleRootKeyDown; private handleRootClick; private handleDelegatedRootClick; private handleDelegatedCommandDragStart; private handleDelegatedCommandDragOver; private handleDelegatedCommandDrop; private handleDelegatedCommandDragEnd; private getDelegatedTarget; private isCopyShortcut; private hasPluginTextSelection; private focusCurrentTerminal; private focusDrawerSearch; private focusDrawerSurface; private movePrintableKeyToSearch; private toggleFocusArea; private shouldRestoreDrawerFocusAfterRender; private restoreDrawerFocusAfterRender; private updateFocusPresentation; private getActionShortcuts; private handleMatchedPluginHotkey; private toggleOperationHints; private getPrimaryHotkeyLabel; private getCompactHotkeyLabel; private handleDocumentFocusIn; private isSearchInput; private isDrawerSurface; private isDrawerInteractiveControl; private getFocusedCommandId; private hasBlockingOverlay; private dismissTopOverlay; private handleDocumentClick; private closeCommandMenu; private closeCategoryOverflowMenu; private closeLibraryMenu; private closeCategoryActionsMenu; private closeAutomationRuleMenu; private getTargetTabs; private getCurrentTerminalTab; private getTerminalTabs; private isTerminalTab; private getTabTitle; private getTargetKey; private isEditableElement; private isTerminalInput; private getFilteredCommands; private moveKeyboardCommand; private moveKeyboardCategory; private scrollSelectedCommandIntoView; private escapeCssValue; private commandMatchesToken; private getSelectedCommand; private getCategories; private getOrderedRealCategories; private getOrderedCategories; private isSystemCategory; private getCategoryLabel; private canDragCategory; private getHint; private getDanger; private buildExecutionSummary; private getExecutionModeLabel; private findShortcutConflict; private getTabbyHotkeyName; private updateUsage; private buildUsageStats; private addLog; private recordActivity; private notifyActivityLogSizeWarning; private readConfig; private stripCommandRuntime; private normalizeStoredCommand; private updateConfig; private persistPluginConfig; private setPluginConfig; private flushPluginConfigWrite; private cancelScheduledPluginConfigWrite; private commandIdsChanged; private showMessage; private createId; private clampWidth; private escape; private escapeAttr; private getTimeValue; }