@fkn/lib 0.5.4 → 0.6.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 (192) hide show
  1. package/account.cjs +1 -1
  2. package/account.js +2 -2
  3. package/api/account.d.ts +7 -0
  4. package/api/broker-bridge.d.ts +12 -0
  5. package/api/connect-store.d.ts +9 -0
  6. package/api/connect.d.ts +2 -0
  7. package/api/data-plane.d.ts +28 -0
  8. package/api/dns/index.d.ts +1 -0
  9. package/api/dns/lookup.d.ts +8 -0
  10. package/api/index.d.ts +78 -0
  11. package/api/install-prompt.d.ts +2 -0
  12. package/api/local-net/index.d.ts +43 -0
  13. package/api/overlay-mount.d.ts +2 -0
  14. package/api/overlay.d.ts +17 -0
  15. package/api/packages/host.d.ts +12 -0
  16. package/api/packages/identity.d.ts +1 -0
  17. package/api/packages/index.d.ts +34 -0
  18. package/api/packages/picker.d.ts +28 -0
  19. package/api/packages/registry.d.ts +20 -0
  20. package/api/packages/store.d.ts +6 -0
  21. package/api/packages/types.d.ts +56 -0
  22. package/api/preconnect.d.ts +1 -0
  23. package/api/proxy/index.d.ts +1 -0
  24. package/api/proxy/proxy-fetch.d.ts +5 -0
  25. package/api/quota.d.ts +10 -0
  26. package/api/rate-token.d.ts +3 -0
  27. package/api/session-limit.d.ts +1 -0
  28. package/api/storage.d.ts +20 -0
  29. package/api/toast.d.ts +1 -0
  30. package/api/token-source.d.ts +4 -0
  31. package/api/ui-events.d.ts +8 -0
  32. package/api/ui-host.d.ts +2 -0
  33. package/api/webvpn/index.d.ts +3 -0
  34. package/api/webvpn/packets/metadata.d.ts +31 -0
  35. package/api/webvpn/packets/tcp-listener.d.ts +39 -0
  36. package/api/webvpn/packets/tcp.d.ts +88 -0
  37. package/api/webvpn/packets/udp.d.ts +183 -0
  38. package/api/webvpn/packets/utils.d.ts +24 -0
  39. package/api/webvpn/tcp-listener.d.ts +11 -0
  40. package/api/webvpn/tcp.d.ts +33 -0
  41. package/api/webvpn/udp.d.ts +33 -0
  42. package/api/webvpn/utils.d.ts +26 -0
  43. package/api/webvpn/webtransport.d.ts +62 -0
  44. package/api/worker/client.d.ts +3 -0
  45. package/api/worker/protocol.d.ts +15 -0
  46. package/{api-CDb2pv7C.cjs → api-DD5v1qP9.cjs} +1 -1
  47. package/{background-TtzKw6g0.js → background-BVBbBOmL.js} +41 -66
  48. package/background-B_VgpARk.cjs +1 -0
  49. package/cloud/dgram.cjs +1 -1
  50. package/cloud/dgram.js +2 -4
  51. package/cloud/dns.cjs +1 -1
  52. package/cloud/dns.js +0 -1
  53. package/cloud/fs/promises.cjs +1 -1
  54. package/cloud/fs/promises.js +0 -3
  55. package/cloud/fs.cjs +1 -1
  56. package/cloud/fs.js +3 -4
  57. package/cloud/http.cjs +1 -1
  58. package/cloud/http.js +0 -3
  59. package/cloud/net.cjs +1 -1
  60. package/cloud/net.js +2 -3
  61. package/cloud-5o7yJHeX.cjs +1 -0
  62. package/cloud-BFyf2uC7.js +112 -0
  63. package/cloud.cjs +1 -1
  64. package/cloud.js +8 -12
  65. package/connect-button-BBEjXzB3.cjs +1 -0
  66. package/connect-button-Ds9KpXHe.js +7 -0
  67. package/desktop.cjs +1 -1
  68. package/desktop.js +1 -1
  69. package/dgram-CE43gJq9.cjs +1 -0
  70. package/{dgram-DS5_yPc5.js → dgram-wtjARbt0.js} +30 -22
  71. package/dgram.cjs +1 -1
  72. package/dgram.js +1 -3
  73. package/dns.cjs +1 -1
  74. package/dns.js +2 -2
  75. package/extension-CPj10qwa.js +67 -0
  76. package/extension-D-NUXxzF.cjs +1 -0
  77. package/extension.cjs +1 -1
  78. package/extension.js +3 -5
  79. package/fs/promises.cjs +1 -1
  80. package/fs/promises.js +1 -4
  81. package/fs-BfmfMBiw.cjs +1 -0
  82. package/{fs-CQ-eWjXw.js → fs-D6nNf1mR.js} +4 -4
  83. package/fs.cjs +1 -1
  84. package/fs.js +1 -4
  85. package/http.cjs +2 -2
  86. package/http.js +7 -7
  87. package/index.cjs +1 -1
  88. package/index.js +23 -38
  89. package/{account.d.ts → lib/account.d.ts} +5 -8
  90. package/lib/api.d.ts +300 -0
  91. package/lib/auto.d.ts +5 -0
  92. package/lib/cloud/dgram.d.ts +2 -0
  93. package/lib/cloud/dns.d.ts +1 -0
  94. package/lib/cloud/frame.d.ts +3 -0
  95. package/lib/cloud/fs-promises.d.ts +5 -0
  96. package/lib/cloud/fs.d.ts +22 -0
  97. package/lib/cloud/http.d.ts +2 -0
  98. package/lib/cloud/net.d.ts +2 -0
  99. package/lib/cloud.d.ts +10 -0
  100. package/lib/connect-button.d.ts +1 -0
  101. package/lib/connect.d.ts +1 -0
  102. package/{desktop.d.ts → lib/desktop.d.ts} +6 -8
  103. package/lib/dns.d.ts +6 -0
  104. package/lib/dom.d.ts +2 -0
  105. package/lib/extension-prompt.d.ts +1 -0
  106. package/lib/extension.d.ts +4 -0
  107. package/lib/fkn-target.d.ts +1 -0
  108. package/lib/frame.d.ts +2 -0
  109. package/lib/fs/content-type.d.ts +1 -0
  110. package/lib/fs/hybrid.d.ts +10 -0
  111. package/lib/fs/index.d.ts +87 -0
  112. package/lib/fs/opfs.d.ts +8 -0
  113. package/lib/fs/promises.d.ts +8 -0
  114. package/lib/fs/types.d.ts +16 -0
  115. package/lib/index.d.ts +18 -0
  116. package/lib/node-fs/index.d.ts +95 -0
  117. package/lib/node-fs/shared.d.ts +39 -0
  118. package/lib/node-fs/store.d.ts +21 -0
  119. package/lib/opfs/index.d.ts +84 -0
  120. package/lib/opfs/promises.d.ts +8 -0
  121. package/lib/overlay.d.ts +14 -0
  122. package/lib/packages.d.ts +69 -0
  123. package/lib/proxy.d.ts +5 -0
  124. package/lib/quota.d.ts +20 -0
  125. package/lib/react.d.ts +7 -0
  126. package/lib/relay.d.ts +5 -0
  127. package/lib/storage.d.ts +22 -0
  128. package/lib/webvpn/dgram.d.ts +86 -0
  129. package/lib/webvpn/http.d.ts +180 -0
  130. package/lib/webvpn/index.d.ts +1 -0
  131. package/lib/webvpn/net.d.ts +132 -0
  132. package/lib/webvpn/utils.d.ts +32 -0
  133. package/net-CpuAhaQC.cjs +1 -0
  134. package/{net-Bl6_W3bd.js → net-DKMWPXb_.js} +3 -3
  135. package/net.cjs +1 -1
  136. package/net.js +2 -3
  137. package/node-fs-C0eKnboT.cjs +1 -0
  138. package/{node-fs-Bd_UUx1m.js → node-fs-Dbf93qP7.js} +40 -17
  139. package/opfs/promises.cjs +1 -1
  140. package/opfs/promises.js +2 -3
  141. package/{opfs-BfcYLPGb.js → opfs-7_GmzQ93.js} +1 -1
  142. package/opfs-uClkgnb5.cjs +1 -0
  143. package/opfs.cjs +1 -1
  144. package/opfs.js +33 -32
  145. package/package.json +31 -21
  146. package/packages.cjs +1 -0
  147. package/packages.js +150 -0
  148. package/{locator-DxAsGV_o.js → proxy-C8SG1Beo.js} +542 -344
  149. package/proxy-bPaU3-Cz.cjs +53 -0
  150. package/react.cjs +1 -0
  151. package/react.js +18 -0
  152. package/{chunk-CPXzm0be.js → rolldown-runtime-DF993M8W.js} +1 -1
  153. package/rolldown-runtime-Doa5O59j.cjs +1 -0
  154. package/sandbox.d.ts +7 -0
  155. package/storage-OkwsFLN1.cjs +1 -0
  156. package/{storage-BcJfnkm3.js → storage-TmeyhZGt.js} +2 -2
  157. package/{utils-BsNRWMfl.cjs → utils-CoimMjf9.cjs} +1 -1
  158. package/background-Dk_vaVP1.cjs +0 -1
  159. package/chunk-B6C_zzib.cjs +0 -1
  160. package/cloud/dgram.d.ts +0 -537
  161. package/cloud/dns.d.ts +0 -12
  162. package/cloud/fs/promises.d.ts +0 -45
  163. package/cloud/fs.d.ts +0 -75
  164. package/cloud/http.d.ts +0 -767
  165. package/cloud/net.d.ts +0 -606
  166. package/cloud-BrY9dKwV.cjs +0 -1
  167. package/cloud-C-LK4DWa.js +0 -33
  168. package/cloud.d.ts +0 -1053
  169. package/dgram-C5rGcbej.cjs +0 -1
  170. package/dgram.d.ts +0 -541
  171. package/dns.d.ts +0 -12
  172. package/extension-9Uv_0HdS.cjs +0 -1
  173. package/extension-Dgz0UTy0.js +0 -245
  174. package/extension.d.ts +0 -852
  175. package/favicon.svg +0 -5
  176. package/fs/promises.d.ts +0 -65
  177. package/fs-Bc6087fG.cjs +0 -1
  178. package/fs.d.ts +0 -138
  179. package/http.d.ts +0 -767
  180. package/index.d.ts +0 -2254
  181. package/locator-Cf7M3QKN.cjs +0 -53
  182. package/net-C5kWnI4C.cjs +0 -1
  183. package/net.d.ts +0 -606
  184. package/node-fs-lrlD_zqB.cjs +0 -1
  185. package/opfs/promises.d.ts +0 -46
  186. package/opfs-Dsi4FkJU.cjs +0 -1
  187. package/opfs.d.ts +0 -83
  188. package/proxy-A9UvWUaF.cjs +0 -1
  189. package/proxy-wiZN4eTR.js +0 -14
  190. package/storage-C2-_-bTO.cjs +0 -1
  191. /package/{api-ByfayMm1.js → api--bnCFd4w.js} +0 -0
  192. /package/{utils-CNydj3OT.js → utils-DPtyxGQu.js} +0 -0
