import { LoggerInterface } from '@deepkit/logger';
import { ReceiveType } from '@deepkit/type';
export declare function createBroadcastChannel<T>(eventName: string, _type?: ReceiveType<T>): {
    subscribe: (fn: (data: T) => void) => void;
    publish: (data: T) => void;
};
interface IDistributedMethodOptions {
    name: string;
    logger?: () => LoggerInterface;
}
export declare function createDistributedMethod<T>(options: IDistributedMethodOptions, fn: (data: T) => Promise<void>, type?: ReceiveType<T>): (data: T) => Promise<void>;
export {};
//# sourceMappingURL=broadcast.d.ts.map