/** * Quick Actions Service * * Manages quick actions, bookmarks, recent items, and fuzzy search. * * @since v1.58.4 */ import type { Bookmark, QuickActionCategory, QuickActionItem, QuickActionsConfig, QuickActionsState } from './quick-actions-types.js'; /** * Quick Actions Service */ export declare class QuickActionsService { private config; private state; private bookmarks; private recentItems; private itemProviders; private onChange?; constructor(config?: Partial, onChange?: (state: QuickActionsState) => void); /** * Register an item provider for a category */ registerProvider(category: QuickActionCategory, provider: () => QuickActionItem[]): void; /** * Open the quick actions panel */ open(): void; /** * Close the quick actions panel */ close(): void; /** * Update the search query */ setQuery(query: string): void; /** * Navigate selection up */ selectPrevious(): void; /** * Navigate selection down */ selectNext(): void; /** * Get currently selected item */ getSelectedItem(): QuickActionItem | null; /** * Execute the selected item */ executeSelected(): QuickActionItem | null; /** * Execute item by index */ executeByIndex(index: number): QuickActionItem | null; /** * Track a recent item */ trackRecent(item: QuickActionItem): void; /** * Get recent items */ getRecent(): QuickActionItem[]; /** * Clear recent items */ clearRecent(): void; /** * Add a bookmark */ addBookmark(type: Bookmark['type'], itemId: string, label: string, shortcut?: number): Bookmark | null; /** * Remove a bookmark */ removeBookmark(id: string): boolean; /** * Toggle bookmark */ toggleBookmark(type: Bookmark['type'], itemId: string, label: string): boolean; /** * Set bookmark shortcut */ setBookmarkShortcut(id: string, shortcut: number | undefined): boolean; /** * Get bookmark by shortcut */ getBookmarkByShortcut(shortcut: number): Bookmark | null; /** * Get all bookmarks */ getBookmarks(): Bookmark[]; /** * Check if item is bookmarked */ isBookmarked(type: Bookmark['type'], itemId: string): boolean; /** * Increment bookmark usage count */ incrementBookmarkUsage(id: string): void; /** * Update results based on query */ private updateResults; /** * Get state */ getState(): QuickActionsState; /** * Check tier access */ private isTierAllowed; /** * Notify state change */ private notify; /** * Update configuration */ updateConfig(config: Partial): void; /** * Export bookmarks */ exportBookmarks(): Bookmark[]; /** * Import bookmarks */ importBookmarks(bookmarks: Bookmark[], overwrite?: boolean): number; } /** * Create a quick actions service instance */ export declare function createQuickActionsService(config?: Partial, onChange?: (state: QuickActionsState) => void): QuickActionsService; //# sourceMappingURL=quick-actions-service.d.ts.map