import type { SliceHelper, PropId, PropIds, MapEntity } from './types'; import { LoadingItemState, LoadingPayload } from './create-loader'; export declare type LoaderTableState = Record> = MapEntity>; export interface LoadingState = Record> extends LoadingItemState { isError: boolean; isSuccess: boolean; isIdle: boolean; isLoading: boolean; isInitialLoading: boolean; } export declare const defaultLoader: (l?: Partial) => LoadingState; export declare type LoadingMapPayload = Record> = LoadingPayload & { id: string; }; export interface LoaderTableSelectors { findById: (d: LoaderTableState, { id }: PropId) => LoadingState; findByIds: (d: LoaderTableState, { ids }: PropIds) => LoadingState[]; selectTable: (s: S) => LoaderTableState; selectById: (s: S, p: PropId) => LoadingState; selectByIds: (s: S, p: { ids: string[]; }) => LoadingState[]; } export declare function loaderTableSelectors(selectTable: (s: S) => LoaderTableState): LoaderTableSelectors; export default function createLoaderTable = Record>({ name, initialState, extraReducers, }: SliceHelper>): { getSelectors: (stateFn: (s: S) => LoaderTableState) => LoaderTableSelectors; name: string; reducer: import("./types").Reducer, import("./types").Action>; actions: { loading: (payload: LoadingMapPayload) => import("./types").Action, string>; success: (payload: LoadingMapPayload) => import("./types").Action, string>; error: (payload: LoadingMapPayload) => import("./types").Action, string>; remove: (payload: string[]) => import("./types").Action; resetById: (payload: string) => import("./types").Action; resetAll: () => import("./types").Action; }; toString: () => string; };