import { RouteConfig } from 'react-router'; import { History } from "history"; import { Store } from './utils/configureStore'; export { Store }; export declare type Routes = (store: Store) => RouteConfig; export interface options { /** * Can be a function with store parameter or a RouteConfig route * * @type {(Routes | RouteConfig)} * @memberOf options */ routes: Routes | RouteConfig; /** * Can be Map or any immutable type * * * @memberOf options */ initialState?: any; /** * Can be an object within {key:Function} * * * @memberOf options */ asyncReducers?: {}; history?: History; rootReducer?: Function; /** * custom render,you can add other Provider like react-intl . * * @type {Function} * @memberOf options */ render?: Function; middlewares?: any; /** * can use with hake-redux https://github.com/bang88/hake-redux#api */ client?: any; } export interface Render { store: any; routes: RouteConfig; history: History; } /** * configure routes and others then start the app immediately * @param {options} options */ declare const hake: ({ initialState, asyncReducers, history, render, routes, rootReducer, middlewares, client, }: options) => { store: Store<{}>; start: (target?: string) => Element; }; export default hake;