export type Listener = (options: T) => void; export interface SubscribableInterface { _separateNextListeners: () => void; callSubscribers: (listenerOptions: T) => void; subscribe: (listener: Listener, initialCall?: boolean) => () => void; }