cat-bookmarker/assets/node_modules/bonjour-service/dist/lib/browser.d.ts

29 lines
717 B
TypeScript
Raw Permalink Normal View History

2024-03-10 18:52:04 +00:00
/// <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 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;