1 | type DetectPortCallback = (err: Error, _port: number) => void;
|
2 |
|
3 | interface PortConfig {
|
4 | port?: number;
|
5 | hostname?: string | undefined;
|
6 | callback?: DetectPortCallback | undefined;
|
7 | }
|
8 |
|
9 | interface DetectPort {
|
10 | (port: number | PortConfig | undefined, callback: DetectPortCallback): void;
|
11 | (port?: number | PortConfig): Promise<number>;
|
12 | }
|
13 | declare const detectPort: DetectPort;
|
14 | export = detectPort;
|