import { PayloadAction } from '@frontegg/redux-store/toolkit'; import { ContextOptions } from '../interfaces'; export declare function getContext(): Generator, ContextOptions, unknown>; export declare const reducerActionOnly: () => { prepare: (payload: T) => { payload: T; }; reducer: (state: S) => S; }; export declare const reducerResetByState: (key: keyof S, preloadedState: S) => () => S; export declare const reducerResetByKey: (key: keyof S, preloadedState: S) => (state: S) => S & { [x: string]: S[keyof S]; }; export declare const reducerByState: (key: keyof S) => (state: S, { payload }: { payload: T; type: string; }) => S & { [x: string]: T; }; export declare const reducerBySubState: (key: keyof S) => { prepare: (payload: Partial) => { payload: Partial; }; reducer: (state: S, { payload }: { payload: Partial; type: string; }) => S & { [x: string]: S[keyof S] & Partial; }; };