@fkn/lib 0.4.8 → 0.5.0

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 (88) hide show
  1. package/account.cjs +1 -0
  2. package/account.d.ts +17 -0
  3. package/account.js +28 -0
  4. package/api-ByfayMm1.js +67 -0
  5. package/api-CDb2pv7C.cjs +1 -0
  6. package/background-Dk_vaVP1.cjs +1 -0
  7. package/{background-CTsVv_a0.js → background-TtzKw6g0.js} +5 -4
  8. package/chunk-B6C_zzib.cjs +1 -0
  9. package/chunk-CPXzm0be.js +11 -0
  10. package/cloud/dgram.cjs +1 -0
  11. package/cloud/dgram.d.ts +537 -0
  12. package/cloud/dgram.js +4 -0
  13. package/cloud/dns.cjs +1 -0
  14. package/cloud/dns.d.ts +12 -0
  15. package/cloud/dns.js +3 -0
  16. package/cloud/fs/promises.cjs +1 -0
  17. package/cloud/fs/promises.d.ts +45 -0
  18. package/cloud/fs/promises.js +8 -0
  19. package/cloud/fs.cjs +1 -0
  20. package/cloud/fs.d.ts +75 -0
  21. package/cloud/fs.js +20 -0
  22. package/cloud/http.cjs +1 -0
  23. package/cloud/http.d.ts +767 -0
  24. package/cloud/http.js +5 -0
  25. package/cloud/net.cjs +1 -0
  26. package/cloud/net.d.ts +606 -0
  27. package/cloud/net.js +4 -0
  28. package/cloud-BVnscun4.js +33 -0
  29. package/cloud-DTL2B5pW.cjs +1 -0
  30. package/cloud.cjs +1 -0
  31. package/cloud.d.ts +1048 -0
  32. package/cloud.js +12 -0
  33. package/desktop.cjs +1 -0
  34. package/desktop.d.ts +49 -0
  35. package/desktop.js +51 -0
  36. package/dgram-5YUb70O2.js +326 -0
  37. package/dgram-Cdi6Y7zJ.cjs +1 -0
  38. package/dgram.cjs +1 -0
  39. package/dgram.d.ts +537 -0
  40. package/dgram.js +4 -0
  41. package/dns.cjs +1 -0
  42. package/dns.d.ts +12 -0
  43. package/dns.js +6 -0
  44. package/extension-9Uv_0HdS.cjs +1 -0
  45. package/extension-Dgz0UTy0.js +245 -0
  46. package/extension.cjs +1 -0
  47. package/extension.d.ts +853 -0
  48. package/extension.js +5 -0
  49. package/fs/promises.cjs +1 -0
  50. package/fs/promises.d.ts +46 -0
  51. package/fs/promises.js +8 -0
  52. package/fs-B7JumDCn.js +78 -0
  53. package/fs-DrwvwtqC.cjs +1 -0
  54. package/fs.cjs +1 -0
  55. package/fs.d.ts +84 -0
  56. package/fs.js +5 -0
  57. package/http.cjs +9 -0
  58. package/http.d.ts +767 -0
  59. package/http.js +541 -0
  60. package/index.cjs +1 -9
  61. package/index.d.ts +495 -268
  62. package/index.js +27 -1569
  63. package/locator-Cf7M3QKN.cjs +53 -0
  64. package/{locator-Q5m8i40Z.js → locator-DxAsGV_o.js} +331 -337
  65. package/net-Bl6_W3bd.js +275 -0
  66. package/net-C5kWnI4C.cjs +1 -0
  67. package/net.cjs +1 -0
  68. package/net.d.ts +606 -0
  69. package/net.js +4 -0
  70. package/node-fs-Bd_UUx1m.js +361 -0
  71. package/node-fs-lrlD_zqB.cjs +1 -0
  72. package/opfs/promises.cjs +1 -0
  73. package/opfs/promises.d.ts +46 -0
  74. package/opfs/promises.js +6 -0
  75. package/opfs-BfcYLPGb.js +55 -0
  76. package/opfs-Dsi4FkJU.cjs +1 -0
  77. package/opfs.cjs +1 -0
  78. package/opfs.d.ts +83 -0
  79. package/opfs.js +35 -0
  80. package/package.json +91 -1
  81. package/proxy-A9UvWUaF.cjs +1 -0
  82. package/proxy-wiZN4eTR.js +14 -0
  83. package/storage-BadvHtv0.cjs +1 -0
  84. package/storage-z0q3iena.js +13 -0
  85. package/utils-BsNRWMfl.cjs +1 -0
  86. package/utils-CNydj3OT.js +52 -0
  87. package/background-BqRFQggD.cjs +0 -1
  88. package/locator-Cjl21Nkt.cjs +0 -53
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as osra from 'osra';
2
- import { BoxBase, Capable, UnderlyingType, RevivableContext } from 'osra';
2
+ import { BoxBase, Capable, UnderlyingType, RevivableContext, DefaultRevivableModules } from 'osra';
3
3
  import * as osra_build_revivables_event_target from 'osra/build/revivables/event-target';
4
4
  import * as osra_build_revivables_fallbacks from 'osra/build/revivables/fallbacks';
5
5
  import * as osra_build_revivables_json_primitives from 'osra/build/revivables/json-primitives';
@@ -27,36 +27,37 @@ import * as osra_build_revivables_identity from 'osra/build/revivables/identity'
27
27
  import * as osra_build_revivables_transfer from 'osra/build/revivables/transfer';
28
28
  import * as ip_address from 'ip-address';
29
29
  import { Address4, Address6 } from 'ip-address';
30
+ import * as node_fs from 'node:fs';
30
31
  import { Socket as Socket$2, SocketConstructorOpts, SocketConnectOpts, AddressInfo, Server as Server$2, ServerOpts, ListenOptions } from 'net';
31
32
  import { Stream, DuplexOptions } from 'stream';
32
33
  import { EventEmitter } from 'events';
33
34
  import { Socket as Socket$3, SocketOptions, BindOptions, SocketType, RemoteInfo } from 'dgram';
34
- import { Buffer } from 'buffer';
35
+ import { Buffer as Buffer$1 } from 'buffer';
35
36
  import { OutgoingHttpHeaders, IncomingHttpHeaders, RequestOptions } from 'http';
36
37
  import { CSSProperties, ReactElement } from 'react';
37
38
 
38
39
  declare const fetchPermission: {
39
- readonly scope: "network.fetch";
40
- readonly category: "network";
40
+ readonly scope: 'network.fetch';
41
+ readonly category: 'network';
41
42
  readonly severity: 0;
42
- readonly title: "Fetch data from other sites";
43
- readonly description: "Lets the app download public data from other websites directly, past the usual cross-origin limits.";
43
+ readonly title: 'Fetch data from other sites';
44
+ readonly description: 'Lets the app download public data from other websites directly, past the usual cross-origin limits.';
44
45
  };
45
46
  declare const fetchCredentialedPermission: {
46
- readonly scope: "network.fetchCredentialed";
47
- readonly category: "network";
47
+ readonly scope: 'network.fetchCredentialed';
48
+ readonly category: 'network';
48
49
  readonly severity: 3;
49
50
  readonly unsafe: true;
50
- readonly title: "Fetch from other sites, signed in as you";
51
- readonly description: "Lets the app fetch other sites using your logged-in session cookies, so it can read data only you should see.";
51
+ readonly title: 'Fetch from other sites, signed in as you';
52
+ readonly description: 'Lets the app fetch other sites using your logged-in session cookies, so it can read data only you should see.';
52
53
  };
53
54
  declare const fetchLocalPermission: {
54
- readonly scope: "network.fetchLocal";
55
- readonly category: "network";
55
+ readonly scope: 'network.fetchLocal';
56
+ readonly category: 'network';
56
57
  readonly severity: 3;
57
58
  readonly unsafe: true;
58
- readonly title: "Access devices on your local network";
59
- readonly description: "Lets the app reach devices and services on your home or work network, which websites normally cannot touch.";
59
+ readonly title: 'Access devices on your local network';
60
+ readonly description: 'Lets the app reach devices and services on your home or work network, which websites normally cannot touch.';
60
61
  };
61
62
  declare const isLocalNetworkUrl: (raw: string) => boolean;
