import type { AnyState, PatchEntity, SliceHelper } from './types'; export interface MapReducers { add: (state: State, payload: State) => State; set: (state: State, payload: State) => State; remove: (state: State, payload: string[]) => State; reset: (state: State) => State; merge: (state: State, payload: PatchEntity) => State; patch: (state: State, payload: PatchEntity) => State; } export declare function mapReducers(initialState?: State): MapReducers; export default function createMap({ name, extraReducers, initialState, }: SliceHelper): { name: string; reducer: import("./types").Reducer>; actions: { add: Object extends State ? (payload?: any) => import("./types").Action : State extends never ? () => import("./types").Action : (payload: State) => import("./types").Action; set: Object extends State ? (payload?: any) => import("./types").Action : State extends never ? () => import("./types").Action : (payload: State) => import("./types").Action; remove: (payload: string[]) => import("./types").Action; patch: Object extends PatchEntity ? (payload?: any) => import("./types").Action : (payload: PatchEntity) => import("./types").Action, string>; reset: () => import("./types").Action; }; toString: () => string; };