import { DeepPartial, ReducersMapObject, Store } from "redux"; import { ThunkAction, ThunkDispatch } from "redux-thunk"; import { IGatsbyState, ActionsUnion, GatsbyStateKeys } from "./types"; export declare const emitter: import("../utils/mett").IMett; export declare const readState: () => IGatsbyState; export interface IMultiDispatch { >(action: Array): Array; } export type GatsbyReduxStore = Store & { dispatch: ThunkDispatch & IMultiDispatch; }; export declare const configureStore: (initialState: IGatsbyState) => GatsbyReduxStore; export declare const store: GatsbyReduxStore; /** * Allows overloading some reducers (e.g. when setting a custom datastore) */ export declare function replaceReducer(customReducers: Partial>): void; export declare const saveState: () => void; export declare const savePartialStateToDisk: (slices: Array, optionalPrefix?: string, transformState?: (>(state: T) => T) | undefined) => void; export declare const loadPartialStateFromDisk: (slices: Array, optionalPrefix?: string) => DeepPartial;