1 | import { DeepPartial, ReducersMapObject, Store } from "redux";
|
2 | import { ThunkAction, ThunkDispatch } from "redux-thunk";
|
3 | import { IGatsbyState, ActionsUnion, GatsbyStateKeys } from "./types";
|
4 | export declare const emitter: import("../utils/mett").IMett;
|
5 | export declare const readState: () => IGatsbyState;
|
6 | export interface IMultiDispatch {
|
7 | <T extends ActionsUnion | ThunkAction<any, IGatsbyState, any, ActionsUnion>>(action: Array<T>): Array<T>;
|
8 | }
|
9 | export type GatsbyReduxStore = Store<IGatsbyState> & {
|
10 | dispatch: ThunkDispatch<IGatsbyState, any, ActionsUnion> & IMultiDispatch;
|
11 | };
|
12 | export declare const configureStore: (initialState: IGatsbyState) => GatsbyReduxStore;
|
13 | export declare const store: GatsbyReduxStore;
|
14 |
|
15 |
|
16 |
|
17 | export declare function replaceReducer(customReducers: Partial<ReducersMapObject<IGatsbyState>>): void;
|
18 | export declare const saveState: () => void;
|
19 | export declare const savePartialStateToDisk: (slices: Array<GatsbyStateKeys>, optionalPrefix?: string, transformState?: (<T extends DeepPartial<IGatsbyState>>(state: T) => T) | undefined) => void;
|
20 | export declare const loadPartialStateFromDisk: (slices: Array<GatsbyStateKeys>, optionalPrefix?: string) => DeepPartial<IGatsbyState>;
|