import type { EntityId, EntityState, PreventAny } from './models';
import type { PayloadAction } from '../createAction';
import { IsAny } from '../tsHelpers';
export declare function createSingleArgumentStateOperator<T, Id extends EntityId>(mutator: (state: EntityState<T, Id>) => void): <S extends EntityState<T, Id>>(state: IsAny<S, EntityState<T, Id>, S>) => S;
export declare function createStateOperator<T, Id extends EntityId, R>(mutator: (arg: R, state: EntityState<T, Id>) => void): <S extends EntityState<T, Id>>(state: S, arg: R | PayloadAction<R>) => S;
