import { StartStopNotifier , IStore } from './interface' ; import * as Utils from './utils' ; import { Store , storeMap } from './store' ; param { * = } value param { StartStopNotifier = } start export const store = < T > ( value , start = Utils . noop ) => { return new Store < T > ( value , start ) ; } ; /**
 * Generate SSR Store Data
 */ export const useSSR = ( ) => { const renderedStates = { } ; for ( let storeName of Object . keys ( storeMap ) ) { try { const storeValue = storeMap [ storeName ] . get ( ) ; if ( storeValue ) renderedStates [ storeName ] = storeValue ; } catch ( e ) { } } return { _vss : renderedStates } ; } ; export type { IStore } ; export { Store } ;