62
63
  type ProxyFetchRequest = {
@@ -75,15 +76,15 @@ type FetchInit = RequestInit & {
75
76
  };
76
77
  declare const isBlockedFetchUrl: (raw: string) => boolean;
77
78
  declare const assertFetchableUrl: (raw: string) => void;
78
- declare const fetch$2: (input: URL | RequestInfo, init?: FetchInit | undefined) => Promise<Response>;
79
+ declare const fetch$2: (input: RequestInfo | URL, init?: FetchInit) => Promise<Response>;
79
80
 
80
81
  declare const readCookiePermission: {
81
- readonly scope: "network.readCookie";
82
- readonly category: "network";
82
+ readonly scope: 'network.readCookie';
83
+ readonly category: 'network';
83
84
  readonly severity: 3;
84
85
  readonly unsafe: true;
85
- readonly title: "Read a site’s cookie";
86
- readonly description: "Lets the app read a named cookie from another site, which can include the login token only that site should see.";
86
+ readonly title: 'Read a site’s cookie';
87
+ readonly description: 'Lets the app read a named cookie from another site, which can include the login token only that site should see.';
87
88
  };
88
89
  type CookieDetails = {
89
90
  url: string;
@@ -98,12 +99,12 @@ declare const cookies: {
98
99
  };
99
100
 
100
101
  declare const modifyRequestHeadersPermission: {
101
- readonly scope: "network.modifyRequestHeaders";
102
- readonly category: "network";
102
+ readonly scope: 'network.modifyRequestHeaders';
103
+ readonly category: 'network';
103
104
  readonly severity: 2;
104
105
  readonly unsafe: true;
105
- readonly title: "Rewrite request headers to other sites";
106
- readonly description: "Lets the app set or remove headers (like Origin and Referer) on this page’s own requests to the listed sites.";
106
+ readonly title: 'Rewrite request headers to other sites';
107
+ readonly description: 'Lets the app set or remove headers (like Origin and Referer) on this page’s own requests to the listed sites.';
107
108
  };
108
109
  type HeaderOperation = {
109
110
  header: string;
@@ -133,7 +134,7 @@ type ExtractResolverReturn<M> = M extends {
133
134
  resolve: (context: any, ...args: any[]) => infer R;
134
135
  } ? R : never;
135
136
 
136
- declare const type$i: "locator";
137
+ declare const type$i: 'locator';
137
138
  declare const resolve$h: (context: LocatorContext, selector: string) => Element[];
138
139
  declare const render$7: SelectorRenderer;
139
140
 
@@ -145,7 +146,7 @@ declare namespace locatorSel {
145
146
  };
146
147
  }
147
148
 
148
- declare const type$h: "getByRole";
149
+ declare const type$h: 'getByRole';
149
150
  declare const resolve$g: (context: LocatorContext, role: string) => Element[];
150
151
  declare const render$6: SelectorRenderer;
151
152
 
@@ -157,7 +158,7 @@ declare namespace getByRole {
157
158
  };
158
159
  }
159
160
 
160
- declare const type$g: "getByText";
161
+ declare const type$g: 'getByText';
161
162
  declare const resolve$f: (context: LocatorContext, text: string) => Element[];
162
163
  declare const render$5: SelectorRenderer;
163
164
 
@@ -169,7 +170,7 @@ declare namespace getByText {
169
170
  };
170
171
  }
171
172
 
172
- declare const type$f: "getByTestId";
173
+ declare const type$f: 'getByTestId';
173
174
  declare const resolve$e: (context: LocatorContext, testId: string) => Element[];
174
175
  declare const render$4: SelectorRenderer;
175
176
 
@@ -181,7 +182,7 @@ declare namespace getByTestId {
181
182
  };
182
183
  }
183
184
 
184
- declare const type$e: "first";
185
+ declare const type$e: 'first';
185
186
  declare const resolve$d: (context: LocatorContext) => Element[];
186
187
  declare const render$3: SelectorRenderer;
187
188
 
@@ -193,7 +194,7 @@ declare namespace first {
193
194
  };
194
195
  }
195
196
 
196
- declare const type$d: "nth";
197
+ declare const type$d: 'nth';
197
198
  declare const resolve$c: (context: LocatorContext, index: number) => Element[];
198
199
  declare const render$2: SelectorRenderer;
199
200
 
@@ -205,19 +206,19 @@ declare namespace nth {
205
206
  };
206
207
  }
207
208
 
208
- declare const type$c: "click";
209
+ declare const type$c: 'click';
209
210
  declare const permission$9: {
210
- readonly scope: "act.click";
211
- readonly category: "act";
211
+ readonly scope: 'act.click';
212
+ readonly category: 'act';
212
213
  readonly severity: 3;
213
- readonly title: "Click on the page";
214
- readonly description: "Lets the app press buttons or links for you.";
214
+ readonly title: 'Click on the page';
215
+ readonly description: 'Lets the app press buttons or links for you.';
215
216
  };
216
217
  declare const resolve$b: (context: LocatorContext, options?: OperationTimeoutOptions & {
217
218
  position?: {
218
- x?: number | undefined;
219
- y?: number | undefined;
220
- } | undefined;
219
+ x?: number;
220
+ y?: number;
221
+ };
221
222
  }) => void;
222
223
 
223
224
  declare namespace click {
@@ -228,13 +229,13 @@ declare namespace click {
228
229
  };
229
230
  }
230
231
 
231
- declare const type$b: "fill";
232
+ declare const type$b: 'fill';
232
233
  declare const permission$8: {
233
- readonly scope: "act.type";
234
- readonly category: "act";
234
+ readonly scope: 'act.type';
235
+ readonly category: 'act';
235
236
  readonly severity: 1;
236
- readonly title: "Type into a text field";
237
- readonly description: "Lets the app fill in form fields on your behalf.";
237
+ readonly title: 'Type into a text field';
238
+ readonly description: 'Lets the app fill in form fields on your behalf.';
238
239
  };
239
240
  declare const resolve$a: (context: LocatorContext, value: string, _options?: OperationTimeoutOptions) => void;
240
241
 
@@ -246,19 +247,19 @@ declare namespace fill {
246
247
  };
247
248
  }
248
249
 
249
- declare const type$a: "hover";
250
+ declare const type$a: 'hover';
250
251
  declare const permission$7: {
251
- readonly scope: "act.hover";
252
- readonly category: "act";
252
+ readonly scope: 'act.hover';
253
+ readonly category: 'act';
253
254
  readonly severity: 1;
254
- readonly title: "Hover over the page";
255
- readonly description: "Lets the app point at things to reveal menus or tooltips.";
255
+ readonly title: 'Hover over the page';
256
+ readonly description: 'Lets the app point at things to reveal menus or tooltips.';
256
257
  };
257
258
  declare const resolve$9: (context: LocatorContext, options?: OperationTimeoutOptions & {
258
259
  position?: {
259
- x?: number | undefined;
260
- y?: number | undefined;
261
- } | undefined;
260
+ x?: number;
261
+ y?: number;
262
+ };
262
263
  }) => void;
263
264
 
264
265
  declare namespace hover {
@@ -269,13 +270,13 @@ declare namespace hover {
269
270
  };
270
271
  }
271
272
 
272
- declare const type$9: "textContent";
273
+ declare const type$9: 'textContent';
273
274
  declare const permission$6: {
274
- readonly scope: "read.text";
275
- readonly category: "read";
275
+ readonly scope: 'read.text';
276
+ readonly category: 'read';
276
277
  readonly severity: 1;
277
- readonly title: "Read text from the page";
278
- readonly description: "Lets the app see the text shown on this page.";
278
+ readonly title: 'Read text from the page';
279
+ readonly description: 'Lets the app see the text shown on this page.';
279
280
  };
280
281
  declare const resolve$8: (context: LocatorContext, _options?: OperationTimeoutOptions) => string;
281
282
 
@@ -287,13 +288,13 @@ declare namespace textContent {
287
288
  };
288
289
  }
289
290
 
290
- declare const type$8: "isVisible";
291
+ declare const type$8: 'isVisible';
291
292
  declare const permission$5: {
292
- readonly scope: "read.visible";
293
- readonly category: "read";
293
+ readonly scope: 'read.visible';
294
+ readonly category: 'read';
294
295
  readonly severity: 0;
295
- readonly title: "See what’s visible on the page";
296
- readonly description: "Lets the app check which elements are currently on screen.";
296
+ readonly title: 'See what’s visible on the page';
297
+ readonly description: 'Lets the app check which elements are currently on screen.';
297
298
  };
298
299
  declare const resolve$7: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
299
300
 
@@ -305,13 +306,13 @@ declare namespace isVisible {
305
306
  };
306
307
  }
307
308
 
308
- declare const type$7: "count";
309
+ declare const type$7: 'count';
309
310
  declare const permission$4: {
310
- readonly scope: "read.count";
311
- readonly category: "read";
311
+ readonly scope: 'read.count';
312
+ readonly category: 'read';
312
313
  readonly severity: 0;
313
- readonly title: "Count items on the page";
314
- readonly description: "Lets the app count how many matching elements are present.";
314
+ readonly title: 'Count items on the page';
315
+ readonly description: 'Lets the app count how many matching elements are present.';
315
316
  };
316
317
  declare const resolve$6: (context: LocatorContext, _options?: OperationTimeoutOptions) => number;
317
318
 
@@ -323,17 +324,17 @@ declare namespace count {
323
324
  };
324
325
  }
325
326
 
326
- declare const type$6: "exists";
327
+ declare const type$6: 'exists';
327
328
  declare const permission$3: {
328
- readonly scope: "read.check";
329
- readonly category: "read";
329
+ readonly scope: 'read.check';
330
+ readonly category: 'read';
330
331
  readonly severity: 0;
331
- readonly title: "Check if something is on the page";
332
- readonly description: "Lets the app test whether a specific element exists.";
332
+ readonly title: 'Check if something is on the page';
333
+ readonly description: 'Lets the app test whether a specific element exists.';
333
334
  };
