/** * Create redux store * @example * // logger middleware example * const logger = store => next => action => { * console.log('dispatching', action); * const result = next(action); * console.log('next state', store.getState()); * return result; * }; * * // create store outside app.module * createStore( * // list of reducers * { counter }, * // initial state * { counter: 420 }, * // composing enhancers * compose(applyDevTools(), applyMiddleware(logger)) * ); * store().subscribe(it => console.log(it, store().getState())); * * @export * @param {*} reducers * @param {*} initialState * @param {*} [enhancers] */ export declare function createStore(reducers: any, enhancers?: any): any; export declare function createStore(reducers: any, initialState?: any, enhancers?: any): any;