browser.d.ts 739 Bytes
/// <reference types="node" />
import { EventEmitter } from 'events';
import Service from './service';
export interface BrowserConfig {
    type: string;
    protocol?: 'tcp' | 'udp';
    subtypes?: Array<string>;
    txt?: any;
}
export declare class Browser extends EventEmitter {
    private mdns;
    private onresponse;
    private serviceMap;
    private txt;
    private name?;
    private txtQuery;
    private wildcard;
    private _services;
    constructor(mdns: any, opts: any, onup?: (service: Service) => void);
    start(): void;
    stop(): void;
    update(): void;
    get services(): any[];
    private addService;
    private removeService;
    private goodbyes;
    private buildServicesFor;
}
export default Browser;