FrontPastel/node_modules/@mui/base/utils/useMessageBus.d.ts

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;