// ______________________________________________________ // // @ fromState type StateGetter = (state: T) => any type MapStateOption = | Array | { [k: string]: keyof T | StateGetter } type MapState = (mapStateOption: MapStateOption) => any interface FromStateReturn { readonly mapState: MapState } // DECL declare function fromState(state: T, namespace: string): FromStateReturn // ______________________________________________________ // // @ exports export { MapStateOption, MapState, FromStateReturn, fromState }