export type Listener = (...args: any[]) => void | Promise; export declare function pub void | Promise>(): { subscribe(...listeners: L[]): () => void; publish(...args: Parameters): Promise; clear(): void; };