@powerlines/plugin-tsup 0.12.67 → 0.12.68

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 (130) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +1 -0
  2. package/dist/helpers/index.cjs +1 -1
  3. package/dist/helpers/index.d.cts +1 -3
  4. package/dist/helpers/index.d.mts +1 -3
  5. package/dist/helpers/index.mjs +1 -1
  6. package/dist/helpers/unplugin.cjs +1 -1
  7. package/dist/helpers/unplugin.d.cts +6 -2
  8. package/dist/helpers/unplugin.d.mts +6 -2
  9. package/dist/helpers/unplugin.mjs +1 -1
  10. package/dist/index.cjs +1 -1
  11. package/dist/index.d.cts +3 -4
  12. package/dist/index.d.mts +5 -5
  13. package/dist/index.mjs +1 -1
  14. package/dist/powerlines/schemas/fs.cjs +1 -0
  15. package/dist/powerlines/schemas/fs.mjs +1 -0
  16. package/dist/powerlines/src/api.cjs +11 -0
  17. package/dist/powerlines/src/api.mjs +1 -0
  18. package/dist/powerlines/src/internal/babel/module-resolver-plugin.cjs +1 -0
  19. package/dist/powerlines/src/internal/babel/module-resolver-plugin.mjs +1 -0
  20. package/dist/powerlines/src/internal/helpers/environment.cjs +1 -0
  21. package/dist/powerlines/src/internal/helpers/environment.mjs +1 -0
  22. package/dist/powerlines/src/internal/helpers/generate-types.cjs +8 -0
  23. package/dist/powerlines/src/internal/helpers/generate-types.mjs +8 -0
  24. package/dist/powerlines/src/internal/helpers/hooks.cjs +1 -0
  25. package/dist/powerlines/src/internal/helpers/hooks.mjs +1 -0
  26. package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +3 -0
  27. package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +3 -0
  28. package/dist/powerlines/src/internal/helpers/install.cjs +1 -0
  29. package/dist/powerlines/src/internal/helpers/install.mjs +1 -0
  30. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +8 -0
  31. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +8 -0
  32. package/dist/powerlines/src/internal/helpers/resolver.cjs +1 -0
  33. package/dist/powerlines/src/internal/helpers/resolver.mjs +1 -0
  34. package/dist/powerlines/src/lib/build/esbuild.cjs +1 -0
  35. package/dist/powerlines/src/lib/build/esbuild.mjs +1 -0
  36. package/dist/powerlines/src/lib/build/tsup.cjs +1 -0
  37. package/dist/powerlines/src/lib/build/tsup.mjs +1 -0
  38. package/dist/powerlines/src/lib/config-file.cjs +1 -0
  39. package/dist/powerlines/src/lib/config-file.mjs +1 -0
  40. package/dist/powerlines/src/lib/contexts/api-context.cjs +1 -0
  41. package/dist/powerlines/src/lib/contexts/api-context.mjs +1 -0
  42. package/dist/powerlines/src/lib/contexts/context.cjs +1 -0
  43. package/dist/powerlines/src/lib/contexts/context.mjs +1 -0
  44. package/dist/powerlines/src/lib/contexts/environment-context.cjs +1 -0
  45. package/dist/powerlines/src/lib/contexts/environment-context.mjs +1 -0
  46. package/dist/powerlines/src/lib/contexts/plugin-context.cjs +1 -0
  47. package/dist/powerlines/src/lib/contexts/plugin-context.mjs +1 -0
  48. package/dist/powerlines/src/lib/entry.cjs +1 -0
  49. package/dist/powerlines/src/lib/entry.mjs +1 -0
  50. package/dist/powerlines/src/lib/fs/helpers.cjs +1 -0
  51. package/dist/powerlines/src/lib/fs/helpers.mjs +1 -0
  52. package/dist/powerlines/src/lib/fs/storage/base.cjs +1 -0
  53. package/dist/powerlines/src/lib/fs/storage/base.mjs +1 -0
  54. package/dist/powerlines/src/lib/fs/storage/file-system.cjs +1 -0
  55. package/dist/powerlines/src/lib/fs/storage/file-system.mjs +1 -0
  56. package/dist/powerlines/src/lib/fs/storage/virtual.cjs +1 -0
  57. package/dist/powerlines/src/lib/fs/storage/virtual.mjs +1 -0
  58. package/dist/powerlines/src/lib/fs/vfs.cjs +1 -0
  59. package/dist/powerlines/src/lib/fs/vfs.mjs +1 -0
  60. package/dist/powerlines/src/lib/logger.cjs +1 -0
  61. package/dist/powerlines/src/lib/logger.mjs +1 -0
  62. package/dist/powerlines/src/lib/typescript/ts-morph.cjs +1 -0
  63. package/dist/powerlines/src/lib/typescript/ts-morph.mjs +1 -0
  64. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +4 -0
  65. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +4 -0
  66. package/dist/powerlines/src/lib/unplugin/factory.cjs +1 -0
  67. package/dist/powerlines/src/lib/unplugin/factory.mjs +1 -0
  68. package/dist/powerlines/src/lib/unplugin/helpers.cjs +1 -0
  69. package/dist/powerlines/src/lib/unplugin/helpers.mjs +1 -0
  70. package/dist/powerlines/src/lib/unplugin/index.cjs +1 -0
  71. package/dist/powerlines/src/lib/unplugin/index.mjs +1 -0
  72. package/dist/powerlines/src/lib/unplugin/plugin.cjs +6 -0
  73. package/dist/powerlines/src/lib/unplugin/plugin.mjs +6 -0
  74. package/dist/powerlines/src/lib/utilities/file-header.cjs +10 -0
  75. package/dist/powerlines/src/lib/utilities/file-header.mjs +10 -0
  76. package/dist/powerlines/src/lib/utilities/meta.cjs +1 -0
  77. package/dist/powerlines/src/lib/utilities/meta.mjs +1 -0
  78. package/dist/powerlines/src/lib/utilities/source-file.cjs +1 -0
  79. package/dist/powerlines/src/lib/utilities/source-file.mjs +1 -0
  80. package/dist/powerlines/src/plugin-utils/helpers.cjs +1 -0
  81. package/dist/powerlines/src/plugin-utils/helpers.mjs +1 -0
  82. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
  83. package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
  84. package/dist/powerlines/src/types/babel.d.mts +4 -0
  85. package/dist/powerlines/src/types/build.d.cts +143 -0
  86. package/dist/powerlines/src/types/build.d.mts +143 -0
  87. package/dist/powerlines/src/types/commands.cjs +1 -0
  88. package/dist/powerlines/src/types/commands.d.cts +8 -0
  89. package/dist/powerlines/src/types/commands.d.mts +9 -0
  90. package/dist/powerlines/src/types/commands.mjs +1 -0
  91. package/dist/powerlines/src/types/config.d.cts +346 -0
  92. package/dist/powerlines/src/types/config.d.mts +347 -0
  93. package/dist/powerlines/src/types/context.d.cts +347 -0
  94. package/dist/powerlines/src/types/context.d.mts +349 -0
  95. package/dist/powerlines/src/types/fs.d.cts +458 -0
  96. package/dist/powerlines/src/types/fs.d.mts +458 -0
  97. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  98. package/dist/powerlines/src/types/plugin.cjs +1 -0
  99. package/dist/powerlines/src/types/plugin.d.cts +232 -0
  100. package/dist/powerlines/src/types/plugin.d.mts +232 -0
  101. package/dist/powerlines/src/types/plugin.mjs +1 -0
  102. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  103. package/dist/powerlines/src/types/resolved.d.mts +82 -0
  104. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  105. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  106. package/dist/types/index.cjs +0 -1
  107. package/dist/types/index.d.cts +1 -2
  108. package/dist/types/index.d.mts +1 -2
  109. package/dist/types/index.mjs +1 -1
  110. package/dist/types/plugin.cjs +0 -1
  111. package/dist/types/plugin.d.cts +15 -1
  112. package/dist/types/plugin.d.mts +15 -1
  113. package/dist/types/plugin.mjs +1 -1
  114. package/package.json +9 -9
  115. package/dist/helpers-CRPRhztf.mjs +0 -1
  116. package/dist/helpers-LF26RHol.cjs +0 -0
  117. package/dist/index-9iG2qHLe.d.mts +0 -1
  118. package/dist/index-D4ELpJXS.d.cts +0 -1
  119. package/dist/index-D6CnpA_r.d.cts +0 -1
  120. package/dist/index-DL0uimUT.d.mts +0 -1
  121. package/dist/plugin-BjiGfRHE.mjs +0 -1
  122. package/dist/plugin-CFbUgJ4k.d.cts +0 -1651
  123. package/dist/plugin-DqTElOII.d.mts +0 -1653
  124. package/dist/plugin-pBKbb5K9.cjs +0 -0
  125. package/dist/types-n6NgD0QK.mjs +0 -1
  126. package/dist/types-o3zWarRp.cjs +0 -0
  127. package/dist/unplugin-BXYmXSlG.d.cts +0 -7
  128. package/dist/unplugin-CukIKFW_.d.mts +0 -7
  129. package/dist/unplugin-DCxhuGHP.cjs +0 -44
  130. package/dist/unplugin-Dujx3xzl.mjs +0 -6
