import type { History } from 'history'; import type { Middleware, Reducer, Store } from 'redux'; import type { ReachHistory } from './reachify.types'; import { RouterState } from './reducer'; export interface IHistoryContextOptions { history: History; routerReducerKey?: string; reduxTravelling?: boolean; showHistoryAction?: boolean; selectRouterState?: (state: S) => RouterState; savePreviousLocations?: number; batch?: (callback: () => void) => void; reachGlobalHistory?: ReachHistory; basename?: string; } export interface IHistoryContext { createReduxHistory: (store: Store) => History & { listenObject: boolean; }; routerMiddleware: Middleware; routerReducer: Reducer; } export declare const createReduxHistoryContext: ({ history, routerReducerKey, reduxTravelling, showHistoryAction, selectRouterState, savePreviousLocations, batch, reachGlobalHistory, basename, }: IHistoryContextOptions) => IHistoryContext;