export type NotifyFn = (data: T) => Promise; export interface Notifier { init(notify: NotifyFn): void; }