UNPKG

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