import { IView } from 'shared-entities/pagination.entity'; import { IAppState, IPayloadError } from 'store'; import { PayloadAction } from '@reduxjs/toolkit'; import { IPerson } from '../../entities/person.entity'; export interface IInitialState { list: { [key: string]: IPerson; }; loading: { [key: string]: boolean; }; error: { [key: string]: IPayloadError; }; view: { [key: string]: IView | undefined; }; } export declare const initialState: { list: { [key: string]: IPerson; }; loading: { [key: string]: boolean; }; error: { [key: string]: IPayloadError; }; view: { [key: string]: IView | undefined; }; }; export declare type PersonState = typeof initialState; export declare const personSlice: { fetchPersonsClear: (state: PersonState, _action: PayloadAction) => void; fetchPersons: (state: PersonState, action: PayloadAction<{ key: string; }>) => void; fetchPersonsSucceeded: (state: PersonState, action: { payload: { key: string; data?: { [key: string]: IPerson; }; total?: number; page?: number; itemsPerPage?: number; id?: string; }; type: string; }) => void; fetchPersonsFailed: (state: PersonState, action: { payload: { key: string; data?: { [key: string]: IPayloadError; }; error: IPayloadError; }; type: string; }) => void; }; export declare const personsSelector: (state: IAppState) => { [key: string]: IPerson; }; export declare const personsByTypeSelector: (personType: string, state: IAppState) => IPerson[]; export declare const clientsSelector: import("reselect").OutputSelector[], (res: { [key: string]: IPerson; }) => IPerson[]>; export declare const loadingSelector: (state: IAppState) => { [key: string]: boolean; } & { [key: string]: boolean; }; export declare const errorSelector: (state: IAppState) => { [key: string]: IPayloadError; }; export declare const totalSelector: (state: IAppState) => number; export declare const personsPageSelector: (state: IAppState) => number; export declare const personsItemsPerPageSelector: (state: IAppState) => number;