import { UseBoundStoreWithEqualityFn } from 'zustand/traditional'; import { ReadonlyStoreApi, ExtractState, PartObjFromArrOfKeys } from './types.js'; import 'zustand'; /** * Extends the UseBoundStoreWithEqualityFn type to include the function overload for an array selector. */ type UseBoundStoreWithArraySelector> = { )[]>(selector: A, equals?: (a: PartObjFromArrOfKeys, A>, b: PartObjFromArrOfKeys, A>) => boolean): PartObjFromArrOfKeys, A>; } & UseBoundStoreWithEqualityFn; /** * This enhances the traditionalstore hook by adding another style of selector: an array of keys from the provided store. * It elimnates the need to use multiple hooks or a complex selector function. */ declare const withArraySelector: (storeHook: UseBoundStoreWithEqualityFn>) => UseBoundStoreWithArraySelector>; export { withArraySelector };