@@ -0,0 +1,458 @@
1
+ import { MaybePromise } from "@stryke/types/base";
2
+ import { AssetGlob } from "@stryke/types/file";
3
+ import { ResolveOptions } from "@stryke/fs/resolve";
4
+
5
+ //#region ../powerlines/src/types/fs.d.ts
6
+
7
+ type StoragePreset = "fs" | "virtual";
8
+ /**
9
+ * Interface defining the methods and properties for a storage adapter.
10
+ */
11
+ interface StorageAdapter {
12
+ /**
13
+ * A name identifying the storage adapter type.
14
+ */
15
+ name: string;
16
+ /**
17
+ * Checks if a key exists in the storage.
18
+ *
19
+ * @param key - The key to check for existence.
20
+ * @returns A promise that resolves to `true` if the key exists, otherwise `false`.
21
+ */
22
+ exists: (key: string) => Promise<boolean>;
23
+ /**
24
+ * Synchronously checks if a key exists in the storage.
25
+ *
26
+ * @param key - The key to check for existence.
27
+ * @returns Returns `true` if the key exists, otherwise `false`.
28
+ */
29
+ existsSync: (key: string) => boolean;
30
+ /**
31
+ * Read a value associated with a key from the storage.
32
+ *
33
+ * @param key - The key to read the value for.
34
+ * @returns A promise that resolves to the value if found, otherwise `null`.
35
+ */
36
+ get: (key: string) => Promise<string | null>;
37
+ /**
38
+ * Synchronously reads the value associated with a key from the storage.
39
+ *
40
+ * @param key - The key to read the value for.
41
+ * @returns The value if found, otherwise `null`.
42
+ */
43
+ getSync: (key: string) => string | null;
44
+ /**
45
+ * Writes a value to the storage for the given key.
46
+ *
47
+ * @param key - The key to associate the value with.
48
+ * @param value - The value to store.
49
+ */
50
+ set: (key: string, value: string) => Promise<void>;
51
+ /**
52
+ * Synchronously writes a value to the storage for the given key.
53
+ *
54
+ * @param key - The key to associate the value with.
55
+ * @param value - The value to store.
56
+ */
57
+ setSync: (key: string, value: string) => void;
58
+ /**
59
+ * Removes a value from the storage.
60
+ *
61
+ * @param key - The key whose value should be removed.
62
+ */
63
+ remove: (key: string) => Promise<void>;
64
+ /**
65
+ * Synchronously removes a value from the storage.
66
+ *
67
+ * @param key - The key whose value should be removed.
68
+ */
69
+ removeSync: (key: string) => void;
70
+ /**
71
+ * Creates a directory at the specified path.
72
+ *
73
+ * @param dirPath - The path of the directory to create.
74
+ */
75
+ mkdir: (dirPath: string) => Promise<void>;
76
+ /**
77
+ * Synchronously creates a directory at the specified path.
78
+ *
79
+ * @param dirPath - The path of the directory to create.
80
+ */
81
+ mkdirSync: (dirPath: string) => void;
82
+ /**
83
+ * Remove all entries from the storage that match the provided base path.
84
+ *
85
+ * @param base - The base path or prefix to clear entries from.
86
+ */
87
+ clear: (base?: string) => Promise<void>;
88
+ /**
89
+ * Synchronously remove all entries from the storage that match the provided base path.
90
+ *
91
+ * @param base - The base path or prefix to clear entries from.
92
+ */
93
+ clearSync: (base?: string) => void;
94
+ /**
95
+ * Lists all keys under the provided base path.
96
+ *
97
+ * @param base - The base path or prefix to list keys from.
98
+ * @returns A promise resolving to the list of keys.
99
+ */
100
+ list: (base?: string) => Promise<string[]>;
101
+ /**
102
+ * Synchronously lists all keys under the provided base path.
103
+ *
104
+ * @param base - The base path or prefix to list keys from.
105
+ * @returns The list of keys.
106
+ */
107
+ listSync: (base?: string) => string[];
108
+ /**
109
+ * Checks if the given key is a directory.
110
+ *
111
+ * @param key - The key to check.
112
+ * @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
113
+ */
114
+ isDirectory: (key: string) => Promise<boolean>;
115
+ /**
116
+ * Synchronously checks if the given key is a directory.
117
+ *
118
+ * @param key - The key to check.
119
+ * @returns `true` if the key is a directory, otherwise `false`.
120
+ */
121
+ isDirectorySync: (key: string) => boolean;
122
+ /**
123
+ * Checks if the given key is a file.
124
+ *
125
+ * @param key - The key to check.
126
+ * @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
127
+ */
128
+ isFile: (key: string) => Promise<boolean>;
129
+ /**
130
+ * Synchronously checks if the given key is a file.
131
+ *
132
+ * @param key - The key to check.
133
+ * @returns `true` if the key is a file, otherwise `false`.
134
+ */
135
+ isFileSync: (key: string) => boolean;
136
+ /**
137
+ * Releases any resources held by the storage adapter.
138
+ */
139
+ dispose: () => MaybePromise<void>;
140
+ }
141
+ /**
142
+ * A mapping of file paths to storage adapter names and their corresponding {@link StorageAdapter} instances.
143
+ */
144
+ type StoragePort = Record<string, StorageAdapter>;
145
+ interface VirtualFileMetadata {
146
+ /**
147
+ * The identifier for the file data.
148
+ */
149
+ id: string;
150
+ /**
151
+ * The timestamp of the virtual file.
152
+ */
153
+ timestamp: number;
154
+ /**
155
+ * The type of the file.
156
+ *
157
+ * @remarks
158
+ * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
159
+ * - `builtin`: Indicates that the file is a built-in module provided by the system.
160
+ * - `entry`: Indicates that the file is an entry point for execution.
161
+ * - `normal`: Indicates that the file is a standard file without any special role.
162
+ */
163
+ type: string;
164
+ /**
165
+ * Additional metadata associated with the file.
166
+ */
167
+ properties: Record<string, string>;
168
+ }
169
+ interface VirtualFileData {
170
+ /**
171
+ * The identifier for the file data.
172
+ */
173
+ id?: string;
174
+ /**
175
+ * The contents of the virtual file.
176
+ */
177
+ code: string;
178
+ /**
179
+ * The type of the file.
180
+ *
181
+ * @remarks
182
+ * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
183
+ * - `builtin`: Indicates that the file is a built-in module provided by the system.
184
+ * - `entry`: Indicates that the file is an entry point for execution.
185
+ * - `normal`: Indicates that the file is a standard file without any special role.
186
+ */
187
+ type?: string;
188
+ /**
189
+ * Additional metadata associated with the file.
190
+ */
191
+ properties?: Record<string, string>;
192
+ }
193
+ interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
194
+ /**
195
+ * An additional name for the file.
196
+ */
197
+ path: string;
198
+ /**
199
+ * The timestamp of the virtual file.
200
+ */
201
+ timestamp: number;
202
+ }
203
+ interface WriteOptions {
204
+ /**
205
+ * Should the file skip formatting before being written?
206
+ *
207
+ * @defaultValue false
208
+ */
209
+ skipFormat?: boolean;
210
+ /**
211
+ * Additional metadata for the file.
212
+ */
213
+ meta?: VirtualFileMetadata;
214
+ }
215
+ interface ResolveOptions$1 extends ResolveOptions {
216
+ /**
217
+ * If true, the module is being resolved as an entry point.
218
+ */
219
+ isEntry?: boolean;
220
+ /**
221
+ * If true, the resolver will skip using the cache when resolving modules.
222
+ */
223
+ skipCache?: boolean;
224
+ /**
225
+ * An array of external modules or patterns to exclude from resolution.
226
+ */
227
+ external?: (string | RegExp)[];
228
+ /**
229
+ * An array of modules or patterns to include in the resolution, even if they are marked as external.
230
+ */
231
+ noExternal?: (string | RegExp)[];
232
+ /**
233
+ * An array of patterns to match when resolving modules.
234
+ */
235
+ skipNodeModulesBundle?: boolean;
236
+ }
237
+ interface VirtualFileSystemInterface {
238
+ /**
239
+ * The underlying file metadata.
240
+ */
241
+ metadata: Readonly<Record<string, VirtualFileMetadata>>;
242
+ /**
243
+ * A map of file paths to their module ids.
244
+ */
245
+ ids: Readonly<Record<string, string>>;
246
+ /**
247
+ * A map of module ids to their file paths.
248
+ */
249
+ paths: Readonly<Record<string, string>>;
250
+ /**
251
+ * Checks if a file exists in the virtual file system (VFS).
252
+ *
253
+ * @param path - The path or id of the file.
254
+ * @returns `true` if the file exists, otherwise `false`.
255
+ */
256
+ exists: (path: string) => Promise<boolean>;
257
+ /**
258
+ * Synchronously Checks if a file exists in the virtual file system (VFS).
259
+ *
260
+ * @param path - The path or id of the file.
261
+ * @returns `true` if the file exists, otherwise `false`.
262
+ */
263
+ existsSync: (path: string) => boolean;
264
+ /**
265
+ * Checks if a file is virtual in the virtual file system (VFS).
266
+ *
267
+ * @param path - The path or id of the file.
268
+ * @returns `true` if the file is virtual, otherwise `false`.
269
+ */
270
+ isVirtual: (path: string) => boolean;
271
+ /**
272
+ * Checks if the given key is a directory.
273
+ *
274
+ * @param key - The key to check.
275
+ * @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
276
+ */
277
+ isDirectory: (key: string) => Promise<boolean>;
278
+ /**
279
+ * Synchronously checks if the given key is a directory.
280
+ *
281
+ * @param key - The key to check.
282
+ * @returns `true` if the key is a directory, otherwise `false`.
283
+ */
284
+ isDirectorySync: (key: string) => boolean;
285
+ /**
286
+ * Checks if the given key is a file.
287
+ *
288
+ * @param key - The key to check.
289
+ * @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
290
+ */
291
+ isFile: (key: string) => Promise<boolean>;
292
+ /**
293
+ * Synchronously checks if the given key is a file.
294
+ *
295
+ * @param key - The key to check.
296
+ * @returns `true` if the key is a file, otherwise `false`.
297
+ */
298
+ isFileSync: (key: string) => boolean;
299
+ /**
300
+ * Gets the metadata of a file in the virtual file system (VFS).
301
+ *
302
+ * @param path - The path or id of the file.
303
+ * @returns The metadata of the file if it exists, otherwise undefined.
304
+ */
305
+ getMetadata: (path: string) => VirtualFileMetadata | undefined;
306
+ /**
307
+ * Lists files in a given path.
308
+ *
309
+ * @param path - The path to list files from.
310
+ * @returns An array of file names in the specified path.
311
+ */
312
+ listSync: (path: string) => string[];
313
+ /**
314
+ * Lists files in a given path.
315
+ *
316
+ * @param path - The path to list files from.
317
+ * @returns An array of file names in the specified path.
318
+ */
319
+ list: (path: string) => Promise<string[]>;
320
+ /**
321
+ * Removes a file or symbolic link in the virtual file system (VFS).
322
+ *
323
+ * @param path - The path to the file to remove.
324
+ * @returns A promise that resolves when the file is removed.
325
+ */
326
+ removeSync: (path: string) => void;
327
+ /**
328
+ * Asynchronously removes a file or symbolic link in the virtual file system (VFS).
329
+ *
330
+ * @param path - The path to the file to remove.
331
+ * @returns A promise that resolves when the file is removed.
332
+ */
333
+ remove: (path: string) => Promise<void>;
334
+ /**
335
+ * Reads a file from the virtual file system (VFS).
336
+ *
337
+ * @param path - The path or id of the file.
338
+ * @returns The contents of the file if it exists, otherwise undefined.
339
+ */
340
+ read: (path: string) => Promise<string | undefined>;
341
+ /**
342
+ * Reads a file from the virtual file system (VFS).
343
+ *
344
+ * @param path - The path or id of the file.
345
+ */
346
+ readSync: (path: string) => string | undefined;
347
+ /**
348
+ * Writes a file to the virtual file system (VFS).
349
+ *
350
+ * @param path - The path to the file.
351
+ * @param data - The contents of the file.
352
+ * @param options - Options for writing the file.
353
+ * @returns A promise that resolves when the file is written.
354
+ */
355
+ write: (path: string, data: string, options?: WriteOptions) => Promise<void>;
356
+ /**
357
+ * Writes a file to the virtual file system (VFS).
358
+ *
359
+ * @param path - The path to the file.
360
+ * @param data - The contents of the file.
361
+ * @param options - Options for writing the file.
362
+ */
363
+ writeSync: (path: string, data: string, options?: WriteOptions) => void;
364
+ /**
365
+ * Creates a directory at the specified path.
366
+ *
367
+ * @param dirPath - The path of the directory to create.
368
+ */
369
+ mkdir: (dirPath: string) => Promise<void>;
370
+ /**
371
+ * Synchronously creates a directory at the specified path.
372
+ *
373
+ * @param dirPath - The path of the directory to create.
374
+ */
375
+ mkdirSync: (dirPath: string) => void;
376
+ /**
377
+ * Moves a file from one path to another in the virtual file system (VFS).
378
+ *
379
+ * @param srcPath - The source path to move
380
+ * @param destPath - The destination path to move to
381
+ */
382
+ move: (srcPath: string, destPath: string) => Promise<void>;
383
+ /**
384
+ * Synchronously moves a file from one path to another in the virtual file system (VFS).
385
+ *
386
+ * @param srcPath - The source path to move
387
+ * @param destPath - The destination path to move to
388
+ */
389
+ moveSync: (srcPath: string, destPath: string) => void;
390
+ /**
391
+ * Copies a file from one path to another in the virtual file system (VFS).
392
+ *
393
+ * @param srcPath - The source path to copy
394
+ * @param destPath - The destination path to copy to
395
+ */
396
+ copy: (srcPath: string | URL | Omit<AssetGlob, "output">, destPath: string | URL) => Promise<void>;
397
+ /**
398
+ * Synchronously copies a file from one path to another in the virtual file system (VFS).
399
+ *
400
+ * @param srcPath - The source path to copy
401
+ * @param destPath - The destination path to copy to
402
+ */
403
+ copySync: (srcPath: string | URL | Omit<AssetGlob, "output">, destPath: string | URL) => void;
404
+ /**
405
+ * Glob files in the virtual file system (VFS) based on the provided pattern(s).
406
+ *
407
+ * @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
408
+ * @returns An array of file paths matching the provided pattern(s)
409
+ */
410
+ glob: (patterns: string | Omit<AssetGlob, "output"> | (string | Omit<AssetGlob, "output">)[]) => Promise<string[]>;
411
+ /**
412
+ * Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
413
+ *
414
+ * @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
415
+ * @returns An array of file paths matching the provided pattern(s)
416
+ */
417
+ globSync: (patterns: string | Omit<AssetGlob, "output"> | (string | Omit<AssetGlob, "output">)[]) => string[];
418
+ /**
419
+ * A helper function to resolve modules using the Jiti resolver
420
+ *
421
+ * @remarks
422
+ * This function can be used to resolve modules relative to the project root directory.
423
+ *
424
+ * @example
425
+ * ```ts
426
+ * const resolvedPath = await context.resolve("some-module", "/path/to/importer");
427
+ * ```
428
+ *
429
+ * @param id - The module to resolve.
430
+ * @param importer - An optional path to the importer module.
431
+ * @param options - Additional resolution options.
432
+ * @returns A promise that resolves to the resolved module path.
433
+ */
434
+ resolve: (id: string, importer?: string, options?: ResolveOptions$1) => Promise<string | undefined>;
435
+ /**
436
+ * A synchronous helper function to resolve modules using the Jiti resolver
437
+ *
438
+ * @remarks
439
+ * This function can be used to resolve modules relative to the project root directory.
440
+ *
441
+ * @example
442
+ * ```ts
443
+ * const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
444
+ * ```
445
+ *
446
+ * @param id - The module to resolve.
447
+ * @param importer - An optional path to the importer module.
448
+ * @param options - Additional resolution options.
449
+ * @returns The resolved module path.
450
+ */
451
+ resolveSync: (id: string, importer?: string, options?: ResolveOptions$1) => string | undefined;
452
+ /**
453
+ * Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
454
+ */
455
+ dispose: () => Promise<void>;
456
+ }
457
+ //#endregion
458
+ export { ResolveOptions$1 as ResolveOptions, StoragePort, StoragePreset, VirtualFile, VirtualFileSystemInterface };