export type StatefulObservable = { current: T; subscribe: (next: (data: T) => void) => Subscription; }; export type Subscription = { unsubscribe(): void; }; export declare function createStatefulObservable(getInitialValue: () => T): StatefulObservable;