export type StatefulEvt = { current: T; subscribe: (next: (data: T) => void) => Subscription; }; export type StatefulReadonlyEvt = { readonly current: T; subscribe: (next: (data: T) => void) => Subscription; }; export type Subscription = { unsubscribe: () => void; }; export declare function createStatefulEvt(getInitialValue: () => T): StatefulEvt;