@node-red/editor-client 2.0.4 → 2.1.0-beta.2

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.
Files changed (77) hide show
  1. package/locales/en-US/editor.json +37 -7
  2. package/locales/ko/editor.json +1 -1
  3. package/package.json +2 -2
  4. package/public/red/about +109 -0
  5. package/public/red/images/node-red-256.svg +1 -0
  6. package/public/red/keymap.json +13 -2
  7. package/public/red/red.js +6122 -3663
  8. package/public/red/red.min.js +1 -1
  9. package/public/red/style.min.css +2 -2
  10. package/public/red/tours/first-flow.js +80 -0
  11. package/public/red/tours/welcome.js +135 -0
  12. package/public/tours/first-flow.js +82 -0
  13. package/public/types/node/assert.d.ts +127 -0
  14. package/public/types/node/async_hooks.d.ts +229 -0
  15. package/public/types/node/buffer.d.ts +25 -1
  16. package/public/types/node/child_process.d.ts +514 -6
  17. package/public/types/node/cluster.d.ts +265 -0
  18. package/public/types/node/console.d.ts +136 -1
  19. package/public/types/node/crypto.d.ts +1189 -1
  20. package/public/types/node/dgram.d.ts +144 -1
  21. package/public/types/node/dns.d.ts +383 -10
  22. package/public/types/node/domain.d.ts +27 -1
  23. package/public/types/node/events.d.ts +81 -1
  24. package/public/types/node/fs.d.ts +2273 -1
  25. package/public/types/node/globals.d.ts +616 -1
  26. package/public/types/node/http.d.ts +489 -1
  27. package/public/types/node/http2.d.ts +961 -0
  28. package/public/types/node/https.d.ts +142 -0
  29. package/public/types/node/module.d.ts +55 -0
  30. package/public/types/node/net.d.ts +296 -1
  31. package/public/types/node/os.d.ts +242 -1
  32. package/public/types/node/path.d.ts +156 -1
  33. package/public/types/node/perf_hooks.d.ts +274 -0
  34. package/public/types/node/process.d.ts +412 -1
  35. package/public/types/node/querystring.d.ts +31 -1
  36. package/public/types/node/readline.d.ts +173 -0
  37. package/public/types/node/stream.d.ts +358 -0
  38. package/public/types/node/string_decoder.d.ts +10 -0
  39. package/public/types/node/timers.d.ts +19 -0
  40. package/public/types/node/tls.d.ts +783 -0
  41. package/public/types/node/trace_events.d.ts +64 -0
  42. package/public/types/node/tty.d.ts +69 -0
  43. package/public/types/node/url.d.ts +119 -1
  44. package/public/types/node/util.d.ts +210 -0
  45. package/public/types/node/v8.d.ts +190 -0
  46. package/public/types/node/vm.d.ts +155 -0
  47. package/public/types/node/wasi.d.ts +89 -0
  48. package/public/types/node/worker_threads.d.ts +241 -0
  49. package/public/types/node/zlib.d.ts +364 -0
  50. package/public/types/node-red/func.d.ts +1 -1
  51. package/public/types/node-red/util.d.ts +1 -1
  52. package/public/vendor/ace/worker-jsonata.js +1 -1
  53. package/public/vendor/monaco/dist/ThirdPartyNotices.txt +192 -192
  54. package/public/vendor/monaco/dist/css.worker.js +1 -1
  55. package/public/vendor/monaco/dist/editor.js +2 -2
  56. package/public/vendor/monaco/dist/editor.worker.js +1 -1
  57. package/public/vendor/monaco/dist/html.worker.js +1 -1
  58. package/public/vendor/monaco/dist/json.worker.js +1 -1
  59. package/public/vendor/monaco/dist/locale/cs.js +44 -10
  60. package/public/vendor/monaco/dist/locale/de.js +46 -12
  61. package/public/vendor/monaco/dist/locale/es.js +46 -12
  62. package/public/vendor/monaco/dist/locale/fr.js +43 -9
  63. package/public/vendor/monaco/dist/locale/it.js +45 -11
  64. package/public/vendor/monaco/dist/locale/ja.js +45 -11
  65. package/public/vendor/monaco/dist/locale/ko.js +44 -10
  66. package/public/vendor/monaco/dist/locale/pl.js +42 -8
  67. package/public/vendor/monaco/dist/locale/pt-br.js +49 -15
  68. package/public/vendor/monaco/dist/locale/qps-ploc.js +1445 -0
  69. package/public/vendor/monaco/dist/locale/ru.js +48 -14
  70. package/public/vendor/monaco/dist/locale/tr.js +49 -15
  71. package/public/vendor/monaco/dist/locale/zh-hans.js +48 -14
  72. package/public/vendor/monaco/dist/locale/zh-hant.js +45 -11
  73. package/public/vendor/monaco/dist/theme/monoindustrial.json +228 -0
  74. package/public/vendor/monaco/dist/theme/solarized-dark.json +1082 -0
  75. package/public/vendor/monaco/dist/ts.worker.js +2 -2
  76. package/public/vendor/vendor.js +4 -4
  77. package/templates/index.mst +5 -1
