import type { Selector, GetParamsFromSelectors, OutputSelector, SelectorArray, SelectorResultArray, DropFirst, MergeParameters, Expand, ObjValueTuple, Head, Tail } from './types'; export type { Selector, GetParamsFromSelectors, GetStateFromSelectors, OutputSelector, EqualityFn, SelectorArray, SelectorResultArray, ParametricSelector, OutputParametricSelector, OutputSelectorFields } from './types'; import { defaultMemoize, defaultEqualityCheck, DefaultMemoizeOptions } from './defaultMemoize'; export { defaultMemoize, defaultEqualityCheck }; export type { DefaultMemoizeOptions }; export declare function createSelectorCreator< /** Selectors will eventually accept some function to be memoized */ F extends (...args: unknown[]) => unknown, /** A memoizer such as defaultMemoize that accepts a function + some possible options */ MemoizeFunction extends (func: F, ...options: any[]) => F, /** The additional options arguments to the memoizer */ MemoizeOptions extends unknown[] = DropFirst>>(memoize: MemoizeFunction, ...memoizeOptionsFromArgs: DropFirst>): CreateSelectorFunction, keyof ReturnType>>>; export interface CreateSelectorOptions { memoizeOptions: MemoizeOptions[0] | MemoizeOptions; } /** * An instance of createSelector, customized with a given memoize implementation */ export interface CreateSelectorFunction unknown, MemoizeFunction extends (func: F, ...options: any[]) => F, MemoizeOptions extends unknown[] = DropFirst>, Keys = Expand, keyof ReturnType>>> { /** Input selectors as separate inline arguments */ (...items: [ ...Selectors, (...args: SelectorResultArray) => Result ]): OutputSelector) => Result, GetParamsFromSelectors, Keys> & Keys; /** Input selectors as separate inline arguments with memoizeOptions passed */ (...items: [ ...Selectors, (...args: SelectorResultArray) => Result, CreateSelectorOptions ]): OutputSelector) => Result), GetParamsFromSelectors, Keys> & Keys; /** Input selectors as a separate array */ (selectors: [...Selectors], combiner: (...args: SelectorResultArray) => Result, options?: CreateSelectorOptions): OutputSelector) => Result, GetParamsFromSelectors, Keys> & Keys; } export declare const createSelector: CreateSelectorFunction<(...args: unknown[]) => unknown, typeof defaultMemoize, [equalityCheckOrOptions?: import("./types").EqualityFn | DefaultMemoizeOptions | undefined], { clearCache: () => void; }>; type SelectorsObject = { [key: string]: (...args: any[]) => any; }; export interface StructuredSelectorCreator { >>(selectorMap: SelectorMap, selectorCreator?: CreateSelectorFunction): (state: Head, ...params: Tail) => { [Key in keyof SelectorMap]: ReturnType; }; (selectors: { [K in keyof Result]: Selector; }, selectorCreator?: CreateSelectorFunction): Selector; } export declare const createStructuredSelector: StructuredSelectorCreator;