import * as types from './types'; /** * A base class that reduces your boilerplate when following the interactions * pattern. * * https://github.com/convoyinc/redux-interactions */ export default class Interactions { mountPoint: string[]; initialState: any; _interactionReducers: { [key: string]: types.Reducer; }; _instanceInteractionReducers: { [key: string]: types.Reducer; }; _actionTypes: { [key: string]: string; }; constructor(); /** * Delegates to each interaction reducer registered for this class. */ reducer(state: any, action: types.Action): any; /** * Returns the interactions' scoped state given the entire state object. */ scopedState(state: any): any; /** * Registers an interaction reducer. * * You will probably find it more convenient to use the @reducer decorator. */ static addInteractionReducer(name: string, reducer: types.InteractionReducer): void; static _registerInteractionReducer(name: string, reducer: types.InteractionReducer, type?: string): types.PassthroughActionCreator; }