334
335
  declare const resolve$5: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
335
336
 
336
- declare namespace exists {
337
+ declare namespace exists$2 {
337
338
  export {
338
339
  permission$3 as permission,
339
340
  resolve$5 as resolve,
@@ -341,13 +342,13 @@ declare namespace exists {
341
342
  };
342
343
  }
343
344
 
344
- declare const type$5: "getAttribute";
345
+ declare const type$5: 'getAttribute';
345
346
  declare const permission$2: {
346
- readonly scope: "read.info";
347
- readonly category: "read";
347
+ readonly scope: 'read.info';
348
+ readonly category: 'read';
348
349
  readonly severity: 1;
349
- readonly title: "Read info from the page";
350
- readonly description: "Lets the app read the href value from a part of the page.";
350
+ readonly title: 'Read info from the page';
351
+ readonly description: 'Lets the app read the href value from a part of the page.';
351
352
  };
352
353
  declare const resolve$4: (context: LocatorContext, name: string, _options?: OperationTimeoutOptions) => string | null;
353
354
 
@@ -359,13 +360,13 @@ declare namespace getAttribute {
359
360
  };
360
361
  }
361
362
 
362
- declare const type$4: "videoElement";
363
+ declare const type$4: 'videoElement';
363
364
  declare const permission$1: {
364
- readonly scope: "media.video";
365
- readonly category: "media";
365
+ readonly scope: 'media.video';
366
+ readonly category: 'media';
366
367
  readonly severity: 0;
367
- readonly title: "Control video playback";
368
- readonly description: "Lets the app play, pause, seek, and read the video on the page.";
368
+ readonly title: 'Control video playback';
369
+ readonly description: 'Lets the app play, pause, seek, and read the video on the page.';
369
370
  };
370
371
  declare const resolve$3: (context: LocatorContext, _options?: OperationTimeoutOptions) => RemoteVideoElement;
371
372
 
@@ -380,19 +381,19 @@ declare namespace videoElement$1 {
380
381
  declare const locatorModule: {
381
382
  readonly type: "locator";
382
383
  readonly selectorModules: readonly [typeof locatorSel, {
383
- readonly type: "frameLocator";
384
+ readonly type: 'frameLocator';
384
385
  readonly resolve: (context: LocatorContext, selector: string) => HTMLIFrameElement[];
385
386
  readonly resolvePeer: BarrierResolver;
386
387
  readonly render: SelectorRenderer;
387
- readonly nextLocatorType: "frameLocator";
388
+ readonly nextLocatorType: 'frameLocator';
388
389
  }, typeof getByRole, typeof getByText, typeof getByTestId, typeof first, typeof nth];
389
- readonly operationModules: readonly [typeof click, typeof fill, typeof hover, typeof textContent, typeof isVisible, typeof count, typeof exists, typeof getAttribute, typeof videoElement$1];
390
+ readonly operationModules: readonly [typeof click, typeof fill, typeof hover, typeof textContent, typeof isVisible, typeof count, typeof exists$2, typeof getAttribute, typeof videoElement$1];
390
391
  };
391
392
  type LocatorModule = typeof locatorModule;
392
393
  interface Locator extends LocatorChain<LocatorModule, Locator> {
393
394
  }
394
395
 
395
- declare const type$3: "frameLocator";
396
+ declare const type$3: 'frameLocator';
396
397
  declare const resolve$2: (context: LocatorContext, selector: string) => HTMLIFrameElement[];
397
398
  declare const resolvePeer$1: BarrierResolver;
398
399
  declare const render$1: SelectorRenderer;
@@ -406,7 +407,7 @@ declare namespace frameLocatorSel {
406
407
  };
407
408
  }
408
409
 
409
- declare const type$2: "owner";
410
+ declare const type$2: 'owner';
410
411
  declare const resolve$1: (_: LocatorContext) => never;
411
412
  declare const resolvePeer: BarrierResolver;
412
413
  declare const render: SelectorRenderer;
@@ -422,39 +423,39 @@ declare namespace owner {
422
423
  };
423
424
  }
424
425
 
425
- declare const type$1: "addStyleTag";
426
+ declare const type$1: 'addStyleTag';
426
427
  type AddStyleTagOptions = OperationTimeoutOptions & {
427
428
  content: string;
428
429
  noSanitize?: boolean;
429
430
  };
430
431
  declare const appearPermission: {
431
- readonly scope: "media.appear";
432
- readonly category: "media";
432
+ readonly scope: 'media.appear';
433
+ readonly category: 'media';
433
434
  readonly severity: 0;
434
- readonly title: "Change page appearance";
435
- readonly description: "Lets the app restyle parts of the page (safely filtered).";
435
+ readonly title: 'Change page appearance';
436
+ readonly description: 'Lets the app restyle parts of the page (safely filtered).';
436
437
  };
437
438
  declare const appearUnsafePermission: {
438
- readonly scope: "media.appearU";
439
- readonly category: "media";
439
+ readonly scope: 'media.appearU';
440
+ readonly category: 'media';
440
441
  readonly severity: 2;
441
442
  readonly unsafe: true;
442
- readonly title: "Change page appearance (unsafe)";
443
- readonly description: "Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.";
443
+ readonly title: 'Change page appearance (unsafe)';
444
+ readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
444
445
  };
