@types/node 10.12.20 → 10.12.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
node/inspector.d.ts CHANGED
@@ -8,7 +8,6 @@
8
8
  /**
9
9
  * The inspector module provides an API for interacting with the V8 inspector.
10
10
  */
11
- // tslint:disable-next-line:no-single-declare-module
12
11
  declare module "inspector" {
13
12
  import { EventEmitter } from 'events';
14
13
 
node/module.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ declare module "module" {
2
+ export = NodeJS.Module;
3
+ }
node/net.d.ts ADDED
@@ -0,0 +1,251 @@
1
+ declare module "net" {
2
+ import * as stream from "stream";
3
+ import * as events from "events";
4
+ import * as dns from "dns";
5
+
6
+ type LookupFunction = (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void;
7
+
8
+ interface AddressInfo {
9
+ address: string;
10
+ family: string;
11
+ port: number;
12
+ }
13
+
14
+ interface SocketConstructorOpts {
15
+ fd?: number;
16
+ allowHalfOpen?: boolean;
17
+ readable?: boolean;
18
+ writable?: boolean;
19
+ }
20
+
21
+ interface TcpSocketConnectOpts {
22
+ port: number;
23
+ host?: string;
24
+ localAddress?: string;
25
+ localPort?: number;
26
+ hints?: number;
27
+ family?: number;
28
+ lookup?: LookupFunction;
29
+ }
30
+
31
+ interface IpcSocketConnectOpts {
32
+ path: string;
33
+ }
34
+
35
+ type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
36
+
37
+ class Socket extends stream.Duplex {
38
+ constructor(options?: SocketConstructorOpts);
39
+
40
+ // Extended base methods
41
+ write(buffer: Buffer): boolean;
42
+ write(buffer: Buffer, cb?: Function): boolean;
43
+ write(str: string, cb?: Function): boolean;
44
+ write(str: string, encoding?: string, cb?: Function): boolean;
45
+ write(str: string, encoding?: string, fd?: string): boolean;
46
+ write(data: any, encoding?: string, callback?: Function): void;
47
+
48
+ connect(options: SocketConnectOpts, connectionListener?: Function): this;
49
+ connect(port: number, host: string, connectionListener?: Function): this;
50
+ connect(port: number, connectionListener?: Function): this;
51
+ connect(path: string, connectionListener?: Function): this;
52
+
53
+ setEncoding(encoding?: string): this;
54
+ pause(): this;
55
+ resume(): this;
56
+ setTimeout(timeout: number, callback?: Function): this;
57
+ setNoDelay(noDelay?: boolean): this;
58
+ setKeepAlive(enable?: boolean, initialDelay?: number): this;
59
+ address(): AddressInfo | string;
60
+ unref(): void;
61
+ ref(): void;
62
+
63
+ readonly bufferSize: number;
64
+ readonly bytesRead: number;
65
+ readonly bytesWritten: number;
66
+ readonly connecting: boolean;
67
+ readonly destroyed: boolean;
68
+ readonly localAddress: string;
69
+ readonly localPort: number;
70
+ readonly remoteAddress?: string;
71
+ readonly remoteFamily?: string;
72
+ readonly remotePort?: number;
73
+
74
+ // Extended base methods
75
+ end(): void;
76
+ end(buffer: Buffer, cb?: Function): void;
77
+ end(str: string, cb?: Function): void;
78
+ end(str: string, encoding?: string, cb?: Function): void;
79
+ end(data?: any, encoding?: string): void;
80
+
81
+ /**
82
+ * events.EventEmitter
83
+ * 1. close
84
+ * 2. connect
85
+ * 3. data
86
+ * 4. drain
87
+ * 5. end
88
+ * 6. error
89
+ * 7. lookup
90
+ * 8. timeout
91
+ */
92
+ addListener(event: string, listener: (...args: any[]) => void): this;
93
+ addListener(event: "close", listener: (had_error: boolean) => void): this;
94
+ addListener(event: "connect", listener: () => void): this;
95
+ addListener(event: "data", listener: (data: Buffer) => void): this;
96
+ addListener(event: "drain", listener: () => void): this;
97
+ addListener(event: "end", listener: () => void): this;
98
+ addListener(event: "error", listener: (err: Error) => void): this;
99
+ addListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
100
+ addListener(event: "timeout", listener: () => void): this;
101
+
102
+ emit(event: string | symbol, ...args: any[]): boolean;
103
+ emit(event: "close", had_error: boolean): boolean;
104
+ emit(event: "connect"): boolean;
105
+ emit(event: "data", data: Buffer): boolean;
106
+ emit(event: "drain"): boolean;
107
+ emit(event: "end"): boolean;
108
+ emit(event: "error", err: Error): boolean;
109
+ emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean;
110
+ emit(event: "timeout"): boolean;
111
+
112
+ on(event: string, listener: (...args: any[]) => void): this;
113
+ on(event: "close", listener: (had_error: boolean) => void): this;
114
+ on(event: "connect", listener: () => void): this;
115
+ on(event: "data", listener: (data: Buffer) => void): this;
116
+ on(event: "drain", listener: () => void): this;
117
+ on(event: "end", listener: () => void): this;
118
+ on(event: "error", listener: (err: Error) => void): this;
119
+ on(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
120
+ on(event: "timeout", listener: () => void): this;
121
+
122
+ once(event: string, listener: (...args: any[]) => void): this;
123
+ once(event: "close", listener: (had_error: boolean) => void): this;
124
+ once(event: "connect", listener: () => void): this;
125
+ once(event: "data", listener: (data: Buffer) => void): this;
126
+ once(event: "drain", listener: () => void): this;
127
+ once(event: "end", listener: () => void): this;
128
+ once(event: "error", listener: (err: Error) => void): this;
129
+ once(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
130
+ once(event: "timeout", listener: () => void): this;
131
+
132
+ prependListener(event: string, listener: (...args: any[]) => void): this;
133
+ prependListener(event: "close", listener: (had_error: boolean) => void): this;
134
+ prependListener(event: "connect", listener: () => void): this;
135
+ prependListener(event: "data", listener: (data: Buffer) => void): this;
136
+ prependListener(event: "drain", listener: () => void): this;
137
+ prependListener(event: "end", listener: () => void): this;
138
+ prependListener(event: "error", listener: (err: Error) => void): this;
139
+ prependListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
140
+ prependListener(event: "timeout", listener: () => void): this;
141
+
142
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
143
+ prependOnceListener(event: "close", listener: (had_error: boolean) => void): this;
144
+ prependOnceListener(event: "connect", listener: () => void): this;
145
+ prependOnceListener(event: "data", listener: (data: Buffer) => void): this;
146
+ prependOnceListener(event: "drain", listener: () => void): this;
147
+ prependOnceListener(event: "end", listener: () => void): this;
148
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
149
+ prependOnceListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
150
+ prependOnceListener(event: "timeout", listener: () => void): this;
151
+ }
152
+
153
+ interface ListenOptions {
154
+ port?: number;
155
+ host?: string;
156
+ backlog?: number;
157
+ path?: string;
158
+ exclusive?: boolean;
159
+ readableAll?: boolean;
160
+ writableAll?: boolean;
161
+ }
162
+
163
+ // https://github.com/nodejs/node/blob/master/lib/net.js
164
+ class Server extends events.EventEmitter {
165
+ constructor(connectionListener?: (socket: Socket) => void);
166
+ constructor(options?: { allowHalfOpen?: boolean, pauseOnConnect?: boolean }, connectionListener?: (socket: Socket) => void);
167
+
168
+ listen(port?: number, hostname?: string, backlog?: number, listeningListener?: Function): this;
169
+ listen(port?: number, hostname?: string, listeningListener?: Function): this;
170
+ listen(port?: number, backlog?: number, listeningListener?: Function): this;
171
+ listen(port?: number, listeningListener?: Function): this;
172
+ listen(path: string, backlog?: number, listeningListener?: Function): this;
173
+ listen(path: string, listeningListener?: Function): this;
174
+ listen(options: ListenOptions, listeningListener?: Function): this;
175
+ listen(handle: any, backlog?: number, listeningListener?: Function): this;
176
+ listen(handle: any, listeningListener?: Function): this;
177
+ close(callback?: Function): this;
178
+ address(): AddressInfo | string;
179
+ getConnections(cb: (error: Error | null, count: number) => void): void;
180
+ ref(): this;
181
+ unref(): this;
182
+ maxConnections: number;
183
+ connections: number;
184
+ listening: boolean;
185
+
186
+ /**
187
+ * events.EventEmitter
188
+ * 1. close
189
+ * 2. connection
190
+ * 3. error
191
+ * 4. listening
192
+ */
193
+ addListener(event: string, listener: (...args: any[]) => void): this;
194
+ addListener(event: "close", listener: () => void): this;
195
+ addListener(event: "connection", listener: (socket: Socket) => void): this;
196
+ addListener(event: "error", listener: (err: Error) => void): this;
197
+ addListener(event: "listening", listener: () => void): this;
198
+
199
+ emit(event: string | symbol, ...args: any[]): boolean;
200
+ emit(event: "close"): boolean;
201
+ emit(event: "connection", socket: Socket): boolean;
202
+ emit(event: "error", err: Error): boolean;
203
+ emit(event: "listening"): boolean;
204
+
205
+ on(event: string, listener: (...args: any[]) => void): this;
206
+ on(event: "close", listener: () => void): this;
207
+ on(event: "connection", listener: (socket: Socket) => void): this;
208
+ on(event: "error", listener: (err: Error) => void): this;
209
+ on(event: "listening", listener: () => void): this;
210
+
211
+ once(event: string, listener: (...args: any[]) => void): this;
212
+ once(event: "close", listener: () => void): this;
213
+ once(event: "connection", listener: (socket: Socket) => void): this;
214
+ once(event: "error", listener: (err: Error) => void): this;
215
+ once(event: "listening", listener: () => void): this;
216
+
217
+ prependListener(event: string, listener: (...args: any[]) => void): this;
218
+ prependListener(event: "close", listener: () => void): this;
219
+ prependListener(event: "connection", listener: (socket: Socket) => void): this;
220
+ prependListener(event: "error", listener: (err: Error) => void): this;
221
+ prependListener(event: "listening", listener: () => void): this;
222
+
223
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
224
+ prependOnceListener(event: "close", listener: () => void): this;
225
+ prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
226
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
227
+ prependOnceListener(event: "listening", listener: () => void): this;
228
+ }
229
+
230
+ interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
231
+ timeout?: number;
232
+ }
233
+
234
+ interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts {
235
+ timeout?: number;
236
+ }
237
+
238
+ type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts;
239
+
240
+ function createServer(connectionListener?: (socket: Socket) => void): Server;
241
+ function createServer(options?: { allowHalfOpen?: boolean, pauseOnConnect?: boolean }, connectionListener?: (socket: Socket) => void): Server;
242
+ function connect(options: NetConnectOpts, connectionListener?: Function): Socket;
243
+ function connect(port: number, host?: string, connectionListener?: Function): Socket;
244
+ function connect(path: string, connectionListener?: Function): Socket;
245
+ function createConnection(options: NetConnectOpts, connectionListener?: Function): Socket;
246
+ function createConnection(port: number, host?: string, connectionListener?: Function): Socket;
247
+ function createConnection(path: string, connectionListener?: Function): Socket;
248
+ function isIP(input: string): number;
249
+ function isIPv4(input: string): boolean;
250
+ function isIPv6(input: string): boolean;
251
+ }
node/os.d.ts ADDED
@@ -0,0 +1,192 @@
1
+ declare module "os" {
2
+ interface CpuInfo {
3
+ model: string;
4
+ speed: number;
5
+ times: {
6
+ user: number;
7
+ nice: number;
8
+ sys: number;
9
+ idle: number;
10
+ irq: number;
11
+ };
12
+ }
13
+
14
+ interface NetworkInterfaceBase {
15
+ address: string;
16
+ netmask: string;
17
+ mac: string;
18
+ internal: boolean;
19
+ cidr: string | null;
20
+ }
21
+
22
+ interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
23
+ family: "IPv4";
24
+ }
25
+
26
+ interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
27
+ family: "IPv6";
28
+ scopeid: number;
29
+ }
30
+
31
+ type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6;
32
+
33
+ function hostname(): string;
34
+ function loadavg(): number[];
35
+ function uptime(): number;
36
+ function freemem(): number;
37
+ function totalmem(): number;
38
+ function cpus(): CpuInfo[];
39
+ function type(): string;
40
+ function release(): string;
41
+ function networkInterfaces(): { [index: string]: NetworkInterfaceInfo[] };
42
+ function homedir(): string;
43
+ function userInfo(options?: { encoding: string }): { username: string, uid: number, gid: number, shell: any, homedir: string };
44
+ const constants: {
45
+ UV_UDP_REUSEADDR: number;
46
+ signals: {
47
+ SIGHUP: number;
48
+ SIGINT: number;
49
+ SIGQUIT: number;
50
+ SIGILL: number;
51
+ SIGTRAP: number;
52
+ SIGABRT: number;
53
+ SIGIOT: number;
54
+ SIGBUS: number;
55
+ SIGFPE: number;
56
+ SIGKILL: number;
57
+ SIGUSR1: number;
58
+ SIGSEGV: number;
59
+ SIGUSR2: number;
60
+ SIGPIPE: number;
61
+ SIGALRM: number;
62
+ SIGTERM: number;
63
+ SIGCHLD: number;
64
+ SIGSTKFLT: number;
65
+ SIGCONT: number;
66
+ SIGSTOP: number;
67
+ SIGTSTP: number;
68
+ SIGTTIN: number;
69
+ SIGTTOU: number;
70
+ SIGURG: number;
71
+ SIGXCPU: number;
72
+ SIGXFSZ: number;
73
+ SIGVTALRM: number;
74
+ SIGPROF: number;
75
+ SIGWINCH: number;
76
+ SIGIO: number;
77
+ SIGPOLL: number;
78
+ SIGPWR: number;
79
+ SIGSYS: number;
80
+ SIGUNUSED: number;
81
+ };
82
+ errno: {
83
+ E2BIG: number;
84
+ EACCES: number;
85
+ EADDRINUSE: number;
86
+ EADDRNOTAVAIL: number;
87
+ EAFNOSUPPORT: number;
88
+ EAGAIN: number;
89
+ EALREADY: number;
90
+ EBADF: number;
91
+ EBADMSG: number;
92
+ EBUSY: number;
93
+ ECANCELED: number;
94
+ ECHILD: number;
95
+ ECONNABORTED: number;
96
+ ECONNREFUSED: number;
97
+ ECONNRESET: number;
98
+ EDEADLK: number;
99
+ EDESTADDRREQ: number;
100
+ EDOM: number;
101
+ EDQUOT: number;
102
+ EEXIST: number;
103
+ EFAULT: number;
104
+ EFBIG: number;
105
+ EHOSTUNREACH: number;
106
+ EIDRM: number;
107
+ EILSEQ: number;
108
+ EINPROGRESS: number;
109
+ EINTR: number;
110
+ EINVAL: number;
111
+ EIO: number;
112
+ EISCONN: number;
113
+ EISDIR: number;
114
+ ELOOP: number;
115
+ EMFILE: number;
116
+ EMLINK: number;
117
+ EMSGSIZE: number;
118
+ EMULTIHOP: number;
119
+ ENAMETOOLONG: number;
120
+ ENETDOWN: number;
121
+ ENETRESET: number;
122
+ ENETUNREACH: number;
123
+ ENFILE: number;
124
+ ENOBUFS: number;
125
+ ENODATA: number;
126
+ ENODEV: number;
127
+ ENOENT: number;
128
+ ENOEXEC: number;
129
+ ENOLCK: number;
130
+ ENOLINK: number;
131
+ ENOMEM: number;
132
+ ENOMSG: number;
133
+ ENOPROTOOPT: number;
134
+ ENOSPC: number;
135
+ ENOSR: number;
136
+ ENOSTR: number;
137
+ ENOSYS: number;
138
+ ENOTCONN: number;
139
+ ENOTDIR: number;
140
+ ENOTEMPTY: number;
141
+ ENOTSOCK: number;
142
+ ENOTSUP: number;
143
+ ENOTTY: number;
144
+ ENXIO: number;
145
+ EOPNOTSUPP: number;
146
+ EOVERFLOW: number;
147
+ EPERM: number;
148
+ EPIPE: number;
149
+ EPROTO: number;
150
+ EPROTONOSUPPORT: number;
151
+ EPROTOTYPE: number;
152
+ ERANGE: number;
153
+ EROFS: number;
154
+ ESPIPE: number;
155
+ ESRCH: number;
156
+ ESTALE: number;
157
+ ETIME: number;
158
+ ETIMEDOUT: number;
159
+ ETXTBSY: number;
160
+ EWOULDBLOCK: number;
161
+ EXDEV: number;
162
+ };
163
+ priority: {
164
+ PRIORITY_LOW: number;
165
+ PRIORITY_BELOW_NORMAL: number;
166
+ PRIORITY_NORMAL: number;
167
+ PRIORITY_ABOVE_NORMAL: number;
168
+ PRIORITY_HIGH: number;
169
+ PRIORITY_HIGHEST: number;
170
+ }
171
+ };
172
+ function arch(): string;
173
+ function platform(): NodeJS.Platform;
174
+ function tmpdir(): string;
175
+ const EOL: string;
176
+ function endianness(): "BE" | "LE";
177
+ /**
178
+ * Gets the priority of a process.
179
+ * Defaults to current process.
180
+ */
181
+ function getPriority(pid?: number): number;
182
+ /**
183
+ * Sets the priority of the current process.
184
+ * @param priority Must be in range of -20 to 19
185
+ */
186
+ function setPriority(priority: number): void;
187
+ /**
188
+ * Sets the priority of the process specified process.
189
+ * @param priority Must be in range of -20 to 19
190
+ */
191
+ function setPriority(pid: number, priority: number): void;
192
+ }
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.12.20",
3
+ "version": "10.12.21",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -178,6 +178,6 @@
178
178
  },
