import { ServiceBroker } from 'moleculer';
interface BrokerConfig {
    readonly nodeID: string;
    readonly mode: 'hub' | 'agent' | 'test';
    readonly hubAddress?: string;
    readonly logLevel?: string;
    /** Shared secret — used as Moleculer namespace to isolate the cluster on the network */
    readonly secret?: string;
    /**
     * TCP port the hub listens on for cluster traffic.
     * Agents need a deterministic port to connect via `urls: 'hub@host:port'`
     * when UDP multicast discovery is disabled.
     */
    readonly tcpPort?: number;
    /** UDP port for cluster discovery (default: 4445). */
    readonly udpPort?: number;
}
declare function createBroker(config: BrokerConfig): ServiceBroker;
export { createBroker };
export type { BrokerConfig };
//# sourceMappingURL=broker-factory.d.ts.map