@@ -1 +1,144 @@
1
- declare module'node:dgram'{export*from'dgram';}declare module'dgram'{import{AddressInfo}from'node:net';import*as dns from'node:dns';import EventEmitter=require('node:events');interface RemoteInfo{address:string;family:'IPv4'|'IPv6';port:number;size:number;}interface BindOptions{port?:number;address?:string;exclusive?:boolean;fd?:number;}type SocketType="udp4"|"udp6";interface SocketOptions{type:SocketType;reuseAddr?:boolean;ipv6Only?:boolean;recvBufferSize?:number;sendBufferSize?:number;lookup?:(hostname:string,options:dns.LookupOneOptions,callback:(err:NodeJS.ErrnoException|null,address:string,family:number)=>void)=>void;}function createSocket(type:SocketType,callback?:(msg:Buffer,rinfo:RemoteInfo)=>void):Socket;function createSocket(options:SocketOptions,callback?:(msg:Buffer,rinfo:RemoteInfo)=>void):Socket;class Socket extends EventEmitter{addMembership(multicastAddress:string,multicastInterface?:string):void;address():AddressInfo;bind(port?:number,address?:string,callback?:()=>void):void;bind(port?:number,callback?:()=>void):void;bind(callback?:()=>void):void;bind(options:BindOptions,callback?:()=>void):void;close(callback?:()=>void):void;connect(port:number,address?:string,callback?:()=>void):void;connect(port:number,callback:()=>void):void;disconnect():void;dropMembership(multicastAddress:string,multicastInterface?:string):void;getRecvBufferSize():number;getSendBufferSize():number;ref():this;remoteAddress():AddressInfo;send(msg:string|Uint8Array|ReadonlyArray<any>,port?:number,address?:string,callback?:(error:Error|null,bytes:number)=>void):void;send(msg:string|Uint8Array|ReadonlyArray<any>,port?:number,callback?:(error:Error|null,bytes:number)=>void):void;send(msg:string|Uint8Array|ReadonlyArray<any>,callback?:(error:Error|null,bytes:number)=>void):void;send(msg:string|Uint8Array,offset:number,length:number,port?:number,address?:string,callback?:(error:Error|null,bytes:number)=>void):void;send(msg:string|Uint8Array,offset:number,length:number,port?:number,callback?:(error:Error|null,bytes:number)=>void):void;send(msg:string|Uint8Array,offset:number,length:number,callback?:(error:Error|null,bytes:number)=>void):void;setBroadcast(flag:boolean):void;setMulticastInterface(multicastInterface:string):void;setMulticastLoopback(flag:boolean):void;setMulticastTTL(ttl:number):void;setRecvBufferSize(size:number):void;setSendBufferSize(size:number):void;setTTL(ttl:number):void;unref():this;addSourceSpecificMembership(sourceAddress:string,groupAddress:string,multicastInterface?:string):void;dropSourceSpecificMembership(sourceAddress:string,groupAddress:string,multicastInterface?:string):void;addListener(event:string,listener:(...args:any[])=>void):this;addListener(event:"close",listener:()=>void):this;addListener(event:"connect",listener:()=>void):this;addListener(event:"error",listener:(err:Error)=>void):this;addListener(event:"listening",listener:()=>void):this;addListener(event:"message",listener:(msg:Buffer,rinfo:RemoteInfo)=>void):this;emit(event:string|symbol,...args:any[]):boolean;emit(event:"close"):boolean;emit(event:"connect"):boolean;emit(event:"error",err:Error):boolean;emit(event:"listening"):boolean;emit(event:"message",msg:Buffer,rinfo:RemoteInfo):boolean;on(event:string,listener:(...args:any[])=>void):this;on(event:"close",listener:()=>void):this;on(event:"connect",listener:()=>void):this;on(event:"error",listener:(err:Error)=>void):this;on(event:"listening",listener:()=>void):this;on(event:"message",listener:(msg:Buffer,rinfo:RemoteInfo)=>void):this;once(event:string,listener:(...args:any[])=>void):this;once(event:"close",listener:()=>void):this;once(event:"connect",listener:()=>void):this;once(event:"error",listener:(err:Error)=>void):this;once(event:"listening",listener:()=>void):this;once(event:"message",listener:(msg:Buffer,rinfo:RemoteInfo)=>void):this;prependListener(event:string,listener:(...args:any[])=>void):this;prependListener(event:"close",listener:()=>void):this;prependListener(event:"connect",listener:()=>void):this;prependListener(event:"error",listener:(err:Error)=>void):this;prependListener(event:"listening",listener:()=>void):this;prependListener(event:"message",listener:(msg:Buffer,rinfo:RemoteInfo)=>void):this;prependOnceListener(event:string,listener:(...args:any[])=>void):this;prependOnceListener(event:"close",listener:()=>void):this;prependOnceListener(event:"connect",listener:()=>void):this;prependOnceListener(event:"error",listener:(err:Error)=>void):this;prependOnceListener(event:"listening",listener:()=>void):this;prependOnceListener(event:"message",listener:(msg:Buffer,rinfo:RemoteInfo)=>void):this;}}
1
+
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
+
4
+ declare module 'dgram' {
5
+ import { AddressInfo } from 'net';
6
+ import * as dns from 'dns';
7
+ import EventEmitter = require('events');
8
+
9
+ interface RemoteInfo {
10
+ address: string;
11
+ family: 'IPv4' | 'IPv6';
12
+ port: number;
13
+ size: number;
14
+ }
15
+
16
+ interface BindOptions {
17
+ port?: number | undefined;
18
+ address?: string | undefined;
19
+ exclusive?: boolean | undefined;
20
+ fd?: number | undefined;
21
+ }
22
+
23
+ type SocketType = "udp4" | "udp6";
24
+
25
+ interface SocketOptions {
26
+ type: SocketType;
27
+ reuseAddr?: boolean | undefined;
28
+ /**
29
+ * @default false
30
+ */
31
+ ipv6Only?: boolean | undefined;
32
+ recvBufferSize?: number | undefined;
33
+ sendBufferSize?: number | undefined;
34
+ lookup?: ((hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void) | undefined;
35
+ }
36
+
37
+ function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
38
+ function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
39
+
40
+ class Socket extends EventEmitter {
41
+ addMembership(multicastAddress: string, multicastInterface?: string): void;
42
+ address(): AddressInfo;
43
+ bind(port?: number, address?: string, callback?: () => void): void;
44
+ bind(port?: number, callback?: () => void): void;
45
+ bind(callback?: () => void): void;
46
+ bind(options: BindOptions, callback?: () => void): void;
47
+ close(callback?: () => void): void;
48
+ connect(port: number, address?: string, callback?: () => void): void;
49
+ connect(port: number, callback: () => void): void;
50
+ disconnect(): void;
51
+ dropMembership(multicastAddress: string, multicastInterface?: string): void;
52
+ getRecvBufferSize(): number;
53
+ getSendBufferSize(): number;
54
+ ref(): this;
55
+ remoteAddress(): AddressInfo;
56
+ send(msg: string | Uint8Array | ReadonlyArray<any>, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
57
+ send(msg: string | Uint8Array | ReadonlyArray<any>, port?: number, callback?: (error: Error | null, bytes: number) => void): void;
58
+ send(msg: string | Uint8Array | ReadonlyArray<any>, callback?: (error: Error | null, bytes: number) => void): void;
59
+ send(msg: string | Uint8Array, offset: number, length: number, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
60
+ send(msg: string | Uint8Array, offset: number, length: number, port?: number, callback?: (error: Error | null, bytes: number) => void): void;
61
+ send(msg: string | Uint8Array, offset: number, length: number, callback?: (error: Error | null, bytes: number) => void): void;
62
+ setBroadcast(flag: boolean): void;
63
+ setMulticastInterface(multicastInterface: string): void;
64
+ setMulticastLoopback(flag: boolean): void;
65
+ setMulticastTTL(ttl: number): void;
66
+ setRecvBufferSize(size: number): void;
67
+ setSendBufferSize(size: number): void;
68
+ setTTL(ttl: number): void;
69
+ unref(): this;
70
+ /**
71
+ * Tells the kernel to join a source-specific multicast channel at the given
72
+ * `sourceAddress` and `groupAddress`, using the `multicastInterface` with the
73
+ * `IP_ADD_SOURCE_MEMBERSHIP` socket option.
74
+ * If the `multicastInterface` argument
75
+ * is not specified, the operating system will choose one interface and will add
76
+ * membership to it.
77
+ * To add membership to every available interface, call
78
+ * `socket.addSourceSpecificMembership()` multiple times, once per interface.
79
+ */
80
+ addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
81
+
82
+ /**
83
+ * Instructs the kernel to leave a source-specific multicast channel at the given
84
+ * `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP`
85
+ * socket option. This method is automatically called by the kernel when the
86
+ * socket is closed or the process terminates, so most apps will never have
87
+ * reason to call this.
88
+ *
89
+ * If `multicastInterface` is not specified, the operating system will attempt to
90
+ * drop membership on all valid interfaces.
91
+ */
92
+ dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
93
+
94
+ /**
95
+ * events.EventEmitter
96
+ * 1. close
97
+ * 2. connect
98
+ * 3. error
99
+ * 4. listening
100
+ * 5. message
101
+ */
102
+ addListener(event: string, listener: (...args: any[]) => void): this;
103
+ addListener(event: "close", listener: () => void): this;
104
+ addListener(event: "connect", listener: () => void): this;
105
+ addListener(event: "error", listener: (err: Error) => void): this;
106
+ addListener(event: "listening", listener: () => void): this;
107
+ addListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
108
+
109
+ emit(event: string | symbol, ...args: any[]): boolean;
110
+ emit(event: "close"): boolean;
111
+ emit(event: "connect"): boolean;
112
+ emit(event: "error", err: Error): boolean;
113
+ emit(event: "listening"): boolean;
114
+ emit(event: "message", msg: Buffer, rinfo: RemoteInfo): boolean;
115
+
116
+ on(event: string, listener: (...args: any[]) => void): this;
117
+ on(event: "close", listener: () => void): this;
118
+ on(event: "connect", listener: () => void): this;
119
+ on(event: "error", listener: (err: Error) => void): this;
120
+ on(event: "listening", listener: () => void): this;
121
+ on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
122
+
123
+ once(event: string, listener: (...args: any[]) => void): this;
124
+ once(event: "close", listener: () => void): this;
125
+ once(event: "connect", listener: () => void): this;
126
+ once(event: "error", listener: (err: Error) => void): this;
127
+ once(event: "listening", listener: () => void): this;
128
+ once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
129
+
130
+ prependListener(event: string, listener: (...args: any[]) => void): this;
131
+ prependListener(event: "close", listener: () => void): this;
132
+ prependListener(event: "connect", listener: () => void): this;
133
+ prependListener(event: "error", listener: (err: Error) => void): this;
134
+ prependListener(event: "listening", listener: () => void): this;
135
+ prependListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
136
+
137
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
138
+ prependOnceListener(event: "close", listener: () => void): this;
139
+ prependOnceListener(event: "connect", listener: () => void): this;
140
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
141
+ prependOnceListener(event: "listening", listener: () => void): this;
142
+ prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
143
+ }
144
+ }
@@ -1,10 +1,383 @@
1
- declare module'node:dns'{export*from'dns';}declare module'dns'{const ADDRCONFIG:number;const V4MAPPED:number;const ALL:number;interface LookupOptions{family?:number;hints?:number;all?:boolean;verbatim?:boolean;}interface LookupOneOptions extends LookupOptions{all?:false;}interface LookupAllOptions extends LookupOptions{all:true;}interface LookupAddress{address:string;family:number;}function lookup(hostname:string,family:number,callback:(err:NodeJS.ErrnoException|null,address:string,family:number)=>void):void;function lookup(hostname:string,options:LookupOneOptions,callback:(err:NodeJS.ErrnoException|null,address:string,family:number)=>void):void;function lookup(hostname:string,options:LookupAllOptions,callback:(err:NodeJS.ErrnoException|null,addresses:LookupAddress[])=>void):void;function lookup(hostname:string,options:LookupOptions,callback:(err:NodeJS.ErrnoException|null,address:string|LookupAddress[],family:number)=>void):void;function lookup(hostname:string,callback:(err:NodeJS.ErrnoException|null,address:string,family:number)=>void):void;namespace lookup{function __promisify__(hostname:string,options:LookupAllOptions):Promise<LookupAddress[]>;function __promisify__(hostname:string,options?:LookupOneOptions|number):Promise<LookupAddress>;function __promisify__(hostname:string,options:LookupOptions):Promise<LookupAddress|LookupAddress[]>;}function lookupService(address:string,port:number,callback:(err:NodeJS.ErrnoException|null,hostname:string,service:string)=>void):void;namespace lookupService{function __promisify__(address:string,port:number):Promise<{hostname:string,service:string}>;}interface ResolveOptions{ttl:boolean;}interface ResolveWithTtlOptions extends ResolveOptions{ttl:true;}interface RecordWithTtl{address:string;ttl:number;}type AnyRecordWithTtl=AnyARecord|AnyAaaaRecord;interface AnyARecord extends RecordWithTtl{type:"A";}interface AnyAaaaRecord extends RecordWithTtl{type:"AAAA";}interface MxRecord{priority:number;exchange:string;}interface AnyMxRecord extends MxRecord{type:"MX";}interface NaptrRecord{flags:string;service:string;regexp:string;replacement:string;order:number;preference:number;}interface AnyNaptrRecord extends NaptrRecord{type:"NAPTR";}interface SoaRecord{nsname:string;hostmaster:string;serial:number;refresh:number;retry:number;expire:number;minttl:number;}interface AnySoaRecord extends SoaRecord{type:"SOA";}interface SrvRecord{priority:number;weight:number;port:number;name:string;}interface AnySrvRecord extends SrvRecord{type:"SRV";}interface AnyTxtRecord{type:"TXT";entries:string[];}interface AnyNsRecord{type:"NS";value:string;}interface AnyPtrRecord{type:"PTR";value:string;}interface AnyCnameRecord{type:"CNAME";value:string;}type AnyRecord=AnyARecord|
2
- AnyAaaaRecord|
3
- AnyCnameRecord|
4
- AnyMxRecord|
5
- AnyNaptrRecord|
6
- AnyNsRecord|
7
- AnyPtrRecord|
8
- AnySoaRecord|
9
- AnySrvRecord|
10
- AnyTxtRecord;function resolve(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;function resolve(hostname:string,rrtype:"A",callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;function resolve(hostname:string,rrtype:"AAAA",callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;function resolve(hostname:string,rrtype:"ANY",callback:(err:NodeJS.ErrnoException|null,addresses:AnyRecord[])=>void):void;function resolve(hostname:string,rrtype:"CNAME",callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;function resolve(hostname:string,rrtype:"MX",callback:(err:NodeJS.ErrnoException|null,addresses:MxRecord[])=>void):void;function resolve(hostname:string,rrtype:"NAPTR",callback:(err:NodeJS.ErrnoException|null,addresses:NaptrRecord[])=>void):void;function resolve(hostname:string,rrtype:"NS",callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;function resolve(hostname:string,rrtype:"PTR",callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;function resolve(hostname:string,rrtype:"SOA",callback:(err:NodeJS.ErrnoException|null,addresses:SoaRecord)=>void):void;function resolve(hostname:string,rrtype:"SRV",callback:(err:NodeJS.ErrnoException|null,addresses:SrvRecord[])=>void):void;function resolve(hostname:string,rrtype:"TXT",callback:(err:NodeJS.ErrnoException|null,addresses:string[][])=>void):void;function resolve(hostname:string,rrtype:string,callback:(err:NodeJS.ErrnoException|null,addresses:string[]|MxRecord[]|NaptrRecord[]|SoaRecord|SrvRecord[]|string[][]|AnyRecord[])=>void,):void;namespace resolve{function __promisify__(hostname:string,rrtype?:"A"|"AAAA"|"CNAME"|"NS"|"PTR"):Promise<string[]>;function __promisify__(hostname:string,rrtype:"ANY"):Promise<AnyRecord[]>;function __promisify__(hostname:string,rrtype:"MX"):Promise<MxRecord[]>;function __promisify__(hostname:string,rrtype:"NAPTR"):Promise<NaptrRecord[]>;function __promisify__(hostname:string,rrtype:"SOA"):Promise<SoaRecord>;function __promisify__(hostname:string,rrtype:"SRV"):Promise<SrvRecord[]>;function __promisify__(hostname:string,rrtype:"TXT"):Promise<string[][]>;function __promisify__(hostname:string,rrtype:string):Promise<string[]|MxRecord[]|NaptrRecord[]|SoaRecord|SrvRecord[]|string[][]|AnyRecord[]>;}function resolve4(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;function resolve4(hostname:string,options:ResolveWithTtlOptions,callback:(err:NodeJS.ErrnoException|null,addresses:RecordWithTtl[])=>void):void;function resolve4(hostname:string,options:ResolveOptions,callback:(err:NodeJS.ErrnoException|null,addresses:string[]|RecordWithTtl[])=>void):void;namespace resolve4{function __promisify__(hostname:string):Promise<string[]>;function __promisify__(hostname:string,options:ResolveWithTtlOptions):Promise<RecordWithTtl[]>;function __promisify__(hostname:string,options?:ResolveOptions):Promise<string[]|RecordWithTtl[]>;}function resolve6(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;function resolve6(hostname:string,options:ResolveWithTtlOptions,callback:(err:NodeJS.ErrnoException|null,addresses:RecordWithTtl[])=>void):void;function resolve6(hostname:string,options:ResolveOptions,callback:(err:NodeJS.ErrnoException|null,addresses:string[]|RecordWithTtl[])=>void):void;namespace resolve6{function __promisify__(hostname:string):Promise<string[]>;function __promisify__(hostname:string,options:ResolveWithTtlOptions):Promise<RecordWithTtl[]>;function __promisify__(hostname:string,options?:ResolveOptions):Promise<string[]|RecordWithTtl[]>;}function resolveCname(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;namespace resolveCname{function __promisify__(hostname:string):Promise<string[]>;}function resolveMx(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:MxRecord[])=>void):void;namespace resolveMx{function __promisify__(hostname:string):Promise<MxRecord[]>;}function resolveNaptr(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:NaptrRecord[])=>void):void;namespace resolveNaptr{function __promisify__(hostname:string):Promise<NaptrRecord[]>;}function resolveNs(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;namespace resolveNs{function __promisify__(hostname:string):Promise<string[]>;}function resolvePtr(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:string[])=>void):void;namespace resolvePtr{function __promisify__(hostname:string):Promise<string[]>;}function resolveSoa(hostname:string,callback:(err:NodeJS.ErrnoException|null,address:SoaRecord)=>void):void;namespace resolveSoa{function __promisify__(hostname:string):Promise<SoaRecord>;}function resolveSrv(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:SrvRecord[])=>void):void;namespace resolveSrv{function __promisify__(hostname:string):Promise<SrvRecord[]>;}function resolveTxt(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:string[][])=>void):void;namespace resolveTxt{function __promisify__(hostname:string):Promise<string[][]>;}function resolveAny(hostname:string,callback:(err:NodeJS.ErrnoException|null,addresses:AnyRecord[])=>void):void;namespace resolveAny{function __promisify__(hostname:string):Promise<AnyRecord[]>;}function reverse(ip:string,callback:(err:NodeJS.ErrnoException|null,hostnames:string[])=>void):void;function setServers(servers:ReadonlyArray<string>):void;function getServers():string[];const NODATA:string;const FORMERR:string;const SERVFAIL:string;const NOTFOUND:string;const NOTIMP:string;const REFUSED:string;const BADQUERY:string;const BADNAME:string;const BADFAMILY:string;const BADRESP:string;const CONNREFUSED:string;const TIMEOUT:string;const EOF:string;const FILE:string;const NOMEM:string;const DESTRUCTION:string;const BADSTR:string;const BADFLAGS:string;const NONAME:string;const BADHINTS:string;const NOTINITIALIZED:string;const LOADIPHLPAPI:string;const ADDRGETNETWORKPARAMS:string;const CANCELLED:string;interface ResolverOptions{timeout?:number;}class Resolver{constructor(options?:ResolverOptions);cancel():void;getServers:typeof getServers;resolve:typeof resolve;resolve4:typeof resolve4;resolve6:typeof resolve6;resolveAny:typeof resolveAny;resolveCname:typeof resolveCname;resolveMx:typeof resolveMx;resolveNaptr:typeof resolveNaptr;resolveNs:typeof resolveNs;resolvePtr:typeof resolvePtr;resolveSoa:typeof resolveSoa;resolveSrv:typeof resolveSrv;resolveTxt:typeof resolveTxt;reverse:typeof reverse;setLocalAddress(ipv4?:string,ipv6?:string):void;setServers:typeof setServers;}namespace promises{function getServers():string[];function lookup(hostname:string,family:number):Promise<LookupAddress>;function lookup(hostname:string,options:LookupOneOptions):Promise<LookupAddress>;function lookup(hostname:string,options:LookupAllOptions):Promise<LookupAddress[]>;function lookup(hostname:string,options:LookupOptions):Promise<LookupAddress|LookupAddress[]>;function lookup(hostname:string):Promise<LookupAddress>;function lookupService(address:string,port:number):Promise<{hostname:string,service:string}>;function resolve(hostname:string):Promise<string[]>;function resolve(hostname:string,rrtype:"A"):Promise<string[]>;function resolve(hostname:string,rrtype:"AAAA"):Promise<string[]>;function resolve(hostname:string,rrtype:"ANY"):Promise<AnyRecord[]>;function resolve(hostname:string,rrtype:"CNAME"):Promise<string[]>;function resolve(hostname:string,rrtype:"MX"):Promise<MxRecord[]>;function resolve(hostname:string,rrtype:"NAPTR"):Promise<NaptrRecord[]>;function resolve(hostname:string,rrtype:"NS"):Promise<string[]>;function resolve(hostname:string,rrtype:"PTR"):Promise<string[]>;function resolve(hostname:string,rrtype:"SOA"):Promise<SoaRecord>;function resolve(hostname:string,rrtype:"SRV"):Promise<SrvRecord[]>;function resolve(hostname:string,rrtype:"TXT"):Promise<string[][]>;function resolve(hostname:string,rrtype:string):Promise<string[]|MxRecord[]|NaptrRecord[]|SoaRecord|SrvRecord[]|string[][]|AnyRecord[]>;function resolve4(hostname:string):Promise<string[]>;function resolve4(hostname:string,options:ResolveWithTtlOptions):Promise<RecordWithTtl[]>;function resolve4(hostname:string,options:ResolveOptions):Promise<string[]|RecordWithTtl[]>;function resolve6(hostname:string):Promise<string[]>;function resolve6(hostname:string,options:ResolveWithTtlOptions):Promise<RecordWithTtl[]>;function resolve6(hostname:string,options:ResolveOptions):Promise<string[]|RecordWithTtl[]>;function resolveAny(hostname:string):Promise<AnyRecord[]>;function resolveCname(hostname:string):Promise<string[]>;function resolveMx(hostname:string):Promise<MxRecord[]>;function resolveNaptr(hostname:string):Promise<NaptrRecord[]>;function resolveNs(hostname:string):Promise<string[]>;function resolvePtr(hostname:string):Promise<string[]>;function resolveSoa(hostname:string):Promise<SoaRecord>;function resolveSrv(hostname:string):Promise<SrvRecord[]>;function resolveTxt(hostname:string):Promise<string[][]>;function reverse(ip:string):Promise<string[]>;function setServers(servers:ReadonlyArray<string>):void;class Resolver{constructor(options?:ResolverOptions);cancel():void;getServers:typeof getServers;resolve:typeof resolve;resolve4:typeof resolve4;resolve6:typeof resolve6;resolveAny:typeof resolveAny;resolveCname:typeof resolveCname;resolveMx:typeof resolveMx;resolveNaptr:typeof resolveNaptr;resolveNs:typeof resolveNs;resolvePtr:typeof resolvePtr;resolveSoa:typeof resolveSoa;resolveSrv:typeof resolveSrv;resolveTxt:typeof resolveTxt;reverse:typeof reverse;setLocalAddress(ipv4?:string,ipv6?:string):void;setServers:typeof setServers;}}}
1
+
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
+
4
+ declare module 'dns' {
5
+ // Supported getaddrinfo flags.
6
+ const ADDRCONFIG: number;
7
+ const V4MAPPED: number;
8
+ /**
9
+ * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as
10
+ * well as IPv4 mapped IPv6 addresses.
11
+ */
12
+ const ALL: number;
13
+
14
+ interface LookupOptions {
15
+ family?: number | undefined;
16
+ hints?: number | undefined;
17
+ all?: boolean | undefined;
18
+ verbatim?: boolean | undefined;
19
+ }
20
+
21
+ interface LookupOneOptions extends LookupOptions {
22
+ all?: false | undefined;
23
+ }
24
+
25
+ interface LookupAllOptions extends LookupOptions {
26
+ all: true;
27
+ }
28
+
29
+ interface LookupAddress {
30
+ address: string;
31
+ family: number;
32
+ }
33
+
34
+ function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
35
+ function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
36
+ function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void;
37
+ function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void;
38
+ function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
39
+
40
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
41
+ namespace lookup {
42
+ function __promisify__(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
43
+ function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise<LookupAddress>;
44
+ function __promisify__(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
45
+ }
46
+
47
+ function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void;
48
+
49
+ namespace lookupService {
50
+ function __promisify__(address: string, port: number): Promise<{ hostname: string, service: string }>;
51
+ }
52
+
53
+ interface ResolveOptions {
54
+ ttl: boolean;
55
+ }
56
+
57
+ interface ResolveWithTtlOptions extends ResolveOptions {
58
+ ttl: true;
59
+ }
60
+
61
+ interface RecordWithTtl {
62
+ address: string;
63
+ ttl: number;
64
+ }
65
+
66
+ /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */
67
+ type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord;
68
+
69
+ interface AnyARecord extends RecordWithTtl {
70
+ type: "A";
71
+ }
72
+
73
+ interface AnyAaaaRecord extends RecordWithTtl {
74
+ type: "AAAA";
75
+ }
76
+
77
+ interface MxRecord {
78
+ priority: number;
79
+ exchange: string;
80
+ }
81
+
82
+ interface AnyMxRecord extends MxRecord {
83
+ type: "MX";
84
+ }
85
+
86
+ interface NaptrRecord {
87
+ flags: string;
88
+ service: string;
89
+ regexp: string;
90
+ replacement: string;
91
+ order: number;
92
+ preference: number;
93
+ }
94
+
95
+ interface AnyNaptrRecord extends NaptrRecord {
96
+ type: "NAPTR";
97
+ }
98
+
99
+ interface SoaRecord {
100
+ nsname: string;
101
+ hostmaster: string;
102
+ serial: number;
103
+ refresh: number;
104
+ retry: number;
105
+ expire: number;
106
+ minttl: number;
107
+ }
108
+
109
+ interface AnySoaRecord extends SoaRecord {
110
+ type: "SOA";
111
+ }
112
+
113
+ interface SrvRecord {
114
+ priority: number;
115
+ weight: number;
116
+ port: number;
117
+ name: string;
118
+ }
119
+
120
+ interface AnySrvRecord extends SrvRecord {
121
+ type: "SRV";
122
+ }
123
+
124
+ interface AnyTxtRecord {
125
+ type: "TXT";
126
+ entries: string[];
127
+ }
128
+
129
+ interface AnyNsRecord {
130
+ type: "NS";
131
+ value: string;
132
+ }
133
+
134
+ interface AnyPtrRecord {
135
+ type: "PTR";
136
+ value: string;
137
+ }
138
+
139
+ interface AnyCnameRecord {
140
+ type: "CNAME";
141
+ value: string;
142
+ }
143
+
144
+ type AnyRecord = AnyARecord |
145
+ AnyAaaaRecord |
146
+ AnyCnameRecord |
147
+ AnyMxRecord |
148
+ AnyNaptrRecord |
149
+ AnyNsRecord |
150
+ AnyPtrRecord |
151
+ AnySoaRecord |
152
+ AnySrvRecord |
153
+ AnyTxtRecord;
154
+
155
+ function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
156
+ function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
157
+ function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
158
+ function resolve(hostname: string, rrtype: "ANY", callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
159
+ function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
160
+ function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
161
+ function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
162
+ function resolve(hostname: string, rrtype: "NS", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
163
+ function resolve(hostname: string, rrtype: "PTR", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
164
+ function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void;
165
+ function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
166
+ function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
167
+ function resolve(
168
+ hostname: string,
169
+ rrtype: string,
170
+ callback: (err: NodeJS.ErrnoException | null, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]) => void,
171
+ ): void;
172
+
173
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
174
+ namespace resolve {
175
+ function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
176
+ function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
177
+ function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
178
+ function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
179
+ function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
180
+ function __promisify__(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
181
+ function __promisify__(hostname: string, rrtype: "TXT"): Promise<string[][]>;
182
+ function __promisify__(hostname: string, rrtype: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
183
+ }
184
+
185
+ function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
186
+ function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
187
+ function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
188
+
189
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
190
+ namespace resolve4 {
191
+ function __promisify__(hostname: string): Promise<string[]>;
192
+ function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
193
+ function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
194
+ }
195
+
196
+ function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
197
+ function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
198
+ function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
199
+
200
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
201
+ namespace resolve6 {
202
+ function __promisify__(hostname: string): Promise<string[]>;
203
+ function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
204
+ function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
205
+ }
206
+
207
+ function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
208
+ namespace resolveCname {
209
+ function __promisify__(hostname: string): Promise<string[]>;
210
+ }
211
+
212
+ function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
213
+ namespace resolveMx {
214
+ function __promisify__(hostname: string): Promise<MxRecord[]>;
215
+ }
216
+
217
+ function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
218
+ namespace resolveNaptr {
219
+ function __promisify__(hostname: string): Promise<NaptrRecord[]>;
220
+ }
221
+
222
+ function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
223
+ namespace resolveNs {
224
+ function __promisify__(hostname: string): Promise<string[]>;
225
+ }
226
+
227
+ function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
228
+ namespace resolvePtr {
229
+ function __promisify__(hostname: string): Promise<string[]>;
230
+ }
231
+
232
+ function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void;
233
+ namespace resolveSoa {
234
+ function __promisify__(hostname: string): Promise<SoaRecord>;
235
+ }
236
+
237
+ function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
238
+ namespace resolveSrv {
239
+ function __promisify__(hostname: string): Promise<SrvRecord[]>;
240
+ }
241
+
242
+ function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
243
+ namespace resolveTxt {
244
+ function __promisify__(hostname: string): Promise<string[][]>;
245
+ }
246
+
247
+ function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
248
+ namespace resolveAny {
249
+ function __promisify__(hostname: string): Promise<AnyRecord[]>;
250
+ }
251
+
252
+ function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
253
+ function setServers(servers: ReadonlyArray<string>): void;
254
+ function getServers(): string[];
255
+
256
+ // Error codes
257
+ const NODATA: string;
258
+ const FORMERR: string;
259
+ const SERVFAIL: string;
260
+ const NOTFOUND: string;
261
+ const NOTIMP: string;
262
+ const REFUSED: string;
263
+ const BADQUERY: string;
264
+ const BADNAME: string;
265
+ const BADFAMILY: string;
266
+ const BADRESP: string;
267
+ const CONNREFUSED: string;
268
+ const TIMEOUT: string;
269
+ const EOF: string;
270
+ const FILE: string;
271
+ const NOMEM: string;
272
+ const DESTRUCTION: string;
273
+ const BADSTR: string;
274
+ const BADFLAGS: string;
275
+ const NONAME: string;
276
+ const BADHINTS: string;
277
+ const NOTINITIALIZED: string;
278
+ const LOADIPHLPAPI: string;
279
+ const ADDRGETNETWORKPARAMS: string;
280
+ const CANCELLED: string;
281
+
282
+ interface ResolverOptions {
283
+ timeout?: number | undefined;
284
+ }
285
+
286
+ class Resolver {
287
+ constructor(options?: ResolverOptions);
288
+ cancel(): void;
289
+ getServers: typeof getServers;
290
+ resolve: typeof resolve;
291
+ resolve4: typeof resolve4;
292
+ resolve6: typeof resolve6;
293
+ resolveAny: typeof resolveAny;
294
+ resolveCname: typeof resolveCname;
295
+ resolveMx: typeof resolveMx;
296
+ resolveNaptr: typeof resolveNaptr;
297
+ resolveNs: typeof resolveNs;
298
+ resolvePtr: typeof resolvePtr;
299
+ resolveSoa: typeof resolveSoa;
300
+ resolveSrv: typeof resolveSrv;
301
+ resolveTxt: typeof resolveTxt;
302
+ reverse: typeof reverse;
303
+ setLocalAddress(ipv4?: string, ipv6?: string): void;
304
+ setServers: typeof setServers;
305
+ }
306
+
307
+ namespace promises {
308
+ function getServers(): string[];
309
+
310
+ function lookup(hostname: string, family: number): Promise<LookupAddress>;
311
+ function lookup(hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
312
+ function lookup(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
313
+ function lookup(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
314
+ function lookup(hostname: string): Promise<LookupAddress>;
315
+
316
+ function lookupService(address: string, port: number): Promise<{ hostname: string, service: string }>;
317
+
318
+ function resolve(hostname: string): Promise<string[]>;
319
+ function resolve(hostname: string, rrtype: "A"): Promise<string[]>;
320
+ function resolve(hostname: string, rrtype: "AAAA"): Promise<string[]>;
321
+ function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
322
+ function resolve(hostname: string, rrtype: "CNAME"): Promise<string[]>;
323
+ function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
324
+ function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
325
+ function resolve(hostname: string, rrtype: "NS"): Promise<string[]>;
326
+ function resolve(hostname: string, rrtype: "PTR"): Promise<string[]>;
327
+ function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
328
+ function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
329
+ function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
330
+ function resolve(hostname: string, rrtype: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
331
+
332
+ function resolve4(hostname: string): Promise<string[]>;
333
+ function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
334
+ function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
335
+
336
+ function resolve6(hostname: string): Promise<string[]>;
337
+ function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
338
+ function resolve6(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
339
+
340
+ function resolveAny(hostname: string): Promise<AnyRecord[]>;
341
+
342
+ function resolveCname(hostname: string): Promise<string[]>;
343
+
344
+ function resolveMx(hostname: string): Promise<MxRecord[]>;
345
+
346
+ function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
347
+
348
+ function resolveNs(hostname: string): Promise<string[]>;
349
+
350
+ function resolvePtr(hostname: string): Promise<string[]>;
351
+
352
+ function resolveSoa(hostname: string): Promise<SoaRecord>;
353
+
354
+ function resolveSrv(hostname: string): Promise<SrvRecord[]>;
355
+
356
+ function resolveTxt(hostname: string): Promise<string[][]>;
357
+
358
+ function reverse(ip: string): Promise<string[]>;
359
+
360
+ function setServers(servers: ReadonlyArray<string>): void;
361
+
362
+ class Resolver {
363
+ constructor(options?: ResolverOptions);
364
+ cancel(): void;
365
+ getServers: typeof getServers;
366
+ resolve: typeof resolve;
367
+ resolve4: typeof resolve4;
368
+ resolve6: typeof resolve6;
369
+ resolveAny: typeof resolveAny;
370
+ resolveCname: typeof resolveCname;
371
+ resolveMx: typeof resolveMx;
372
+ resolveNaptr: typeof resolveNaptr;
373
+ resolveNs: typeof resolveNs;
374
+ resolvePtr: typeof resolvePtr;
375
+ resolveSoa: typeof resolveSoa;
376
+ resolveSrv: typeof resolveSrv;
377
+ resolveTxt: typeof resolveTxt;
378
+ reverse: typeof reverse;
379
+ setLocalAddress(ipv4?: string, ipv6?: string): void;
380
+ setServers: typeof setServers;
381
+ }
382
+ }
383
+ }
@@ -1 +1,27 @@
1
- declare module'node:domain'{export*from'domain';}declare module'domain'{import EventEmitter=require('node:events');global{namespace NodeJS{interface Domain extends EventEmitter{run<T>(fn:(...args:any[])=>T,...args:any[]):T;add(emitter:EventEmitter|Timer):void;remove(emitter:EventEmitter|Timer):void;bind<T extends Function>(cb:T):T;intercept<T extends Function>(cb:T):T;}}}interface Domain extends NodeJS.Domain{}class Domain extends EventEmitter{members:Array<EventEmitter|NodeJS.Timer>;enter():void;exit():void;}function create():Domain;}
1
+
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
+
4
+ declare module 'domain' {
5
+ import EventEmitter = require('events');
6
+
7
+ global {
8
+ namespace NodeJS {
9
+ interface Domain extends EventEmitter {
10
+ run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
11
+ add(emitter: EventEmitter | Timer): void;
12
+ remove(emitter: EventEmitter | Timer): void;
13
+ bind<T extends Function>(cb: T): T;
14
+ intercept<T extends Function>(cb: T): T;
15
+ }
16
+ }
17
+ }
18
+
19
+ interface Domain extends NodeJS.Domain {}
20
+ class Domain extends EventEmitter {
21
+ members: Array<EventEmitter | NodeJS.Timer>;
22
+ enter(): void;
23
+ exit(): void;
24
+ }
25
+
26
+ function create(): Domain;
27
+ }