@stacksjs/path 0.58.72 → 0.59.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.
@@ -0,0 +1,980 @@
1
+ /// <reference types="node" />
2
+ import { basename, delimiter, dirname, extname, isAbsolute, join, normalize, relative, resolve, sep, toNamespacedPath } from 'node:path';
3
+ /**
4
+ * Returns the path to the `actions` directory. The `actions` directory
5
+ * contains the core Stacks' actions.
6
+ *
7
+ * @param path - The relative path to the file or directory.
8
+ * @returns The absolute path to the file or directory.
9
+ * @example
10
+ * ```ts
11
+ * import { actionsPath } from '@stacksjs/paths'
12
+ *
13
+ * console.log(actionsPath('path/to/action.ts')) // Outputs the absolute path to 'path/to/action.ts' within the `actions` directory
14
+ * ```
15
+ */
16
+ export declare function actionsPath(path?: string): string;
17
+ export declare function relativeActionsPath(path?: string): string;
18
+ export declare function userActionsPath(path?: string): string;
19
+ /**
20
+ * Returns the path to the user-defined `Jobs` directory.
21
+ *
22
+ * @param path - The relative path to the file or directory within the `Jobs` directory.
23
+ * @returns The absolute path to the specified file or directory within the user-defined `Jobs` directory.
24
+ * @example
25
+ * ```ts
26
+ * import { userJobsPath } from '@stacksjs/paths'
27
+ *
28
+ * console.log(userJobsPath('MyJob.ts')) // Outputs the absolute path to 'MyJob.ts' within the user-defined `Jobs` directory.
29
+ * ```
30
+ */
31
+ export declare function userJobsPath(path?: string): string;
32
+ /**
33
+ * Returns the path to the user-defined `Listeners` directory.
34
+ *
35
+ * @param path - The relative path to the file or directory within the `Listeners` directory.
36
+ * @returns The absolute path to the specified file or directory within the user-defined `Listeners` directory.
37
+ * @example
38
+ * ```ts
39
+ * import { userListenersPath } from '@stacksjs/paths'
40
+ *
41
+ * console.log(userListenersPath('MyListener.ts')) // Outputs the absolute path to 'MyListener.ts' within the user-defined `Listeners` directory.
42
+ * ```
43
+ */
44
+ export declare function userListenersPath(path?: string): string;
45
+ /**
46
+ * Returns the path to the user-defined `Middleware` directory.
47
+ *
48
+ * @param path - The relative path to the file or directory within the Middleware directory.
49
+ * @returns The absolute path to the specified file or directory within the user-defined Middleware directory.
50
+ * @example
51
+ * ```ts
52
+ * import { userMiddlewarePath } from '@stacksjs/paths'
53
+ *
54
+ * console.log(userMiddlewarePath('MyMiddleware.ts')) // Outputs the absolute path to 'MyMiddleware.ts' within the user-defined Middleware directory.
55
+ * ```
56
+ */
57
+ export declare function userMiddlewarePath(path?: string): string;
58
+ /**
59
+ * Returns the path to the user-defined `Models` directory.
60
+ *
61
+ * @param path - The relative path to the file or directory within the `Models` directory.
62
+ * @returns The absolute path to the specified file or directory within the user-defined `Models` directory.
63
+ * @example
64
+ * ```ts
65
+ * import { userModelsPath } from '@stacksjs/paths'
66
+ *
67
+ * console.log(userModelsPath('MyModel.ts')) // Outputs the absolute path to 'MyModel.ts' within the user-defined `Models` directory.
68
+ * ```
69
+ */
70
+ export declare function userModelsPath(path?: string): string;
71
+ /**
72
+ * Returns the path to the user-defined `Notifications` directory.
73
+ *
74
+ * @param path - The relative path to the file or directory within the `Notifications` directory.
75
+ * @returns The absolute path to the specified file or directory within the user-defined `Notifications` directory.
76
+ * @example
77
+ * ```ts
78
+ * import { userNotificationsPath } from '@stacksjs/paths'
79
+ *
80
+ * console.log(userNotificationsPath('MyNotification.ts')) // Outputs the absolute path to 'MyNotification.ts' within the user-defined `Notifications` directory.
81
+ * ```
82
+ */
83
+ export declare function userNotificationsPath(path?: string): string;
84
+ /**
85
+ * Returns the path to the user-defined `Events.ts` file.
86
+ *
87
+ * @returns The absolute path to the `Events.ts` file within the user-defined directory.
88
+ * @example
89
+ * ```ts
90
+ * import { userEventsPath } from '@stacksjs/paths'
91
+ *
92
+ * console.log(userEventsPath()) // Outputs the absolute path to 'Events.ts' within the user-defined directory.
93
+ * ```
94
+ */
95
+ export declare function userEventsPath(): string;
96
+ /**
97
+ * Returns the path to the `ai` directory. The AI directory
98
+ * contains the core Stacks' AI logic which currently
99
+ * is a wrapper of the OpenAI API.
100
+ *
101
+ * @param path - relative path to the file or directory
102
+ * @returns string - absolute path to the file or directory
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * import { aiPath } from '@stacksjs/paths'
107
+ *
108
+ * console.log(aiPath('src/drivers/example.ts')) // Outputs the absolute path to 'openai.ts' within the AI directory
109
+ * ```
110
+ */
111
+ export declare function aiPath(path?: string): string;
112
+ /**
113
+ * Returns the path to the `assets` directory within the `resources` directory.
114
+ *
115
+ * @param path - The relative path to the file or directory within the `assets` directory.
116
+ * @returns The absolute path to the specified file or directory within the `assets` directory.
117
+ * @example
118
+ * ```ts
119
+ * import { assetsPath } from '@stacksjs/paths'
120
+ *
121
+ * console.log(assetsPath('images/logo.png')) // Outputs the absolute path to 'images/logo.png' within the `assets` directory.
122
+ * ```
123
+ */
124
+ export declare function assetsPath(path?: string): string;
125
+ /**
126
+ * Returns the path to the `alias` directory within the core directory.
127
+ *
128
+ * @returns The absolute path to the `alias` directory.
129
+ * @example
130
+ * ```ts
131
+ * import { aliasPath } from '@stacksjs/paths'
132
+ *
133
+ * console.log(aliasPath()) // Outputs the absolute path to the `alias` directory.
134
+ * ```
135
+ */
136
+ export declare function aliasPath(): string;
137
+ /**
138
+ * Returns the path to the `buddy` directory, optionally relative to the current working directory.
139
+ *
140
+ * @param path - The relative path to the file or directory within the buddy directory.
141
+ * @param options - Optional. An object containing configuration settings.
142
+ * @param options.relative - If true, returns the path relative to the current working directory.
143
+ * @returns The absolute or relative path to the specified file or directory within the buddy * @returns The absolute or relative path to the specified file or directory within the buddy directory.
144
+ * @example
145
+ * ```ts
146
+ * import { buddyPath } from '@stacksjs/paths'
147
+ *
148
+ * console.log(buddyPath('config/buddy.json')) // Outputs the absolute path to 'config/buddy.json' within the buddy directory.
149
+ * console.log(buddyPath('config/buddy.json', { relative: true })) // Outputs the relative path to 'config/buddy.json' within the buddy directory.
150
+ * ```
151
+ */
152
+ export declare function buddyPath(path?: string, options?: {
153
+ relative?: boolean;
154
+ }): string;
155
+ /**
156
+ * Returns the path to the `runtime` directory within the framework directory.
157
+ *
158
+ * @param path - The relative path to the file or directory within the runtime directory.
159
+ * @returns The absolute path to the specified file or directory within the runtime directory.
160
+ * @example
161
+ * ```ts
162
+ * import { runtimePath } from '@stacksjs/paths'
163
+ *
164
+ * console.log(runtimePath('runtime-config.json')) // Outputs the absolute path to 'runtime-config.json' within the runtime directory.
165
+ * ```
166
+ */
167
+ export declare function runtimePath(path?: string): string;
168
+ /**
169
+ * Returns the path to the `analytics` directory within the core directory.
170
+ *
171
+ * @param path - The relative path to the file or directory within the `analytics` directory.
172
+ * @returns The absolute path to the specified file or directory within the `analytics` directory.
173
+ * @example
174
+ * ```ts
175
+ * import { analyticsPath } from '@stacksjs/paths'
176
+ *
177
+ * console.log(analyticsPath('data/report.csv')) // Outputs the absolute path to 'data/report.csv' within the `analytics` directory.
178
+ * ```
179
+ */
180
+ export declare function analyticsPath(path?: string): string;
181
+ /**
182
+ * Returns the path to the `arrays` directory within the core directory.
183
+ *
184
+ * @param path - The relative path to the file or directory within the `arrays` directory.
185
+ * @returns The absolute path to the specified file or directory within the `arrays` directory.
186
+ * @example
187
+ * ```ts
188
+ * import { arraysPath } from '@stacksjs/paths'
189
+ *
190
+ * console.log(arraysPath('list.txt')) // Outputs the absolute path to 'list.txt' within the `arrays` directory.
191
+ * ```
192
+ */
193
+ export declare function arraysPath(path?: string): string;
194
+ /**
195
+ * Returns the path to the `app` directory, optionally relative to the project directory.
196
+ *
197
+ * @param path - The relative path to the file or directory within the app directory.
198
+ * @returns The absolute path to the specified file or directory within the app directory.
199
+ * @example
200
+ * ```ts
201
+ * import { appPath } from '@stacksjs/paths'
202
+ *
203
+ * console.log(appPath('Actions/DummyAction.ts')) // Outputs the absolute path to 'Actions/DummyAction.ts' within the app directory.
204
+ * ```
205
+ */
206
+ export declare function appPath(path?: string): string;
207
+ /**
208
+ * Returns the path to the `auth` directory within the core directory.
209
+ *
210
+ * @param path - The relative path to the file or directory within the auth directory.
211
+ * @returns The absolute path to the specified file or directory within the auth directory.
212
+ * @example
213
+ * ```ts
214
+ * import { authPath } from '@stacksjs/paths'
215
+ *
216
+ * console.log(authPath('login.ts')) // Outputs the absolute path to 'login.ts' within the auth directory.
217
+ * ```
218
+ */
219
+ export declare function authPath(path?: string): string;
220
+ /**
221
+ * Returns the path to the build directory. The build directory
222
+ * contains Stacks' build engine & its tooling integrations.
223
+ *
224
+ * @param path string - relative path to the file or directory
225
+ * @returns string - absolute path to the file or directory
226
+ * @example
227
+ * ```ts
228
+ * buildPath('functions.stx')
229
+ * buildPath('components.ts')
230
+ * ```
231
+ */
232
+ export declare function buildPath(path?: string): string;
233
+ /**
234
+ * Returns the path to the build engine directory.
235
+ *
236
+ * @param path - The relative path to the file or directory within the build engine directory.
237
+ * @returns The absolute path to the specified file or directory within the build engine directory.
238
+ */
239
+ export declare function buildEnginePath(path?: string): string;
240
+ /**
241
+ * Returns the path to the `libs` directory within the framework directory.
242
+ *
243
+ * @param path - The relative path to the file or directory within the `libs` directory.
244
+ * @returns The absolute path to the specified file or directory within the `libs` directory.
245
+ */
246
+ export declare function libsPath(path?: string): string;
247
+ /**
248
+ * Returns the path to the `entries` directory within the `libs` directory.
249
+ *
250
+ * @param path - The relative path to the file or directory within the `entries` directory.
251
+ * @returns The absolute path to the specified file or directory within the `entries` directory.
252
+ */
253
+ export declare function libsEntriesPath(path?: string): string;
254
+ /**
255
+ * Returns the path to the `cache` directory within the core directory.
256
+ *
257
+ * @param path - The relative path to the file or directory within the cache directory.
258
+ * @returns The absolute path to the specified file or directory within the cache directory.
259
+ */
260
+ export declare function cachePath(path?: string): string;
261
+ /**
262
+ * Returns the path to the `chat` directory within the core directory.
263
+ *
264
+ * @param path - The relative path to the file or directory within the chat directory.
265
+ * @returns The absolute path to the specified file or directory within the chat directory.
266
+ */
267
+ export declare function chatPath(path?: string): string;
268
+ /**
269
+ * Returns the path to the `cli` directory within the core directory.
270
+ *
271
+ * @param path - The relative path to the file or directory within the cli directory.
272
+ * @returns The absolute path to the specified file or directory within the cli directory.
273
+ */
274
+ export declare function cliPath(path?: string): string;
275
+ /**
276
+ * Returns the path to the `cloud` directory within the core directory.
277
+ *
278
+ * @param path - The relative path to the file or directory within the cloud directory.
279
+ * @returns The absolute path to the specified file or directory within the cloud directory.
280
+ */
281
+ export declare function cloudPath(path?: string): string;
282
+ /**
283
+ * Returns the path to the `cloud` directory within the framework directory.
284
+ *
285
+ * @param path - The relative path to the file or directory within the framework cloud directory.
286
+ * @returns The absolute path to the specified file or directory within the framework cloud directory.
287
+ */
288
+ export declare function frameworkCloudPath(path?: string): string;
289
+ /**
290
+ * Returns the path to the `collections` directory within the core directory.
291
+ *
292
+ * @param path - The relative path to the file or directory within the `collections` directory.
293
+ * @returns The absolute path to the specified file or directory within the `collections` directory.
294
+ */
295
+ export declare function collectionsPath(path?: string): string;
296
+ /**
297
+ * Returns the path to the `Commands` directory within the app directory.
298
+ *
299
+ * @param path - The relative path to the file or directory within the `Commands` directory.
300
+ * @returns The absolute path to the specified file or directory within the `Commands` directory.
301
+ */
302
+ export declare function commandsPath(path?: string): string;
303
+ /**
304
+ * Returns the path to the `components` directory within the `resources` directory.
305
+ *
306
+ * @param path - The relative path to the file or directory within the `components` directory.
307
+ * @returns The absolute path to the specified file or directory within the `components` directory.
308
+ */
309
+ export declare function componentsPath(path?: string): string;
310
+ /**
311
+ * Returns the path to the `config` directory within the core directory.
312
+ *
313
+ * @param path - The relative path to the file or directory within the config directory.
314
+ * @returns The absolute path to the specified file or directory within the config directory.
315
+ */
316
+ export declare function configPath(path?: string): string;
317
+ /**
318
+ * Returns the path to the `core` directory within the framework directory.
319
+ *
320
+ * @param path - The relative path to the file or directory within the core directory.
321
+ * @returns The absolute path to the specified file or directory within the core directory.
322
+ */
323
+ export declare function corePath(path?: string): string;
324
+ /**
325
+ * Returns the absolute path to the `custom-elements.json` file within the core directory.
326
+ *
327
+ * @returns The absolute path to the `custom-elements.json` file.
328
+ */
329
+ export declare function customElementsDataPath(): string;
330
+ /**
331
+ * Returns the path to the `database` directory within the core directory.
332
+ *
333
+ * @param path - The relative path to the file or directory within the database directory.
334
+ * @returns The absolute path to the specified file or directory within the database directory.
335
+ */
336
+ export declare function databasePath(path?: string): string;
337
+ /**
338
+ * Returns the path to the `datetime` directory within the core directory.
339
+ *
340
+ * @param path - The relative path to the file or directory within the datetime directory.
341
+ * @returns The absolute path to the specified file or directory within the datetime directory.
342
+ */
343
+ export declare function datetimePath(path?: string): string;
344
+ /**
345
+ * Returns the path to the `development` directory within the core directory.
346
+ *
347
+ * @param path - The relative path to the file or directory within the development directory.
348
+ * @returns The absolute path to the specified file or directory within the development directory.
349
+ */
350
+ export declare function developmentPath(path?: string): string;
351
+ /**
352
+ * Returns the path to the `desktop` directory within the core directory.
353
+ *
354
+ * @param path - The relative path to the file or directory within the desktop directory.
355
+ * @returns The absolute path to the specified file or directory within the desktop directory.
356
+ */
357
+ export declare function desktopPath(path?: string): string;
358
+ /**
359
+ * Returns the path to the `docs` directory within the core directory.
360
+ *
361
+ * @param path - The relative path to the file or directory within the `docs` directory.
362
+ * @returns The absolute path to the specified file or directory within the `docs` directory.
363
+ */
364
+ export declare function docsPath(path?: string): string;
365
+ /**
366
+ * Returns the path to the `domains` directory within the core directory.
367
+ *
368
+ * @param path - The relative path to the file or directory within the `domains` directory.
369
+ * @returns The absolute path to the specified file or directory within the `domains` directory.
370
+ */
371
+ export declare function dnsPath(path?: string): string;
372
+ /**
373
+ * Returns the path to the `email` directory within the `notifications` directory.
374
+ *
375
+ * @param path - The relative path to the file or directory within the email directory.
376
+ * @returns The absolute path to the specified file or directory within the email directory.
377
+ */
378
+ export declare function emailPath(path?: string): string;
379
+ /**
380
+ * Returns the path to the `enums` directory within the core directory.
381
+ *
382
+ * @param path - The relative path to the file or directory within the `enums` directory.
383
+ * @returns The absolute path to the specified file or directory within the `enums` directory.
384
+ */
385
+ export declare function enumsPath(path?: string): string;
386
+ /**
387
+ * Returns the path to the `error-handling` directory within the core directory.
388
+ *
389
+ * @param path - The relative path to the file or directory within the error-handling directory.
390
+ * @returns The absolute path to the specified file or directory within the error-handling directory.
391
+ */
392
+ export declare function errorHandlingPath(path?: string): string;
393
+ /**
394
+ * Returns the path to the `events` directory within the core directory.
395
+ *
396
+ * @param path - The relative path to the file or directory within the `events` directory.
397
+ * @returns The absolute path to the specified file or directory within the `events` directory.
398
+ */
399
+ export declare function eventsPath(path?: string): string;
400
+ /**
401
+ * Returns the path to the `env` directory within the core directory.
402
+ *
403
+ * @param path - The relative path to the file or directory within the env directory.
404
+ * @returns The absolute path to the specified file or directory within the env directory.
405
+ */
406
+ export declare function coreEnvPath(path?: string): string;
407
+ /**
408
+ * Returns the path to the `examples` directory within the framework directory, filtered by type.
409
+ *
410
+ * @param type - The type of examples to filter by ('vue-components' or 'web-components').
411
+ * @returns The absolute path to the specified type of examples within the `examples` directory.
412
+ */
413
+ export declare function examplesPath(type: 'vue-components' | 'web-components'): string;
414
+ /**
415
+ * Returns the path to the `faker` directory within the core directory.
416
+ *
417
+ * @param path - The relative path to the file or directory within the faker directory.
418
+ * @returns The absolute path to the specified file or directory within the faker directory.
419
+ */
420
+ export declare function fakerPath(path?: string): string;
421
+ /**
422
+ * Returns the path to the framework directory, optionally relative to the current working directory.
423
+ *
424
+ * @param path - The relative path to the file or directory within the framework directory.
425
+ * @param options - Optional. An object containing configuration settings.
426
+ * @param options.relative - If true, returns the path relative to the current working directory.
427
+ * @param options.cwd - Specifies a custom working directory.
428
+ * @returns The absolute or relative path to the specified file or directory within the framework directory.
429
+ */
430
+ export declare function frameworkPath(path?: string, options?: {
431
+ relative?: boolean;
432
+ cwd?: string;
433
+ }): string;
434
+ /**
435
+ * Returns the path to the `health` directory within the core directory.
436
+ *
437
+ * @param path - The relative path to the file or directory within the health directory.
438
+ * @returns The absolute path to the specified file or directory within the health directory.
439
+ */
440
+ export declare function healthPath(path?: string): string;
441
+ /**
442
+ * Returns the path to the `functions` directory within the `resources` directory.
443
+ *
444
+ * @param path - The relative path to the file or directory within the `functions` directory.
445
+ * @returns The absolute path to the specified file or directory within the `functions` directory.
446
+ */
447
+ export declare function functionsPath(path?: string): string;
448
+ /**
449
+ * Returns the path to the `git` directory within the core directory.
450
+ *
451
+ * @param path - The relative path to the file or directory within the git directory.
452
+ * @returns The absolute path to the specified file or directory within the git directory.
453
+ */
454
+ export declare function gitPath(path?: string): string;
455
+ /**
456
+ * Returns the path to the `lang` directory, optionally relative to the project directory.
457
+ *
458
+ * @param path - The relative path to the file or directory within the lang directory.
459
+ * @returns The absolute path to the specified file or directory within the lang directory.
460
+ */
461
+ export declare function langPath(path?: string): string;
462
+ /**
463
+ * Returns the path to the `layouts` directory within the `resources` directory, optionally relative to the current working directory.
464
+ *
465
+ * @param path - The relative path to the file or directory within the `layouts` directory.
466
+ * @param options - Optional. An object containing configuration settings.
467
+ * @param options.relative - If true, returns the path relative to the current working directory.
468
+ * @returns The absolute or relative path to the specified file or directory within the `layouts` directory.
469
+ */
470
+ export declare function layoutsPath(path?: string, options?: {
471
+ relative?: boolean;
472
+ }): string;
473
+ /**
474
+ * Returns the path to the library entry file, filtered by library type.
475
+ *
476
+ * @param type - The type of library ('vue-components', 'web-components', or 'functions').
477
+ * @returns The absolute path to the specified library entry file.
478
+ */
479
+ export type LibraryType = 'vue-components' | 'web-components' | 'functions';
480
+ export declare function libraryEntryPath(type: LibraryType): string;
481
+ /**
482
+ * Returns the path to the `lint` directory within the core directory.
483
+ *
484
+ * @param path - The relative path to the file or directory within the lint directory.
485
+ * @returns The absolute path to the specified file or directory within the lint directory.
486
+ */
487
+ export declare function lintPath(path?: string): string;
488
+ /**
489
+ * Returns the path to the `listeners` directory within the app directory.
490
+ *
491
+ * @param path - The relative path to the file or directory within the `listeners` directory.
492
+ * @returns The absolute path to the specified file or directory within the `listeners` directory.
493
+ */
494
+ export declare function listenersPath(path?: string): string;
495
+ /**
496
+ * Returns the path to the `eslint` directory within the lint directory.
497
+ *
498
+ * @param path - The relative path to the file or directory within the eslint directory.
499
+ * @returns The absolute path to the specified file or directory within the eslint directory.
500
+ */
501
+ export declare function eslintPath(path?: string): string;
502
+ /**
503
+ * Returns the path to the `jobs` directory within the app directory.
504
+ *
505
+ * @param path - The relative path to the file or directory within the `jobs` directory.
506
+ * @returns The absolute path to the specified file or directory within the `jobs` directory.
507
+ */
508
+ export declare function jobsPath(path?: string): string;
509
+ /**
510
+ * Returns the path to the `logging` directory within the core directory.
511
+ *
512
+ * @param path - The relative path to the file or directory within the logging directory.
513
+ * @returns The absolute path to the specified file or directory within the logging directory.
514
+ */
515
+ export declare function loggingPath(path?: string): string;
516
+ /**
517
+ * Returns the path to the `logs` directory within the project storage directory.
518
+ *
519
+ * @param path - The relative path to the file or directory within the `logs` directory.
520
+ * @returns The absolute path to the specified file or directory within the `logs` directory.
521
+ */
522
+ export declare function logsPath(path?: string): string;
523
+ /**
524
+ * Returns the path to the `models` directory within the app directory.
525
+ *
526
+ * @param path - The relative path to the file or directory within the `models` directory.
527
+ * @returns The absolute path to the specified file or directory within the `models` directory.
528
+ */
529
+ export declare function modelsPath(path?: string): string;
530
+ /**
531
+ * Returns the path to the `modules` directory within the `resources` directory.
532
+ *
533
+ * @param path - The relative path to the file or directory within the `modules` directory.
534
+ * @returns The absolute path to the specified file or directory within the `modules` directory.
535
+ */
536
+ export declare function modulesPath(path?: string): string;
537
+ /**
538
+ * Returns the path to the `notifications` directory within the core directory.
539
+ *
540
+ * @param path - The relative path to the file or directory within the `notifications` directory.
541
+ * @returns The absolute path to the specified file or directory within the `notifications` directory.
542
+ */
543
+ export declare function notificationsPath(path?: string): string;
544
+ /**
545
+ * Returns the path to the `orm` directory within the core directory.
546
+ *
547
+ * @param path - The relative path to the file or directory within the orm directory.
548
+ * @returns The absolute path to the specified file or directory within the orm directory.
549
+ */
550
+ export declare function ormPath(path?: string): string;
551
+ /**
552
+ * Returns the path to the `objects` directory within the core directory.
553
+ *
554
+ * @param path - The relative path to the file or directory within the `objects` directory.
555
+ * @returns The absolute path to the specified file or directory within the `objects` directory.
556
+ */
557
+ export declare function objectsPath(path?: string): string;
558
+ /**
559
+ * Returns the default path to the onboarding views within the project directory, or a specified path.
560
+ *
561
+ * @param path - The relative path to the file or directory within the project directory. Defaults to 'views/dashboard/onboarding'.
562
+ * @returns The absolute path to the specified file or directory within the project directory.
563
+ */
564
+ export declare function onboardingPath(path?: string): string;
565
+ /**
566
+ * Returns the path to the `package.json` file of a specified library type within the framework directory.
567
+ *
568
+ * @param type - The type of the library ('vue-components', 'web-components', or 'functions') for which to return the package.json path.
569
+ * @returns The absolute path to the specified package.json file within the framework directory.
570
+ */
571
+ export declare function packageJsonPath(type: 'vue-components' | 'web-components' | 'functions'): string;
572
+ /**
573
+ * Returns the path to the `views` directory within the `resources` directory.
574
+ *
575
+ * @param path - The relative path to the file or directory within the `views` directory.
576
+ * @returns The absolute path to the specified file or directory within the `views` directory.
577
+ */
578
+ export declare function viewsPath(path?: string): string;
579
+ /**
580
+ * Returns the path to the `path` directory within the core directory.
581
+ *
582
+ * @param path - The relative path to the file or directory within the path directory.
583
+ * @returns The absolute path to the specified file or directory within the path directory.
584
+ */
585
+ export declare function pathPath(path?: string): string;
586
+ /**
587
+ * Returns the path to the `payments` directory within the core directory.
588
+ *
589
+ * @param path - The relative path to the file or directory within the `payments` directory.
590
+ * @returns The absolute path to the specified file or directory within the `payments` directory.
591
+ */
592
+ export declare function paymentsPath(path?: string): string;
593
+ /**
594
+ * Returns the project path, resolving from the current working directory and moving up until the storage directory is no longer part of the path.
595
+ *
596
+ * @param filePath - The relative path to append to the project path. Defaults to an empty string.
597
+ * @returns The absolute path to the specified file or directory within the project directory.
598
+ */
599
+ export declare function projectPath(filePath?: string, options?: {
600
+ relative: boolean;
601
+ }): string;
602
+ /**
603
+ * Finds and returns the absolute path of a specified project by name.
604
+ *
605
+ * @param project - The name of the project to find.
606
+ * @returns The absolute path to the specified project.
607
+ * @throws Error if the project with the specified name cannot be found.
608
+ */
609
+ export declare function findProjectPath(project: string): Promise<string>;
610
+ /**
611
+ * Returns the path to the `config` directory within the project directory.
612
+ *
613
+ * @param path - The relative path to the file or directory within the config directory.
614
+ * @returns The absolute path to the specified file or directory within the config directory.
615
+ */
616
+ export declare function projectConfigPath(path?: string): string;
617
+ /**
618
+ * Returns the path to the `storage` directory within the project directory.
619
+ *
620
+ * @param path - The relative path to the file or directory within the storage directory.
621
+ * @returns The absolute path to the specified file or directory within the storage directory.
622
+ */
623
+ export declare function projectStoragePath(path?: string): string;
624
+ /**
625
+ * Returns the path to the `public` directory within the project directory.
626
+ *
627
+ * @param path - The relative path to the file or directory within the public directory.
628
+ * @returns The absolute path to the specified file or directory within the public directory.
629
+ */
630
+ export declare function publicPath(path?: string): string;
631
+ /**
632
+ * Returns the path to the `push` directory within the `notifications` directory.
633
+ *
634
+ * @param path - The relative path to the file or directory within the push directory.
635
+ * @returns The absolute path to the specified file or directory within the push directory.
636
+ */
637
+ export declare function pushPath(path?: string): string;
638
+ /**
639
+ * Returns the path to the `query-builder` directory within the core directory.
640
+ *
641
+ * @param path - The relative path to the file or directory within the query-builder directory.
642
+ * @returns The absolute path to the specified file or directory within the query-builder directory.
643
+ */
644
+ export declare function queryBuilderPath(path?: string): string;
645
+ /**
646
+ * Returns the path to the `queue` directory within the core directory.
647
+ *
648
+ * @param path - The relative path to the file or directory within the queue directory.
649
+ * @returns The absolute path to the specified file or directory within the queue directory.
650
+ */
651
+ export declare function queuePath(path?: string): string;
652
+ /**
653
+ * Returns the path to the `realtime` directory within the core directory.
654
+ *
655
+ * @param path - The relative path to the file or directory within the realtime directory.
656
+ * @returns The absolute path to the specified file or directory within the realtime directory.
657
+ */
658
+ export declare function realtimePath(path?: string): string;
659
+ /**
660
+ * Returns the path to the `resources` directory within the project storage directory, with an option for relative paths.
661
+ *
662
+ * @param path - The relative path to the file or directory within the `resources` directory.
663
+ * @param options - Optional. An object containing configuration settings.
664
+ * @param options.relative - If true, returns the path relative to the current working directory.
665
+ * @returns The absolute or relative path to the specified file or directory within the `resources` directory.
666
+ */
667
+ export declare function resourcesPath(path?: string, options?: {
668
+ relative?: boolean;
669
+ }): string;
670
+ /**
671
+ * Returns the path to the `repl` directory within the core directory.
672
+ *
673
+ * @param path - The relative path to the file or directory within the repl directory.
674
+ * @returns The absolute path to the specified file or directory within the repl directory.
675
+ */
676
+ export declare function replPath(path?: string): string;
677
+ /**
678
+ * Returns the path to the `router` directory within the core directory.
679
+ *
680
+ * @param path - The relative path to the file or directory within the router directory.
681
+ * @returns The absolute path to the specified file or directory within the router directory.
682
+ */
683
+ export declare function routerPath(path?: string): string;
684
+ /**
685
+ * Returns the path to the `routes` directory within the `resources` directory, with an option for relative paths.
686
+ *
687
+ * @param path - The relative path to the file or directory within the `routes` directory.
688
+ * @param options - Optional. An object containing configuration settings.
689
+ * @param options.relative - If true, returns the path relative to the current working directory.
690
+ * @returns The absolute or relative path to the specified file or directory within the `routes` directory.
691
+ */
692
+ export declare function routesPath(path?: string, options?: {
693
+ relative?: boolean;
694
+ }): string;
695
+ /**
696
+ * Returns the path to the `search-engine` directory within the core directory.
697
+ *
698
+ * @param path - The relative path to the file or directory within the search-engine directory.
699
+ * @returns The absolute path to the specified file or directory within the search-engine directory.
700
+ */
701
+ export declare function searchEnginePath(path?: string): string;
702
+ /**
703
+ * Returns the path to the `settings` directory within the project directory, defaulting to the views/dashboard/settings directory.
704
+ *
705
+ * @param path - The relative path to the file or directory within the `settings` directory.
706
+ * @returns The absolute path to the specified file or directory within the `settings` directory.
707
+ */
708
+ export declare function settingsPath(path?: string): string;
709
+ /**
710
+ * Returns the path to the `scripts` directory within the framework directory.
711
+ *
712
+ * @param path - The relative path to the file or directory within the `scripts` directory.
713
+ * @returns The absolute path to the specified file or directory within the `scripts` directory.
714
+ */
715
+ export declare function scriptsPath(path?: string): string;
716
+ /**
717
+ * Returns the path to the `scheduler` directory within the core directory.
718
+ *
719
+ * @param path - The relative path to the file or directory within the scheduler directory.
720
+ * @returns The absolute path to the specified file or directory within the scheduler directory.
721
+ */
722
+ export declare function schedulerPath(path?: string): string;
723
+ /**
724
+ * Returns the path to the `slug` directory within the core directory.
725
+ *
726
+ * @param path - The relative path to the file or directory within the slug directory.
727
+ * @returns The absolute path to the specified file or directory within the slug directory.
728
+ */
729
+ export declare function slugPath(path?: string): string;
730
+ /**
731
+ * Returns the path to the `sms` directory within the `notifications` directory.
732
+ *
733
+ * @param path - The relative path to the file or directory within the `sms` directory.
734
+ * @returns The absolute path to the specified file or directory within the `sms` directory.
735
+ */
736
+ export declare function smsPath(path?: string): string;
737
+ /**
738
+ * Returns the path to the `storage` directory within the core directory.
739
+ *
740
+ * @param path - The relative path to the file or directory within the storage directory.
741
+ * @returns The absolute path to the specified file or directory within the storage directory.
742
+ */
743
+ export declare function storagePath(path?: string): string;
744
+ /**
745
+ * Returns the path to the `stores` directory within the `resources` directory.
746
+ *
747
+ * @param path - The relative path to the file or directory within the `stores` directory.
748
+ * @returns The absolute path to the specified file or directory within the `stores` directory.
749
+ */
750
+ export declare function storesPath(path?: string): string;
751
+ /**
752
+ * Returns the path to the `security` directory within the core directory.
753
+ *
754
+ * @param path - The relative path to the file or directory within the security directory.
755
+ * @returns The absolute path to the specified file or directory within the security directory.
756
+ */
757
+ export declare function securityPath(path?: string): string;
758
+ /**
759
+ * Returns the path to the `server` directory within the core directory.
760
+ *
761
+ * @param path - The relative path to the file or directory within the server directory.
762
+ * @returns The absolute path to the specified file or directory within the server directory.
763
+ */
764
+ export declare function serverPath(path?: string): string;
765
+ /**
766
+ * Returns the path to the `serverless` directory within the core directory.
767
+ *
768
+ * @param path - The relative path to the file or directory within the `serverless` directory.
769
+ * @returns The absolute path to the specified file or directory within the `serverless` directory.
770
+ */
771
+ export declare function serverlessPath(path?: string): string;
772
+ /**
773
+ * Returns the path to the specified directory or file within the framework's `src` directory.
774
+ *
775
+ * @param path - The relative path to the file or directory within the framework's `src` directory.
776
+ * @returns The absolute path to the specified file or directory within the framework's `src` directory.
777
+ */
778
+ export declare function stacksPath(path?: string): string;
779
+ /**
780
+ * Returns the path to the `shell` directory within the core directory.
781
+ *
782
+ * @param path - The relative path to the file or directory within the shell directory.
783
+ * @returns The absolute path to the specified file or directory within the shell directory.
784
+ */
785
+ export declare function shellPath(path?: string): string;
786
+ /**
787
+ * Returns the path to the `strings` directory within the core directory.
788
+ *
789
+ * @param path - The relative path to the file or directory within the `strings` directory.
790
+ * @returns The absolute path to the specified file or directory within the `strings` directory.
791
+ */
792
+ export declare function stringsPath(path?: string): string;
793
+ /**
794
+ * Returns the path to the `testing` directory within the core directory.
795
+ *
796
+ * @param path - The relative path to the file or directory within the testing directory.
797
+ * @returns The absolute path to the specified file or directory within the testing directory.
798
+ */
799
+ export declare function testingPath(path?: string): string;
800
+ /**
801
+ * Returns the path to the `tinker` directory within the core directory.
802
+ *
803
+ * @param path - The relative path to the file or directory within the tinker directory.
804
+ * @returns The absolute path to the specified file or directory within the tinker directory.
805
+ */
806
+ export declare function tinkerPath(path?: string): string;
807
+ /**
808
+ * Returns the path to the `tests` directory within the framework directory.
809
+ *
810
+ * @param path - The relative path to the file or directory within the `tests` directory.
811
+ * @returns The absolute path to the specified file or directory within the `tests` directory.
812
+ */
813
+ export declare function testsPath(path?: string): string;
814
+ /**
815
+ * Returns the path to the `types` directory within the core directory.
816
+ *
817
+ * @param path - The relative path to the file or directory within the `types` directory.
818
+ * @returns The absolute path to the specified file or directory within the `types` directory.
819
+ */
820
+ export declare function typesPath(path?: string): string;
821
+ /**
822
+ * Returns the path to the `ui` directory within the core directory.
823
+ *
824
+ * @param path - The relative path to the file or directory within the ui directory.
825
+ * @returns The absolute path to the specified file or directory within the ui directory.
826
+ */
827
+ export declare function uiPath(path?: string): string;
828
+ /**
829
+ * Returns the path to the `utils` directory within the core directory.
830
+ *
831
+ * @param path - The relative path to the file or directory within the `utils` directory.
832
+ * @returns The absolute path to the specified file or directory within the `utils` directory.
833
+ */
834
+ export declare function utilsPath(path?: string): string;
835
+ /**
836
+ * Returns the path to the `validation` directory within the core directory.
837
+ *
838
+ * @param path - The relative path to the file or directory within the validation directory.
839
+ * @returns The absolute path to the specified file or directory within the validation directory.
840
+ */
841
+ export declare function validationPath(path?: string): string;
842
+ /**
843
+ * Returns the path to the `vite` directory within the core directory.
844
+ *
845
+ * @param path - The relative path to the file or directory within the vite directory.
846
+ * @returns The absolute path to the specified file or directory within the vite directory.
847
+ */
848
+ export declare function vitePath(path?: string): string;
849
+ /**
850
+ * Returns the path to the `x-ray` directory within the `stacks` directory of the framework.
851
+ *
852
+ * @param path - The relative path to the file or directory within the x-ray directory.
853
+ * @returns The absolute path to the specified file or directory within the x-ray directory.
854
+ */
855
+ export declare function xRayPath(path?: string): string;
856
+ /**
857
+ * Returns the path to the home directory, optionally appending a given path.
858
+ *
859
+ * @param path - The relative path to append to the home directory path.
860
+ * @returns The absolute path to the specified file or directory within the home directory.
861
+ */
862
+ export declare function homeDir(path?: string): string;
863
+ export declare const path: {
864
+ actionsPath: typeof actionsPath;
865
+ userActionsPath: typeof userActionsPath;
866
+ aiPath: typeof aiPath;
867
+ assetsPath: typeof assetsPath;
868
+ relativeActionsPath: typeof relativeActionsPath;
869
+ aliasPath: typeof aliasPath;
870
+ analyticsPath: typeof analyticsPath;
871
+ arraysPath: typeof arraysPath;
872
+ appPath: typeof appPath;
873
+ authPath: typeof authPath;
874
+ buddyPath: typeof buddyPath;
875
+ buildEnginePath: typeof buildEnginePath;
876
+ libsEntriesPath: typeof libsEntriesPath;
877
+ buildPath: typeof buildPath;
878
+ cachePath: typeof cachePath;
879
+ chatPath: typeof chatPath;
880
+ cliPath: typeof cliPath;
881
+ cloudPath: typeof cloudPath;
882
+ frameworkCloudPath: typeof frameworkCloudPath;
883
+ collectionsPath: typeof collectionsPath;
884
+ commandsPath: typeof commandsPath;
885
+ componentsPath: typeof componentsPath;
886
+ configPath: typeof configPath;
887
+ projectConfigPath: typeof projectConfigPath;
888
+ corePath: typeof corePath;
889
+ customElementsDataPath: typeof customElementsDataPath;
890
+ databasePath: typeof databasePath;
891
+ datetimePath: typeof datetimePath;
892
+ developmentPath: typeof developmentPath;
893
+ desktopPath: typeof desktopPath;
894
+ docsPath: typeof docsPath;
895
+ dnsPath: typeof dnsPath;
896
+ emailPath: typeof emailPath;
897
+ enumsPath: typeof enumsPath;
898
+ errorHandlingPath: typeof errorHandlingPath;
899
+ eventsPath: typeof eventsPath;
900
+ coreEnvPath: typeof coreEnvPath;
901
+ healthPath: typeof healthPath;
902
+ examplesPath: typeof examplesPath;
903
+ fakerPath: typeof fakerPath;
904
+ frameworkPath: typeof frameworkPath;
905
+ storagePath: typeof storagePath;
906
+ functionsPath: typeof functionsPath;
907
+ gitPath: typeof gitPath;
908
+ langPath: typeof langPath;
909
+ layoutsPath: typeof layoutsPath;
910
+ libsPath: typeof libsPath;
911
+ libraryEntryPath: typeof libraryEntryPath;
912
+ lintPath: typeof lintPath;
913
+ listenersPath: typeof listenersPath;
914
+ loggingPath: typeof loggingPath;
915
+ jobsPath: typeof jobsPath;
916
+ modulesPath: typeof modulesPath;
917
+ ormPath: typeof ormPath;
918
+ objectsPath: typeof objectsPath;
919
+ onboardingPath: typeof onboardingPath;
920
+ notificationsPath: typeof notificationsPath;
921
+ packageJsonPath: typeof packageJsonPath;
922
+ viewsPath: typeof viewsPath;
923
+ pathPath: typeof pathPath;
924
+ paymentsPath: typeof paymentsPath;
925
+ projectPath: typeof projectPath;
926
+ findProjectPath: typeof findProjectPath;
927
+ projectStoragePath: typeof projectStoragePath;
928
+ publicPath: typeof publicPath;
929
+ pushPath: typeof pushPath;
930
+ queryBuilderPath: typeof queryBuilderPath;
931
+ queuePath: typeof queuePath;
932
+ realtimePath: typeof realtimePath;
933
+ resourcesPath: typeof resourcesPath;
934
+ replPath: typeof replPath;
935
+ routerPath: typeof routerPath;
936
+ routesPath: typeof routesPath;
937
+ runtimePath: typeof runtimePath;
938
+ searchEnginePath: typeof searchEnginePath;
939
+ schedulerPath: typeof schedulerPath;
940
+ settingsPath: typeof settingsPath;
941
+ smsPath: typeof smsPath;
942
+ slugPath: typeof slugPath;
943
+ scriptsPath: typeof scriptsPath;
944
+ securityPath: typeof securityPath;
945
+ serverPath: typeof serverPath;
946
+ serverlessPath: typeof serverlessPath;
947
+ stacksPath: typeof stacksPath;
948
+ stringsPath: typeof stringsPath;
949
+ shellPath: typeof shellPath;
950
+ storesPath: typeof storesPath;
951
+ testingPath: typeof testingPath;
952
+ testsPath: typeof testsPath;
953
+ tinkerPath: typeof tinkerPath;
954
+ typesPath: typeof typesPath;
955
+ uiPath: typeof uiPath;
956
+ userEventsPath: typeof userEventsPath;
957
+ userJobsPath: typeof userJobsPath;
958
+ userListenersPath: typeof userListenersPath;
959
+ userMiddlewarePath: typeof userMiddlewarePath;
960
+ userModelsPath: typeof userModelsPath;
961
+ userNotificationsPath: typeof userNotificationsPath;
962
+ utilsPath: typeof utilsPath;
963
+ validationPath: typeof validationPath;
964
+ vitePath: typeof vitePath;
965
+ xRayPath: typeof xRayPath;
966
+ homeDir: typeof homeDir;
967
+ basename: (path: string, suffix?: string | undefined) => string;
968
+ delimiter: ";" | ":";
969
+ dirname: (path: string) => string;
970
+ extname: (path: string) => string;
971
+ isAbsolute: (path: string) => boolean;
972
+ join: (...paths: string[]) => string;
973
+ normalize: (path: string) => string;
974
+ relative: (from: string, to: string) => string;
975
+ resolve: (...paths: string[]) => string;
976
+ parse: (path: string) => import("path").ParsedPath;
977
+ sep: "/" | "\\";
978
+ toNamespacedPath: (path: string) => string;
979
+ };
980
+ export { basename, delimiter, dirname, extname, isAbsolute, join, normalize, relative, resolve, sep, toNamespacedPath, };