forked from stdarg/tcp-port-used
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
57 lines (37 loc) · 1.37 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
declare module 'tcp-port-used'
// Type definitions for React (react-dom) 16.0
// Project: https://github.com/stdarg/tcp-port-used
// Definitions by: Gaute Johansen <https://github.com/gautejohan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1.2
export as namespace TcpPortUsed;
export declare function check(port: number | any, host: string): Promise<boolean>;
export function waitForStatus(port: number | any, host: string, inUse: boolean, retryTimeMs: number, timeOutMs: number): Promise<void>;
export function waitUntilFree(port: any, retryTimeMs: any, timeOutMs: any): Promise<void>;
export function waitUntilFreeOnHost(port: number | any, host: string, retryTimeMs: number, timeOutMs: number): Promise<void>;
export function waitUntilUsed(port: number | any, retryTimeMs: number, timeOutMs: number): Promise<void>;
export function waitUntilUsedOnHost(port: number | any, host: string, retryTimeMs: number, timeOutMs: number): Promise<void>;
export namespace check {
const prototype: {
};
}
export namespace waitForStatus {
const prototype: {
};
}
export namespace waitUntilFree {
const prototype: {
};
}
export namespace waitUntilFreeOnHost {
const prototype: {
};
}
export namespace waitUntilUsed {
const prototype: {
};
}
export namespace waitUntilUsedOnHost {
const prototype: {
};
}