export type Action = { type: T; }; export interface UnknownAction extends Action { [key: string]: unknown; } export interface AnyAction extends Action { [key: string]: any; } export type CaseReducer = (state: S, action: A) => R; export type PayloadAction

= { payload: P; type: T; }; type SliceCaseReducer = Record>>; export type CreateReducerParams = { initialState: TState; reducers: SliceCaseReducer; }; export type CreateReducerReturn = { initialState: TState; reducer: CaseReducer, TState>; }; export declare function createReducer = CreateReducerParams>({ initialState, reducers }: TParams): CreateReducerReturn; export {}; //# sourceMappingURL=createReducer.d.ts.map