@types/k6 0.53.0 → 0.53.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.
k6/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for k6 (https://grafana.com/docs/k6/lates
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 13 Aug 2024 10:38:02 GMT
11
+ * Last updated: Tue, 17 Sep 2024 08:09:49 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -215,165 +215,4 @@ export abstract class Hasher {
215
215
  digest<OE extends OutputEncoding>(outputEncoding: OE): Output<OE>;
216
216
  }
217
217
 
218
- /**
219
- * This module provides common hashing functionality available in the GoLang crypto package.
220
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/
221
- */
222
- declare namespace crypto {
223
- /**
224
- * Generate random bytes.
225
- * @param size - Number of bytes to generate.
226
- * @returns An ArrayBuffer with cryptographically random bytes.
227
- * @example
228
- * const bytes = crypto.randomBytes(42);
229
- * const view = new Uint8Array(bytes);
230
- * console.log(view); // 156,71,245,191,56,...
231
- */
232
- function randomBytes(size: number): ArrayBuffer;
233
-
234
- /**
235
- * Produce HMAC.
236
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/hmac/
237
- * @param algorithm - Hash algorithm.
238
- * @param secret - Shared secret.
239
- * @param input - Input data.
240
- * @param outputEncoding - Output encoding.
241
- * @returns Produced HMAC.
242
- * @example
243
- * crypto.hmac('sha256', 'mysecret', 'hello world!', 'hex')
244
- */
245
- function hmac<OE extends OutputEncoding>(
246
- algorithm: Algorithm,
247
- secret: string | ArrayBuffer,
248
- input: string | ArrayBuffer,
249
- outputEncoding: OE,
250
- ): Output<OE>;
251
-
252
- /**
253
- * Hash with MD4.
254
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/md4/
255
- * @param input - Data to hash.
256
- * @param outputEncoding - Output encoding.
257
- * @returns MD4 digest.
258
- * @example
259
- * crypto.md4('hello world!', 'hex')
260
- */
261
- function md4<OE extends OutputEncoding>(input: string | ArrayBuffer, outputEncoding: OE): Output<OE>;
262
-
263
- /**
264
- * Hash with MD5.
265
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/md5/
266
- * @param input - Data to hash.
267
- * @param outputEncoding - Output encoding.
268
- * @returns MD5 digest.
269
- * @example
270
- * crypto.md5("hello world!", "hex")
271
- */
272
- function md5<OE extends OutputEncoding>(input: string | ArrayBuffer, outputEncoding: OE): Output<OE>;
273
-
274
- /**
275
- * Hash with SHA-1.
276
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha1/
277
- * @param input - Data to hash.
278
- * @param outputEncoding - Output encoding.
279
- * @returns SHA-1 digest.
280
- * @example
281
- * crypto.sha1('hello world!', 'hex')
282
- */
283
- function sha1<OE extends OutputEncoding>(input: string | ArrayBuffer, outputEncoding: OE): Output<OE>;
284
-
285
- /**
286
- * Hash with SHA-256.
287
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha256/
288
- * @param input - Data to hash.
289
- * @param outputEncoding - Output encoding.
290
- * @returns SHA-256 digest.
291
- * @example
292
- * crypto.sha256('hello world!', 'hex')
293
- */
294
- function sha256<OE extends OutputEncoding>(input: string | ArrayBuffer, outputEncoding: OE): Output<OE>;
295
-
296
- /**
297
- * Hash with SHA-384.
298
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha384/
299
- * @param input - Data to hash.
300
- * @param outputEncoding - Output encoding.
301
- * @returns SHA-384 digest.
302
- * @example
303
- * crypto.sha384('hello world!', 'hex')
304
- */
305
- function sha384<OE extends OutputEncoding>(input: string | ArrayBuffer, outputEncoding: OE): Output<OE>;
306
-
307
- /**
308
- * Hash with SHA-512.
309
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha512/
310
- * @param input - Data to hash.
311
- * @param outputEncoding - Output encoding.
312
- * @returns SHA-512 digest.
313
- * @example
314
- * crypto.sha512('hello world!', 'hex')
315
- */
316
- function sha512<OE extends OutputEncoding>(input: string | ArrayBuffer, outputEncoding: OE): Output<OE>;
317
-
318
- /**
319
- * Hash with SHA-512/224.
320
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha512_224/
321
- * @param input - Data to hash.
322
- * @param outputEncoding - Output encoding.
323
- * @returns SHA-512/224 digest.
324
- * @example
325
- * crypto.sha512_224('hello world!', 'hex')
326
- */
327
- function sha512_224<OE extends OutputEncoding>(input: string | ArrayBuffer, outputEncoding: OE): Output<OE>;
328
-
329
- /**
330
- * Hash with SHA-512/256.
331
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha512_256/
332
- * @param input - Data to hash.
333
- * @param outputEncoding - Output encoding.
334
- * @returns SHA-512/256 digest.
335
- * @example
336
- * crypto.sha512_256('hello world!', 'hex')
337
- */
338
- function sha512_256<OE extends OutputEncoding>(input: string | ArrayBuffer, outputEncoding: OE): Output<OE>;
339
-
340
- /**
341
- * Hash with RIPEMD-160.
342
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/ripemd160/
343
- * @param input - Data to hash.
344
- * @param outputEncoding - Output encoding.
345
- * @returns RIPEMD-160 digest.
346
- * @example
347
- * crypto.ripemd160('hello world!', 'hex')
348
- */
349
- function ripemd160<OE extends OutputEncoding>(input: string | ArrayBuffer, outputEncoding: OE): Output<OE>;
350
-
351
- /**
352
- * Create a hashing object.
353
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/createhash/
354
- * @param algorithm - Hash algorithm.
355
- * @returns Hashing object.
356
- * @example
357
- * let hasher = crypto.createHash('sha256');
358
- * hasher.update('hello ');
359
- * hasher.update('world!');
360
- * console.log(hasher.digest('hex'));
361
- */
362
- function createHash(algorithm: Algorithm): Hasher;
363
-
364
- /**
365
- * Create an HMAC hashing object.
366
- * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/createhmac/
367
- * @param algorithm - Hash algorithm.
368
- * @param secret - Shared secret.
369
- * @returns HMAC hashing object.
370
- * @example
371
- * let hasher = crypto.createHMAC('sha256', 'a secret');
372
- * hasher.update('hello ');
373
- * hasher.update('world!');
374
- * console.log(hasher.digest('hex'));
375
- */
376
- function createHMAC(algorithm: Algorithm, secret: string | ArrayBuffer): Hasher;
377
- }
378
-
379
- export default crypto;
218
+ export * as default from "k6/crypto";
k6/encoding/index.d.ts ADDED
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Base64 decode a string.
3
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-encoding/b64decode/
4
+ * @param input - The string to base64 decode.
5
+ * @param encoding - Base64 variant.
6
+ * @returns The base64 decoded version of the input string in either string or ArrayBuffer format, depending on the `format` parameter.
7
+ * @example
8
+ * encoding.b64decode(str)
9
+ * encoding.b64decode(str, 'rawstd')
10
+ * const decBuffer = encoding.b64decode(str, 'rawurl')
11
+ * let decBin = new Uint8Array(decBuffer);
12
+ */
13
+ export function b64decode(input: string, encoding?: Base64Variant): ArrayBuffer;
14
+
15
+ /**
16
+ * Base64 decode a string.
17
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-encoding/b64decode/
18
+ * @param input - The string to base64 decode.
19
+ * @param encoding - Base64 variant.
20
+ * @param format - If 's' return the data as a string, otherwise an ArrayBuffer object .
21
+ * @returns The base64 decoded version of the input string in either string or ArrayBuffer format, depending on the `format` parameter.
22
+ * @example
23
+ * encoding.b64decode(str)
24
+ * encoding.b64decode(str, 'rawstd')
25
+ * const decodedString = encoding.b64decode(str, 'rawurl', 's')
26
+ */
27
+ export function b64decode(input: string, encoding: Base64Variant, format: "s"): string;
28
+
29
+ /**
30
+ * Base64 encode a string.
31
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-encoding/b64encode/
32
+ * @param input - String to encode or ArrayBuffer object.
33
+ * @param encoding - Base64 variant.
34
+ * @returns Base64 encoded string.
35
+ * @example
36
+ * encoding.b64encode(str)
37
+ * encoding.b64encode(str, 'rawstd')
38
+ */
39
+ export function b64encode(input: string | ArrayBuffer, encoding?: Base64Variant): string;
40
+
41
+ /**
42
+ * Base64 variant.
43
+ */
44
+ export type Base64Variant = "std" | "rawstd" | "url" | "rawurl";
45
+
46
+ export * as default from "k6/encoding";
@@ -0,0 +1,115 @@
1
+ import { Options } from "./../options/index.js";
2
+
3
+ /**
4
+ * Information about the current scenario.
5
+ */
6
+ export const scenario: {
7
+ /**
8
+ * The assigned name of the running scenario.
9
+ */
10
+ name: string;
11
+ /**
12
+ * The name of the running Executor type.
13
+ */
14
+ executor: string;
15
+ /**
16
+ * The Unix timestamp in milliseconds when the scenario started.
17
+ */
18
+ startTime: number;
19
+ /**
20
+ * Percentage in a 0 to 1 interval of the scenario progress.
21
+ */
22
+ progress: number;
23
+ /**
24
+ * The unique and zero-based sequential number of the current iteration in the scenario, across the current instance.
25
+ */
26
+ iterationInInstance: number;
27
+ /**
28
+ * The unique and zero-based sequential number of the current iteration in the scenario.
29
+ */
30
+ iterationInTest: number;
31
+ };
32
+
33
+ /**
34
+ * Information about the current load generator instance.
35
+ */
36
+ export const instance: {
37
+ /**
38
+ * The number of prematurely interrupted iterations in the current instance.
39
+ */
40
+ iterationsInterrupted: number;
41
+ /**
42
+ * The number of completed iterations in the current instance.
43
+ */
44
+ iterationsCompleted: number;
45
+ /**
46
+ * The number of active VUs.
47
+ */
48
+ vusActive: number;
49
+ /**
50
+ * The number of currently initialized VUs.
51
+ */
52
+ vusInitialized: number;
53
+ /**
54
+ * The time passed from the start of the current test run in milliseconds.
55
+ */
56
+ currentTestRunDuration: number;
57
+ };
58
+
59
+ /**
60
+ * Control the test execution.
61
+ */
62
+ export const test: {
63
+ /**
64
+ * Aborts the test run with the exit code 108.
65
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-execution/#test
66
+ * @param input - Aborted message.
67
+ * @example
68
+ * import exec from "k6/execution";
69
+ * exec.test.abort();
70
+ * exec.test.abort('this is the reason');
71
+ */
72
+ abort(input?: string): void;
73
+
74
+ options: Options;
75
+ };
76
+
77
+ /**
78
+ * Information about the current virtual user.
79
+ */
80
+ export const vu: {
81
+ /**
82
+ * The identifier of the iteration in the current instance.
83
+ */
84
+ iterationInInstance: number;
85
+ /**
86
+ * The identifier of the iteration in the current scenario.
87
+ */
88
+ iterationInScenario: number;
89
+ /**
90
+ * The identifier of the VU across the instance.
91
+ */
92
+ idInInstance: number;
93
+ /**
94
+ * The globally unique (across the whole test run) identifier of the VU.
95
+ */
96
+ idInTest: number;
97
+
98
+ /**
99
+ * Map to set or get VU tags.
100
+ * @deprecated should use `metrics.tags` instead of just `tags`
101
+ */
102
+ tags: Record<string, number | string | boolean>;
103
+ metrics: {
104
+ /**
105
+ * Map to set or get VU tags.
106
+ */
107
+ tags: Record<string, number | string | boolean>;
108
+ /**
109
+ * Map to set or get VU metadata.
110
+ */
111
+ metadata: Record<string, number | string | boolean>;
112
+ };
113
+ };
114
+
115
+ export * as default from "k6/execution";
@@ -100,3 +100,5 @@ export enum SeekMode {
100
100
  Current = 1, // Seek from the current file position.
101
101
  End = 2, // Seek from the end of the file
102
102
  }
103
+
104
+ export * as default from "k6/experimental/fs";
@@ -814,3 +814,8 @@ export interface ClusterOptions {
814
814
  */
815
815
  nodes: RedisConnectionURL[] | SocketOptions[];
816
816
  }
817
+
818
+ declare let _default: {
819
+ Client: Client;
820
+ };
821
+ export default _default;
@@ -0,0 +1,198 @@
1
+ /**
2
+ * This module provides an experimental implementation of the Streams API
3
+ * for k6.
4
+ *
5
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/
6
+ */
7
+
8
+ /**
9
+ * The ReadableStream object provides the API for creating and managing readable
10
+ * streams of raw data, bit by bit, as soon as it is available, without needing to generate a buffer, string, or blob.
11
+ */
12
+ export class ReadableStream {
13
+ /**
14
+ * The ReadableStream constructor returns a newly created ReadableStream object.
15
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestream/
16
+ *
17
+ * @param underlyingSource - defines the source of data for the stream.
18
+ * @param queuingStrategy - defines the queuing strategy to adopt for the stream.
19
+ */
20
+ constructor(underlyingSource?: UnderlyingSource, queuingStrategy?: QueuingStrategy);
21
+
22
+ /**
23
+ * Closes the stream and signals a reason for the closure.
24
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestream/cancel/
25
+ *
26
+ * Used when you’ve completely finished with the stream and don’t need any more data from it,
27
+ * even if chunks are enqueued waiting to be read.
28
+ *
29
+ * That data is lost after cancel is called, and the stream is not readable anymore.
30
+ * To close the stream without getting rid of enqueued chunks, use `ReadableStreamDefaultController.close()`.
31
+ *
32
+ * It returns a promise that is resolved with `undefined` when the stream is canceled.
33
+ *
34
+ * @param reason - the reason for canceling the stream.
35
+ */
36
+ cancel(reason: any): Promise<void>;
37
+
38
+ /**
39
+ * Creates a reader and locks the stream to it.
40
+ * While the stream is locked, no other reader can be acquired until this one is released.
41
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestream/getreader/
42
+ */
43
+ getReader(): ReadableStreamDefaultReader;
44
+ }
45
+
46
+ /**
47
+ * The object that defines the source of data for the stream.
48
+ */
49
+ export interface UnderlyingSource {
50
+ /**
51
+ * Called when the stream is created.
52
+ * It can be used to perform any setup tasks.
53
+ * The content of this method is to be defined by the user.
54
+ */
55
+ start?: (controller: ReadableStreamDefaultController) => void | Promise<void>;
56
+
57
+ /**
58
+ * Called repeatedly to fetch and queue data into the stream,
59
+ * until it reaches its high watermark.
60
+ * If `pull()` returns a promise, it won’t be called again until the promise is resolved.
61
+ */
62
+ pull?: (controller: ReadableStreamDefaultController) => void | Promise<void>;
63
+
64
+ /**
65
+ * Called when the stream is canceled.
66
+ * It can be used to release access to the stream source and perform any cleanup tasks.
67
+ * The reason parameter passed to this method is an optional human-readable value
68
+ * that represents the reason for canceling the stream.
69
+ */
70
+ cancel?: (reason?: any) => void | Promise<void>;
71
+
72
+ /**
73
+ * Specifies the type of the underlying source.
74
+ * It can currently only receive the value 'default' which is its default value.
75
+ */
76
+ type?: "default";
77
+ }
78
+
79
+ /**
80
+ * The object that allows the user to control a ReadableStream’s state and internal queue.
81
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestreamdefaultcontroller/
82
+ */
83
+ export interface ReadableStreamDefaultController {
84
+ /**
85
+ * Closes the associated stream.
86
+ * Readers can still read any previously enqueued chunks from the stream.
87
+ * Once those chunks are read, the stream closes, and no more data is available.
88
+ */
89
+ close: () => void;
90
+
91
+ /**
92
+ * Enqueues a chunk of data into the associated stream.
93
+ */
94
+ enqueue: (chunk: any) => void;
95
+
96
+ /**
97
+ * Makes any future interactions with the associated stream to error.
98
+ */
99
+ error: (reason: any) => void;
100
+ }
101
+
102
+ /**
103
+ * The object that defines the queuing strategy to adopt for the stream.
104
+ *
105
+ * Although the user can define a custom queueing strategy, the default behavior and recommended way
106
+ * to use the `ReadableStream` is to use a `CountQueuingStrategy` object.
107
+ */
108
+ export interface QueuingStrategy {
109
+ /**
110
+ * Represents the maximum number of chunks that the stream can hold in its internal queue.
111
+ * The default value is 1.
112
+ */
113
+ highWaterMark?: number;
114
+
115
+ /**
116
+ * Returns the size of the chunk passed as an argument.
117
+ * The default value is a function that returns 1.
118
+ */
119
+ size?(chunk: any): number;
120
+ }
121
+
122
+ /**
123
+ * The CountQueuingStrategy object is the default QueuingStrategy for ReadableStream.
124
+ * It counts the number of chunks in the queue.
125
+ */
126
+ export class CountQueuingStrategy {
127
+ /**
128
+ * The CountQueuingStrategy constructor returns a newly created CountQueuingStrategy object.
129
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestream/countqueuingstrategy/
130
+ *
131
+ * @param options - an object with optional property `highWaterMark` that determines
132
+ * the maximum number of chunks that the queue can contain.
133
+ */
134
+ constructor(options?: { highWaterMark?: number });
135
+
136
+ /**
137
+ * Represents the maximum number of chunks that the stream can hold in its internal queue.
138
+ * The default value is 1.
139
+ */
140
+ readonly highWaterMark: number;
141
+
142
+ /**
143
+ * Returns the size of the chunk passed as an argument.
144
+ * The default value is a function that returns 1.
145
+ */
146
+ size(chunk: any): number;
147
+ }
148
+
149
+ /**
150
+ * The object used to read stream data.
151
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestreamdefaultreader/
152
+ */
153
+ export class ReadableStreamDefaultReader {
154
+ /**
155
+ * The ReadableStreamDefaultReader constructor returns a newly created ReadableStreamDefaultReader object.
156
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestreamdefaultreader/
157
+ *
158
+ * @param stream - defines the stream the reader will own.
159
+ */
160
+ constructor(stream: ReadableStream);
161
+
162
+ /**
163
+ * Closes the reader and signals a reason for the closure.
164
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestreamdefaultreader/cancel/
165
+ *
166
+ * Used when you’ve completely finished with the stream and don’t need any more data from it,
167
+ * even if chunks are enqueued waiting to be read.
168
+ * That data is lost after cancel is called, and the stream is not readable anymore.
169
+ * To close the stream without getting rid of enqueued chunks, use `ReadableStreamDefaultController.close()`.
170
+ *
171
+ * It returns a promise that is resolved with `undefined` when the stream is canceled.
172
+ *
173
+ * @param reason - the reason for canceling the stream.
174
+ */
175
+ cancel(reason: any): Promise<void>;
176
+
177
+ /**
178
+ * Returns a promise providing access to the next chunk in the stream’s internal queue.
179
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestreamdefaultreader/read/
180
+ *
181
+ * - If the stream is closed and no more data is available, the promise resolves with an object of the form:
182
+ * `{ done: true, value: undefined }`.
183
+ * - If the stream is errored, the promise rejects with the error that caused the stream to error.
184
+ */
185
+ read(): Promise<{ done: false; value: any } | { done: true; value: undefined }>;
186
+
187
+ /**
188
+ * Releases the reader’s lock on the stream.
189
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestreamdefaultreader/releaselock/
190
+ *
191
+ * If the associated stream is errored as the lock is released, the reader will be errored as well.
192
+ * This method is useful when done with the stream and want to release the lock on it.
193
+ *
194
+ * If the reader’s lock is released as pending read operations are still in progress,
195
+ * the reader’s `ReadableStreamDefaultReader.read()` calls are immediately rejected with a `TypeError`.
196
+ */
197
+ readonly releaseLock: () => void;
198
+ }
@@ -8,7 +8,7 @@
8
8
  * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/tracing/
9
9
  */
10
10
 
11
- import { RefinedParams, RefinedResponse, RequestBody, ResponseType } from "../http";
11
+ import { RefinedParams, RefinedResponse, RequestBody, ResponseType } from "../../http/index.js";
12
12
 
13
13
  /**
14
14
  * The instrumentHTTP function instruments the k6 http module
@@ -204,3 +204,5 @@ export interface Options {
204
204
  export interface HttpURL {
205
205
  __brand: "http-url";
206
206
  }
207
+
208
+ export * as default from "k6/experimental/tracing";
@@ -1,4 +1,5 @@
1
- import { CookieJar } from "../http";
1
+ import { CookieJar } from "../../http/index.js";
2
+ import { ReadableStream } from "../streams/index.js";
2
3
 
3
4
  /**
4
5
  * This module provides an experimental implementation of the WebSocket API
@@ -139,6 +140,7 @@ export class Blob {
139
140
  arrayBuffer(): Promise<ArrayBuffer>;
140
141
  bytes(): Promise<Uint8Array>;
141
142
  slice(start?: number, end?: number): Blob;
143
+ stream(): ReadableStream;
142
144
  text(): Promise<string>;
143
145
  }
144
146
 
k6/global.d.ts CHANGED
@@ -56,7 +56,7 @@ declare global {
56
56
  * Environment variables.
57
57
  * https://grafana.com/docs/k6/latest/using-k6/environment-variables/
58
58
  */
59
- const __ENV: { [name: string]: string };
59
+ var __ENV: { [name: string]: string };
60
60
 
61
61
  // === VU logic only ===
62
62
  // ---------------------
@@ -65,11 +65,19 @@ declare global {
65
65
  * Current VU number.
66
66
  * https://grafana.com/docs/k6/latest/using-k6/execution-context-variables/
67
67
  */
68
- const __VU: number;
68
+ var __VU: number;
69
69
 
70
70
  /**
71
71
  * Current iteration number.
72
72
  * https://grafana.com/docs/k6/latest/using-k6/execution-context-variables/
73
73
  */
74
- const __ITER: number;
74
+ var __ITER: number;
75
+
76
+ interface ImportMeta {
77
+ /**
78
+ * Resolve a path to a URL string in the same way an import statement does.
79
+ * https://grafana.com/docs/k6/latest/javascript-api/import.meta/resolve/
80
+ */
81
+ resolve(specifier: string): string;
82
+ }
75
83
  }