You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
293 B
TypeScript
10 lines
293 B
TypeScript
export interface MessageBus {
|
|
subscribe(topic: string, callback: Function): () => void;
|
|
publish(topic: string, ...args: unknown[]): void;
|
|
}
|
|
export declare function createMessageBus(): MessageBus;
|
|
/**
|
|
* @ignore - internal hook.
|
|
*/
|
|
export declare function useMessageBus(): MessageBus;
|