package/favicon.svg DELETED
@@ -1,5 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -30.9 461.9 461.9">
2
- <path d="M198.4,0.1L365,288.6H162.3l-31.8,55l331.4-0.2L263.6,0L198.4,0.1z" fill="#f9aa40"/>
3
- <path d="M198.3,0L0,343.6l32.6,56.5l165.1-285.9l100.7,174.4h66.5L198.3,0z" fill="#4572b5"/>
4
- <path d="M197.7,114.2l32.6,56.5l-99.8,172.9h331.4l-32.6,56.5H32.6L197.7,114.2z" fill="#51bb8d"/>
5
- </svg>
package/fs/promises.d.ts DELETED
@@ -1,65 +0,0 @@
1
- import * as node_fs from 'node:fs';
2
-
3
- type ReadOptions = BufferEncoding | {
4
- encoding?: BufferEncoding | null;
5
- flag?: string;
6
- } | null | undefined;
7
- type WriteOptions = BufferEncoding | {
8
- encoding?: BufferEncoding | null;
9
- mode?: number;
10
- flag?: string;
11
- contentType?: string;
12
- } | null | undefined;
13
- type WriteData = string | Uint8Array | ArrayBuffer | DataView;
14
- type MakeOptions = {
15
- recursive?: boolean;
16
- } | number | null | undefined;
17
- type Stats = {
18
- size: number;
19
- mtimeMs: number;
20
- mtime: Date;
21
- atimeMs: number;
22
- ctimeMs: number;
23
- mode: number;
24
- isFile: () => boolean;
25
- isDirectory: () => boolean;
26
- isSymbolicLink: () => boolean;
27
- };
28
-
29
- declare const promises: {
30
- readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
31
- writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
32
- appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
33
- stat: (path: node_fs.PathLike) => Promise<Stats>;
34
- lstat: (path: node_fs.PathLike) => Promise<Stats>;
35
- readdir: (path: node_fs.PathLike) => Promise<string[]>;
36
- mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
37
- rm: (path: node_fs.PathLike, options?: {
38
- recursive?: boolean;
39
- }) => Promise<void>;
40
- rmdir: (path: node_fs.PathLike, options?: {
41
- recursive?: boolean;
42
- }) => Promise<void>;
43
- unlink: (path: node_fs.PathLike) => Promise<void>;
44
- rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
45
- access: (path: node_fs.PathLike) => Promise<void>;
46
- };
47
-
48
- declare const readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
49
- declare const writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
50
- declare const appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
51
- declare const unlink: (path: node_fs.PathLike) => Promise<void>;
52
- declare const rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
53
- declare const readdir: (path: node_fs.PathLike) => Promise<string[]>;
54
- declare const mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
55
- declare const rm: (path: node_fs.PathLike, options?: {
56
- recursive?: boolean;
57
- }) => Promise<void>;
58
- declare const rmdir: (path: node_fs.PathLike, options?: {
59
- recursive?: boolean;
60
- }) => Promise<void>;
61
- declare const stat: (path: node_fs.PathLike) => Promise<Stats>;
62
- declare const lstat: (path: node_fs.PathLike) => Promise<Stats>;
63
- declare const access: (path: node_fs.PathLike) => Promise<void>;
64
-
65
- export { access, appendFile, promises as default, lstat, mkdir, readFile, readdir, rename, rm, rmdir, stat, unlink, writeFile };
package/fs-Bc6087fG.cjs DELETED
@@ -1 +0,0 @@
1
- const e=require(`./chunk-B6C_zzib.cjs`),t=require(`./node-fs-lrlD_zqB.cjs`),n=require(`./storage-C2-_-bTO.cjs`),r=require(`./opfs-Dsi4FkJU.cjs`);var i=e.n({available:()=>c,list:()=>l,pull:()=>p,readFile:()=>u,remove:()=>f,writeFile:()=>d}),a,o=async()=>await(a??=r.t().catch(()=>!1))?!0:(a=void 0,!1),s=()=>n.t().catch(()=>!1),c=async()=>await o()||await s(),l=async()=>{let[e,t]=await Promise.all([o().then(e=>e?r.n():[]).catch(()=>[]),s().then(e=>e?n.n():[]).catch(()=>[])]),i=new Map,a=e=>{let t=Date.parse(e.updatedAt??``);return Number.isFinite(t)?t:0},c=e=>{let t=i.get(e.path);(!t||a(e)>=a(t))&&i.set(e.path,e)};for(let t of e)c(t);for(let e of t)c(e);return[...i.values()]},u=async e=>{if(await o())try{return await r.i(e)}catch(e){if(e?.name!==`NotFoundError`)throw e}let t=await n.i(e);return await o()&&r.o(e,t).catch(()=>{}),t},d=async(e,t,i)=>{let a=t instanceof Blob?t:new Blob([t],i?.contentType?{type:i.contentType}:void 0);if(await o()){await r.o(e,a,i),await s()&&n.s(e,a,i).catch(e=>console.warn(`fs: cloud replicate failed`,e));return}if(await s())return n.s(e,a,i);throw Error(`fs: no storage backend available`)},f=async e=>{let t=[];if(await o()&&t.push(r.a(e).catch(()=>{})),await s()&&t.push(n.a(e).catch(()=>{})),!t.length)throw Error(`fs: no storage backend available`);await Promise.all(t)},p=async e=>{let t=await n.i(e);return await o()&&await r.o(e,t),t},m=e.n({appendFile:()=>j,appendFileSync:()=>y,available:()=>g,default:()=>W,exists:()=>R,existsSync:()=>b,flush:()=>V,lstatSync:()=>S,mkdir:()=>P,mkdirSync:()=>w,mount:()=>B,promises:()=>z,pull:()=>U,readFile:()=>k,readFileSync:()=>_,readdir:()=>N,readdirSync:()=>C,remount:()=>H,rename:()=>L,renameSync:()=>O,rm:()=>F,rmSync:()=>T,rmdirSync:()=>E,stat:()=>M,statSync:()=>x,unlink:()=>I,unlinkSync:()=>D,writeFile:()=>A,writeFileSync:()=>v}),h=t.t(i,{memfs:!0}),{available:g,readFileSync:_,writeFileSync:v,appendFileSync:y,existsSync:b,statSync:x,lstatSync:S,readdirSync:C,mkdirSync:w,rmSync:T,rmdirSync:E,unlinkSync:D,renameSync:O,readFile:k,writeFile:A,appendFile:j,stat:M,readdir:N,mkdir:P,rm:F,unlink:I,rename:L,exists:R,promises:z,mount:B,flush:V,remount:H}=h,U=p,W={...h,pull:U};Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return H}});
package/fs.d.ts DELETED
@@ -1,138 +0,0 @@
1
- import * as node_fs from 'node:fs';
2
-
3
- type ReadOptions = BufferEncoding | {
4
- encoding?: BufferEncoding | null;
5
- flag?: string;
6
- } | null | undefined;
7
- type WriteOptions = BufferEncoding | {
8
- encoding?: BufferEncoding | null;
9
- mode?: number;
10
- flag?: string;
11
- contentType?: string;
12
- } | null | undefined;
13
- type WriteData = string | Uint8Array | ArrayBuffer | DataView;
14
- type MakeOptions = {
15
- recursive?: boolean;
16
- } | number | null | undefined;
17
- type Callback<R> = (error: NodeJS.ErrnoException | null, result?: R) => void;
18
- type Stats = {
19
- size: number;
20
- mtimeMs: number;
21
- mtime: Date;
22
- atimeMs: number;
23
- ctimeMs: number;
24
- mode: number;
25
- isFile: () => boolean;
26
- isDirectory: () => boolean;
27
- isSymbolicLink: () => boolean;
28
- };
29
-
30
- declare const available: () => Promise<boolean>;
31
- declare const readFileSync: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
32
- declare const writeFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
33
- declare const appendFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
34
- declare const existsSync: (path: node_fs.PathLike) => boolean;
35
- declare const statSync: (path: node_fs.PathLike) => Stats;
36
- declare const lstatSync: (path: node_fs.PathLike) => Stats;
37
- declare const readdirSync: (path: node_fs.PathLike) => string[];
38
- declare const mkdirSync: (path: node_fs.PathLike, options?: MakeOptions) => void;
39
- declare const rmSync: (path: node_fs.PathLike, options?: {
40
- recursive?: boolean;
41
- force?: boolean;
42
- }) => void;
43
- declare const rmdirSync: (path: node_fs.PathLike, options?: {
44
- recursive?: boolean;
45
- }) => void;
46
- declare const unlinkSync: (path: node_fs.PathLike) => void;
47
- declare const renameSync: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
48
- declare const readFile: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
49
- declare const writeFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
50
- declare const appendFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
51
- declare const stat: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
52
- declare const readdir: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
53
- declare const mkdir: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
54
- declare const rm: (path: node_fs.PathLike, a: {
55
- recursive?: boolean;
56
- } | Callback<void>, b?: Callback<void>) => void;
57
- declare const unlink: (path: node_fs.PathLike, callback: Callback<void>) => void;
58
- declare const rename: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
59
- declare const exists: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
60
- declare const promises: {
61
- readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
62
- writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
63
- appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
64
- stat: (path: node_fs.PathLike) => Promise<Stats>;
65
- lstat: (path: node_fs.PathLike) => Promise<Stats>;
66
- readdir: (path: node_fs.PathLike) => Promise<string[]>;
67
- mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
68
- rm: (path: node_fs.PathLike, options?: {
69
- recursive?: boolean;
70
- }) => Promise<void>;
71
- rmdir: (path: node_fs.PathLike, options?: {
72
- recursive?: boolean;
73
- }) => Promise<void>;
74
- unlink: (path: node_fs.PathLike) => Promise<void>;
75
- rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
76
- access: (path: node_fs.PathLike) => Promise<void>;
77
- };
78
- declare const mount: () => Promise<void>;
79
- declare const flush: () => Promise<void>;
80
- declare const remount: () => Promise<void>;
81
- declare const pull: (path: string) => Promise<Blob>;
82
- declare const _default: {
83
- pull: (path: string) => Promise<Blob>;
84
- available: () => Promise<boolean>;
85
- readFileSync: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
86
- writeFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
87
- appendFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
88
- existsSync: (path: node_fs.PathLike) => boolean;
89
- statSync: (path: node_fs.PathLike) => Stats;
90
- lstatSync: (path: node_fs.PathLike) => Stats;
91
- readdirSync: (path: node_fs.PathLike) => string[];
92
- mkdirSync: (path: node_fs.PathLike, options?: MakeOptions) => void;
93
- rmSync: (path: node_fs.PathLike, options?: {
94
- recursive?: boolean;
95
- force?: boolean;
96
- }) => void;
97
- rmdirSync: (path: node_fs.PathLike, options?: {
98
- recursive?: boolean;
99
- }) => void;
100
- unlinkSync: (path: node_fs.PathLike) => void;
101
- renameSync: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
102
- readFile: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
103
- writeFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
104
- appendFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
105
- stat: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
106
- readdir: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
107
- mkdir: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
108
- rm: (path: node_fs.PathLike, a: {
109
- recursive?: boolean;
110
- } | Callback<void>, b?: Callback<void>) => void;
111
- unlink: (path: node_fs.PathLike, callback: Callback<void>) => void;
112
- rename: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
113
- exists: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
114
- promises: {
115
- readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
116
- writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
117
- appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
118
- stat: (path: node_fs.PathLike) => Promise<Stats>;
119
- lstat: (path: node_fs.PathLike) => Promise<Stats>;
120
- readdir: (path: node_fs.PathLike) => Promise<string[]>;
121
- mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
122
- rm: (path: node_fs.PathLike, options?: {
123
- recursive?: boolean;
124
- }) => Promise<void>;
125
- rmdir: (path: node_fs.PathLike, options?: {
126
- recursive?: boolean;
127
- }) => Promise<void>;
128
- unlink: (path: node_fs.PathLike) => Promise<void>;
129
- rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
130
- access: (path: node_fs.PathLike) => Promise<void>;
131
- };
132
- mount: () => Promise<void>;
133
- flush: () => Promise<void>;
134
- remount: () => Promise<void>;
135
- };
136
-
137
- export { appendFile, appendFileSync, available, _default as default, exists, existsSync, flush, lstatSync, mkdir, mkdirSync, mount, promises, pull, readFile, readFileSync, readdir, readdirSync, remount, rename, renameSync, rm, rmSync, rmdirSync, stat, statSync, unlink, unlinkSync, writeFile, writeFileSync };
138
- export type { Stats };