@fkn/lib 0.4.9 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-BrY9dKwV.cjs +1 -0
  29. package/cloud-C-LK4DWa.js +33 -0
  30. package/cloud.cjs +1 -0
  31. package/cloud.d.ts +1053 -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-C5rGcbej.cjs +1 -0
  37. package/dgram-DS5_yPc5.js +330 -0
  38. package/dgram.cjs +1 -0
  39. package/dgram.d.ts +541 -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 +65 -0
  51. package/fs/promises.js +8 -0
  52. package/fs-BiS_UsCn.js +82 -0
  53. package/fs-CmgWrokB.cjs +1 -0
  54. package/fs.cjs +1 -0
  55. package/fs.d.ts +138 -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 +261 -146
  62. package/index.js +27 -1879
  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
@@ -27,13 +27,13 @@ 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
- import { PathLike } from 'fs';
37
37
  import { CSSProperties, ReactElement } from 'react';
38
38
 
39
39
  declare const fetchPermission: {
@@ -334,7 +334,7 @@ declare const permission$3: {
334
334
  };
335
335
  declare const resolve$5: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
336
336
 
337
- declare namespace exists$1 {
337
+ declare namespace exists$2 {
338
338
  export {
339
339
  permission$3 as permission,
340
340
  resolve$5 as resolve,
@@ -387,7 +387,7 @@ declare const locatorModule: {
387
387
  readonly render: SelectorRenderer;
388
388
  readonly nextLocatorType: 'frameLocator';
389
389
  }, typeof getByRole, typeof getByText, typeof getByTestId, typeof first, typeof nth];
390
- readonly operationModules: readonly [typeof click, typeof fill, typeof hover, typeof textContent, typeof isVisible, typeof count, typeof exists$1, 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];
391
391
  };
392
392
  type LocatorModule = typeof locatorModule;
393
393
  interface Locator extends LocatorChain<LocatorModule, Locator> {
@@ -1101,7 +1101,7 @@ type StorageQuota$1 = {
1101
1101
  objects: number;
1102
1102
  maxObjects: number;
1103
1103
  };
1104
- type WriteData$3 = Blob | ArrayBuffer | Uint8Array | string;
1104
+ type WriteData$1 = Blob | ArrayBuffer | Uint8Array | string;
1105
1105
 
1106
1106
  type Account = {
1107
1107
  name: string;
@@ -1141,7 +1141,7 @@ declare const resolvers: {
1141
1141
  readonly list: () => Promise<StorageEntry[]>;
1142
1142
  readonly quota: () => Promise<StorageQuota$1>;
1143
1143
  readonly readFile: (path: string) => Promise<Blob>;
1144
- readonly writeFile: (path: string, data: WriteData$3, contentType: string | null) => Promise<void>;
1144
+ readonly writeFile: (path: string, data: WriteData$1, contentType: string | null) => Promise<void>;
1145
1145
  readonly remove: (path: string) => Promise<void>;
1146
1146
  };
1147
1147
  readonly webvpn: {
@@ -1345,7 +1345,34 @@ declare namespace dns$1 {
1345
1345
  export type { dns$1_AddressLookupResult as AddressLookupResult };
1346
1346
  }
1347
1347
 
1348
- type FileEntry$1 = {
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 = {
1349
1376
  path: string;
1350
1377
  size: number;
1351
1378
  contentType: string | null;
@@ -1358,21 +1385,44 @@ type StorageQuota = {
1358
1385
  objects: number;
1359
1386
  maxObjects: number;
1360
1387
  };
1361
- type WriteData$2 = Blob | ArrayBuffer | Uint8Array | string;
1362
- declare const available$4: () => Promise<boolean>;
1363
- declare const list$2: () => Promise<FileEntry$1[]>;
1364
1388
  declare const quota: () => Promise<StorageQuota>;
1365
- declare const readFile$3: (path: string) => Promise<Blob>;
1366
- declare const writeFile$3: (path: string, data: WriteData$2, opts?: {
1367
- contentType?: string;
1368
- }) => Promise<void>;
1369
- declare const remove$2: (path: string) => Promise<void>;
1370
-
1371
- type storage_StorageQuota = StorageQuota;
1372
- declare const storage_quota: typeof quota;
1373
- declare namespace storage {
1374
- export { available$4 as available, list$2 as list, storage_quota as quota, readFile$3 as readFile, remove$2 as remove, writeFile$3 as writeFile };
1375
- export type { FileEntry$1 as FileEntry, storage_StorageQuota as StorageQuota, WriteData$2 as WriteData };
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 };
1376
1426
  }
1377
1427
 
1378
1428
  declare const isIPv4: (input: string) => boolean;
@@ -1510,7 +1560,7 @@ declare const connect$1: (options: SocketConnectOpts, connectionListener?: () =>
1510
1560
  declare const createConnection: (options: SocketConnectOpts, connectionListener?: () => void) => Socket$1;
1511
1561
  declare const createServer$1: (options?: ServerOpts | ((socket: Socket$1) => void), connectionListener?: (socket: Socket$1) => void) => Server$1;
1512
1562
 
1513
- declare const _default$1: {
1563
+ declare const _default$3: {
1514
1564
  Socket: typeof Socket$1;
1515
1565
  Server: typeof Server$1;
1516
1566
  connect: (options: SocketConnectOpts, connectionListener?: () => void) => Socket$1;
@@ -1529,11 +1579,11 @@ declare namespace net$1 {
1529
1579
  export {
1530
1580
  Server$1 as Server,
1531
1581
  Socket$1 as Socket,
1532
- _default$1 as _default,
1582
+ _default$3 as _default,
1533
1583
  connect$1 as connect,
1534
1584
  net$1_createConnection as createConnection,
1535
1585
  createServer$1 as createServer,
1536
- _default$1 as default,
1586
+ _default$3 as default,
1537
1587
  net$1_isIP as isIP,
1538
1588
  net$1_isIPv4 as isIPv4,
1539
1589
  net$1_isIPv6 as isIPv6,
@@ -1614,7 +1664,11 @@ declare class Socket extends EventEmitter implements Socket$3 {
1614
1664
  dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string | undefined): void;
1615
1665
  [Symbol.asyncDispose](): Promise<void>;
1616
1666
  }
1617
- 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;
1668
+ declare const _default$2: {
1669
+ Socket: typeof Socket;
1670
+ createSocket: (options: SocketType | SocketOptions, callback?: (msg: Buffer$1, rinfo: RemoteInfo) => void) => Socket;
1671
+ };
1618
1672
 
1619
1673
  type dgram$1_Socket = Socket;
1620
1674
  declare const dgram$1_Socket: typeof Socket;
@@ -1623,6 +1677,7 @@ declare namespace dgram$1 {
1623
1677
  export {
1624
1678
  dgram$1_Socket as Socket,
1625
1679
  dgram$1_createSocket as createSocket,
1680
+ _default$2 as default,
1626
1681
  };
1627
1682
  }
1628
1683
 
@@ -1708,9 +1763,9 @@ declare abstract class OutgoingMessage extends Stream.Writable {
1708
1763
  protected _storeHeader(startLine: string): string;
1709
1764
  protected abstract _shouldSendBody(): boolean;
1710
1765
  protected abstract _implicitHeader(): void;
1711
- protected _writeToSocket(data: Buffer, callback: (error?: Error | null) => void): void;
1766
+ protected _writeToSocket(data: Buffer$1, callback: (error?: Error | null) => void): void;
1712
1767
  write(chunk: unknown, encoding?: BufferEncoding | ((error: Error | null | undefined) => void), callback?: (error: Error | null | undefined) => void): boolean;
1713
- _write(chunk: Buffer, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
1768
+ _write(chunk: Buffer$1, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
1714
1769
  _final(callback: (error?: Error | null) => void): void;
1715
1770
  end(chunk?: unknown, encoding?: BufferEncoding | (() => void), callback?: () => void): this;
1716
1771
  protected _headBlock?: string;
@@ -1758,7 +1813,7 @@ declare class ClientRequest extends OutgoingMessage {
1758
1813
  abort(): void;
1759
1814
  destroy(error?: Error): this;
1760
1815
  end(chunk?: unknown, encoding?: unknown, callback?: unknown): this;
1761
- protected _writeToSocket(data: Buffer, callback: (error?: Error | null) => void): void;
1816
+ protected _writeToSocket(data: Buffer$1, callback: (error?: Error | null) => void): void;
1762
1817
  setTimeout(timeout: number, callback?: () => void): this;
1763
1818
  setNoDelay(noDelay?: boolean): void;
1764
1819
  setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
@@ -1787,7 +1842,7 @@ declare const globalAgent: Agent;
1787
1842
  declare const request: (...args: [options: string | URL | ClientRequestArgs, callback?: (res: IncomingMessage) => void] | [url: string | URL, options: ClientRequestArgs, callback?: (res: IncomingMessage) => void]) => ClientRequest;
1788
1843
  declare const get: (...args: [options: string | URL | ClientRequestArgs, callback?: (res: IncomingMessage) => void] | [url: string | URL, options: ClientRequestArgs, callback?: (res: IncomingMessage) => void]) => ClientRequest;
1789
1844
  declare const createServer: (options?: object | RequestListener, requestListener?: RequestListener) => Server;
1790
- declare const _default: {
1845
+ declare const _default$1: {
1791
1846
  METHODS: string[];
1792
1847
  STATUS_CODES: Record<number, string>;
1793
1848
  Agent: typeof Agent;
@@ -1819,13 +1874,12 @@ type http_Server = Server;
1819
1874
  type http_ServerResponse = ServerResponse;
1820
1875
  declare const http_ServerResponse: typeof ServerResponse;
1821
1876
  type http_ServerResponseOptions = ServerResponseOptions;
1822
- declare const http__default: typeof _default;
1823
1877
  declare const http_createServer: typeof createServer;
1824
1878
  declare const http_get: typeof get;
1825
1879
  declare const http_globalAgent: typeof globalAgent;
1826
1880
  declare const http_request: typeof request;
1827
1881
  declare namespace http {
1828
- export { http_Agent as Agent, http_ClientRequest as ClientRequest, http_HTTPParser as HTTPParser, http_IncomingMessage as IncomingMessage, http_METHODS as METHODS, http_STATUS_CODES as STATUS_CODES, http_ServerResponse as ServerResponse, http__default as _default, http_createServer as createServer, _default as default, http_get as get, http_globalAgent as globalAgent, http_request as request };
1882
+ export { http_Agent as Agent, http_ClientRequest as ClientRequest, http_HTTPParser as HTTPParser, http_IncomingMessage as IncomingMessage, http_METHODS as METHODS, http_STATUS_CODES as STATUS_CODES, http_ServerResponse as ServerResponse, _default$1 as _default, http_createServer as createServer, _default$1 as default, http_get as get, http_globalAgent as globalAgent, http_request as request };
1829
1883
  export type { http_ClientRequestArgs as ClientRequestArgs, http_ParsedHead as ParsedHead, http_RequestListener as RequestListener, http_Server as Server, http_ServerResponseOptions as ServerResponseOptions };
1830
1884
  }
1831
1885
 
@@ -1834,7 +1888,7 @@ declare const available$3: () => boolean;
1834
1888
  type cloud_QuotaStatus = QuotaStatus;
1835
1889
  declare const cloud_http: typeof http;
1836
1890
  declare namespace cloud {
1837
- export { available$3 as available, dgram$1 as dgram, dns$1 as dns, cloudFetch as fetch, storage as fs, cloud_http as http, net$1 as net, quota$1 as quota };
1891
+ 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 };
1838
1892
  export type { cloud_QuotaStatus as QuotaStatus };
1839
1893
  }
1840
1894
 
@@ -1909,10 +1963,37 @@ declare const dgram: {
1909
1963
  };
1910
1964
  declare const fs: {
1911
1965
  available: () => Promise<boolean>;
1912
- list: (..._args: unknown[]) => never;
1913
1966
  readFile: (..._args: unknown[]) => never;
1967
+ readFileSync: (..._args: unknown[]) => never;
1914
1968
  writeFile: (..._args: unknown[]) => never;
1915
- remove: (..._args: unknown[]) => never;
1969
+ writeFileSync: (..._args: unknown[]) => never;
1970
+ appendFile: (..._args: unknown[]) => never;
1971
+ appendFileSync: (..._args: unknown[]) => never;
1972
+ existsSync: (..._args: unknown[]) => never;
1973
+ stat: (..._args: unknown[]) => never;
1974
+ statSync: (..._args: unknown[]) => never;
1975
+ readdir: (..._args: unknown[]) => never;
1976
+ readdirSync: (..._args: unknown[]) => never;
1977
+ mkdir: (..._args: unknown[]) => never;
1978
+ mkdirSync: (..._args: unknown[]) => never;
1979
+ rm: (..._args: unknown[]) => never;
1980
+ rmSync: (..._args: unknown[]) => never;
1981
+ unlink: (..._args: unknown[]) => never;
1982
+ unlinkSync: (..._args: unknown[]) => never;
1983
+ rename: (..._args: unknown[]) => never;
1984
+ renameSync: (..._args: unknown[]) => never;
1985
+ mount: (..._args: unknown[]) => never;
1986
+ flush: (..._args: unknown[]) => never;
1987
+ promises: {
1988
+ readFile: (..._args: unknown[]) => never;
1989
+ writeFile: (..._args: unknown[]) => never;
1990
+ unlink: (..._args: unknown[]) => never;
1991
+ rename: (..._args: unknown[]) => never;
1992
+ readdir: (..._args: unknown[]) => never;
1993
+ mkdir: (..._args: unknown[]) => never;
1994
+ rm: (..._args: unknown[]) => never;
1995
+ stat: (..._args: unknown[]) => never;
1996
+ };
1916
1997
  };
1917
1998
 
1918
1999
  declare const desktop_dgram: typeof dgram;
@@ -1931,142 +2012,176 @@ declare namespace desktop {
1931
2012
  };
1932
2013
  }
1933
2014
 
1934
- type FileEntry = {
1935
- path: string;
1936
- size: number;
1937
- contentType: string | null;
1938
- updatedAt: string | null;
1939
- };
1940
- type WriteData$1 = Blob | ArrayBuffer | Uint8Array | string;
1941
- type FileSystem = {
1942
- available: () => Promise<boolean>;
1943
- list: () => Promise<FileEntry[]>;
1944
- readFile: (path: string) => Promise<Blob>;
1945
- writeFile: (path: string, data: WriteData$1, opts?: {
1946
- contentType?: string;
2015
+ declare const available$1: () => Promise<boolean>;
2016
+ declare const readFileSync$1: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
2017
+ declare const writeFileSync$1: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
2018
+ declare const appendFileSync$1: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
2019
+ declare const existsSync$1: (path: node_fs.PathLike) => boolean;
2020
+ declare const statSync$1: (path: node_fs.PathLike) => Stats;
2021
+ declare const lstatSync$1: (path: node_fs.PathLike) => Stats;
2022
+ declare const readdirSync$1: (path: node_fs.PathLike) => string[];
2023
+ declare const mkdirSync$1: (path: node_fs.PathLike, options?: MakeOptions) => void;
2024
+ declare const rmSync$1: (path: node_fs.PathLike, options?: {
2025
+ recursive?: boolean;
2026
+ force?: boolean;
2027
+ }) => void;
2028
+ declare const rmdirSync$1: (path: node_fs.PathLike, options?: {
2029
+ recursive?: boolean;
2030
+ }) => void;
2031
+ declare const unlinkSync$1: (path: node_fs.PathLike) => void;
2032
+ declare const renameSync$1: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
2033
+ declare const readFile$1: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
2034
+ declare const writeFile$1: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2035
+ declare const appendFile$1: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2036
+ declare const stat$1: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
2037
+ declare const readdir$1: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
2038
+ declare const mkdir$1: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
2039
+ declare const rm$1: (path: node_fs.PathLike, a: {
2040
+ recursive?: boolean;
2041
+ } | Callback<void>, b?: Callback<void>) => void;
2042
+ declare const unlink$1: (path: node_fs.PathLike, callback: Callback<void>) => void;
2043
+ declare const rename$1: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
2044
+ declare const exists$1: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
2045
+ declare const promises$1: {
2046
+ readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
2047
+ writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2048
+ appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2049
+ stat: (path: node_fs.PathLike) => Promise<Stats>;
2050
+ lstat: (path: node_fs.PathLike) => Promise<Stats>;
2051
+ readdir: (path: node_fs.PathLike) => Promise<string[]>;
2052
+ mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
2053
+ rm: (path: node_fs.PathLike, options?: {
2054
+ recursive?: boolean;
1947
2055
  }) => Promise<void>;
1948
- remove: (path: string) => Promise<void>;
2056
+ rmdir: (path: node_fs.PathLike, options?: {
2057
+ recursive?: boolean;
2058
+ }) => Promise<void>;
2059
+ unlink: (path: node_fs.PathLike) => Promise<void>;
2060
+ rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
2061
+ access: (path: node_fs.PathLike) => Promise<void>;
1949
2062
  };
1950
-
1951
- declare const available$1: () => Promise<boolean>;
1952
- declare const list$1: () => Promise<FileEntry[]>;
1953
- declare const readFile$2: (path: string) => Promise<Blob>;
1954
- declare const writeFile$2: (path: string, data: WriteData$1, opts?: {
1955
- contentType?: string;
1956
- }) => Promise<void>;
1957
- declare const remove$1: (path: string) => Promise<void>;
2063
+ declare const mount$1: () => Promise<void>;
2064
+ declare const flush$1: () => Promise<void>;
2065
+ declare const remount$1: () => Promise<void>;
1958
2066
  declare const pull: (path: string) => Promise<Blob>;
2067
+ declare const _default: {
2068
+ pull: (path: string) => Promise<Blob>;
2069
+ available: () => Promise<boolean>;
2070
+ readFileSync: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
2071
+ writeFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
2072
+ appendFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
2073
+ existsSync: (path: node_fs.PathLike) => boolean;
2074
+ statSync: (path: node_fs.PathLike) => Stats;
2075
+ lstatSync: (path: node_fs.PathLike) => Stats;
2076
+ readdirSync: (path: node_fs.PathLike) => string[];
2077
+ mkdirSync: (path: node_fs.PathLike, options?: MakeOptions) => void;
2078
+ rmSync: (path: node_fs.PathLike, options?: {
2079
+ recursive?: boolean;
2080
+ force?: boolean;
2081
+ }) => void;
2082
+ rmdirSync: (path: node_fs.PathLike, options?: {
2083
+ recursive?: boolean;
2084
+ }) => void;
2085
+ unlinkSync: (path: node_fs.PathLike) => void;
2086
+ renameSync: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
2087
+ readFile: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
2088
+ writeFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2089
+ appendFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2090
+ stat: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
2091
+ readdir: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
2092
+ mkdir: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
2093
+ rm: (path: node_fs.PathLike, a: {
2094
+ recursive?: boolean;
2095
+ } | Callback<void>, b?: Callback<void>) => void;
2096
+ unlink: (path: node_fs.PathLike, callback: Callback<void>) => void;
2097
+ rename: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
2098
+ exists: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
2099
+ promises: {
2100
+ readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
2101
+ writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2102
+ appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2103
+ stat: (path: node_fs.PathLike) => Promise<Stats>;
2104
+ lstat: (path: node_fs.PathLike) => Promise<Stats>;
2105
+ readdir: (path: node_fs.PathLike) => Promise<string[]>;
2106
+ mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
2107
+ rm: (path: node_fs.PathLike, options?: {
2108
+ recursive?: boolean;
2109
+ }) => Promise<void>;
2110
+ rmdir: (path: node_fs.PathLike, options?: {
2111
+ recursive?: boolean;
2112
+ }) => Promise<void>;
2113
+ unlink: (path: node_fs.PathLike) => Promise<void>;
2114
+ rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
2115
+ access: (path: node_fs.PathLike) => Promise<void>;
2116
+ };
2117
+ mount: () => Promise<void>;
2118
+ flush: () => Promise<void>;
2119
+ remount: () => Promise<void>;
2120
+ };
1959
2121
 
1960
- type index$1_FileEntry = FileEntry;
1961
- type index$1_FileSystem = FileSystem;
2122
+ type index$1_Stats = Stats;
1962
2123
  declare const index$1_pull: typeof pull;
1963
2124
  declare namespace index$1 {
1964
- export { available$1 as available, list$1 as list, index$1_pull as pull, readFile$2 as readFile, remove$1 as remove, writeFile$2 as writeFile };
1965
- export type { index$1_FileEntry as FileEntry, index$1_FileSystem as FileSystem, WriteData$1 as WriteData };
2125
+ export { appendFile$1 as appendFile, appendFileSync$1 as appendFileSync, available$1 as available, _default as default, 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 };
2126
+ export type { index$1_Stats as Stats };
1966
2127
  }
1967
2128
 
1968
2129
  declare const available: () => Promise<boolean>;
1969
- declare const writeFile$1: (path: string, data: WriteData$1, opts?: {
1970
- contentType?: string;
1971
- }) => Promise<void>;
1972
- declare const readFile$1: (path: string) => Promise<Blob>;
1973
- declare const remove: (path: string) => Promise<void>;
1974
- declare const list: () => Promise<FileEntry[]>;
1975
-
1976
- declare const opfs_available: typeof available;
1977
- declare const opfs_list: typeof list;
1978
- declare const opfs_remove: typeof remove;
1979
- declare namespace opfs {
1980
- export {
1981
- opfs_available as available,
1982
- opfs_list as list,
1983
- readFile$1 as readFile,
1984
- opfs_remove as remove,
1985
- writeFile$1 as writeFile,
1986
- };
1987
- }
1988
-
1989
- type Stats = {
1990
- size: number;
1991
- mtimeMs: number;
1992
- mtime: Date;
1993
- atimeMs: number;
1994
- ctimeMs: number;
1995
- mode: number;
1996
- isFile: () => boolean;
1997
- isDirectory: () => boolean;
1998
- isSymbolicLink: () => boolean;
1999
- };
2000
- declare const mount: () => Promise<void>;
2001
- declare const remount: () => Promise<void>;
2002
- declare const flush: () => Promise<void>;
2003
-
2004
- type ReadOptions = BufferEncoding | {
2005
- encoding?: BufferEncoding | null;
2006
- flag?: string;
2007
- } | null | undefined;
2008
- type WriteOptions = BufferEncoding | {
2009
- encoding?: BufferEncoding | null;
2010
- mode?: number;
2011
- flag?: string;
2012
- } | null | undefined;
2013
- type WriteData = string | Uint8Array | ArrayBuffer | DataView;
2014
- type MakeOptions = {
2015
- recursive?: boolean;
2016
- } | number | null | undefined;
2017
- type Callback<R> = (error: NodeJS.ErrnoException | null, result?: R) => void;
2018
-
2019
- declare const readFileSync: (path: PathLike, options?: ReadOptions) => Buffer | string;
2020
- declare const writeFileSync: (path: PathLike, data: WriteData, options?: WriteOptions) => void;
2021
- declare const appendFileSync: (path: PathLike, data: WriteData, options?: WriteOptions) => void;
2022
- declare const existsSync: (path: PathLike) => boolean;
2023
- declare const statSync: (path: PathLike) => Stats;
2024
- declare const lstatSync: (path: PathLike) => Stats;
2025
- declare const readdirSync: (path: PathLike) => string[];
2026
- declare const mkdirSync: (path: PathLike, options?: MakeOptions) => void;
2027
- declare const rmSync: (path: PathLike, options?: {
2130
+ declare const readFileSync: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
2131
+ declare const writeFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
2132
+ declare const appendFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
2133
+ declare const existsSync: (path: node_fs.PathLike) => boolean;
2134
+ declare const statSync: (path: node_fs.PathLike) => Stats;
2135
+ declare const lstatSync: (path: node_fs.PathLike) => Stats;
2136
+ declare const readdirSync: (path: node_fs.PathLike) => string[];
2137
+ declare const mkdirSync: (path: node_fs.PathLike, options?: MakeOptions) => void;
2138
+ declare const rmSync: (path: node_fs.PathLike, options?: {
2028
2139
  recursive?: boolean;
2029
2140
  force?: boolean;
2030
2141
  }) => void;
2031
- declare const rmdirSync: (path: PathLike, options?: {
2142
+ declare const rmdirSync: (path: node_fs.PathLike, options?: {
2032
2143
  recursive?: boolean;
2033
2144
  }) => void;
2034
- declare const unlinkSync: (path: PathLike) => void;
2035
- declare const renameSync: (from: PathLike, to: PathLike) => void;
2036
- declare const readFile: (path: PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
2037
- declare const writeFile: (path: PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2038
- declare const appendFile: (path: PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2039
- declare const stat: (path: PathLike, callback: Callback<Stats>) => void;
2040
- declare const readdir: (path: PathLike, a: unknown, b?: Callback<string[]>) => void;
2041
- declare const mkdir: (path: PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
2042
- declare const rm: (path: PathLike, a: {
2145
+ declare const unlinkSync: (path: node_fs.PathLike) => void;
2146
+ declare const renameSync: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
2147
+ declare const readFile: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
2148
+ declare const writeFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2149
+ declare const appendFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
2150
+ declare const stat: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
2151
+ declare const readdir: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
2152
+ declare const mkdir: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
2153
+ declare const rm: (path: node_fs.PathLike, a: {
2043
2154
  recursive?: boolean;
2044
2155
  } | Callback<void>, b?: Callback<void>) => void;
2045
- declare const unlink: (path: PathLike, callback: Callback<void>) => void;
2046
- declare const rename: (from: PathLike, to: PathLike, callback: Callback<void>) => void;
2047
- declare const exists: (path: PathLike, callback: (exists: boolean) => void) => void;
2156
+ declare const unlink: (path: node_fs.PathLike, callback: Callback<void>) => void;
2157
+ declare const rename: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
2158
+ declare const exists: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
2048
2159
  declare const promises: {
2049
- readFile: (path: PathLike, options?: ReadOptions) => Promise<Buffer | string>;
2050
- writeFile: (path: PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2051
- appendFile: (path: PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2052
- stat: (path: PathLike) => Promise<Stats>;
2053
- lstat: (path: PathLike) => Promise<Stats>;
2054
- readdir: (path: PathLike) => Promise<string[]>;
2055
- mkdir: (path: PathLike, options?: MakeOptions) => Promise<void>;
2056
- rm: (path: PathLike, options?: {
2160
+ readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
2161
+ writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2162
+ appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
2163
+ stat: (path: node_fs.PathLike) => Promise<Stats>;
2164
+ lstat: (path: node_fs.PathLike) => Promise<Stats>;
2165
+ readdir: (path: node_fs.PathLike) => Promise<string[]>;
2166
+ mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
2167
+ rm: (path: node_fs.PathLike, options?: {
2057
2168
  recursive?: boolean;
2058
2169
  }) => Promise<void>;
2059
- rmdir: (path: PathLike, options?: {
2170
+ rmdir: (path: node_fs.PathLike, options?: {
2060
2171
  recursive?: boolean;
2061
2172
  }) => Promise<void>;
2062
- unlink: (path: PathLike) => Promise<void>;
2063
- rename: (from: PathLike, to: PathLike) => Promise<void>;
2064
- access: (path: PathLike) => Promise<void>;
2173
+ unlink: (path: node_fs.PathLike) => Promise<void>;
2174
+ rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
2175
+ access: (path: node_fs.PathLike) => Promise<void>;
2065
2176
  };
2177
+ declare const mount: () => Promise<void>;
2178
+ declare const flush: () => Promise<void>;
2179
+ declare const remount: () => Promise<void>;
2066
2180
 
2067
2181
  type index_Stats = Stats;
2068
2182
  declare const index_appendFile: typeof appendFile;
2069
2183
  declare const index_appendFileSync: typeof appendFileSync;
2184
+ declare const index_available: typeof available;
2070
2185
  declare const index_exists: typeof exists;
2071
2186
  declare const index_existsSync: typeof existsSync;
2072
2187
  declare const index_flush: typeof flush;
@@ -2092,7 +2207,7 @@ declare const index_unlinkSync: typeof unlinkSync;
2092
2207
  declare const index_writeFile: typeof writeFile;
2093
2208
  declare const index_writeFileSync: typeof writeFileSync;
2094
2209
  declare namespace index {
2095
- export { index_appendFile as appendFile, index_appendFileSync as appendFileSync, 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 };
2210
+ 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 };
2096
2211
  export type { index_Stats as Stats };
2097
2212
  }
2098
2213
 
@@ -2136,5 +2251,5 @@ type ConnectButtonProps = {
2136
2251
  };
2137
2252
  declare const ConnectButton: ({ className, style }?: ConnectButtonProps) => ReactElement;
2138
2253
 
2139
- 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 nodeFs, opfs, permissions, promptInstall, readCookiePermission, relayWorker, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, type, waitForExtensionExposure };
2254
+ 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 };
2140
2255
  export type { AttachFrameOptions, BoxedVideoElement, ConnectButtonProps, CookieDetails, FetchInit, Frame, GotoOptions, HeaderOperation, PermissionGrant, PermissionRequest, ProxyFetchRequest, RemoteVideoElement, RequestHeaderRule, SiteCookie, VideoElementState };