import { BehaviorSubject } from 'rxjs'; import { IStore } from './IStore'; export declare class ValueStore implements IStore { state$: BehaviorSubject; get state(): Value; constructor(value: Value); setState(value: Value): void; /** * This callback is called when the first subscriber subscribes to this store. * It may be called multiple times during the lifetime of the store. * You can use it to perform side-effects like subscribing to other * observables. */ onSubscribe(): void; /** * This callback is called when the last subscriber unsubscribes from this store. * It may be called multiple times during the lifetime of the store. * You can use it to cleanup side-effects created during onSubscribe. */ onUnsubscribe(): void; }