import Interactions from './Interactions'; import * as types from './types'; export declare type MountSpec = { [key: string]: MountSpec | Interactions; }; /** * Combines a collection of interactions into a single reducer by mounting them * according to the given hierarchy. * * For example: * * interactionsReducer = combineInteractions({ * entities: { * todos: interactions.todos, * users: interactions.users, * }, * routes: interactions.routes, * }); * * It also sets the `mountPoint` on each interactions instance, according to * the given hierarchy. * * In the example above: * * * `interactions.todos.mountPoint` would be `['entities', 'todos']`, * * `interactions.users.mountPoint` would be `['entities', 'users']`, * * `interactions.routes.mountPoint` would be `['routes']`, * */ export default function combineInteractions(spec: MountSpec): types.Reducer;