/**
 * Peer Auto-Discovery via mDNS (Bonjour/Avahi)
 *
 * When a master starts serving, it advertises itself on the LAN via mDNS.
 * Other Clawx masters automatically discover and register peers.
 *
 * Service type: _clawx._tcp
 * TXT records: id, name, version
 */
export interface DiscoveryConfig {
    /** Master agent ID */
    id: string;
    /** Master agent name */
    name: string;
    /** Port the master HTTP server is listening on */
    port: number;
}
/**
 * Start advertising this master on the LAN and browsing for other masters.
 * Safe to call if mDNS is unavailable — logs a warning and returns false.
 */
export declare function startDiscovery(config: DiscoveryConfig): Promise<boolean>;
/**
 * Stop advertising and browsing. Call on shutdown.
 */
export declare function stopDiscovery(): void;
/**
 * Check if discovery is currently active.
 */
export declare function isDiscoveryActive(): boolean;
//# sourceMappingURL=peer-discovery.d.ts.map