/** * @module node-opcua-service-discovery */ import { Bonjour, type Service, type ServiceConfig } from "sterfive-bonjour-service"; import type { Announcement } from "./Announcement.js"; /** * How many multicast-DNS instances are currently held. * * A test seam, and the only way this leak is visible from inside the process: an instance left * behind holds a socket on udp/5353, which keeps the event loop alive, so the symptom is a test * run that finishes its assertions and then never exits. * * @internal */ export declare function multicastDNSInstanceCount(): number; export declare function acquireMulticastDNS(): Bonjour; export declare function _announceServerOnMulticastSubnet(multicastDNS: Bonjour, serviceConfig: ServiceConfig): Promise; export declare class BonjourHolder { #private; serviceConfig?: ServiceConfig; /** * * @param announcement * @returns */ announcedOnMulticastSubnet(announcement: Announcement): Promise; isStarted(): boolean; /** * @private */ stopAnnouncedOnMulticastSubnet(): Promise; } //# sourceMappingURL=bonjourHolder.d.ts.map