import { Action, ActionId, KBarProviderProps, KBarState, KBarOptions, VisualState } from "./types"; declare type useStoreProps = KBarProviderProps; export default function useStore(props: useStoreProps): { getState: () => KBarState; query: { setCurrentRootAction: (actionId: ActionId | null | undefined) => void; setVisualState: (cb: VisualState | ((vs: VisualState) => VisualState)) => void; setSearch: (searchQuery: string) => void; registerActions: (actions: Action[]) => () => void; toggle: () => void; }; options: KBarOptions; subscribe: (collector: (state: KBarState) => C, cb: (collected: C) => void) => () => Subscriber[] | undefined; }; declare class Subscriber { collected: any; collector: any; onChange: any; constructor(collector: () => any, onChange: (collected: any) => any); collect(): void; } export {};