import type { StoreApi } from 'zustand'; import type { ReactFlowState } from '../types'; type ExtractState = StoreApi extends { getState: () => infer T; } ? T : never; declare function useStore(selector: (state: ReactFlowState) => StateSlice, equalityFn?: (a: StateSlice, b: StateSlice) => boolean): StateSlice; declare const useStoreApi: () => { getState: () => ReactFlowState; setState: (partial: ReactFlowState | Partial | ((state: ReactFlowState) => ReactFlowState | Partial), replace?: boolean | undefined) => void; subscribe: (listener: (state: ReactFlowState, prevState: ReactFlowState) => void) => () => void; destroy: () => void; }; export { useStore, useStoreApi }; //# sourceMappingURL=useStore.d.ts.map