445
- declare const permission: (options?: AddStyleTagOptions | undefined) => {
446
- readonly scope: "media.appear";
447
- readonly category: "media";
446
+ declare const permission: (options?: AddStyleTagOptions) => {
447
+ readonly scope: 'media.appear';
448
+ readonly category: 'media';
448
449
  readonly severity: 0;
449
- readonly title: "Change page appearance";
450
- readonly description: "Lets the app restyle parts of the page (safely filtered).";
450
+ readonly title: 'Change page appearance';
451
+ readonly description: 'Lets the app restyle parts of the page (safely filtered).';
451
452
  } | {
452
- readonly scope: "media.appearU";
453
- readonly category: "media";
453
+ readonly scope: 'media.appearU';
454
+ readonly category: 'media';
454
455
  readonly severity: 2;
455
456
  readonly unsafe: true;
456
- readonly title: "Change page appearance (unsafe)";
457
- readonly description: "Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.";
457
+ readonly title: 'Change page appearance (unsafe)';
458
+ readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
458
459
  };
459
460
  declare const setInjectedStylesDisabled: (disabled: boolean) => void;
460
461
  declare const resolve: (_context: LocatorContext, options: AddStyleTagOptions) => Promise<void>;
@@ -473,10 +474,10 @@ declare namespace addStyleTag {
473
474
  declare const frameLocatorModule: {
474
475
  readonly type: "frameLocator";
475
476
  readonly selectorModules: readonly [{
476
- readonly type: "locator";
477
+ readonly type: 'locator';
477
478
  readonly resolve: (context: LocatorContext, selector: string) => Element[];
478
479
  readonly render: SelectorRenderer;
479
- readonly nextLocatorType: "locator";
480
+ readonly nextLocatorType: 'locator';
480
481
  }, typeof frameLocatorSel, typeof owner];
481
482
  readonly operationModules: readonly [typeof addStyleTag];
482
483
  };
@@ -563,24 +564,24 @@ declare const ATTACH_FRAME_EVENT_KEY = "FKN_WEB_EXTENSION_ATTACH_FRAME_EVENT_KEY
563
564
  declare const isBlockedFrameUrl: (raw: string) => boolean;
564
565
  declare const assertAttachableFrameUrl: (raw: string) => void;
565
566
  declare const attachFramePermission: {
566
- readonly scope: "embed.iframe";
567
- readonly category: "embed";
567
+ readonly scope: 'embed.iframe';
568
+ readonly category: 'embed';
568
569
  readonly severity: 0;
569
- readonly title: "Load another website inside this app";
570
- readonly description: "Lets the app embed external pages directly inside its own view.";
570
+ readonly title: 'Load another website inside this app';
571
+ readonly description: 'Lets the app embed external pages directly inside its own view.';
571
572
  };
572
573
  declare const gotoPermission: {
573
- readonly scope: "embed.open";
574
- readonly category: "embed";
574
+ readonly scope: 'embed.open';
575
+ readonly category: 'embed';
575
576
  readonly severity: 0;
576
- readonly title: "Open a website inside this app";
577
- readonly description: "Lets the app navigate to another site without leaving its window.";
577
+ readonly title: 'Open a website inside this app';
578
+ readonly description: 'Lets the app navigate to another site without leaving its window.';
578
579
  };
579
580
  declare const evaluatePermission: {
580
- readonly scope: "embed.evaluate";
581
- readonly category: "embed";
581
+ readonly scope: 'embed.evaluate';
582
+ readonly category: 'embed';
582
583
  readonly severity: 0;
583
- readonly title: "Run app code inside an embedded frame";
584
+ readonly title: 'Run app code inside an embedded frame';
584
585
  readonly description: "Lets the app execute its own code inside a page it embedded, to read back a computed result.";
585
586
  };
586
587
  type GotoOptions = {
@@ -601,124 +602,124 @@ type AttachFrameOptions = {
601
602
  declare const attachFrame: ({ iframe, domains, syncCookies, lockdown }: AttachFrameOptions) => Promise<Frame>;
602
603
 
603
604
  declare const PERMISSIONS: readonly [{
604
- readonly scope: "read.text";
605
- readonly category: "read";
605
+ readonly scope: 'read.text';
606
+ readonly category: 'read';
606
607
  readonly severity: 1;
607
- readonly title: "Read text from the page";
608
- readonly description: "Lets the app see the text shown on this page.";
608
+ readonly title: 'Read text from the page';
609
+ readonly description: 'Lets the app see the text shown on this page.';
609
610
  }, {
610
- readonly scope: "read.info";
611
- readonly category: "read";
611
+ readonly scope: 'read.info';
612
+ readonly category: 'read';
612
613
  readonly severity: 1;
613
- readonly title: "Read info from the page";
614
- readonly description: "Lets the app read the href value from a part of the page.";
614
+ readonly title: 'Read info from the page';
615
+ readonly description: 'Lets the app read the href value from a part of the page.';
615
616
  }, {
616
- readonly scope: "read.visible";
617
- readonly category: "read";
617
+ readonly scope: 'read.visible';
618
+ readonly category: 'read';
618
619
  readonly severity: 0;
619
- readonly title: "See what’s visible on the page";
620
- readonly description: "Lets the app check which elements are currently on screen.";
620
+ readonly title: 'See what’s visible on the page';
621
+ readonly description: 'Lets the app check which elements are currently on screen.';
621
622
  }, {
622
- readonly scope: "read.check";
623
- readonly category: "read";
623
+ readonly scope: 'read.check';
624
+ readonly category: 'read';
624
625
  readonly severity: 0;
625
- readonly title: "Check if something is on the page";
626
- readonly description: "Lets the app test whether a specific element exists.";
626
+ readonly title: 'Check if something is on the page';
627
+ readonly description: 'Lets the app test whether a specific element exists.';
627
628
  }, {
628
- readonly scope: "read.count";
629
- readonly category: "read";
629
+ readonly scope: 'read.count';
630
+ readonly category: 'read';
630
631
  readonly severity: 0;
631
- readonly title: "Count items on the page";
632
- readonly description: "Lets the app count how many matching elements are present.";
632
+ readonly title: 'Count items on the page';
633
+ readonly description: 'Lets the app count how many matching elements are present.';
633
634
  }, {
634
- readonly scope: "act.click";
635
- readonly category: "act";
635
+ readonly scope: 'act.click';
636
+ readonly category: 'act';
636
637
  readonly severity: 3;
637
- readonly title: "Click on the page";
638
- readonly description: "Lets the app press buttons or links for you.";
638
+ readonly title: 'Click on the page';
639
+ readonly description: 'Lets the app press buttons or links for you.';
639
640
  }, {
640
- readonly scope: "act.type";
641
- readonly category: "act";
641
+ readonly scope: 'act.type';
642
+ readonly category: 'act';
642
643
  readonly severity: 1;
643
- readonly title: "Type into a text field";
644
- readonly description: "Lets the app fill in form fields on your behalf.";
644
+ readonly title: 'Type into a text field';
645
+ readonly description: 'Lets the app fill in form fields on your behalf.';
645
646
  }, {
646
- readonly scope: "act.hover";
647
- readonly category: "act";
647
+ readonly scope: 'act.hover';
648
+ readonly category: 'act';
648
649
  readonly severity: 1;
649
- readonly title: "Hover over the page";
650
- readonly description: "Lets the app point at things to reveal menus or tooltips.";
650
+ readonly title: 'Hover over the page';
651
+ readonly description: 'Lets the app point at things to reveal menus or tooltips.';
651
652
  }, {
652
- readonly scope: "media.video";
653
- readonly category: "media";
653
+ readonly scope: 'media.video';
654
+ readonly category: 'media';
654
655
  readonly severity: 0;
655
- readonly title: "Control video playback";
656
- readonly description: "Lets the app play, pause, seek, and read the video on the page.";
656
+ readonly title: 'Control video playback';
657
+ readonly description: 'Lets the app play, pause, seek, and read the video on the page.';
657
658
  }, {
658
- readonly scope: "media.appear";
659
- readonly category: "media";
659
+ readonly scope: 'media.appear';
660
+ readonly category: 'media';
660
661
  readonly severity: 0;
661
- readonly title: "Change page appearance";
662
- readonly description: "Lets the app restyle parts of the page (safely filtered).";
662
+ readonly title: 'Change page appearance';
663
+ readonly description: 'Lets the app restyle parts of the page (safely filtered).';
663
664
  }, {
664
- readonly scope: "media.appearU";
665
- readonly category: "media";
665
+ readonly scope: 'media.appearU';
666
+ readonly category: 'media';
666
667
  readonly severity: 2;
667
668
  readonly unsafe: true;
668
- readonly title: "Change page appearance (unsafe)";
669
- readonly description: "Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.";
669
+ readonly title: 'Change page appearance (unsafe)';
670
+ readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
670
671
  }, {
671
- readonly scope: "embed.iframe";
672
- readonly category: "embed";
672
+ readonly scope: 'embed.iframe';
673
+ readonly category: 'embed';
673
674
  readonly severity: 0;
674
- readonly title: "Load another website inside this app";
675
- readonly description: "Lets the app embed external pages directly inside its own view.";
675
+ readonly title: 'Load another website inside this app';
676
+ readonly description: 'Lets the app embed external pages directly inside its own view.';
676
677
  }, {
677
- readonly scope: "embed.open";
678
- readonly category: "embed";
678
+ readonly scope: 'embed.open';
679
+ readonly category: 'embed';
679
680
  readonly severity: 0;
680
- readonly title: "Open a website inside this app";
681
- readonly description: "Lets the app navigate to another site without leaving its window.";
681
+ readonly title: 'Open a website inside this app';
682
+ readonly description: 'Lets the app navigate to another site without leaving its window.';
682
683
  }, {
683
- readonly scope: "embed.evaluate";
684
- readonly category: "embed";
684
+ readonly scope: 'embed.evaluate';
685
+ readonly category: 'embed';
685
686
  readonly severity: 0;
686
- readonly title: "Run app code inside an embedded frame";
687
+ readonly title: 'Run app code inside an embedded frame';
687
688
  readonly description: "Lets the app execute its own code inside a page it embedded, to read back a computed result.";
688
689
  }, {
689
- readonly scope: "network.fetch";
690
- readonly category: "network";
690
+ readonly scope: 'network.fetch';
691
+ readonly category: 'network';
691
692
  readonly severity: 0;
692
- readonly title: "Fetch data from other sites";
693
- readonly description: "Lets the app download public data from other websites directly, past the usual cross-origin limits.";
693
+ readonly title: 'Fetch data from other sites';
694
+ readonly description: 'Lets the app download public data from other websites directly, past the usual cross-origin limits.';
694
695
  }, {
695
- readonly scope: "network.fetchCredentialed";
696
- readonly category: "network";
696
+ readonly scope: 'network.fetchCredentialed';
697
+ readonly category: 'network';
697
698
  readonly severity: 3;
698
699
  readonly unsafe: true;
699
- readonly title: "Fetch from other sites, signed in as you";
700
- readonly description: "Lets the app fetch other sites using your logged-in session cookies, so it can read data only you should see.";
700
+ readonly title: 'Fetch from other sites, signed in as you';
701
+ readonly description: 'Lets the app fetch other sites using your logged-in session cookies, so it can read data only you should see.';
701
702
  }, {
702
- readonly scope: "network.fetchLocal";
703
- readonly category: "network";
703
+ readonly scope: 'network.fetchLocal';
704
+ readonly category: 'network';
704
705
  readonly severity: 3;
705
706
  readonly unsafe: true;
706
- readonly title: "Access devices on your local network";
707
- readonly description: "Lets the app reach devices and services on your home or work network, which websites normally cannot touch.";
707
+ readonly title: 'Access devices on your local network';
708
+ readonly description: 'Lets the app reach devices and services on your home or work network, which websites normally cannot touch.';
708
709
  }, {
709
- readonly scope: "network.readCookie";
710
- readonly category: "network";
710
+ readonly scope: 'network.readCookie';
711
+ readonly category: 'network';
711
712
  readonly severity: 3;
712
713
  readonly unsafe: true;
713
- readonly title: "Read a site’s cookie";
714
- readonly description: "Lets the app read a named cookie from another site, which can include the login token only that site should see.";
714
+ readonly title: 'Read a site’s cookie';
715
+ readonly description: 'Lets the app read a named cookie from another site, which can include the login token only that site should see.';
715
716
  }, {
716
- readonly scope: "network.modifyRequestHeaders";
717
- readonly category: "network";
717
+ readonly scope: 'network.modifyRequestHeaders';
718
+ readonly category: 'network';
718
719
  readonly severity: 2;
719
720
  readonly unsafe: true;
720
- readonly title: "Rewrite request headers to other sites";
721
- readonly description: "Lets the app set or remove headers (like Origin and Referer) on this page’s own requests to the listed sites.";
721
+ readonly title: 'Rewrite request headers to other sites';
722
+ readonly description: 'Lets the app set or remove headers (like Origin and Referer) on this page’s own requests to the listed sites.';
722
723
  }];
723
724
  type PermissionScope = (typeof PERMISSIONS)[number]['scope'];
724
725
 
@@ -736,7 +737,7 @@ declare const permissions: {
736
737
  request: (requests: PermissionRequest[]) => Promise<PermissionGrant[]>;
737
738
  };
738
739
 
739
- declare const type: "videoElement";
740
+ declare const type: 'videoElement';
740
741
  type TimeRangesTuple = [number, number][];
741
742
  type VideoElementState = {
742
743
  currentTime: number;
@@ -799,7 +800,7 @@ type BoxedVideoElement = BoxBase<typeof type> & {
799
800
  declare const createVideoElementHandle: (element: HTMLVideoElement) => RemoteVideoElement;
800
801
  declare const isType: (value: unknown) => value is RemoteVideoElement;
801
802
  declare const box: <T extends RemoteVideoElement, T2 extends RevivableContext>(value: T, context: T2) => BoxedVideoElement;
802
- declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[typeof UnderlyingType];
803
+ declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[UnderlyingType];
803
804
 
804
805
  type videoElement_BoxedVideoElement = BoxedVideoElement;
805
806
  type videoElement_RemoteVideoElement = RemoteVideoElement;
@@ -814,57 +815,30 @@ declare namespace videoElement {
814
815
  export type { videoElement_BoxedVideoElement as BoxedVideoElement, videoElement_RemoteVideoElement as RemoteVideoElement, videoElement_VideoElementState as VideoElementState };
815
816
  }
816
817
 
817
- declare const handleRevivableModules: (defaults: readonly [typeof osra_build_revivables_transfer, typeof osra_build_revivables_identity, typeof osra_build_revivables_array_buffer, typeof osra_build_revivables_date, typeof osra_build_revivables_headers, typeof osra_build_revivables_error, typeof osra_build_revivables_typed_array, typeof osra_build_revivables_blob, typeof osra_build_revivables_promise, typeof osra_build_revivables_function, typeof osra_build_revivables_message_port, typeof osra_build_revivables_readable_stream, typeof osra_build_revivables_writable_stream, typeof osra_build_revivables_abort_signal, typeof osra_build_revivables_response, typeof osra_build_revivables_request, typeof osra_build_revivables_map, typeof osra_build_revivables_set, typeof osra_build_revivables_bigint, typeof osra_build_revivables_symbol, typeof osra_build_revivables_event, typeof osra_build_revivables_async_iterator, {
818
- readonly type: "nonFiniteNumber";
819
- readonly isType: (value: unknown) => value is number;
820
- readonly box: (value: number, context: osra.RevivableContext<any>) => number | osra_build_revivables_json_primitives.BoxedNonFiniteNumber;
821
- readonly revive: (value: osra_build_revivables_json_primitives.BoxedNonFiniteNumber, _context: osra.RevivableContext<any>) => number;
822
- }, {
823
- readonly type: "undefined";
824
- readonly isType: (value: unknown) => value is undefined;
825
- readonly box: (value: undefined, context: osra.RevivableContext<any>) => osra_build_revivables_json_primitives.BoxedUndefined | undefined;
826
- readonly revive: (_value: osra_build_revivables_json_primitives.BoxedUndefined, _context: osra.RevivableContext<any>) => undefined;
827
- }, {
828
- readonly type: "clonable";
829
- readonly capableOnly: true;
830
- readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Clonable;
831
- readonly box: (value: osra_build_revivables_fallbacks.Clonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
832
- readonly revive: (value: osra_build_revivables_fallbacks.BoxedClonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
833
- }, {
834
- readonly type: "transferable";
835
- readonly capableOnly: true;
836
- readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Transferable;
837
- readonly box: (value: osra_build_revivables_fallbacks.Transferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
838
- readonly revive: (value: osra_build_revivables_fallbacks.BoxedTransferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
839
- }, typeof osra_build_revivables_event_target, {
840
- readonly type: "unclonable";
841
- readonly isType: (value: unknown) => value is never;
842
- readonly box: (_value: never, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.BoxedUnclonable;
843
- readonly revive: (_value: osra_build_revivables_fallbacks.BoxedUnclonable, _context: osra.RevivableContext<any>) => Record<string, never>;
844
- }]) => readonly [typeof videoElement, typeof osra_build_revivables_transfer, typeof osra_build_revivables_identity, typeof osra_build_revivables_array_buffer, typeof osra_build_revivables_date, typeof osra_build_revivables_headers, typeof osra_build_revivables_error, typeof osra_build_revivables_typed_array, typeof osra_build_revivables_blob, typeof osra_build_revivables_promise, typeof osra_build_revivables_function, typeof osra_build_revivables_message_port, typeof osra_build_revivables_readable_stream, typeof osra_build_revivables_writable_stream, typeof osra_build_revivables_abort_signal, typeof osra_build_revivables_response, typeof osra_build_revivables_request, typeof osra_build_revivables_map, typeof osra_build_revivables_set, typeof osra_build_revivables_bigint, typeof osra_build_revivables_symbol, typeof osra_build_revivables_event, typeof osra_build_revivables_async_iterator, {
845
- readonly type: "nonFiniteNumber";
818
+ declare const handleRevivableModules: (defaults: DefaultRevivableModules) => readonly [typeof videoElement, typeof osra_build_revivables_transfer, typeof osra_build_revivables_identity, typeof osra_build_revivables_array_buffer, typeof osra_build_revivables_date, typeof osra_build_revivables_headers, typeof osra_build_revivables_error, typeof osra_build_revivables_typed_array, typeof osra_build_revivables_blob, typeof osra_build_revivables_promise, typeof osra_build_revivables_function, typeof osra_build_revivables_message_port, typeof osra_build_revivables_readable_stream, typeof osra_build_revivables_writable_stream, typeof osra_build_revivables_abort_signal, typeof osra_build_revivables_response, typeof osra_build_revivables_request, typeof osra_build_revivables_map, typeof osra_build_revivables_set, typeof osra_build_revivables_bigint, typeof osra_build_revivables_symbol, typeof osra_build_revivables_event, typeof osra_build_revivables_async_iterator, {
819
+ readonly type: 'nonFiniteNumber';
846
820
  readonly isType: (value: unknown) => value is number;
847
- readonly box: (value: number, context: osra.RevivableContext<any>) => number | osra_build_revivables_json_primitives.BoxedNonFiniteNumber;
821
+ readonly box: (value: number, context: osra.RevivableContext<any>) => osra_build_revivables_json_primitives.BoxedNonFiniteNumber | number;
848
822
  readonly revive: (value: osra_build_revivables_json_primitives.BoxedNonFiniteNumber, _context: osra.RevivableContext<any>) => number;
849
823
  }, {
850
- readonly type: "undefined";
824
+ readonly type: 'undefined';
851
825
  readonly isType: (value: unknown) => value is undefined;
852
826
  readonly box: (value: undefined, context: osra.RevivableContext<any>) => osra_build_revivables_json_primitives.BoxedUndefined | undefined;
853
827
  readonly revive: (_value: osra_build_revivables_json_primitives.BoxedUndefined, _context: osra.RevivableContext<any>) => undefined;
854
828
  }, {
855
- readonly type: "clonable";
829
+ readonly type: 'clonable';
856
830
  readonly capableOnly: true;
857
831
  readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Clonable;
858
832
  readonly box: (value: osra_build_revivables_fallbacks.Clonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
859
833
  readonly revive: (value: osra_build_revivables_fallbacks.BoxedClonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
860
834
  }, {
861
- readonly type: "transferable";
835
+ readonly type: 'transferable';
862
836
  readonly capableOnly: true;
863
837
  readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Transferable;
864
838
  readonly box: (value: osra_build_revivables_fallbacks.Transferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
865
839
  readonly revive: (value: osra_build_revivables_fallbacks.BoxedTransferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
866
840
  }, typeof osra_build_revivables_event_target, {
867
- readonly type: "unclonable";
841
+ readonly type: 'unclonable';
868
842
  readonly isType: (value: unknown) => value is never;
869
843
  readonly box: (_value: never, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.BoxedUnclonable;
870
844
  readonly revive: (_value: osra_build_revivables_fallbacks.BoxedUnclonable, _context: osra.RevivableContext<any>) => Record<string, never>;
@@ -1114,6 +1088,21 @@ declare const processTcpSocket: ({ connectedPacket, dataReadableStream, dataWrit
1114
1088
  }>;
1115
1089
  type TcpSocketResult = Awaited<ReturnType<typeof processTcpSocket>>;
1116
1090
 
1091
+ type StorageEntry = {
1092
+ path: string;
1093
+ size: number;
1094
+ contentType: string | null;
1095
+ updatedAt: string;
1096
+ };
1097
+ type StorageQuota$1 = {
1098
+ usedBytes: number;
1099
+ limitBytes: number;
1100
+ remaining: number;
1101
+ objects: number;
1102
+ maxObjects: number;
1103
+ };
1104
+ type WriteData$1 = Blob | ArrayBuffer | Uint8Array | string;
1105
+
1117
1106
  type Account = {
1118
1107
  name: string;
1119
1108
  image: string | null;
@@ -1137,7 +1126,7 @@ type Quota = {
1137
1126
 
1138
1127
  declare const resolvers: {
1139
1128
  readonly cloud: {
1140
- readonly fetch: (input: string | URL | Request, init?: (RequestInit | undefined) & {
1129
+ readonly fetch: (input: string | Request | URL, init?: (RequestInit | undefined) & {
1141
1130
  render?: boolean;
1142
1131
  }) => Promise<Response>;
1143
1132
  readonly quota: () => Promise<Quota>;
@@ -1147,6 +1136,14 @@ declare const resolvers: {
1147
1136
  family: 0 | 4 | 6;
1148
1137
  }) => Promise<T extends true ? AddressLookupResult[] : AddressLookupResult | undefined>;
1149
1138
  };
1139
+ readonly fs: {
1140
+ readonly available: () => Promise<boolean>;
1141
+ readonly list: () => Promise<StorageEntry[]>;
1142
+ readonly quota: () => Promise<StorageQuota$1>;
1143
+ readonly readFile: (path: string) => Promise<Blob>;
1144
+ readonly writeFile: (path: string, data: WriteData$1, contentType: string | null) => Promise<void>;
1145
+ readonly remove: (path: string) => Promise<void>;
1146
+ };
1150
1147
  readonly webvpn: {
1151
1148
  readonly tcpSocket: ({ remoteAddress: _remoteAddress, remotePort }: {
1152
1149
  remoteAddress: string;
@@ -1232,7 +1229,7 @@ declare const resolvers: {
1232
1229
  readonly logout: () => void;
1233
1230
  readonly onChange: (listener: () => void) => (() => void);
1234
1231
  };
1235
- readonly proxyFetch: (input: string | URL | Request, init?: (RequestInit | undefined) & {
1232
+ readonly proxyFetch: (input: string | Request | URL, init?: (RequestInit | undefined) & {
1236
1233
  render?: boolean;
1237
1234
  }) => Promise<Response>;
1238
1235
  readonly webVpnTcpSocket: ({ remoteAddress: _remoteAddress, remotePort }: {
@@ -1334,7 +1331,7 @@ type QuotaStatus = {
1334
1331
  /** current effective egress rate cap, bits per second (for display) */
1335
1332
  bitsPerSecond: number;
1336
1333
  };
1337
- declare const quota: () => Promise<QuotaStatus>;
1334
+ declare const quota$1: () => Promise<QuotaStatus>;
1338
1335
 
1339
1336
  declare const lookup: <T extends boolean = false>(hostname: string, options?: {
1340
1337
  all?: T;
@@ -1348,6 +1345,86 @@ declare namespace dns$1 {
1348
1345
  export type { dns$1_AddressLookupResult as AddressLookupResult };
1349
1346
  }
1350
1347
 
1348
+ type ReadOptions = BufferEncoding | {
1349
+ encoding?: BufferEncoding | null;
1350
+ flag?: string;
1351
+ } | null | undefined;
1352
+ type WriteOptions = BufferEncoding | {
1353
+ encoding?: BufferEncoding | null;
1354
+ mode?: number;
1355
+ flag?: string;
1356
+ contentType?: string;
1357
+ } | null | undefined;
1358
+ type WriteData = string | Uint8Array | ArrayBuffer | DataView;
1359
+ type MakeOptions = {
1360
+ recursive?: boolean;
1361
+ } | number | null | undefined;
1362
+ type Callback<R> = (error: NodeJS.ErrnoException | null, result?: R) => void;
1363
+ type Stats = {
1364
+ size: number;
1365
+ mtimeMs: number;
1366
+ mtime: Date;
1367
+ atimeMs: number;
1368
+ ctimeMs: number;
1369
+ mode: number;
1370
+ isFile: () => boolean;
1371
+ isDirectory: () => boolean;
1372
+ isSymbolicLink: () => boolean;
1373
+ };
1374
+
1375
+ type FileEntry = {
1376
+ path: string;
1377
+ size: number;
1378
+ contentType: string | null;
1379
+ updatedAt: string;
1380
+ };
1381
+ type StorageQuota = {
1382
+ usedBytes: number;
1383
+ limitBytes: number;
1384
+ remaining: number;
1385
+ objects: number;
1386
+ maxObjects: number;
1387
+ };
1388
+ declare const quota: () => Promise<StorageQuota>;
1389
+
1390
+ declare const available$4: () => Promise<boolean>;
1391
+ declare const readFile$2: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
1392
+ declare const writeFile$2: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
1393
+ declare const unlink$2: (path: node_fs.PathLike, callback: Callback<void>) => void;
1394
+ declare const rename$2: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
1395
+ declare const readdir$2: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
1396
+ declare const mkdir$2: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
1397
+ declare const rm$2: (path: node_fs.PathLike, a: {
1398
+ recursive?: boolean;
1399
+ } | Callback<void>, b?: Callback<void>) => void;
1400
+ declare const stat$2: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
1401
+ declare const promises$2: {
1402
+ readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
1403
+ writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
1404
+ unlink: (path: node_fs.PathLike) => Promise<void>;
1405
+ rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
1406
+ readdir: (path: node_fs.PathLike) => Promise<string[]>;
1407
+ mkdir: (_path?: node_fs.PathLike, _options?: MakeOptions) => Promise<void>;
1408
+ rm: (path: node_fs.PathLike, options?: {
1409
+ recursive?: boolean;
1410
+ }) => Promise<void>;
1411
+ rmdir: (path: node_fs.PathLike, options?: {
1412
+ recursive?: boolean;
1413
+ }) => Promise<void>;
1414
+ stat: (path: node_fs.PathLike) => Promise<Stats>;
1415
+ lstat: (path: node_fs.PathLike) => Promise<Stats>;
1416
+ access: (path: node_fs.PathLike) => Promise<void>;
1417
+ };
1418
+
1419
+ type fs$1_FileEntry = FileEntry;
1420
+ type fs$1_Stats = Stats;
1421
+ type fs$1_StorageQuota = StorageQuota;
1422
+ declare const fs$1_quota: typeof quota;
1423
+ declare namespace fs$1 {
1424
+ export { available$4 as available, mkdir$2 as mkdir, promises$2 as promises, fs$1_quota as quota, readFile$2 as readFile, readdir$2 as readdir, rename$2 as rename, rm$2 as rm, stat$2 as stat, unlink$2 as unlink, writeFile$2 as writeFile };
1425
+ export type { fs$1_FileEntry as FileEntry, fs$1_Stats as Stats, fs$1_StorageQuota as StorageQuota };
1426
+ }
1427
+
1351
1428
  declare const isIPv4: (input: string) => boolean;
1352
1429
  declare const isIPv6: (input: string) => boolean;
1353
1430
  declare const isIP: (input: string) => 0 | 4 | 6;
@@ -1587,7 +1664,7 @@ declare class Socket extends EventEmitter implements Socket$3 {
1587
1664
  dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string | undefined): void;
1588
1665
  [Symbol.asyncDispose](): Promise<void>;
1589
1666
  }
1590
- declare const createSocket: (options: SocketType | SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void) => Socket;
1667
+ declare const createSocket: (options: SocketType | SocketOptions, callback?: (msg: Buffer$1, rinfo: RemoteInfo) => void) => Socket;
1591
1668
 
1592
1669
  type dgram$1_Socket = Socket;
1593
1670
  declare const dgram$1_Socket: typeof Socket;
@@ -1681,9 +1758,9 @@ declare abstract class OutgoingMessage extends Stream.Writable {
1681
1758
  protected _storeHeader(startLine: string): string;
1682
1759
  protected abstract _shouldSendBody(): boolean;
1683
1760
  protected abstract _implicitHeader(): void;
1684
- protected _writeToSocket(data: Buffer, callback: (error?: Error | null) => void): void;
1761
+ protected _writeToSocket(data: Buffer$1, callback: (error?: Error | null) => void): void;
1685
1762
  write(chunk: unknown, encoding?: BufferEncoding | ((error: Error | null | undefined) => void), callback?: (error: Error | null | undefined) => void): boolean;
1686
- _write(chunk: Buffer, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
1763
+ _write(chunk: Buffer$1, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
1687
1764
  _final(callback: (error?: Error | null) => void): void;
1688
1765
  end(chunk?: unknown, encoding?: BufferEncoding | (() => void), callback?: () => void): this;
1689
1766
  protected _headBlock?: string;
@@ -1731,7 +1808,7 @@ declare class ClientRequest extends OutgoingMessage {
1731
1808
  abort(): void;
1732
1809
  destroy(error?: Error): this;
1733
1810
  end(chunk?: unknown, encoding?: unknown, callback?: unknown): this;
1734
- protected _writeToSocket(data: Buffer, callback: (error?: Error | null) => void): void;
1811
+ protected _writeToSocket(data: Buffer$1, callback: (error?: Error | null) => void): void;
1735
1812
  setTimeout(timeout: number, callback?: () => void): this;
1736
1813
  setNoDelay(noDelay?: boolean): void;
1737
1814
  setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
@@ -1802,13 +1879,12 @@ declare namespace http {
1802
1879
  export type { http_ClientRequestArgs as ClientRequestArgs, http_ParsedHead as ParsedHead, http_RequestListener as RequestListener, http_Server as Server, http_ServerResponseOptions as ServerResponseOptions };
1803
1880
  }
1804
1881
 
1805
- declare const available$1: () => boolean;
1882
+ declare const available$3: () => boolean;
1806
1883
 
1807
1884
  type cloud_QuotaStatus = QuotaStatus;
1808
1885
  declare const cloud_http: typeof http;
1809
- declare const cloud_quota: typeof quota;
1810
1886
  declare namespace cloud {
1811
- export { available$1 as available, dgram$1 as dgram, dns$1 as dns, cloudFetch as fetch, cloud_http as http, net$1 as net, cloud_quota as quota };
1887
+ export { available$3 as available, dgram$1 as dgram, dns$1 as dns, cloudFetch as fetch, fs$1 as fs, cloud_http as http, net$1 as net, quota$1 as quota };
1812
1888
  export type { cloud_QuotaStatus as QuotaStatus };
1813
1889
  }
1814
1890
 
@@ -1868,7 +1944,7 @@ declare namespace extension {
1868
1944
  export type { extension_AttachFrameOptions as AttachFrameOptions, extension_BoxedVideoElement as BoxedVideoElement, extension_CookieDetails as CookieDetails, extension_FetchInit as FetchInit, extension_Frame as Frame, extension_GotoOptions as GotoOptions, extension_HeaderOperation as HeaderOperation, extension_PermissionGrant as PermissionGrant, extension_PermissionRequest as PermissionRequest, extension_ProxyFetchRequest as ProxyFetchRequest, extension_RemoteVideoElement as RemoteVideoElement, extension_RequestHeaderRule as RequestHeaderRule, extension_SiteCookie as SiteCookie, extension_VideoElementState as VideoElementState };
1869
1945
  }
1870
1946
 
1871
- declare const available: () => boolean;
1947
+ declare const available$2: () => boolean;
1872
1948
  declare const fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
1873
1949
  declare const dns: {
1874
1950
  lookup: (..._args: unknown[]) => never;
@@ -1881,49 +1957,200 @@ declare const net: {
1881
1957
  declare const dgram: {
1882
1958
  createSocket: (..._args: unknown[]) => never;
1883
1959
  };
1884
- declare const fs$1: {
1885
- isLocalDirectorySupported: () => boolean;
1886
- pickLocalDirectory: (..._args: unknown[]) => never;
1887
- queryDirectoryPermission: (..._args: unknown[]) => never;
1888
- ensureDirectoryPermission: (..._args: unknown[]) => never;
1960
+ declare const fs: {
1961
+ available: () => Promise<boolean>;
1962
+ readFile: (..._args: unknown[]) => never;
1963
+ readFileSync: (..._args: unknown[]) => never;
1964
+ writeFile: (..._args: unknown[]) => never;
1965
+ writeFileSync: (..._args: unknown[]) => never;
1966
+ appendFile: (..._args: unknown[]) => never;
1967
+ appendFileSync: (..._args: unknown[]) => never;
1968
+ existsSync: (..._args: unknown[]) => never;
1969
+ stat: (..._args: unknown[]) => never;
1970
+ statSync: (..._args: unknown[]) => never;
1971
+ readdir: (..._args: unknown[]) => never;
1972
+ readdirSync: (..._args: unknown[]) => never;
1973
+ mkdir: (..._args: unknown[]) => never;
1974
+ mkdirSync: (..._args: unknown[]) => never;
1975
+ rm: (..._args: unknown[]) => never;
1976
+ rmSync: (..._args: unknown[]) => never;
1977
+ unlink: (..._args: unknown[]) => never;
1978
+ unlinkSync: (..._args: unknown[]) => never;
1979
+ rename: (..._args: unknown[]) => never;
1980
+ renameSync: (..._args: unknown[]) => never;
1981
+ mount: (..._args: unknown[]) => never;
1982
+ flush: (..._args: unknown[]) => never;
1983
+ promises: {
1984
+ readFile: (..._args: unknown[]) => never;
1985
+ writeFile: (..._args: unknown[]) => never;
1986
+ unlink: (..._args: unknown[]) => never;
1987
+ rename: (..._args: unknown[]) => never;
1988
+ readdir: (..._args: unknown[]) => never;
1989
+ mkdir: (..._args: unknown[]) => never;
1990
+ rm: (..._args: unknown[]) => never;
1991
+ stat: (..._args: unknown[]) => never;
1992
+ };
1889
1993
  };
1890
1994
 
1891
- declare const desktop_available: typeof available;
1892
1995
  declare const desktop_dgram: typeof dgram;
1893
1996
  declare const desktop_dns: typeof dns;
1894
1997
  declare const desktop_fetch: typeof fetch;
1998
+ declare const desktop_fs: typeof fs;
1895
1999
  declare const desktop_net: typeof net;
1896
2000
  declare namespace desktop {
1897
2001
  export {
1898
- desktop_available as available,
2002
+ available$2 as available,
1899
2003
  desktop_dgram as dgram,
1900
2004
  desktop_dns as dns,
1901
2005
  desktop_fetch as fetch,
1902
- fs$1 as fs,
2006
+ desktop_fs as fs,
1903
2007
  desktop_net as net,
1904
2008
  };
1905
2009
  }
1906
2010
 
1907
- type DirectoryPermissionMode = 'read' | 'readwrite';
1908
- type PickLocalDirectoryOptions = {
1909
- id?: string;
1910
- mode?: DirectoryPermissionMode;
1911
- startIn?: 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos';
1912
- };
1913
- declare const isLocalDirectorySupported: () => boolean;
1914
- declare const pickLocalDirectory: (options?: PickLocalDirectoryOptions) => Promise<FileSystemDirectoryHandle | undefined>;
1915
- declare const queryDirectoryPermission: (handle: FileSystemDirectoryHandle, mode?: DirectoryPermissionMode) => Promise<PermissionState>;
1916
- declare const ensureDirectoryPermission: (handle: FileSystemDirectoryHandle, mode?: DirectoryPermissionMode) => Promise<boolean>;
1917
-
1918
- type fs_DirectoryPermissionMode = DirectoryPermissionMode;
1919
- type fs_PickLocalDirectoryOptions = PickLocalDirectoryOptions;
1920
- declare const fs_ensureDirectoryPermission: typeof ensureDirectoryPermission;
1921
- declare const fs_isLocalDirectorySupported: typeof isLocalDirectorySupported;
1922
- declare const fs_pickLocalDirectory: typeof pickLocalDirectory;
1923
- declare const fs_queryDirectoryPermission: typeof queryDirectoryPermission;
1924
- declare namespace fs {
1925
- export { fs_ensureDirectoryPermission as ensureDirectoryPermission, fs_isLocalDirectorySupported as isLocalDirectorySupported, fs_pickLocalDirectory as pickLocalDirectory, fs_queryDirectoryPermission as queryDirectoryPermission };
1926
- export type { fs_DirectoryPermissionMode as DirectoryPermissionMode, fs_PickLocalDirectoryOptions as PickLocalDirectoryOptions };
2011
+ declare const available$1: () => Promise<boolean>;
2012
+ declare const readFileSync$1: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
2013
+ declare const writeFileSync$1: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
2014
+ declare const appendFileSync$1: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
2015
+ declare const existsSync$1: (path: node_fs.PathLike) => boolean;
2016
+ declare const statSync$1: (path: node_fs.PathLike) => Stats;
2017
+ declare const lstatSync$1: (path: node_fs.PathLike) => Stats;
2018
+ declare const readdirSync$1: (path: node_fs.PathLike) => string[];
2019
+ declare const mkdirSync$1: (path: node_fs.PathLike, options?: MakeOptions) => void;
2020
+ declare const rmSync$1: (path: node_fs.PathLike, options?: {
2021
+ recursive?: boolean;
2022
+ force?: boolean;
2023
+ }) => void;
2024
+ declare const rmdirSync$1: (path: node_fs.PathLike, options?: {
2025
+ recursive?: boolean;
2026
+ }) => void;
2027
+ declare const unlinkSync$1: (path: node_fs.PathLike) => void;
2028
+ declare const renameSync$1: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
2029
+ declare const readFile$1: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
2030
+ declare const writeFile$1: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2031
+ declare const appendFile$1: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2032
+ declare const stat$1: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
2033
+ declare const readdir$1: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
2034
+ declare const mkdir$1: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
2035
+ declare const rm$1: (path: node_fs.PathLike, a: {
2036
+ recursive?: boolean;
2037
+ } | Callback<void>, b?: Callback<void>) => void;
2038
+ declare const unlink$1: (path: node_fs.PathLike, callback: Callback<void>) => void;
2039
+ declare const rename$1: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
2040
+ declare const exists$1: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
2041
+ declare const promises$1: {
2042
+ readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
2043
+ writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2044
+ appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2045
+ stat: (path: node_fs.PathLike) => Promise<Stats>;
2046
+ lstat: (path: node_fs.PathLike) => Promise<Stats>;
2047
+ readdir: (path: node_fs.PathLike) => Promise<string[]>;
2048
+ mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
2049
+ rm: (path: node_fs.PathLike, options?: {
2050
+ recursive?: boolean;
2051
+ }) => Promise<void>;
2052
+ rmdir: (path: node_fs.PathLike, options?: {
2053
+ recursive?: boolean;
2054
+ }) => Promise<void>;
2055
+ unlink: (path: node_fs.PathLike) => Promise<void>;
2056
+ rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
2057
+ access: (path: node_fs.PathLike) => Promise<void>;
2058
+ };
2059
+ declare const mount$1: () => Promise<void>;
2060
+ declare const flush$1: () => Promise<void>;
2061
+ declare const remount$1: () => Promise<void>;
2062
+ declare const pull: (path: string) => Promise<Blob>;
2063
+
2064
+ type index$1_Stats = Stats;
2065
+ declare const index$1_pull: typeof pull;
2066
+ declare namespace index$1 {
2067
+ export { appendFile$1 as appendFile, appendFileSync$1 as appendFileSync, available$1 as available, exists$1 as exists, existsSync$1 as existsSync, flush$1 as flush, lstatSync$1 as lstatSync, mkdir$1 as mkdir, mkdirSync$1 as mkdirSync, mount$1 as mount, promises$1 as promises, index$1_pull as pull, readFile$1 as readFile, readFileSync$1 as readFileSync, readdir$1 as readdir, readdirSync$1 as readdirSync, remount$1 as remount, rename$1 as rename, renameSync$1 as renameSync, rm$1 as rm, rmSync$1 as rmSync, rmdirSync$1 as rmdirSync, stat$1 as stat, statSync$1 as statSync, unlink$1 as unlink, unlinkSync$1 as unlinkSync, writeFile$1 as writeFile, writeFileSync$1 as writeFileSync };
2068
+ export type { index$1_Stats as Stats };
2069
+ }
2070
+
2071
+ declare const available: () => Promise<boolean>;
2072
+ declare const readFileSync: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
2073
+ declare const writeFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
2074
+ declare const appendFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
2075
+ declare const existsSync: (path: node_fs.PathLike) => boolean;
2076
+ declare const statSync: (path: node_fs.PathLike) => Stats;
2077
+ declare const lstatSync: (path: node_fs.PathLike) => Stats;
2078
+ declare const readdirSync: (path: node_fs.PathLike) => string[];
2079
+ declare const mkdirSync: (path: node_fs.PathLike, options?: MakeOptions) => void;
2080
+ declare const rmSync: (path: node_fs.PathLike, options?: {
2081
+ recursive?: boolean;
2082
+ force?: boolean;
2083
+ }) => void;
2084
+ declare const rmdirSync: (path: node_fs.PathLike, options?: {
2085
+ recursive?: boolean;
2086
+ }) => void;
2087
+ declare const unlinkSync: (path: node_fs.PathLike) => void;
2088
+ declare const renameSync: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
2089
+ declare const readFile: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
2090
+ declare const writeFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2091
+ declare const appendFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2092
+ declare const stat: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
2093
+ declare const readdir: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
2094
+ declare const mkdir: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
2095
+ declare const rm: (path: node_fs.PathLike, a: {
2096
+ recursive?: boolean;
2097
+ } | Callback<void>, b?: Callback<void>) => void;
2098
+ declare const unlink: (path: node_fs.PathLike, callback: Callback<void>) => void;
2099
+ declare const rename: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
2100
+ declare const exists: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
2101
+ declare const promises: {
2102
+ readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
2103
+ writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2104
+ appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2105
+ stat: (path: node_fs.PathLike) => Promise<Stats>;
2106
+ lstat: (path: node_fs.PathLike) => Promise<Stats>;
2107
+ readdir: (path: node_fs.PathLike) => Promise<string[]>;
2108
+ mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
2109
+ rm: (path: node_fs.PathLike, options?: {
2110
+ recursive?: boolean;
2111
+ }) => Promise<void>;
2112
+ rmdir: (path: node_fs.PathLike, options?: {
2113
+ recursive?: boolean;
2114
+ }) => Promise<void>;
2115
+ unlink: (path: node_fs.PathLike) => Promise<void>;
2116
+ rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
2117
+ access: (path: node_fs.PathLike) => Promise<void>;
2118
+ };
2119
+ declare const mount: () => Promise<void>;
2120
+ declare const flush: () => Promise<void>;
2121
+ declare const remount: () => Promise<void>;
2122
+
2123
+ type index_Stats = Stats;
2124
+ declare const index_appendFile: typeof appendFile;
2125
+ declare const index_appendFileSync: typeof appendFileSync;
2126
+ declare const index_available: typeof available;
2127
+ declare const index_exists: typeof exists;
2128
+ declare const index_existsSync: typeof existsSync;
2129
+ declare const index_flush: typeof flush;
2130
+ declare const index_lstatSync: typeof lstatSync;
2131
+ declare const index_mkdir: typeof mkdir;
2132
+ declare const index_mkdirSync: typeof mkdirSync;
2133
+ declare const index_mount: typeof mount;
2134
+ declare const index_promises: typeof promises;
2135
+ declare const index_readFile: typeof readFile;
2136
+ declare const index_readFileSync: typeof readFileSync;
2137
+ declare const index_readdir: typeof readdir;
2138
+ declare const index_readdirSync: typeof readdirSync;
2139
+ declare const index_remount: typeof remount;
2140
+ declare const index_rename: typeof rename;
2141
+ declare const index_renameSync: typeof renameSync;
2142
+ declare const index_rm: typeof rm;
2143
+ declare const index_rmSync: typeof rmSync;
2144
+ declare const index_rmdirSync: typeof rmdirSync;
2145
+ declare const index_stat: typeof stat;
2146
+ declare const index_statSync: typeof statSync;
2147
+ declare const index_unlink: typeof unlink;
2148
+ declare const index_unlinkSync: typeof unlinkSync;
2149
+ declare const index_writeFile: typeof writeFile;
2150
+ declare const index_writeFileSync: typeof writeFileSync;
2151
+ declare namespace index {
2152
+ export { index_appendFile as appendFile, index_appendFileSync as appendFileSync, index_available as available, index_exists as exists, index_existsSync as existsSync, index_flush as flush, index_lstatSync as lstatSync, index_mkdir as mkdir, index_mkdirSync as mkdirSync, index_mount as mount, index_promises as promises, index_readFile as readFile, index_readFileSync as readFileSync, index_readdir as readdir, index_readdirSync as readdirSync, index_remount as remount, index_rename as rename, index_renameSync as renameSync, index_rm as rm, index_rmSync as rmSync, index_rmdirSync as rmdirSync, index_stat as stat, index_statSync as statSync, index_unlink as unlink, index_unlinkSync as unlinkSync, index_writeFile as writeFile, index_writeFileSync as writeFileSync };
2153
+ export type { index_Stats as Stats };
1927
2154
  }
1928
2155
 
1929
2156
  declare const relayWorker: (worker: Worker, options?: {
@@ -1966,5 +2193,5 @@ type ConnectButtonProps = {
1966
2193
  };
1967
2194
  declare const ConnectButton: ({ className, style }?: ConnectButtonProps) => ReactElement;
1968
2195
 
1969
- export { ATTACH_FRAME_EVENT_KEY, ConnectButton, account, assertAttachableFrameUrl, assertFetchableUrl, attachFrame, attachFramePermission, box, cloud, connect, connectButtonUrl, cookies, createVideoElementHandle, desktop, dgram$1 as dgram, dns$1 as dns, evaluatePermission, extension, fetch$1 as fetch, fetchCredentialedPermission, fetchLocalPermission, fetchPermission, fs, gotoPermission, handleRevivableModules, http, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isType, modifyRequestHeadersPermission, net$1 as net, permissions, promptInstall, readCookiePermission, relayWorker, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, type, waitForExtensionExposure };
2196
+ export { ATTACH_FRAME_EVENT_KEY, ConnectButton, account, assertAttachableFrameUrl, assertFetchableUrl, attachFrame, attachFramePermission, box, cloud, connect, connectButtonUrl, cookies, createVideoElementHandle, desktop, dgram$1 as dgram, dns$1 as dns, evaluatePermission, extension, fetch$1 as fetch, fetchCredentialedPermission, fetchLocalPermission, fetchPermission, index$1 as fs, gotoPermission, handleRevivableModules, http, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isType, modifyRequestHeadersPermission, net$1 as net, index as opfs, permissions, promptInstall, readCookiePermission, relayWorker, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, type, waitForExtensionExposure };
1970
2197
  export type { AttachFrameOptions, BoxedVideoElement, ConnectButtonProps, CookieDetails, FetchInit, Frame, GotoOptions, HeaderOperation, PermissionGrant, PermissionRequest, ProxyFetchRequest, RemoteVideoElement, RequestHeaderRule, SiteCookie, VideoElementState };