import { readable , Readable } from 'svelte/store' ; declare type Subscriber < T > = ( value : T ) => void ; declare type Unsubscriber = ( ) => void ; export default function createStore < T > ( creator ) { return readable ( null as any , ( set ) => { return creator ( set ) ; } ) ; }