/** * Global Spotlight Hook for Direct State Access * * This hook bypasses the SpotlightProvider context and uses the global state directly. * This should be used in the GlobalSpotlight component to avoid provider re-mounting issues. */ import type { SpotlightState } from './SpotlightStore'; interface GlobalSpotlightState { opened: boolean; query: string; selectedIndex: number; } type SpotlightStateListener = (state: GlobalSpotlightState) => void; declare class DirectSpotlightStateManager { private state; private listeners; getState(): GlobalSpotlightState; setState(updates: Partial): void; open(query?: string): void; close(): void; setQuery(query: string): void; toggle(): void; subscribe(listener: SpotlightStateListener): () => void; private notifyListeners; } export declare const directSpotlightStateManager: DirectSpotlightStateManager; export declare function useDirectSpotlightState(): { state: SpotlightState; open: (query?: string) => void; close: () => void; toggle: () => void; setQuery: (query: string) => void; }; export declare const directSpotlight: { open: (query?: string) => void; close: () => void; toggle: () => void; setQuery: (query: string) => void; getState: () => GlobalSpotlightState; }; export {};