import type { ItemMap } from "./types"; /** * The options type for newAsyncDataSelectors and newAsyncListSelectors. Currently the only option * is for specifying the default item value. * * @template I The item type for this group of selectors */ export type SelectorOptions = { itemDefault: I | null; }; /** * @template [S=any] The state that will be passed to this selector. This can be the type for the whole store or * an interface that defines only the slice of the store state needed by these selectors. * @template [I=any] The type for an item returned by these selectors. * @template [E=any] The error type for an item's failed load. */ export declare const newAsyncDataSelectors: (fieldPath: string, options?: SelectorOptions) => { itemLoading: (state: S) => boolean; itemLoadError: (state: S) => E; itemLoaded: (state: S) => boolean; itemLastUpdated: (state: S) => Date | undefined; item: (state: S) => I; }; /** * @template [S=any] The state that will be passed to this selector. This can be the type for the whole store or * an interface that defines only the slice of the store state needed by these selectors. * @template [I=any] The type for an item returned by these selectors. * @template [E=any] The error type for an item's failed load. * @template [LE=E] The error for failing to load a collection of items. */ export declare const newAsyncListSelectors: (subKeyPath: string, options?: SelectorOptions) => { listLoading: (state: S) => boolean; listLoadError: (state: S) => LE; listLoaded: (state: S) => boolean; listLastUpdated: (state: S) => Date | undefined; list: import("reselect").OutputSelector) => I[]>; itemsByID: import("reselect").OutputSelector) => { [key: string]: I; }>; itemLoading: (state: S, id: string) => boolean; itemLoadError: (state: S, id: string) => E; itemLoaded: (state: S, id: string) => boolean; itemLastUpdated: (state: S, id: string) => Date | undefined; itemsLoaded: (state: S, ids: string[]) => boolean; item: (state: S, id: string) => I; };