import type { ReceiveType } from '../../reflection'; interface BroadcastLogger { error(...messages: unknown[]): void; } export declare function createBroadcastChannel(eventName: string, _type?: ReceiveType): { subscribe: (fn: (data: T) => void) => void; publish: (data: T) => Promise; }; interface IDistributedMethodOptions { name: string; logger?: () => BroadcastLogger; } export declare function createDistributedMethod(options: IDistributedMethodOptions, fn: (data: T) => Promise, type?: ReceiveType): (data: T) => Promise; export {}; //# sourceMappingURL=broadcast.d.ts.map