179
179
  "scripts": {},
180
180
  "dependencies": {},
181
- "typesPublisherContentHash": "07995d611e78cf26742b7773fc66273877a67c0a9262e87db2ebc19b19c37992",
181
+ "typesPublisherContentHash": "295231f80e661eb592d88e02bca1cf5ccef43d3418606a2342606d702d7c0bf0",
182
182
  "typeScriptVersion": "2.0"
183
183
  }
node/path.d.ts ADDED
@@ -0,0 +1,159 @@
1
+ declare module "path" {
2
+ /**
3
+ * A parsed path object generated by path.parse() or consumed by path.format().
4
+ */
5
+ interface ParsedPath {
6
+ /**
7
+ * The root of the path such as '/' or 'c:\'
8
+ */
9
+ root: string;
10
+ /**
11
+ * The full directory path such as '/home/user/dir' or 'c:\path\dir'
12
+ */
13
+ dir: string;
14
+ /**
15
+ * The file name including extension (if any) such as 'index.html'
16
+ */
17
+ base: string;
18
+ /**
19
+ * The file extension (if any) such as '.html'
20
+ */
21
+ ext: string;
22
+ /**
23
+ * The file name without extension (if any) such as 'index'
24
+ */
25
+ name: string;
26
+ }
27
+ interface FormatInputPathObject {
28
+ /**
29
+ * The root of the path such as '/' or 'c:\'
30
+ */
31
+ root?: string;
32
+ /**
33
+ * The full directory path such as '/home/user/dir' or 'c:\path\dir'
34
+ */
35
+ dir?: string;
36
+ /**
37
+ * The file name including extension (if any) such as 'index.html'
38
+ */
39
+ base?: string;
40
+ /**
41
+ * The file extension (if any) such as '.html'
42
+ */
43
+ ext?: string;
44
+ /**
45
+ * The file name without extension (if any) such as 'index'
46
+ */
47
+ name?: string;
48
+ }
49
+
50
+ /**
51
+ * Normalize a string path, reducing '..' and '.' parts.
52
+ * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
53
+ *
54
+ * @param p string path to normalize.
55
+ */
56
+ function normalize(p: string): string;
57
+ /**
58
+ * Join all arguments together and normalize the resulting path.
59
+ * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown.
60
+ *
61
+ * @param paths paths to join.
62
+ */
63
+ function join(...paths: string[]): string;
64
+ /**
65
+ * The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
66
+ *
67
+ * Starting from leftmost {from} parameter, resolves {to} to an absolute path.
68
+ *
69
+ * If {to} isn't already absolute, {from} arguments are prepended in right to left order,
70
+ * until an absolute path is found. If after using all {from} paths still no absolute path is found,
71
+ * the current working directory is used as well. The resulting path is normalized,
72
+ * and trailing slashes are removed unless the path gets resolved to the root directory.
73
+ *
74
+ * @param pathSegments string paths to join. Non-string arguments are ignored.
75
+ */
76
+ function resolve(...pathSegments: string[]): string;
77
+ /**
78
+ * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
79
+ *
80
+ * @param path path to test.
81
+ */
82
+ function isAbsolute(path: string): boolean;
83
+ /**
84
+ * Solve the relative path from {from} to {to}.
85
+ * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
86
+ */
87
+ function relative(from: string, to: string): string;
88
+ /**
89
+ * Return the directory name of a path. Similar to the Unix dirname command.
90
+ *
91
+ * @param p the path to evaluate.
92
+ */
93
+ function dirname(p: string): string;
94
+ /**
95
+ * Return the last portion of a path. Similar to the Unix basename command.
96
+ * Often used to extract the file name from a fully qualified path.
97
+ *
98
+ * @param p the path to evaluate.
99
+ * @param ext optionally, an extension to remove from the result.
100
+ */
101
+ function basename(p: string, ext?: string): string;
102
+ /**
103
+ * Return the extension of the path, from the last '.' to end of string in the last portion of the path.
104
+ * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string
105
+ *
106
+ * @param p the path to evaluate.
107
+ */
108
+ function extname(p: string): string;
109
+ /**
110
+ * The platform-specific file separator. '\\' or '/'.
111
+ */
112
+ const sep: '\\' | '/';
113
+ /**
114
+ * The platform-specific file delimiter. ';' or ':'.
115
+ */
116
+ const delimiter: ';' | ':';
117
+ /**
118
+ * Returns an object from a path string - the opposite of format().
119
+ *
120
+ * @param pathString path to evaluate.
121
+ */
122
+ function parse(pathString: string): ParsedPath;
123
+ /**
124
+ * Returns a path string from an object - the opposite of parse().
125
+ *
126
+ * @param pathString path to evaluate.
127
+ */
128
+ function format(pathObject: FormatInputPathObject): string;
129
+
130
+ namespace posix {
131
+ function normalize(p: string): string;
132
+ function join(...paths: any[]): string;
133
+ function resolve(...pathSegments: any[]): string;
134
+ function isAbsolute(p: string): boolean;
135
+ function relative(from: string, to: string): string;
136
+ function dirname(p: string): string;
137
+ function basename(p: string, ext?: string): string;
138
+ function extname(p: string): string;
139
+ const sep: string;
140
+ const delimiter: string;
141
+ function parse(p: string): ParsedPath;
142
+ function format(pP: FormatInputPathObject): string;
143
+ }
144
+
145
+ namespace win32 {
146
+ function normalize(p: string): string;
147
+ function join(...paths: any[]): string;
148
+ function resolve(...pathSegments: any[]): string;
149
+ function isAbsolute(p: string): boolean;
150
+ function relative(from: string, to: string): string;
151
+ function dirname(p: string): string;
152
+ function basename(p: string, ext?: string): string;
153
+ function extname(p: string): string;
154
+ const sep: string;
155
+ const delimiter: string;
156
+ function parse(p: string): ParsedPath;
157
+ function format(pP: FormatInputPathObject): string;
158
+ }
159
+ }