1 | import Observable from 'zen-observable-ts';
|
2 | import { PubSubProvider, ProviderOptions } from './types';
|
3 | import { InternalPubSubClass } from './internals';
|
4 | declare type PubSubObservable = {
|
5 | provider: PubSubProvider;
|
6 | value: string | Record<string, unknown>;
|
7 | };
|
8 | export declare class PubSubClass extends InternalPubSubClass {
|
9 | getModuleName(): string;
|
10 | subscribe(topics: string[] | string, options?: ProviderOptions): Observable<PubSubObservable>;
|
11 | }
|
12 | export declare const PubSub: PubSubClass;
|
13 | export {};
|