@chainlink/cre-sdk 1.1.2 → 1.1.3-alpha.1

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.
package/README.md CHANGED
@@ -8,6 +8,7 @@ The Chainlink Runtime Environment (CRE) SDK for TypeScript enables developers to
8
8
  - [Examples](#examples)
9
9
  - [Simulate locally with CRE CLI](#simulate-locally-with-cre-cli)
10
10
  - [Installation](#installation)
11
+ - [Runtime Compatibility Constraints](#runtime-compatibility-constraints)
11
12
  - [Core Concepts](#core-concepts)
12
13
  - [Workflows](#workflows)
13
14
  - [Runtime Modes](#runtime-modes)
@@ -47,10 +48,20 @@ This package must be used along with the [CRE CLI tool](https://github.com/smart
47
48
 
48
49
  ## Prerequisites
49
50
 
50
- 1. the [bun runtime](https://bun.com/). The wasm compilation currently is only supported by the bun runtime which has near-complete NodeJS compatibility.
51
+ 1. the [bun runtime](https://bun.com/) for local tooling and workflow compilation.
51
52
 
52
53
  2. the [CRE CLI tool](https://github.com/smartcontractkit/cre-cli) installed.
53
54
 
55
+ ## Runtime Compatibility Constraints
56
+
57
+ CRE workflows are compiled to WASM and executed through Javy (QuickJS). This is **not** a full Node.js runtime.
58
+
59
+ - Node built-ins like `node:fs`, `node:crypto`, `node:http`, `node:net`, etc. are not supported in workflows.
60
+ - Browser globals like `fetch`, `window`, and `setTimeout` are also not available in workflow runtime.
61
+ - `cre compile:workflow` / `cre-compile` now validates workflow source and fails fast when unsupported APIs are used.
62
+
63
+ Use CRE capabilities (for example, `cre.capabilities.HTTPClient`) instead of direct Node/browser APIs.
64
+
54
65
  ## Getting Started
55
66
 
56
67
  We recommend you consult the [getting started docs](https://docs.chain.link/cre/getting-started/cli-installation) and install the CRE CLI.
@@ -10,7 +10,7 @@ import { file_values_v1_values } from '../../../../values/v1/values_pb';
10
10
  */
11
11
  export const file_capabilities_blockchain_evm_v1alpha_client =
12
12
  /*@__PURE__*/
13
- fileDesc('CjBjYXBhYmlsaXRpZXM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lc3RuZXQtc2Vwb2xpYRDo9Kel8+aWwIcBChkKDWpvdmF5LW1haW5uZXQQtcPEmqGA35IVChkKDWpvdmF5LXRlc3RuZXQQ5M+KhN6y3o4NChoKDnBoYXJvcy1tYWlubmV0EMjBh571782hbAoaCg5wbGFzbWEtdGVzdG5ldBDVm7+lw7SZhzcKGwoPcG9seWdvbi1tYWlubmV0ELGr5PCakoadOAohChRwb2x5Z29uLXRlc3RuZXQtYW1veRDNj9bf8ceQ+uEBCiQKGHByaXZhdGUtdGVzdG5ldC1hbmRlc2l0ZRDUppilwY/c/F9C5QEKJ2NvbS5jYXBhYmlsaXRpZXMuYmxvY2tjaGFpbi5ldm0udjFhbHBoYUILQ2xpZW50UHJvdG9QAaICA0NCRaoCI0NhcGFiaWxpdGllcy5CbG9ja2NoYWluLkV2bS5WMWFscGhhygIjQ2FwYWJpbGl0aWVzXEJsb2NrY2hhaW5cRXZtXFYxYWxwaGHiAi9DYXBhYmlsaXRpZXNcQmxvY2tjaGFpblxFdm1cVjFhbHBoYVxHUEJNZXRhZGF0YeoCJkNhcGFiaWxpdGllczo6QmxvY2tjaGFpbjo6RXZtOjpWMWFscGhhYgZwcm90bzM', [file_sdk_v1alpha_sdk, file_tools_generator_v1alpha_cre_metadata, file_values_v1_values]);
14
14
  /**
15
15
  * Describes the message capabilities.blockchain.evm.v1alpha.TopicValues.
16
16
  * Use `create(TopicValuesSchema)` to create a new message.
@@ -43,6 +43,7 @@ export declare class ClientCapability {
43
43
  readonly 'ethereum-mainnet-base-1': 15971525489660198786n;
44
44
  readonly 'ethereum-mainnet-optimism-1': 3734403246176062136n;
45
45
  readonly 'ethereum-mainnet-worldchain-1': 2049429975587534727n;
46
+ readonly 'ethereum-mainnet-xlayer-1': 3016212468291539606n;
46
47
  readonly 'ethereum-mainnet-zksync-1': 1562403441176082196n;
47
48
  readonly 'ethereum-testnet-sepolia': 16015286601757825753n;
48
49
  readonly 'ethereum-testnet-sepolia-arbitrum-1': 3478487238524512106n;
@@ -53,7 +54,9 @@ export declare class ClientCapability {
53
54
  readonly 'ethereum-testnet-sepolia-zksync-1': 6898391096552792247n;
54
55
  readonly 'hyperliquid-testnet': 4286062357653186312n;
55
56
  readonly 'ink-testnet-sepolia': 9763904284804119144n;
57
+ readonly 'jovay-mainnet': 1523760397290643893n;
56
58
  readonly 'jovay-testnet': 945045181441419236n;
59
+ readonly 'pharos-mainnet': 7801139999541420232n;
57
60
  readonly 'plasma-testnet': 3967220077692964309n;
58
61
  readonly 'polygon-mainnet': 4051577828743386545n;
59
62
  readonly 'polygon-testnet-amoy': 16281711391670634445n;
@@ -53,6 +53,7 @@ export class ClientCapability {
53
53
  'ethereum-mainnet-base-1': 15971525489660198786n,
54
54
  'ethereum-mainnet-optimism-1': 3734403246176062136n,
55
55
  'ethereum-mainnet-worldchain-1': 2049429975587534727n,
56
+ 'ethereum-mainnet-xlayer-1': 3016212468291539606n,
56
57
  'ethereum-mainnet-zksync-1': 1562403441176082196n,
57
58
  'ethereum-testnet-sepolia': 16015286601757825753n,
58
59
  'ethereum-testnet-sepolia-arbitrum-1': 3478487238524512106n,
@@ -63,7 +64,9 @@ export class ClientCapability {
63
64
  'ethereum-testnet-sepolia-zksync-1': 6898391096552792247n,
64
65
  'hyperliquid-testnet': 4286062357653186312n,
65
66
  'ink-testnet-sepolia': 9763904284804119144n,
67
+ 'jovay-mainnet': 1523760397290643893n,
66
68
  'jovay-testnet': 945045181441419236n,
69
+ 'pharos-mainnet': 7801139999541420232n,
67
70
  'plasma-testnet': 3967220077692964309n,
68
71
  'polygon-mainnet': 4051577828743386545n,
69
72
  'polygon-testnet-amoy': 16281711391670634445n,
package/dist/index.d.ts CHANGED
@@ -1 +1,4 @@
1
+ /// <reference types="./sdk/types/global" />
2
+ /// <reference types="./sdk/types/restricted-apis" />
3
+ /// <reference types="./sdk/types/restricted-node-modules" />
1
4
  export * from './sdk';
@@ -1,5 +1,8 @@
1
- // Global type declarations for the CRE SDK runtime
2
- // Those are the methods that the Host exposes to the Guest.
1
+ // Global type declarations for the CRE SDK runtime.
2
+ // These are the methods and globals exposed by the Host to the Guest.
3
+
4
+ type ExistingGlobal<K extends PropertyKey, Fallback> =
5
+ typeof globalThis extends Record<K, infer T> ? T : Fallback
3
6
 
4
7
  /**
5
8
  * Host functions exposed by the CRE runtime to WASM guests
@@ -78,6 +81,106 @@ declare global {
78
81
  * @returns Unix timestamp in milliseconds
79
82
  */
80
83
  function now(): number
84
+
85
+ /**
86
+ * Console API available in the QuickJS runtime
87
+ */
88
+ type CreConsole = {
89
+ log(...args: unknown[]): void
90
+ warn(...args: unknown[]): void
91
+ error(...args: unknown[]): void
92
+ info(...args: unknown[]): void
93
+ debug(...args: unknown[]): void
94
+ }
95
+ var console: ExistingGlobal<'console', CreConsole>
96
+
97
+ /**
98
+ * TextEncoder/TextDecoder APIs available via Javy's text_encoding support
99
+ */
100
+ interface CreTextEncoderEncodeIntoResult {
101
+ read: number
102
+ written: number
103
+ }
104
+
105
+ interface CreTextEncoder {
106
+ readonly encoding: string
107
+ encode(input?: string): Uint8Array
108
+ encodeInto(input: string, dest: Uint8Array): CreTextEncoderEncodeIntoResult
109
+ }
110
+ var TextEncoder: ExistingGlobal<
111
+ 'TextEncoder',
112
+ { prototype: CreTextEncoder; new (): CreTextEncoder }
113
+ >
114
+
115
+ interface CreTextDecoder {
116
+ readonly encoding: string
117
+ readonly fatal: boolean
118
+ readonly ignoreBOM: boolean
119
+ decode(input?: ArrayBuffer | ArrayBufferView, options?: { stream?: boolean }): string
120
+ }
121
+ var TextDecoder: ExistingGlobal<
122
+ 'TextDecoder',
123
+ {
124
+ prototype: CreTextDecoder
125
+ new (label?: string, options?: { fatal?: boolean; ignoreBOM?: boolean }): CreTextDecoder
126
+ }
127
+ >
128
+
129
+ /**
130
+ * Base64 encoding/decoding — exposed via prepareRuntime() from node:buffer
131
+ */
132
+ function atob(encodedData: string): string
133
+ function btoa(stringToEncode: string): string
134
+
135
+ /**
136
+ * URL and URLSearchParams — exposed via prepareRuntime() from node:url
137
+ */
138
+ interface CreURLSearchParams {
139
+ append(name: string, value: string): void
140
+ delete(name: string): void
141
+ get(name: string): string | null
142
+ getAll(name: string): string[]
143
+ has(name: string): boolean
144
+ set(name: string, value: string): void
145
+ sort(): void
146
+ toString(): string
147
+ forEach(callback: (value: string, key: string, parent: CreURLSearchParams) => void): void
148
+ entries(): IterableIterator<[string, string]>
149
+ keys(): IterableIterator<string>
150
+ values(): IterableIterator<string>
151
+ [Symbol.iterator](): IterableIterator<[string, string]>
152
+ readonly size: number
153
+ }
154
+ var URLSearchParams: ExistingGlobal<
155
+ 'URLSearchParams',
156
+ {
157
+ prototype: CreURLSearchParams
158
+ new (
159
+ init?: string | Record<string, string> | [string, string][] | CreURLSearchParams,
160
+ ): CreURLSearchParams
161
+ }
162
+ >
163
+
164
+ interface CreURL {
165
+ hash: string
166
+ host: string
167
+ hostname: string
168
+ href: string
169
+ readonly origin: string
170
+ password: string
171
+ pathname: string
172
+ port: string
173
+ protocol: string
174
+ search: string
175
+ readonly searchParams: CreURLSearchParams
176
+ username: string
177
+ toString(): string
178
+ toJSON(): string
179
+ }
180
+ var URL: ExistingGlobal<
181
+ 'URL',
182
+ { prototype: CreURL; new (url: string, base?: string | CreURL): CreURL }
183
+ >
81
184
  }
82
185
 
83
186
  export {}
@@ -1,27 +1,22 @@
1
1
  declare global {
2
- /** @deprecated fetch is not available in CRE WASM workflows. Use cre.capabilities.HTTPClient instead. */
3
- const fetch: never
4
-
5
- /** @deprecated window is not available in CRE WASM workflows. */
6
- const window: never
7
-
8
- /** @deprecated document is not available in CRE WASM workflows. */
9
- const document: never
10
-
11
- /** @deprecated XMLHttpRequest is not available in CRE WASM workflows. Use cre.capabilities.HTTPClient instead. */
12
- const XMLHttpRequest: never
13
-
14
- /** @deprecated localStorage is not available in CRE WASM workflows. */
15
- const localStorage: never
16
-
17
- /** @deprecated sessionStorage is not available in CRE WASM workflows. */
18
- const sessionStorage: never
19
-
20
- /** @deprecated setTimeout is not available in CRE WASM workflows. Use cre.capabilities.CronCapability for scheduling. */
21
- const setTimeout: never
22
-
23
- /** @deprecated setInterval is not available in CRE WASM workflows. Use cre.capabilities.CronCapability for scheduling. */
24
- const setInterval: never
2
+ /**
3
+ * @deprecated fetch is not available in CRE WASM workflows.
4
+ * Use cre.capabilities.HTTPClient instead.
5
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
6
+ */
7
+ function fetch(_notAvailable: never): never
8
+
9
+ /**
10
+ * @deprecated setTimeout is not available in CRE WASM workflows. Use cre.capabilities.CronCapability for scheduling.
11
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
12
+ */
13
+ function setTimeout(_notAvailable: never, ..._args: never[]): never
14
+
15
+ /**
16
+ * @deprecated setInterval is not available in CRE WASM workflows. Use cre.capabilities.CronCapability for scheduling.
17
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
18
+ */
19
+ function setInterval(_notAvailable: never, ..._args: never[]): never
25
20
  }
26
21
 
27
22
  export {}
@@ -0,0 +1,405 @@
1
+ // Restricted Node.js modules that are not available in CRE WASM workflows.
2
+ // These modules require native bindings or system access that cannot run in WebAssembly.
3
+ // Importing from these modules is allowed by TypeScript, but all exports are typed as
4
+ // `never` so any usage produces a clear error at the call site.
5
+ // See https://docs.chain.link/cre/concepts/typescript-wasm-runtime
6
+
7
+ /**
8
+ * @deprecated node:crypto is not available in CRE WASM workflows. It requires native bindings that cannot run in WebAssembly.
9
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
10
+ */
11
+ declare module 'node:crypto' {
12
+ export const randomBytes: never
13
+ export const randomUUID: never
14
+ export const randomInt: never
15
+ export const randomFillSync: never
16
+ export const randomFill: never
17
+ export const createHash: never
18
+ export const createHmac: never
19
+ export const createCipheriv: never
20
+ export const createDecipheriv: never
21
+ export const createSign: never
22
+ export const createVerify: never
23
+ export const createDiffieHellman: never
24
+ export const createDiffieHellmanGroup: never
25
+ export const createECDH: never
26
+ export const generateKey: never
27
+ export const generateKeySync: never
28
+ export const generateKeyPair: never
29
+ export const generateKeyPairSync: never
30
+ export const createPrivateKey: never
31
+ export const createPublicKey: never
32
+ export const createSecretKey: never
33
+ export const pbkdf2: never
34
+ export const pbkdf2Sync: never
35
+ export const scrypt: never
36
+ export const scryptSync: never
37
+ export const timingSafeEqual: never
38
+ export const publicEncrypt: never
39
+ export const publicDecrypt: never
40
+ export const privateDecrypt: never
41
+ export const privateEncrypt: never
42
+ export const getCiphers: never
43
+ export const getHashes: never
44
+ export const getCurves: never
45
+ export const getFips: never
46
+ export const setFips: never
47
+ export const getRandomValues: never
48
+ export const Hash: never
49
+ export const Hmac: never
50
+ export const Sign: never
51
+ export const Verify: never
52
+ export const KeyObject: never
53
+ export const Certificate: never
54
+ export const ECDH: never
55
+ export const DiffieHellman: never
56
+ export const DiffieHellmanGroup: never
57
+ export const Cipheriv: never
58
+ export const Decipheriv: never
59
+ export const webcrypto: never
60
+ export const subtle: never
61
+ export const crypto: never
62
+ export const fips: never
63
+ export const constants: never
64
+ }
65
+
66
+ /**
67
+ * @deprecated node:fs is not available in CRE WASM workflows. It requires filesystem access that is not available in WebAssembly.
68
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
69
+ */
70
+ declare module 'node:fs' {
71
+ export const readFile: never
72
+ export const readFileSync: never
73
+ export const writeFile: never
74
+ export const writeFileSync: never
75
+ export const appendFile: never
76
+ export const appendFileSync: never
77
+ export const readdir: never
78
+ export const readdirSync: never
79
+ export const mkdir: never
80
+ export const mkdirSync: never
81
+ export const mkdtemp: never
82
+ export const mkdtempSync: never
83
+ export const rm: never
84
+ export const rmSync: never
85
+ export const rmdir: never
86
+ export const rmdirSync: never
87
+ export const unlink: never
88
+ export const unlinkSync: never
89
+ export const stat: never
90
+ export const statSync: never
91
+ export const lstat: never
92
+ export const lstatSync: never
93
+ export const fstat: never
94
+ export const fstatSync: never
95
+ export const statfs: never
96
+ export const statfsSync: never
97
+ export const exists: never
98
+ export const existsSync: never
99
+ export const copyFile: never
100
+ export const copyFileSync: never
101
+ export const cp: never
102
+ export const cpSync: never
103
+ export const rename: never
104
+ export const renameSync: never
105
+ export const readlink: never
106
+ export const readlinkSync: never
107
+ export const symlink: never
108
+ export const symlinkSync: never
109
+ export const link: never
110
+ export const linkSync: never
111
+ export const open: never
112
+ export const openSync: never
113
+ export const close: never
114
+ export const closeSync: never
115
+ export const read: never
116
+ export const readSync: never
117
+ export const write: never
118
+ export const writeSync: never
119
+ export const truncate: never
120
+ export const truncateSync: never
121
+ export const ftruncate: never
122
+ export const ftruncateSync: never
123
+ export const chmod: never
124
+ export const chmodSync: never
125
+ export const chown: never
126
+ export const chownSync: never
127
+ export const utimes: never
128
+ export const utimesSync: never
129
+ export const access: never
130
+ export const accessSync: never
131
+ export const createReadStream: never
132
+ export const createWriteStream: never
133
+ export const watch: never
134
+ export const watchFile: never
135
+ export const unwatchFile: never
136
+ export const realpath: never
137
+ export const realpathSync: never
138
+ export const promises: never
139
+ export const constants: never
140
+ export const Dir: never
141
+ export const Dirent: never
142
+ export const Stats: never
143
+ export const ReadStream: never
144
+ export const WriteStream: never
145
+ export const FileHandle: never
146
+ export const FSWatcher: never
147
+ }
148
+
149
+ /**
150
+ * @deprecated node:fs/promises is not available in CRE WASM workflows. It requires filesystem access that is not available in WebAssembly.
151
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
152
+ */
153
+ declare module 'node:fs/promises' {
154
+ export const readFile: never
155
+ export const writeFile: never
156
+ export const appendFile: never
157
+ export const readdir: never
158
+ export const mkdir: never
159
+ export const mkdtemp: never
160
+ export const rm: never
161
+ export const rmdir: never
162
+ export const unlink: never
163
+ export const stat: never
164
+ export const lstat: never
165
+ export const statfs: never
166
+ export const copyFile: never
167
+ export const cp: never
168
+ export const rename: never
169
+ export const readlink: never
170
+ export const symlink: never
171
+ export const link: never
172
+ export const open: never
173
+ export const truncate: never
174
+ export const chmod: never
175
+ export const chown: never
176
+ export const utimes: never
177
+ export const access: never
178
+ export const realpath: never
179
+ export const watch: never
180
+ export const constants: never
181
+ export const FileHandle: never
182
+ }
183
+
184
+ /**
185
+ * @deprecated node:net is not available in CRE WASM workflows. It requires network access. Use cre.capabilities.HTTPClient instead.
186
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
187
+ */
188
+ declare module 'node:net' {
189
+ export const createServer: never
190
+ export const createConnection: never
191
+ export const connect: never
192
+ export const isIP: never
193
+ export const isIPv4: never
194
+ export const isIPv6: never
195
+ export const getDefaultAutoSelectFamily: never
196
+ export const setDefaultAutoSelectFamily: never
197
+ export const Socket: never
198
+ export const Server: never
199
+ export const BlockList: never
200
+ export const SocketAddress: never
201
+ }
202
+
203
+ /**
204
+ * @deprecated node:http is not available in CRE WASM workflows. It requires network access. Use cre.capabilities.HTTPClient instead.
205
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
206
+ */
207
+ declare module 'node:http' {
208
+ export const createServer: never
209
+ export const request: never
210
+ export const get: never
211
+ export const validateHeaderName: never
212
+ export const validateHeaderValue: never
213
+ export const setMaxIdleHTTPParsers: never
214
+ export const Server: never
215
+ export const ClientRequest: never
216
+ export const IncomingMessage: never
217
+ export const ServerResponse: never
218
+ export const OutgoingMessage: never
219
+ export const Agent: never
220
+ export const globalAgent: never
221
+ export const METHODS: never
222
+ export const STATUS_CODES: never
223
+ export const maxHeaderSize: never
224
+ }
225
+
226
+ /**
227
+ * @deprecated node:https is not available in CRE WASM workflows. It requires network access. Use cre.capabilities.HTTPClient instead.
228
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
229
+ */
230
+ declare module 'node:https' {
231
+ export const createServer: never
232
+ export const request: never
233
+ export const get: never
234
+ export const Server: never
235
+ export const Agent: never
236
+ export const globalAgent: never
237
+ }
238
+
239
+ /**
240
+ * @deprecated node:child_process is not available in CRE WASM workflows. It requires OS process spawning that is not available in WebAssembly.
241
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
242
+ */
243
+ declare module 'node:child_process' {
244
+ export const spawn: never
245
+ export const spawnSync: never
246
+ export const exec: never
247
+ export const execSync: never
248
+ export const execFile: never
249
+ export const execFileSync: never
250
+ export const fork: never
251
+ export const ChildProcess: never
252
+ }
253
+
254
+ /**
255
+ * @deprecated node:os is not available in CRE WASM workflows. It requires OS access that is not available in WebAssembly.
256
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
257
+ */
258
+ declare module 'node:os' {
259
+ export const hostname: never
260
+ export const platform: never
261
+ export const arch: never
262
+ export const type: never
263
+ export const release: never
264
+ export const version: never
265
+ export const machine: never
266
+ export const cpus: never
267
+ export const availableParallelism: never
268
+ export const freemem: never
269
+ export const totalmem: never
270
+ export const uptime: never
271
+ export const loadavg: never
272
+ export const homedir: never
273
+ export const tmpdir: never
274
+ export const userInfo: never
275
+ export const networkInterfaces: never
276
+ export const endianness: never
277
+ export const getPriority: never
278
+ export const setPriority: never
279
+ export const EOL: never
280
+ export const devNull: never
281
+ export const constants: never
282
+ }
283
+
284
+ /**
285
+ * @deprecated node:stream is not available in CRE WASM workflows. It requires native bindings that cannot run in WebAssembly.
286
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
287
+ */
288
+ declare module 'node:stream' {
289
+ export const Readable: never
290
+ export const Writable: never
291
+ export const Duplex: never
292
+ export const Transform: never
293
+ export const PassThrough: never
294
+ export const Stream: never
295
+ export const pipeline: never
296
+ export const finished: never
297
+ export const promises: never
298
+ export const addAbortSignal: never
299
+ export const compose: never
300
+ export const isErrored: never
301
+ export const isReadable: never
302
+ }
303
+
304
+ /**
305
+ * @deprecated node:worker_threads is not available in CRE WASM workflows. It requires threading support that is not available in WebAssembly.
306
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
307
+ */
308
+ declare module 'node:worker_threads' {
309
+ export const Worker: never
310
+ export const MessageChannel: never
311
+ export const MessagePort: never
312
+ export const BroadcastChannel: never
313
+ export const isMainThread: never
314
+ export const isInternalThread: never
315
+ export const parentPort: never
316
+ export const workerData: never
317
+ export const threadId: never
318
+ export const resourceLimits: never
319
+ export const SHARE_ENV: never
320
+ export const receiveMessageOnPort: never
321
+ export const moveMessagePortToContext: never
322
+ export const getEnvironmentData: never
323
+ export const setEnvironmentData: never
324
+ export const markAsUntransferable: never
325
+ export const markAsUncloneable: never
326
+ export const isMarkedAsUntransferable: never
327
+ export const postMessageToThread: never
328
+ }
329
+
330
+ /**
331
+ * @deprecated node:dns is not available in CRE WASM workflows. It requires network access that is not available in WebAssembly.
332
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
333
+ */
334
+ declare module 'node:dns' {
335
+ export const lookup: never
336
+ export const lookupService: never
337
+ export const resolve: never
338
+ export const resolve4: never
339
+ export const resolve6: never
340
+ export const resolveCname: never
341
+ export const resolveMx: never
342
+ export const resolveNs: never
343
+ export const resolvePtr: never
344
+ export const resolveSrv: never
345
+ export const resolveTxt: never
346
+ export const resolveNaptr: never
347
+ export const resolveSoa: never
348
+ export const resolveAny: never
349
+ export const reverse: never
350
+ export const setServers: never
351
+ export const getServers: never
352
+ export const setDefaultResultOrder: never
353
+ export const getDefaultResultOrder: never
354
+ export const promises: never
355
+ export const Resolver: never
356
+ }
357
+
358
+ /**
359
+ * @deprecated node:zlib is not available in CRE WASM workflows. It requires native compression bindings that cannot run in WebAssembly.
360
+ * @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
361
+ */
362
+ declare module 'node:zlib' {
363
+ export const createGzip: never
364
+ export const createGunzip: never
365
+ export const createDeflate: never
366
+ export const createInflate: never
367
+ export const createDeflateRaw: never
368
+ export const createInflateRaw: never
369
+ export const createUnzip: never
370
+ export const createBrotliCompress: never
371
+ export const createBrotliDecompress: never
372
+ export const createZstdCompress: never
373
+ export const createZstdDecompress: never
374
+ export const gzip: never
375
+ export const gzipSync: never
376
+ export const gunzip: never
377
+ export const gunzipSync: never
378
+ export const deflate: never
379
+ export const deflateSync: never
380
+ export const inflate: never
381
+ export const inflateSync: never
382
+ export const deflateRaw: never
383
+ export const deflateRawSync: never
384
+ export const inflateRaw: never
385
+ export const inflateRawSync: never
386
+ export const unzip: never
387
+ export const unzipSync: never
388
+ export const brotliCompress: never
389
+ export const brotliCompressSync: never
390
+ export const brotliDecompress: never
391
+ export const brotliDecompressSync: never
392
+ export const crc32: never
393
+ export const constants: never
394
+ export const Gzip: never
395
+ export const Gunzip: never
396
+ export const Deflate: never
397
+ export const Inflate: never
398
+ export const DeflateRaw: never
399
+ export const InflateRaw: never
400
+ export const Unzip: never
401
+ export const BrotliCompress: never
402
+ export const BrotliDecompress: never
403
+ export const ZstdCompress: never
404
+ export const ZstdDecompress: never
405
+ }