import { ProxyReducer, RepoSnapshot } from './types'; import { AnyAction, Reducer } from 'redux'; import { Repo } from './Repo'; export declare type ReducerAdapter = (proxyReducer: ProxyReducer, repo: Repo) => Reducer; /** * This function, used when wiring up the store, takes a `proxyReducer` and turns it into a * garden-variety Redux reducer. * * When we initialize a `StoreManager`, we give it a `proxyReducer`, which is like a Redux reducer, * except it's designed to work with Automerge objects instead of plain JavaScript objects. It takes * a state, but instead of returning a modified state, it returns one or more change functions. * * @param proxyReducer The proxyReducer to be converted * @param repo The store's repo */ export declare const getReducer: ReducerAdapter;