@powerlines/plugin-date 0.12.66 → 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 (184) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +1 -0
  2. package/dist/{chunk-BGGBqwuQ.mjs → _virtual/rolldown_runtime.mjs} +1 -1
  3. package/dist/alloy/src/core/components/output.cjs +1 -0
  4. package/dist/alloy/src/core/components/output.mjs +1 -0
  5. package/dist/alloy/src/core/components/single-line-comment.cjs +1 -0
  6. package/dist/alloy/src/core/components/single-line-comment.mjs +1 -0
  7. package/dist/alloy/src/core/components/source-file.cjs +1 -0
  8. package/dist/alloy/src/core/components/source-file.mjs +1 -0
  9. package/dist/alloy/src/core/contexts/context.cjs +1 -0
  10. package/dist/alloy/src/core/contexts/context.mjs +1 -0
  11. package/dist/alloy/src/core/contexts/reflection.cjs +1 -0
  12. package/dist/alloy/src/core/contexts/reflection.mjs +1 -0
  13. package/dist/alloy/src/create-plugin.cjs +2 -0
  14. package/dist/alloy/src/create-plugin.mjs +2 -0
  15. package/dist/alloy/src/helpers/refkey.cjs +1 -0
  16. package/dist/alloy/src/helpers/refkey.mjs +1 -0
  17. package/dist/alloy/src/markdown/components/markdown-file.cjs +1 -0
  18. package/dist/alloy/src/markdown/components/markdown-file.mjs +1 -0
  19. package/dist/alloy/src/markdown/components/markdown-table.cjs +1 -0
  20. package/dist/alloy/src/markdown/components/markdown-table.mjs +1 -0
  21. package/dist/alloy/src/markdown/contexts/markdown-table.cjs +1 -0
  22. package/dist/alloy/src/markdown/contexts/markdown-table.mjs +1 -0
  23. package/dist/alloy/src/typescript/components/builtin-file.cjs +1 -0
  24. package/dist/alloy/src/typescript/components/builtin-file.mjs +1 -0
  25. package/dist/alloy/src/typescript/components/tsdoc-reflection.cjs +1 -0
  26. package/dist/alloy/src/typescript/components/tsdoc-reflection.mjs +1 -0
  27. package/dist/alloy/src/typescript/components/tsdoc.cjs +1 -0
  28. package/dist/alloy/src/typescript/components/tsdoc.mjs +1 -0
  29. package/dist/alloy/src/typescript/components/typescript-file.cjs +1 -0
  30. package/dist/alloy/src/typescript/components/typescript-file.mjs +1 -0
  31. package/dist/alloy/src/typescript/components/typescript-interface.cjs +1 -0
  32. package/dist/alloy/src/typescript/components/typescript-interface.mjs +1 -0
  33. package/dist/alloy/src/typescript/components/typescript-object.cjs +1 -0
  34. package/dist/alloy/src/typescript/components/typescript-object.mjs +1 -0
  35. package/dist/components/date-fns.cjs +513 -0
  36. package/dist/components/date-fns.d.cts +13 -0
  37. package/dist/components/date-fns.d.mts +13 -0
  38. package/dist/components/date-fns.mjs +513 -0
  39. package/dist/components/dayjs.cjs +458 -0
  40. package/dist/components/dayjs.d.cts +13 -0
  41. package/dist/components/dayjs.d.mts +13 -0
  42. package/dist/components/dayjs.mjs +458 -0
  43. package/dist/components/index.cjs +1 -0
  44. package/dist/components/index.d.mts +4 -0
  45. package/dist/components/index.mjs +1 -0
  46. package/dist/components/luxon.cjs +462 -0
  47. package/dist/components/luxon.d.cts +13 -0
  48. package/dist/components/luxon.d.mts +13 -0
  49. package/dist/components/luxon.mjs +462 -0
  50. package/dist/components/moment.cjs +448 -0
  51. package/dist/components/moment.d.cts +13 -0
  52. package/dist/components/moment.d.mts +13 -0
  53. package/dist/components/moment.mjs +448 -0
  54. package/dist/deepkit/schemas/reflection.cjs +1 -0
  55. package/dist/deepkit/schemas/reflection.d.cts +1560 -0
  56. package/dist/deepkit/schemas/reflection.d.mts +1560 -0
  57. package/dist/deepkit/schemas/reflection.mjs +1 -0
  58. package/dist/deepkit/schemas/reflection2.cjs +1 -0
  59. package/dist/deepkit/schemas/reflection2.mjs +1 -0
  60. package/dist/deepkit/src/capnp.cjs +1 -0
  61. package/dist/deepkit/src/capnp.mjs +1 -0
  62. package/dist/deepkit/src/reflect-type.cjs +1 -0
  63. package/dist/deepkit/src/reflect-type.mjs +1 -0
  64. package/dist/deepkit/src/resolve-reflections.cjs +1 -0
  65. package/dist/deepkit/src/resolve-reflections.mjs +1 -0
  66. package/dist/deepkit/src/types.d.cts +10 -0
  67. package/dist/deepkit/src/types.d.mts +10 -0
  68. package/dist/deepkit/src/utilities.cjs +1 -0
  69. package/dist/deepkit/src/utilities.mjs +1 -0
  70. package/dist/deepkit/src/vendor/type.cjs +1 -0
  71. package/dist/deepkit/src/vendor/type.d.cts +7 -0
  72. package/dist/deepkit/src/vendor/type.d.mts +7 -0
  73. package/dist/deepkit/src/vendor/type.mjs +1 -0
  74. package/dist/index.cjs +1 -1953
  75. package/dist/index.d.cts +7 -40
  76. package/dist/index.d.mts +9 -40
  77. package/dist/index.mjs +1 -1950
  78. package/dist/plugin-babel/src/helpers/ast-utils.cjs +1 -0
  79. package/dist/plugin-babel/src/helpers/ast-utils.mjs +1 -0
  80. package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -0
  81. package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -0
  82. package/dist/plugin-babel/src/helpers/filters.cjs +1 -0
  83. package/dist/plugin-babel/src/helpers/filters.mjs +1 -0
  84. package/dist/plugin-babel/src/helpers/index.cjs +1 -0
  85. package/dist/plugin-babel/src/helpers/index.mjs +1 -0
  86. package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -0
  87. package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -0
  88. package/dist/plugin-babel/src/helpers/options.cjs +1 -0
  89. package/dist/plugin-babel/src/helpers/options.mjs +1 -0
  90. package/dist/plugin-babel/src/index.cjs +1 -0
  91. package/dist/plugin-babel/src/index.mjs +1 -0
  92. package/dist/plugin-babel/src/types/index.d.mts +1 -0
  93. package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
  94. package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
  95. package/dist/plugin-env/src/babel/index.cjs +1 -0
  96. package/dist/plugin-env/src/babel/index.mjs +1 -0
  97. package/dist/plugin-env/src/babel/plugin.cjs +5 -0
  98. package/dist/plugin-env/src/babel/plugin.mjs +5 -0
  99. package/dist/plugin-env/src/components/docs.cjs +1 -0
  100. package/dist/plugin-env/src/components/docs.mjs +1 -0
  101. package/dist/plugin-env/src/components/env.cjs +34 -0
  102. package/dist/plugin-env/src/components/env.mjs +31 -0
  103. package/dist/plugin-env/src/components/index.cjs +1 -0
  104. package/dist/plugin-env/src/components/index.mjs +1 -0
  105. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +1 -0
  106. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +1 -0
  107. package/dist/plugin-env/src/helpers/index.cjs +1 -0
  108. package/dist/plugin-env/src/helpers/index.mjs +1 -0
  109. package/dist/plugin-env/src/helpers/load.cjs +1 -0
  110. package/dist/plugin-env/src/helpers/load.mjs +1 -0
  111. package/dist/plugin-env/src/helpers/persistence.cjs +1 -0
  112. package/dist/plugin-env/src/helpers/persistence.mjs +1 -0
  113. package/dist/plugin-env/src/helpers/reflect.cjs +1 -0
  114. package/dist/plugin-env/src/helpers/reflect.mjs +1 -0
  115. package/dist/plugin-env/src/helpers/source-file-env.cjs +1 -0
  116. package/dist/plugin-env/src/helpers/source-file-env.mjs +1 -0
  117. package/dist/plugin-env/src/helpers/template-helpers.cjs +1 -0
  118. package/dist/plugin-env/src/helpers/template-helpers.mjs +1 -0
  119. package/dist/plugin-env/src/index.cjs +16 -0
  120. package/dist/plugin-env/src/index.mjs +16 -0
  121. package/dist/plugin-env/src/types/plugin.d.cts +135 -0
  122. package/dist/plugin-env/src/types/plugin.d.mts +136 -0
  123. package/dist/plugin-env/src/types/runtime.d.cts +792 -0
  124. package/dist/plugin-env/src/types/runtime.d.mts +792 -0
  125. package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
  126. package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
  127. package/dist/powerlines/src/lib/entry.cjs +1 -0
  128. package/dist/powerlines/src/lib/entry.mjs +1 -0
  129. package/dist/powerlines/src/lib/logger.cjs +1 -0
  130. package/dist/powerlines/src/lib/logger.mjs +1 -0
  131. package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
  132. package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
  133. package/dist/powerlines/src/lib/utilities/file-header.cjs +10 -0
  134. package/dist/powerlines/src/lib/utilities/file-header.mjs +10 -0
  135. package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
  136. package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
  137. package/dist/powerlines/src/plugin-utils/helpers.cjs +1 -0
  138. package/dist/powerlines/src/plugin-utils/helpers.mjs +1 -0
  139. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
  140. package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
  141. package/dist/powerlines/src/types/babel.d.cts +22 -0
  142. package/dist/powerlines/src/types/babel.d.mts +22 -0
  143. package/dist/powerlines/src/types/build.d.cts +139 -0
  144. package/dist/powerlines/src/types/build.d.mts +139 -0
  145. package/dist/powerlines/src/types/commands.d.cts +8 -0
  146. package/dist/powerlines/src/types/commands.d.mts +9 -0
  147. package/dist/powerlines/src/types/config.d.cts +356 -0
  148. package/dist/powerlines/src/types/config.d.mts +357 -0
  149. package/dist/powerlines/src/types/context.d.cts +358 -0
  150. package/dist/powerlines/src/types/context.d.mts +360 -0
  151. package/dist/powerlines/src/types/fs.d.cts +458 -0
  152. package/dist/powerlines/src/types/fs.d.mts +458 -0
  153. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  154. package/dist/powerlines/src/types/plugin.d.cts +232 -0
  155. package/dist/powerlines/src/types/plugin.d.mts +232 -0
  156. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  157. package/dist/powerlines/src/types/resolved.d.mts +82 -0
  158. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  159. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  160. package/dist/types/index.cjs +0 -1
  161. package/dist/types/index.d.cts +2 -3
  162. package/dist/types/index.d.mts +2 -3
  163. package/dist/types/index.mjs +1 -1
  164. package/dist/types/plugin.cjs +0 -1
  165. package/dist/types/plugin.d.cts +42 -1
  166. package/dist/types/plugin.d.mts +42 -1
  167. package/dist/types/plugin.mjs +1 -1
  168. package/dist/types/runtime.cjs +0 -1
  169. package/dist/types/runtime.d.cts +710 -1
  170. package/dist/types/runtime.d.mts +710 -1
  171. package/dist/types/runtime.mjs +1 -1
  172. package/package.json +7 -7
  173. package/dist/index-CmCelmEL.d.cts +0 -1
  174. package/dist/index-ColiPbLk.d.mts +0 -1
  175. package/dist/plugin-CU36jSR5.d.mts +0 -4211
  176. package/dist/plugin-DHXHjv16.cjs +0 -0
  177. package/dist/plugin-DxCv7BdD.d.cts +0 -4212
  178. package/dist/plugin-alze5tBm.mjs +0 -1
  179. package/dist/runtime-0ZpEtv0G.mjs +0 -1
  180. package/dist/runtime-B8LVkjWB.d.cts +0 -711
  181. package/dist/runtime-D4zTdSwv.cjs +0 -0
  182. package/dist/runtime-DPe0V01H.d.mts +0 -711
  183. package/dist/types-CBTc19th.cjs +0 -0
  184. package/dist/types-CZFQnkin.mjs +0 -1
@@ -1,4211 +0,0 @@
1
- import { Children } from "@alloy-js/core/jsx-runtime";
2
- import { LogLevelLabel } from "@storm-software/config-tools/types";
3
- import { PluginItem, PluginObj, PluginPass, transformAsync } from "@babel/core";
4
- import { BabelAPI } from "@babel/helper-plugin-utils";
5
- import { DotenvParseOutput } from "@stryke/env/types";
6
- import * as $ from "@stryke/capnp";
7
- import { ResolveOptions } from "@stryke/fs/resolve";
8
- import "c12";
9
- import { ArrayValues } from "@stryke/types/array";
10
- import { FunctionLike, MaybePromise, NonUndefined } from "@stryke/types/base";
11
- import { ExternalIdResult, HookFilter, TransformResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage, UnpluginOptions } from "unplugin";
12
- import { PreviewOptions, ResolvedPreviewOptions } from "vite";
13
- import { EnvPaths } from "@stryke/env/get-env-paths";
14
- import { FetchRequestOptions } from "@stryke/http/fetch";
15
- import { PackageJson } from "@stryke/types/package-json";
16
- import { Jiti } from "jiti";
17
- import { SourceMap } from "magic-string";
18
- import { ParseResult, ParserOptions } from "oxc-parser";
19
- import { Range } from "semver";
20
- import { Project } from "ts-morph";
21
- import { RequestInfo, Response } from "undici";
22
- import { Format } from "@storm-software/build-tools/types";
23
- import { StormWorkspaceConfig } from "@storm-software/config/types";
24
- import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
25
- import { AssetGlob } from "@stryke/types/file";
26
- import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
27
- import ts from "typescript";
28
-
29
- //#region ../powerlines/src/types/build.d.ts
30
- type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
31
- interface BuildConfig {
32
- /**
33
- * The platform to build the project for
34
- *
35
- * @defaultValue "neutral"
36
- */
37
- platform?: "node" | "browser" | "neutral";
38
- /**
39
- * Array of strings indicating the polyfills to include for the build.
40
- *
41
- * @remarks
42
- * This option allows you to specify which polyfills should be included in the build process to ensure compatibility with the target environment. The paths for the polyfills can use placeholder tokens (the `replacePathTokens` helper function will be used to resolve the actual values).
43
- *
44
- * @example
45
- * ```ts
46
- * {
47
- * polyfill: ['{projectRoot}/custom-polyfill.ts']
48
- * }
49
- * ```
50
- */
51
- polyfill?: string[];
52
- /**
53
- * Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
54
- *
55
- * @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
56
- */
57
- mainFields?: string[];
58
- /**
59
- * Array of strings indicating what conditions should be used for module resolution.
60
- */
61
- conditions?: string[];
62
- /**
63
- * Array of strings indicating what file extensions should be used for module resolution.
64
- *
65
- * @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
66
- */
67
- extensions?: string[];
68
- /**
69
- * Array of strings indicating what modules should be deduplicated to a single version in the build.
70
- *
71
- * @remarks
72
- * This option is useful for ensuring that only one version of a module is included in the bundle, which can help reduce bundle size and avoid conflicts.
73
- */
74
- dedupe?: string[];
75
- /**
76
- * Array of strings or regular expressions that indicate what modules are builtin for the environment.
77
- */
78
- builtins?: (string | RegExp)[];
79
- /**
80
- * Define global variable replacements.
81
- *
82
- * @remarks
83
- * This option allows you to specify global constants that will be replaced in the code during the build process. It is similar to the `define` option in esbuild and Vite, enabling you to replace specific identifiers with constant expressions at build time.
84
- *
85
- * @example
86
- * ```ts
87
- * {
88
- * define: {
89
- * __VERSION__: '"1.0.0"',
90
- * __DEV__: 'process.env.NODE_ENV !== "production"'
91
- * }
92
- * }
93
- * ```
94
- *
95
- * @see https://esbuild.github.io/api/#define
96
- * @see https://vitejs.dev/config/build-options.html#define
97
- * @see https://github.com/rollup/plugins/tree/master/packages/replace
98
- */
99
- define?: Record<string, any>;
100
- /**
101
- * Global variables that will have import statements injected where necessary
102
- *
103
- * @remarks
104
- * This option allows you to specify global variables that should be automatically imported from specified modules whenever they are used in the code. This is particularly useful for polyfilling Node.js globals in a browser environment.
105
- *
106
- * @example
107
- * ```ts
108
- * {
109
- * inject: {
110
- * process: 'process/browser',
111
- * Buffer: ['buffer', 'Buffer'],
112
- * }
113
- * }
114
- * ```
115
- *
116
- * @see https://github.com/rollup/plugins/tree/master/packages/inject
117
- */
118
- inject?: Record<string, string | string[]>;
119
- /**
120
- * The alias mappings to use for module resolution during the build process.
121
- *
122
- * @remarks
123
- * This option allows you to define custom path aliases for modules, which can be useful for simplifying imports and managing dependencies.
124
- *
125
- * @example
126
- * ```ts
127
- * {
128
- * alias: {
129
- * "@utils": "./src/utils",
130
- * "@components": "./src/components"
131
- * }
132
- * }
133
- * ```
134
- *
135
- * @see https://github.com/rollup/plugins/tree/master/packages/alias
136
- */
137
- alias?: Record<string, string> | Array<{
138
- find: string | RegExp;
139
- replacement: string;
140
- }>;
141
- /**
142
- * A list of modules that should not be bundled, even if they are external dependencies.
143
- *
144
- * @remarks
145
- * This option is useful for excluding specific modules from the bundle, such as Node.js built-in modules or other libraries that should not be bundled.
146
- */
147
- external?: (string | RegExp)[];
148
- /**
149
- * A list of modules that should always be bundled, even if they are external dependencies.
150
- */
151
- noExternal?: (string | RegExp)[];
152
- /**
153
- * Should the Powerlines CLI processes skip bundling the `node_modules` directory?
154
- */
155
- skipNodeModulesBundle?: boolean;
156
- /**
157
- * An optional set of override options to apply to the selected build variant.
158
- *
159
- * @remarks
160
- * This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
161
- */
162
- override?: Record<string, any>;
163
- }
164
- type BuildResolvedConfig = Omit<BuildConfig, "override">;
165
- //#endregion
166
- //#region ../powerlines/src/types/babel.d.ts
167
- type BabelPluginPass<TState = unknown> = PluginPass & TState;
168
- type BabelTransformPluginFilter = (code: string, id: string) => boolean;
169
- type BabelTransformPlugin<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = ((context: TContext) => (options: {
170
- name: string;
171
- log: LogFn;
172
- api: BabelAPI;
173
- options: TOptions;
174
- context: TContext;
175
- dirname: string;
176
- }) => PluginObj<TOptions & BabelPluginPass<TState>>) & {
177
- $$name: string;
178
- };
179
- type BabelTransformPluginOptions<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = PluginItem | BabelTransformPlugin<TContext, TOptions, TState> | [BabelTransformPlugin<TContext, TOptions, TState>, TOptions] | [BabelTransformPlugin<TContext, TOptions, TState>, TOptions, BabelTransformPluginFilter];
180
- //#endregion
181
- //#region ../powerlines/src/types/fs.d.ts
182
- declare enum StoragePreset {
183
- VIRTUAL = "virtual",
184
- FS = "fs",
185
- }
186
- /**
187
- * Interface defining the methods and properties for a storage adapter.
188
- */
189
- interface StorageAdapter {
190
- /**
191
- * A name identifying the storage adapter type.
192
- */
193
- name: string;
194
- /**
195
- * Checks if a key exists in the storage.
196
- *
197
- * @param key - The key to check for existence.
198
- * @returns A promise that resolves to `true` if the key exists, otherwise `false`.
199
- */
200
- exists: (key: string) => Promise<boolean>;
201
- /**
202
- * Synchronously checks if a key exists in the storage.
203
- *
204
- * @param key - The key to check for existence.
205
- * @returns Returns `true` if the key exists, otherwise `false`.
206
- */
207
- existsSync: (key: string) => boolean;
208
- /**
209
- * Read a value associated with a key from the storage.
210
- *
211
- * @param key - The key to read the value for.
212
- * @returns A promise that resolves to the value if found, otherwise `null`.
213
- */
214
- get: (key: string) => Promise<string | null>;
215
- /**
216
- * Synchronously reads the value associated with a key from the storage.
217
- *
218
- * @param key - The key to read the value for.
219
- * @returns The value if found, otherwise `null`.
220
- */
221
- getSync: (key: string) => string | null;
222
- /**
223
- * Writes a value to the storage for the given key.
224
- *
225
- * @param key - The key to associate the value with.
226
- * @param value - The value to store.
227
- */
228
- set: (key: string, value: string) => Promise<void>;
229
- /**
230
- * Synchronously writes a value to the storage for the given key.
231
- *
232
- * @param key - The key to associate the value with.
233
- * @param value - The value to store.
234
- */
235
- setSync: (key: string, value: string) => void;
236
- /**
237
- * Removes a value from the storage.
238
- *
239
- * @param key - The key whose value should be removed.
240
- */
241
- remove: (key: string) => Promise<void>;
242
- /**
243
- * Synchronously removes a value from the storage.
244
- *
245
- * @param key - The key whose value should be removed.
246
- */
247
- removeSync: (key: string) => void;
248
- /**
249
- * Creates a directory at the specified path.
250
- *
251
- * @param dirPath - The path of the directory to create.
252
- */
253
- mkdir: (dirPath: string) => Promise<void>;
254
- /**
255
- * Synchronously creates a directory at the specified path.
256
- *
257
- * @param dirPath - The path of the directory to create.
258
- */
259
- mkdirSync: (dirPath: string) => void;
260
- /**
261
- * Remove all entries from the storage that match the provided base path.
262
- *
263
- * @param base - The base path or prefix to clear entries from.
264
- */
265
- clear: (base?: string) => Promise<void>;
266
- /**
267
- * Synchronously remove all entries from the storage that match the provided base path.
268
- *
269
- * @param base - The base path or prefix to clear entries from.
270
- */
271
- clearSync: (base?: string) => void;
272
- /**
273
- * Lists all keys under the provided base path.
274
- *
275
- * @param base - The base path or prefix to list keys from.
276
- * @returns A promise resolving to the list of keys.
277
- */
278
- list: (base?: string) => Promise<string[]>;
279
- /**
280
- * Synchronously lists all keys under the provided base path.
281
- *
282
- * @param base - The base path or prefix to list keys from.
283
- * @returns The list of keys.
284
- */
285
- listSync: (base?: string) => string[];
286
- /**
287
- * Checks if the given key is a directory.
288
- *
289
- * @param key - The key to check.
290
- * @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
291
- */
292
- isDirectory: (key: string) => Promise<boolean>;
293
- /**
294
- * Synchronously checks if the given key is a directory.
295
- *
296
- * @param key - The key to check.
297
- * @returns `true` if the key is a directory, otherwise `false`.
298
- */
299
- isDirectorySync: (key: string) => boolean;
300
- /**
301
- * Checks if the given key is a file.
302
- *
303
- * @param key - The key to check.
304
- * @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
305
- */
306
- isFile: (key: string) => Promise<boolean>;
307
- /**
308
- * Synchronously checks if the given key is a file.
309
- *
310
- * @param key - The key to check.
311
- * @returns `true` if the key is a file, otherwise `false`.
312
- */
313
- isFileSync: (key: string) => boolean;
314
- /**
315
- * Releases any resources held by the storage adapter.
316
- */
317
- dispose: () => MaybePromise<void>;
318
- }
319
- /**
320
- * A mapping of file paths to storage adapter names and their corresponding {@link StorageAdapter} instances.
321
- */
322
- type StoragePort = Record<string, StorageAdapter>;
323
- interface VirtualFileMetadata {
324
- /**
325
- * The identifier for the file data.
326
- */
327
- id: string;
328
- /**
329
- * The timestamp of the virtual file.
330
- */
331
- timestamp: number;
332
- /**
333
- * The type of the file.
334
- *
335
- * @remarks
336
- * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
337
- * - `builtin`: Indicates that the file is a built-in module provided by the system.
338
- * - `entry`: Indicates that the file is an entry point for execution.
339
- * - `normal`: Indicates that the file is a standard file without any special role.
340
- */
341
- type: string;
342
- /**
343
- * Additional metadata associated with the file.
344
- */
345
- properties: Record<string, string>;
346
- }
347
- interface VirtualFileData {
348
- /**
349
- * The identifier for the file data.
350
- */
351
- id?: string;
352
- /**
353
- * The contents of the virtual file.
354
- */
355
- code: string;
356
- /**
357
- * The type of the file.
358
- *
359
- * @remarks
360
- * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
361
- * - `builtin`: Indicates that the file is a built-in module provided by the system.
362
- * - `entry`: Indicates that the file is an entry point for execution.
363
- * - `normal`: Indicates that the file is a standard file without any special role.
364
- */
365
- type?: string;
366
- /**
367
- * Additional metadata associated with the file.
368
- */
369
- properties?: Record<string, string>;
370
- }
371
- interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
372
- /**
373
- * An additional name for the file.
374
- */
375
- path: string;
376
- /**
377
- * The timestamp of the virtual file.
378
- */
379
- timestamp: number;
380
- }
381
- interface WriteOptions {
382
- /**
383
- * Should the file skip formatting before being written?
384
- *
385
- * @defaultValue false
386
- */
387
- skipFormat?: boolean;
388
- /**
389
- * Additional metadata for the file.
390
- */
391
- meta?: VirtualFileMetadata;
392
- }
393
- interface ResolveOptions$1 extends ResolveOptions {
394
- /**
395
- * If true, the module is being resolved as an entry point.
396
- */
397
- isEntry?: boolean;
398
- /**
399
- * If true, the resolver will skip using the cache when resolving modules.
400
- */
401
- skipCache?: boolean;
402
- /**
403
- * An array of external modules or patterns to exclude from resolution.
404
- */
405
- external?: (string | RegExp)[];
406
- /**
407
- * An array of modules or patterns to include in the resolution, even if they are marked as external.
408
- */
409
- noExternal?: (string | RegExp)[];
410
- /**
411
- * An array of patterns to match when resolving modules.
412
- */
413
- skipNodeModulesBundle?: boolean;
414
- }
415
- interface VirtualFileSystemInterface {
416
- /**
417
- * The underlying file metadata.
418
- */
419
- metadata: Readonly<Record<string, VirtualFileMetadata>>;
420
- /**
421
- * A map of file paths to their module ids.
422
- */
423
- ids: Readonly<Record<string, string>>;
424
- /**
425
- * A map of module ids to their file paths.
426
- */
427
- paths: Readonly<Record<string, string>>;
428
- /**
429
- * Checks if a file exists in the virtual file system (VFS).
430
- *
431
- * @param path - The path or id of the file.
432
- * @returns `true` if the file exists, otherwise `false`.
433
- */
434
- exists: (path: string) => Promise<boolean>;
435
- /**
436
- * Synchronously Checks if a file exists in the virtual file system (VFS).
437
- *
438
- * @param path - The path or id of the file.
439
- * @returns `true` if the file exists, otherwise `false`.
440
- */
441
- existsSync: (path: string) => boolean;
442
- /**
443
- * Checks if a file is virtual in the virtual file system (VFS).
444
- *
445
- * @param path - The path or id of the file.
446
- * @returns `true` if the file is virtual, otherwise `false`.
447
- */
448
- isVirtual: (path: string) => boolean;
449
- /**
450
- * Checks if the given key is a directory.
451
- *
452
- * @param key - The key to check.
453
- * @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
454
- */
455
- isDirectory: (key: string) => Promise<boolean>;
456
- /**
457
- * Synchronously checks if the given key is a directory.
458
- *
459
- * @param key - The key to check.
460
- * @returns `true` if the key is a directory, otherwise `false`.
461
- */
462
- isDirectorySync: (key: string) => boolean;
463
- /**
464
- * Checks if the given key is a file.
465
- *
466
- * @param key - The key to check.
467
- * @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
468
- */
469
- isFile: (key: string) => Promise<boolean>;
470
- /**
471
- * Synchronously checks if the given key is a file.
472
- *
473
- * @param key - The key to check.
474
- * @returns `true` if the key is a file, otherwise `false`.
475
- */
476
- isFileSync: (key: string) => boolean;
477
- /**
478
- * Gets the metadata of a file in the virtual file system (VFS).
479
- *
480
- * @param path - The path or id of the file.
481
- * @returns The metadata of the file if it exists, otherwise undefined.
482
- */
483
- getMetadata: (path: string) => VirtualFileMetadata | undefined;
484
- /**
485
- * Lists files in a given path.
486
- *
487
- * @param path - The path to list files from.
488
- * @returns An array of file names in the specified path.
489
- */
490
- listSync: (path: string) => string[];
491
- /**
492
- * Lists files in a given path.
493
- *
494
- * @param path - The path to list files from.
495
- * @returns An array of file names in the specified path.
496
- */
497
- list: (path: string) => Promise<string[]>;
498
- /**
499
- * Removes a file or symbolic link in the virtual file system (VFS).
500
- *
501
- * @param path - The path to the file to remove.
502
- * @returns A promise that resolves when the file is removed.
503
- */
504
- removeSync: (path: string) => void;
505
- /**
506
- * Asynchronously removes a file or symbolic link in the virtual file system (VFS).
507
- *
508
- * @param path - The path to the file to remove.
509
- * @returns A promise that resolves when the file is removed.
510
- */
511
- remove: (path: string) => Promise<void>;
512
- /**
513
- * Reads a file from the virtual file system (VFS).
514
- *
515
- * @param path - The path or id of the file.
516
- * @returns The contents of the file if it exists, otherwise undefined.
517
- */
518
- read: (path: string) => Promise<string | undefined>;
519
- /**
520
- * Reads a file from the virtual file system (VFS).
521
- *
522
- * @param path - The path or id of the file.
523
- */
524
- readSync: (path: string) => string | undefined;
525
- /**
526
- * Writes a file to the virtual file system (VFS).
527
- *
528
- * @param path - The path to the file.
529
- * @param data - The contents of the file.
530
- * @param options - Options for writing the file.
531
- * @returns A promise that resolves when the file is written.
532
- */
533
- write: (path: string, data: string, options?: WriteOptions) => Promise<void>;
534
- /**
535
- * Writes a file to the virtual file system (VFS).
536
- *
537
- * @param path - The path to the file.
538
- * @param data - The contents of the file.
539
- * @param options - Options for writing the file.
540
- */
541
- writeSync: (path: string, data: string, options?: WriteOptions) => void;
542
- /**
543
- * Creates a directory at the specified path.
544
- *
545
- * @param dirPath - The path of the directory to create.
546
- */
547
- mkdir: (dirPath: string) => Promise<void>;
548
- /**
549
- * Synchronously creates a directory at the specified path.
550
- *
551
- * @param dirPath - The path of the directory to create.
552
- */
553
- mkdirSync: (dirPath: string) => void;
554
- /**
555
- * Moves a file from one path to another in the virtual file system (VFS).
556
- *
557
- * @param srcPath - The source path to move
558
- * @param destPath - The destination path to move to
559
- */
560
- move: (srcPath: string, destPath: string) => Promise<void>;
561
- /**
562
- * Synchronously moves a file from one path to another in the virtual file system (VFS).
563
- *
564
- * @param srcPath - The source path to move
565
- * @param destPath - The destination path to move to
566
- */
567
- moveSync: (srcPath: string, destPath: string) => void;
568
- /**
569
- * Copies a file from one path to another in the virtual file system (VFS).
570
- *
571
- * @param srcPath - The source path to copy
572
- * @param destPath - The destination path to copy to
573
- */
574
- copy: (srcPath: string | URL | Omit<AssetGlob, "output">, destPath: string | URL) => Promise<void>;
575
- /**
576
- * Synchronously copies a file from one path to another in the virtual file system (VFS).
577
- *
578
- * @param srcPath - The source path to copy
579
- * @param destPath - The destination path to copy to
580
- */
581
- copySync: (srcPath: string | URL | Omit<AssetGlob, "output">, destPath: string | URL) => void;
582
- /**
583
- * Glob files in the virtual file system (VFS) based on the provided pattern(s).
584
- *
585
- * @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
586
- * @returns An array of file paths matching the provided pattern(s)
587
- */
588
- glob: (patterns: string | Omit<AssetGlob, "output"> | (string | Omit<AssetGlob, "output">)[]) => Promise<string[]>;
589
- /**
590
- * Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
591
- *
592
- * @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
593
- * @returns An array of file paths matching the provided pattern(s)
594
- */
595
- globSync: (patterns: string | Omit<AssetGlob, "output"> | (string | Omit<AssetGlob, "output">)[]) => string[];
596
- /**
597
- * A helper function to resolve modules using the Jiti resolver
598
- *
599
- * @remarks
600
- * This function can be used to resolve modules relative to the project root directory.
601
- *
602
- * @example
603
- * ```ts
604
- * const resolvedPath = await context.resolve("some-module", "/path/to/importer");
605
- * ```
606
- *
607
- * @param id - The module to resolve.
608
- * @param importer - An optional path to the importer module.
609
- * @param options - Additional resolution options.
610
- * @returns A promise that resolves to the resolved module path.
611
- */
612
- resolve: (id: string, importer?: string, options?: ResolveOptions$1) => Promise<string | undefined>;
613
- /**
614
- * A synchronous helper function to resolve modules using the Jiti resolver
615
- *
616
- * @remarks
617
- * This function can be used to resolve modules relative to the project root directory.
618
- *
619
- * @example
620
- * ```ts
621
- * const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
622
- * ```
623
- *
624
- * @param id - The module to resolve.
625
- * @param importer - An optional path to the importer module.
626
- * @param options - Additional resolution options.
627
- * @returns The resolved module path.
628
- */
629
- resolveSync: (id: string, importer?: string, options?: ResolveOptions$1) => string | undefined;
630
- /**
631
- * Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
632
- */
633
- dispose: () => Promise<void>;
634
- }
635
- //#endregion
636
- //#region ../powerlines/src/types/tsconfig.d.ts
637
- type ReflectionMode = "default" | "explicit" | "never";
638
- type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
639
- /**
640
- * Defines the level of reflection to be used during the transpilation process.
641
- *
642
- * @remarks
643
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
644
- * - `minimal` - Only the essential type information is captured.
645
- * - `normal` - Additional type information is captured, including some contextual data.
646
- * - `verbose` - All available type information is captured, including detailed contextual data.
647
- */
648
- type ReflectionLevel = "minimal" | "normal" | "verbose";
649
- interface DeepkitOptions {
650
- /**
651
- * Either true to activate reflection for all files compiled using this tsconfig,
652
- * or a list of globs/file paths relative to this tsconfig.json.
653
- * Globs/file paths can be prefixed with a ! to exclude them.
654
- */
655
- reflection?: RawReflectionMode;
656
- /**
657
- * Defines the level of reflection to be used during the transpilation process.
658
- *
659
- * @remarks
660
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
661
- * - `minimal` - Only the essential type information is captured.
662
- * - `normal` - Additional type information is captured, including some contextual data.
663
- * - `verbose` - All available type information is captured, including detailed contextual data.
664
- */
665
- reflectionLevel?: ReflectionLevel;
666
- }
667
- type TSCompilerOptions = CompilerOptions & DeepkitOptions;
668
- /**
669
- * The TypeScript compiler configuration.
670
- *
671
- * @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
672
- */
673
- interface TSConfig extends Omit<TsConfigJson, "reflection"> {
674
- /**
675
- * Either true to activate reflection for all files compiled using this tsconfig,
676
- * or a list of globs/file paths relative to this tsconfig.json.
677
- * Globs/file paths can be prefixed with a ! to exclude them.
678
- */
679
- reflection?: RawReflectionMode;
680
- /**
681
- * Defines the level of reflection to be used during the transpilation process.
682
- *
683
- * @remarks
684
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
685
- * - `minimal` - Only the essential type information is captured.
686
- * - `normal` - Additional type information is captured, including some contextual data.
687
- * - `verbose` - All available type information is captured, including detailed contextual data.
688
- */
689
- reflectionLevel?: ReflectionLevel;
690
- /**
691
- * Instructs the TypeScript compiler how to compile `.ts` files.
692
- */
693
- compilerOptions?: TSCompilerOptions;
694
- }
695
- type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
696
- originalTsconfigJson: TsConfigJson;
697
- tsconfigJson: TSConfig;
698
- tsconfigFilePath: string;
699
- };
700
- //#endregion
701
- //#region ../powerlines/src/types/config.d.ts
702
- type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
703
- /**
704
- * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
705
- */
706
- type WorkspaceConfig = Partial<StormWorkspaceConfig> & Required<Pick<StormWorkspaceConfig, "workspaceRoot">>;
707
- type PluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<Plugin<TContext>>;
708
- /**
709
- * A configuration tuple for a Powerlines plugin.
710
- */
711
- type PluginConfigTuple<TContext extends PluginContext = PluginContext, TOptions = any> = [string | PluginFactory<TContext, TOptions>, TOptions] | [Plugin<TContext>];
712
- /**
713
- * A configuration object for a Powerlines plugin.
714
- */
715
- type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions = any> = {
716
- plugin: string | PluginFactory<TContext, TOptions>;
717
- options: TOptions;
718
- } | {
719
- plugin: Plugin<TContext>;
720
- options?: never;
721
- };
722
- /**
723
- * A configuration tuple for a Powerlines plugin.
724
- */
725
- type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
726
- type ProjectType = "application" | "library";
727
- type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
728
- /**
729
- * The Babel plugins to be used during the build process
730
- */
731
- plugins?: BabelTransformPluginOptions[];
732
- /**
733
- * The Babel presets to be used during the build process
734
- */
735
- presets?: BabelTransformPluginOptions[];
736
- };
737
- interface DeployConfig {
738
- /**
739
- * The deployment variant being used by the Powerlines engine.
740
- *
741
- * @example
742
- * ```ts
743
- * export default defineConfig({
744
- * deploy: {
745
- * variant: "cloudflare"
746
- * }
747
- * });
748
- *
749
- * ```
750
- */
751
- variant?: string;
752
- }
753
- interface OutputConfig {
754
- /**
755
- * The path to output the final compiled files to
756
- *
757
- * @remarks
758
- * If a value is not provided, Powerlines will attempt to:
759
- * 1. Use the `outDir` value in the `tsconfig.json` file.
760
- * 2. Use the `dist` directory in the project root directory.
761
- *
762
- * @defaultValue "dist/\{projectRoot\}"
763
- */
764
- outputPath?: string;
765
- /**
766
- * The output directory path for the project build.
767
- *
768
- * @remarks
769
- * This path is used to determine where the built files will be placed after the build process completes. This will be used in scenarios where the monorepo uses TSConfig paths to link packages together.
770
- *
771
- * @defaultValue "\{projectRoot\}/dist"
772
- */
773
- buildPath?: string;
774
- /**
775
- * The folder where the generated runtime artifacts will be located
776
- *
777
- * @remarks
778
- * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
779
- *
780
- * @defaultValue "\{projectRoot\}/.powerlines"
781
- */
782
- artifactsPath?: string;
783
- /**
784
- * The path of the generated runtime declaration file relative to the workspace root.
785
- *
786
- * @defaultValue "\{projectRoot\}/powerlines.d.ts"
787
- */
788
- dts?: string | false;
789
- /**
790
- * A prefix to use for identifying builtin modules
791
- *
792
- * @remarks
793
- * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
794
- *
795
- * @defaultValue "powerlines"
796
- */
797
- builtinPrefix?: string;
798
- /**
799
- * The module format of the output files
800
- *
801
- * @remarks
802
- * This option can be a single format or an array of formats. If an array is provided, multiple builds will be generated for each format.
803
- *
804
- * @defaultValue "esm"
805
- */
806
- format?: Format | Format[];
807
- /**
808
- * A list of assets to copy to the output directory
809
- *
810
- * @remarks
811
- * The assets can be specified as a string (path to the asset) or as an object with a `glob` property (to match multiple files). The paths are relative to the project root directory.
812
- */
813
- assets?: Array<string | AssetGlob>;
814
- /**
815
- * A string preset or a custom {@link StoragePort} to provide fine-grained control over generated/output file storage.
816
- *
817
- * @remarks
818
- * If a string preset is provided, it must be one of the following values:
819
- * - `"virtual"`: Uses the local file system for storage.
820
- * - `"fs"`: Uses an in-memory virtual file system for storage.
821
- *
822
- * If a custom {@link StoragePort} is provided, it will be used for all file storage operations during the build process.
823
- *
824
- * @defaultValue "virtual"
825
- */
826
- storage?: StoragePort | StoragePreset;
827
- }
828
- interface BaseConfig {
829
- /**
830
- * The entry point(s) for the application
831
- */
832
- entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
833
- /**
834
- * Configuration for the output of the build process
835
- */
836
- output?: OutputConfig;
837
- /**
838
- * Configuration for cleaning the build artifacts
839
- *
840
- * @remarks
841
- * If set to `false`, the cleaning process will be disabled.
842
- */
843
- clean?: Record<string, any> | false;
844
- /**
845
- * Configuration for linting the source code
846
- *
847
- * @remarks
848
- * If set to `false`, linting will be disabled.
849
- */
850
- lint?: Record<string, any> | false;
851
- /**
852
- * Configuration for testing the source code
853
- *
854
- * @remarks
855
- * If set to `false`, testing will be disabled.
856
- */
857
- test?: Record<string, any> | false;
858
- /**
859
- * Configuration for the transformation of the source code
860
- */
861
- transform?: Record<string, any>;
862
- /**
863
- * Configuration provided to build processes
864
- *
865
- * @remarks
866
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
867
- */
868
- build?: BuildConfig;
869
- /**
870
- * Configuration for documentation generation
871
- *
872
- * @remarks
873
- * This configuration will be used by the documentation generation plugins during the `docs` command.
874
- */
875
- docs?: Record<string, any>;
876
- /**
877
- * Configuration for deploying the source code
878
- *
879
- * @remarks
880
- * If set to `false`, the deployment will be disabled.
881
- */
882
- deploy?: DeployConfig | false;
883
- /**
884
- * The path to the tsconfig file to be used by the compiler
885
- *
886
- * @remarks
887
- * If a value is not provided, the plugin will attempt to find the `tsconfig.json` file in the project root directory. The parsed tsconfig compiler options will be merged with the {@link Options.tsconfigRaw} value (if provided).
888
- *
889
- * @defaultValue "\{projectRoot\}/tsconfig.json"
890
- */
891
- tsconfig?: string;
892
- /**
893
- * The raw {@link TSConfig} object to be used by the compiler. This object will be merged with the `tsconfig.json` file.
894
- *
895
- * @see https://www.typescriptlang.org/tsconfig
896
- *
897
- * @remarks
898
- * If populated, this option takes higher priority than `tsconfig`
899
- */
900
- tsconfigRaw?: TSConfig;
901
- }
902
- interface EnvironmentConfig extends BaseConfig {
903
- /**
904
- * Configuration options for the preview server
905
- */
906
- preview?: PreviewOptions;
907
- /**
908
- * A flag indicating whether the build is for a Server-Side Rendering environment.
909
- */
910
- ssr?: boolean;
911
- /**
912
- * Define if this environment is used for Server-Side Rendering
913
- *
914
- * @defaultValue "server" (if it isn't the client environment)
915
- */
916
- consumer?: "client" | "server";
917
- }
918
- interface CommonUserConfig extends BaseConfig {
919
- /**
920
- * The name of the project
921
- */
922
- name?: string;
923
- /**
924
- * The project display title
925
- *
926
- * @remarks
927
- * This option is used in documentation generation and other places where a human-readable title is needed.
928
- */
929
- title?: string;
930
- /**
931
- * A description of the project
932
- *
933
- * @remarks
934
- * If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
935
- */
936
- description?: string;
937
- /**
938
- * The log level to use for the Powerlines processes.
939
- *
940
- * @defaultValue "info"
941
- */
942
- logLevel?: LogLevelLabel | null;
943
- /**
944
- * A custom logger function to use for logging messages
945
- */
946
- customLogger?: LogFn;
947
- /**
948
- * Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
949
- *
950
- * @defaultValue "production"
951
- */
952
- mode?: "development" | "test" | "production";
953
- /**
954
- * The type of project being built
955
- *
956
- * @defaultValue "application"
957
- */
958
- type?: ProjectType;
959
- /**
960
- * The root directory of the project
961
- */
962
- root: string;
963
- /**
964
- * The root directory of the project's source code
965
- *
966
- * @defaultValue "\{root\}/src"
967
- */
968
- sourceRoot?: string;
969
- /**
970
- * A path to a custom configuration file to be used instead of the default `storm.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
971
- *
972
- * @remarks
973
- * This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
974
- */
975
- configFile?: string;
976
- /**
977
- * Should the Powerlines CLI processes skip installing missing packages?
978
- *
979
- * @remarks
980
- * This option is useful for CI/CD environments where the installation of packages is handled by a different process.
981
- *
982
- * @defaultValue false
983
- */
984
- skipInstalls?: boolean;
985
- /**
986
- * Should the compiler processes skip any improvements that make use of cache?
987
- *
988
- * @defaultValue false
989
- */
990
- skipCache?: boolean;
991
- /**
992
- * A list of resolvable paths to plugins used during the build process
993
- */
994
- plugins?: PluginConfig<PluginContext<any>>[];
995
- /**
996
- * Environment-specific configurations
997
- */
998
- environments?: Record<string, EnvironmentConfig>;
999
- /**
1000
- * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
1001
- *
1002
- * @remarks
1003
- * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
1004
- *
1005
- * @defaultValue "powerlines"
1006
- */
1007
- framework?: string;
1008
- }
1009
- interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant$1 extends string = any> extends Omit<CommonUserConfig, "build"> {
1010
- /**
1011
- * Configuration provided to build processes
1012
- *
1013
- * @remarks
1014
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
1015
- */
1016
- build: Omit<TBuildConfig, "override"> & {
1017
- /**
1018
- * The build variant being used by the Powerlines engine.
1019
- */
1020
- variant?: TBuildVariant$1;
1021
- /**
1022
- * An optional set of override options to apply to the selected build variant.
1023
- *
1024
- * @remarks
1025
- * This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
1026
- */
1027
- override?: Partial<TBuildResolvedConfig>;
1028
- };
1029
- }
1030
- type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
1031
- /**
1032
- * The configuration provided while executing Powerlines commands.
1033
- */
1034
- type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
1035
- /**
1036
- * A string identifier for the Powerlines command being executed
1037
- */
1038
- command: PowerlinesCommand;
1039
- };
1040
- //#endregion
1041
- //#region ../powerlines/src/types/resolved.d.ts
1042
- interface ResolvedEntryTypeDefinition extends TypeDefinition {
1043
- /**
1044
- * The user provided entry point in the source code
1045
- */
1046
- input: TypeDefinition;
1047
- /**
1048
- * An optional name to use in the package export during the build process
1049
- */
1050
- output?: string;
1051
- }
1052
- type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
1053
- type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
1054
- /**
1055
- * The name of the environment
1056
- */
1057
- name: string;
1058
- /**
1059
- * Configuration options for the preview server
1060
- */
1061
- preview?: ResolvedPreviewOptions;
1062
- };
1063
- type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
1064
- type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
1065
- assets: ResolvedAssetGlob[];
1066
- }> & Pick<OutputConfig, "storage">;
1067
- /**
1068
- * The resolved options for the Powerlines project configuration.
1069
- */
1070
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
1071
- /**
1072
- * The configuration options that were provided inline to the Powerlines CLI.
1073
- */
1074
- inlineConfig: InlineConfig<TUserConfig>;
1075
- /**
1076
- * The original configuration options that were provided by the user to the Powerlines process.
1077
- */
1078
- userConfig: TUserConfig;
1079
- /**
1080
- * A string identifier for the Powerlines command being executed.
1081
- */
1082
- command: NonUndefined<InlineConfig<TUserConfig>["command"]>;
1083
- /**
1084
- * The root directory of the project's source code
1085
- *
1086
- * @defaultValue "\{projectRoot\}/src"
1087
- */
1088
- sourceRoot: NonUndefined<TUserConfig["sourceRoot"]>;
1089
- /**
1090
- * The root directory of the project.
1091
- */
1092
- projectRoot: NonUndefined<TUserConfig["root"]>;
1093
- /**
1094
- * The type of project being built.
1095
- */
1096
- projectType: NonUndefined<TUserConfig["type"]>;
1097
- /**
1098
- * The output configuration options to use for the build process
1099
- */
1100
- output: OutputResolvedConfig;
1101
- /**
1102
- * Configuration provided to build processes
1103
- *
1104
- * @remarks
1105
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
1106
- */
1107
- build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
1108
- /**
1109
- * The log level to use for the Powerlines processes.
1110
- *
1111
- * @defaultValue "info"
1112
- */
1113
- logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
1114
- };
1115
- //#endregion
1116
- //#region ../powerlines/src/types/context.d.ts
1117
- /**
1118
- * The severity level of a {@link LogRecord}.
1119
- */
1120
- type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
1121
- declare const LogLevel: {
1122
- DEBUG: LogLevel;
1123
- INFO: LogLevel;
1124
- WARNING: LogLevel;
1125
- ERROR: LogLevel;
1126
- FATAL: LogLevel;
1127
- };
1128
- interface MetaInfo {
1129
- /**
1130
- * The checksum generated from the resolved options
1131
- */
1132
- checksum: string;
1133
- /**
1134
- * The build id
1135
- */
1136
- buildId: string;
1137
- /**
1138
- * The release id
1139
- */
1140
- releaseId: string;
1141
- /**
1142
- * The build timestamp
1143
- */
1144
- timestamp: number;
1145
- /**
1146
- * A hash that represents the path to the project root directory
1147
- */
1148
- projectRootHash: string;
1149
- /**
1150
- * A hash that represents the path to the project root directory
1151
- */
1152
- configHash: string;
1153
- }
1154
- interface Resolver extends Jiti {
1155
- plugin: Jiti;
1156
- }
1157
- interface TransformResult$1 {
1158
- code: string;
1159
- map: SourceMap | null;
1160
- }
1161
- interface InitContextOptions {
1162
- /**
1163
- * If false, the plugin will be loaded after all other plugins.
1164
- *
1165
- * @defaultValue true
1166
- */
1167
- isHighPriority: boolean;
1168
- }
1169
- interface FetchOptions extends FetchRequestOptions {
1170
- /**
1171
- * An indicator specifying that the request should bypass any caching
1172
- */
1173
- skipCache?: boolean;
1174
- }
1175
- interface ParseOptions extends ParserOptions {
1176
- /**
1177
- * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
1178
- */
1179
- allowReturnOutsideFunction?: boolean;
1180
- }
1181
- /**
1182
- * The unresolved Powerlines context.
1183
- *
1184
- * @remarks
1185
- * This context is used before the user configuration has been fully resolved after the `config`.
1186
- */
1187
- interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
1188
- /**
1189
- * The Storm workspace configuration
1190
- */
1191
- workspaceConfig: WorkspaceConfig;
1192
- /**
1193
- * An object containing the options provided to Powerlines
1194
- */
1195
- config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
1196
- projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
1197
- sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
1198
- output: TResolvedConfig["output"];
1199
- };
1200
- /**
1201
- * A logging function for the Powerlines engine
1202
- */
1203
- log: LogFn;
1204
- /**
1205
- * A logging function for fatal messages
1206
- */
1207
- fatal: (message: string | UnpluginMessage) => void;
1208
- /**
1209
- * A logging function for error messages
1210
- */
1211
- error: (message: string | UnpluginMessage) => void;
1212
- /**
1213
- * A logging function for warning messages
1214
- */
1215
- warn: (message: string | UnpluginMessage) => void;
1216
- /**
1217
- * A logging function for informational messages
1218
- */
1219
- info: (message: string | UnpluginMessage) => void;
1220
- /**
1221
- * A logging function for debug messages
1222
- */
1223
- debug: (message: string | UnpluginMessage) => void;
1224
- /**
1225
- * A logging function for trace messages
1226
- */
1227
- trace: (message: string | UnpluginMessage) => void;
1228
- /**
1229
- * The metadata information
1230
- */
1231
- meta: MetaInfo;
1232
- /**
1233
- * The metadata information currently written to disk
1234
- */
1235
- persistedMeta?: MetaInfo;
1236
- /**
1237
- * The Powerlines artifacts directory
1238
- */
1239
- artifactsPath: string;
1240
- /**
1241
- * The path to the Powerlines builtin runtime modules directory
1242
- */
1243
- builtinsPath: string;
1244
- /**
1245
- * The path to the Powerlines entry modules directory
1246
- */
1247
- entryPath: string;
1248
- /**
1249
- * The path to the Powerlines TypeScript declaration files directory
1250
- */
1251
- dtsPath: string;
1252
- /**
1253
- * The path to a directory where the reflection data buffers (used by the build processes) are stored
1254
- */
1255
- dataPath: string;
1256
- /**
1257
- * The path to a directory where the project cache (used by the build processes) is stored
1258
- */
1259
- cachePath: string;
1260
- /**
1261
- * The Powerlines environment paths
1262
- */
1263
- envPaths: EnvPaths;
1264
- /**
1265
- * The file system path to the Powerlines package installation
1266
- */
1267
- powerlinesPath: string;
1268
- /**
1269
- * The relative path to the Powerlines workspace root directory
1270
- */
1271
- relativeToWorkspaceRoot: string;
1272
- /**
1273
- * The project's `package.json` file content
1274
- */
1275
- packageJson: PackageJson & Record<string, any>;
1276
- /**
1277
- * The project's `project.json` file content
1278
- */
1279
- projectJson?: Record<string, any>;
1280
- /**
1281
- * The dependency installations required by the project
1282
- */
1283
- dependencies: Record<string, string | Range>;
1284
- /**
1285
- * The development dependency installations required by the project
1286
- */
1287
- devDependencies: Record<string, string | Range>;
1288
- /**
1289
- * The parsed TypeScript configuration from the `tsconfig.json` file
1290
- */
1291
- tsconfig: ParsedTypeScriptConfig;
1292
- /**
1293
- * The entry points of the source code
1294
- */
1295
- entry: ResolvedEntryTypeDefinition[];
1296
- /**
1297
- * The virtual file system manager used during the build process to reference generated runtime files
1298
- */
1299
- fs: VirtualFileSystemInterface;
1300
- /**
1301
- * The Jiti module resolver
1302
- */
1303
- resolver: Resolver;
1304
- /**
1305
- * The builtin module id that exist in the Powerlines virtual file system
1306
- */
1307
- builtins: string[];
1308
- /**
1309
- * The {@link Project} instance used for type reflection and module manipulation
1310
- *
1311
- * @see https://ts-morph.com/
1312
- *
1313
- * @remarks
1314
- * This instance is created lazily on first access.
1315
- */
1316
- program: Project;
1317
- /**
1318
- * A function to perform HTTP fetch requests
1319
- *
1320
- * @remarks
1321
- * This function uses a caching layer to avoid duplicate requests during the Powerlines process.
1322
- *
1323
- * @example
1324
- * ```ts
1325
- * const response = await context.fetch("https://api.example.com/data");
1326
- * const data = await response.json();
1327
- * ```
1328
- *
1329
- * @see https://github.com/nodejs/undici
1330
- *
1331
- * @param input - The URL to fetch.
1332
- * @param options - The fetch request options.
1333
- * @returns A promise that resolves to a response returned by the fetch.
1334
- */
1335
- fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
1336
- /**
1337
- * Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
1338
- *
1339
- * @remarks
1340
- * This function can be used to parse TypeScript code into an AST for further analysis or transformation.
1341
- *
1342
- * @example
1343
- * ```ts
1344
- * const ast = context.parse("const x: number = 42;");
1345
- * ```
1346
- *
1347
- * @see https://rollupjs.org/plugin-development/#this-parse
1348
- * @see https://github.com/oxc/oxc
1349
- *
1350
- * @param code - The source code to parse.
1351
- * @param options - The options to pass to the parser.
1352
- * @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
1353
- */
1354
- parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
1355
- /**
1356
- * A helper function to resolve modules using the Jiti resolver
1357
- *
1358
- * @remarks
1359
- * This function can be used to resolve modules relative to the project root directory.
1360
- *
1361
- * @example
1362
- * ```ts
1363
- * const resolvedPath = await context.resolve("some-module", "/path/to/importer");
1364
- * ```
1365
- *
1366
- * @param id - The module to resolve.
1367
- * @param importer - An optional path to the importer module.
1368
- * @param options - Additional resolution options.
1369
- * @returns A promise that resolves to the resolved module path.
1370
- */
1371
- resolve: (id: string, importer?: string, options?: ResolveOptions$1) => Promise<ExternalIdResult | undefined>;
1372
- /**
1373
- * A helper function to load modules using the Jiti resolver
1374
- *
1375
- * @remarks
1376
- * This function can be used to load modules relative to the project root directory.
1377
- *
1378
- * @example
1379
- * ```ts
1380
- * const module = await context.load("some-module", "/path/to/importer");
1381
- * ```
1382
- *
1383
- * @param id - The module to load.
1384
- * @returns A promise that resolves to the loaded module.
1385
- */
1386
- load: (id: string) => Promise<TransformResult$1 | undefined>;
1387
- /**
1388
- * The Powerlines builtin virtual files
1389
- */
1390
- getBuiltins: () => Promise<VirtualFile[]>;
1391
- /**
1392
- * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
1393
- *
1394
- * @param code - The source code of the builtin file
1395
- * @param id - The unique identifier of the builtin file
1396
- * @param path - An optional path to write the builtin file to
1397
- */
1398
- emitBuiltin: (code: string, id: string, path?: string) => Promise<void>;
1399
- /**
1400
- * Resolves a entry virtual file and writes it to the VFS if it does not already exist
1401
- *
1402
- * @param code - The source code of the entry file
1403
- * @param path - An optional path to write the entry file to
1404
- */
1405
- emitEntry: (code: string, path: string) => Promise<void>;
1406
- /**
1407
- * A function to update the context fields using a new user configuration options
1408
- */
1409
- withUserConfig: (userConfig: UserConfig, options?: InitContextOptions) => Promise<void>;
1410
- /**
1411
- * A function to update the context fields using inline configuration options
1412
- */
1413
- withInlineConfig: (inlineConfig: InlineConfig, options?: InitContextOptions) => Promise<void>;
1414
- /**
1415
- * Create a new logger instance
1416
- *
1417
- * @param name - The name to use for the logger instance
1418
- * @returns A logger function
1419
- */
1420
- createLog: (name: string | null) => LogFn;
1421
- /**
1422
- * Extend the current logger instance with a new name
1423
- *
1424
- * @param name - The name to use for the extended logger instance
1425
- * @returns A logger function
1426
- */
1427
- extendLog: (name: string) => LogFn;
1428
- /**
1429
- * Generates a checksum representing the current context state
1430
- *
1431
- * @returns A promise that resolves to a string representing the checksum
1432
- */
1433
- generateChecksum: () => Promise<string>;
1434
- }
1435
- type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
1436
- /**
1437
- * The fully resolved Powerlines configuration
1438
- */
1439
- config: TResolvedConfig;
1440
- };
1441
- interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
1442
- /**
1443
- * The environment specific resolved configuration
1444
- */
1445
- environment: EnvironmentResolvedConfig;
1446
- /**
1447
- * An alternative property name for the {@link log} property
1448
- *
1449
- * @remarks
1450
- * This is provided for compatibility with other logging libraries that expect a `logger` property.
1451
- */
1452
- logger: LogFn;
1453
- }
1454
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1455
- //#endregion
1456
- //#region ../powerlines/src/types/commands.d.ts
1457
- declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
1458
- type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1459
- //#endregion
1460
- //#region ../powerlines/src/types/plugin.d.ts
1461
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1462
- /**
1463
- * The order in which the plugin should be applied.
1464
- */
1465
- order?: "pre" | "post" | null | undefined;
1466
- /**
1467
- * A filter to determine when the hook should be called.
1468
- */
1469
- filter?: Pick<HookFilter, TFilter>;
1470
- /**
1471
- * The hook function to be called.
1472
- */
1473
- handler: THookFunction;
1474
- }
1475
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1476
- /**
1477
- * A result returned by the plugin from the `types` hook that describes the declaration types output file.
1478
- */
1479
- interface TypesResult {
1480
- directives?: string[];
1481
- code: string;
1482
- }
1483
- type DeepPartial<T> = { [K in keyof T]?: DeepPartial<T[K]> };
1484
- type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
1485
- interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
1486
- /**
1487
- * A function that returns configuration options to be merged with the build context's options.
1488
- *
1489
- * @remarks
1490
- * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
1491
- *
1492
- * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
1493
- *
1494
- * @see https://vitejs.dev/guide/api-plugin#config
1495
- *
1496
- * @param this - The build context.
1497
- * @param config - The partial configuration object to be modified.
1498
- * @returns A promise that resolves to a partial configuration object.
1499
- */
1500
- config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
1501
- /**
1502
- * Modify environment configs before it's resolved. The hook can either mutate the passed-in environment config directly, or return a partial config object that will be deeply merged into existing config.
1503
- *
1504
- * @remarks
1505
- * This hook is called for each environment with a partially resolved environment config that already accounts for the default environment config values set at the root level. If plugins need to modify the config of a given environment, they should do it in this hook instead of the config hook. Leaving the config hook only for modifying the root default environment config.
1506
- *
1507
- * @see https://vitejs.dev/guide/api-plugin#configenvironment
1508
- *
1509
- * @param this - The build context.
1510
- * @param name - The name of the environment being configured.
1511
- * @param environment - The Vite-like environment object containing information about the current build environment.
1512
- * @returns A promise that resolves when the hook is complete.
1513
- */
1514
- configEnvironment: (this: TContext, name: string, environment: EnvironmentConfig) => MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>;
1515
- /**
1516
- * A hook that is called when the plugin is resolved.
1517
- *
1518
- * @see https://vitejs.dev/guide/api-plugin#configresolved
1519
- *
1520
- * @param this - The build context.
1521
- * @returns A promise that resolves when the hook is complete.
1522
- */
1523
- configResolved: (this: TContext) => MaybePromise<void>;
1524
- /**
1525
- * A hook that is called to overwrite the generated declaration types file (.d.ts). The generated type definitions should describe the built-in modules/logic added during the `prepare` task.
1526
- *
1527
- * @param this - The build context.
1528
- * @param code - The source code to generate types for.
1529
- * @returns A promise that resolves when the hook is complete.
1530
- */
1531
- types: (this: TContext, code: string) => MaybePromise<TypesResult | string | undefined | null>;
1532
- /**
1533
- * A hook that is called at the start of the build process.
1534
- *
1535
- * @param this - The build context and unplugin build context.
1536
- * @returns A promise that resolves when the hook is complete.
1537
- */
1538
- buildStart: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
1539
- /**
1540
- * A hook that is called at the end of the build process.
1541
- *
1542
- * @param this - The build context and unplugin build context.
1543
- * @returns A promise that resolves when the hook is complete.
1544
- */
1545
- buildEnd: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
1546
- /**
1547
- * A hook that is called to transform the source code.
1548
- *
1549
- * @param this - The build context, unplugin build context, and unplugin context.
1550
- * @param code - The source code to transform.
1551
- * @param id - The identifier of the source code.
1552
- * @returns A promise that resolves when the hook is complete.
1553
- */
1554
- transform: (this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>;
1555
- /**
1556
- * A hook that is called to load the source code.
1557
- *
1558
- * @param this - The build context, unplugin build context, and unplugin context.
1559
- * @param id - The identifier of the source code.
1560
- * @returns A promise that resolves when the hook is complete.
1561
- */
1562
- load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>;
1563
- /**
1564
- * A hook that is called to resolve the identifier of the source code.
1565
- *
1566
- * @param this - The build context, unplugin build context, and unplugin context.
1567
- * @param id - The identifier of the source code.
1568
- * @param importer - The importer of the source code.
1569
- * @param options - The options for resolving the identifier.
1570
- * @returns A promise that resolves when the hook is complete.
1571
- */
1572
- resolveId: (this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
1573
- isEntry: boolean;
1574
- }) => MaybePromise<string | ExternalIdResult | null | undefined>;
1575
- /**
1576
- * A hook that is called to write the bundle to disk.
1577
- *
1578
- * @param this - The build context.
1579
- * @returns A promise that resolves when the hook is complete.
1580
- */
1581
- writeBundle: (this: TContext) => MaybePromise<void>;
1582
- }
1583
- type BuildPlugin<TContext extends PluginContext = PluginContext, TBuildVariant$1 extends UnpluginBuildVariant = UnpluginBuildVariant, TOptions extends Required<UnpluginOptions>[TBuildVariant$1] = Required<UnpluginOptions>[TBuildVariant$1]> = { [TKey in keyof TOptions]: TOptions[TKey] extends FunctionLike ? (this: ThisParameterType<TOptions[TKey]> & TContext, ...args: Parameters<TOptions[TKey]>) => ReturnType<TOptions[TKey]> | MaybePromise<ReturnType<TOptions[TKey]>> : TOptions[TKey] };
1584
- type PluginHooks<TContext extends PluginContext = PluginContext> = { [TKey in keyof BasePluginHookFunctions<TContext>]: PluginHook<BasePluginHookFunctions<TContext>[TKey]> } & {
1585
- /**
1586
- * A function that returns configuration options to be merged with the build context's options.
1587
- *
1588
- * @remarks
1589
- * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
1590
- *
1591
- * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
1592
- *
1593
- * @see https://vitejs.dev/guide/api-plugin#config
1594
- *
1595
- * @param this - The build context.
1596
- * @param config - The partial configuration object to be modified.
1597
- * @returns A promise that resolves to a partial configuration object.
1598
- */
1599
- config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
1600
- /**
1601
- * A hook that is called to transform the source code.
1602
- *
1603
- * @param this - The build context, unplugin build context, and unplugin context.
1604
- * @param code - The source code to transform.
1605
- * @param id - The identifier of the source code.
1606
- * @returns A promise that resolves when the hook is complete.
1607
- */
1608
- transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>, "code" | "id">;
1609
- /**
1610
- * A hook that is called to load the source code.
1611
- *
1612
- * @param this - The build context, unplugin build context, and unplugin context.
1613
- * @param id - The identifier of the source code.
1614
- * @returns A promise that resolves when the hook is complete.
1615
- */
1616
- load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>, "id">;
1617
- /**
1618
- * A hook that is called to resolve the identifier of the source code.
1619
- *
1620
- * @param this - The build context, unplugin build context, and unplugin context.
1621
- * @param id - The identifier of the source code.
1622
- * @param importer - The importer of the source code.
1623
- * @param options - The options for resolving the identifier.
1624
- * @returns A promise that resolves when the hook is complete.
1625
- */
1626
- resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
1627
- isEntry: boolean;
1628
- }) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
1629
- };
1630
- type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = { [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant> };
1631
- interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1632
- /**
1633
- * The name of the plugin, for use in deduplication, error messages and logs.
1634
- */
1635
- name: string;
1636
- /**
1637
- * An API object that can be used for inter-plugin communication.
1638
- *
1639
- * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
1640
- */
1641
- api?: Record<string, any>;
1642
- /**
1643
- * Enforce plugin invocation tier similar to webpack loaders. Hooks ordering is still subject to the `order` property in the hook object.
1644
- *
1645
- * @remarks
1646
- * The Plugin invocation order is as follows:
1647
- * - `enforce: 'pre'` plugins
1648
- * - `order: 'pre'` plugin hooks
1649
- * - any other plugins (normal)
1650
- * - `order: 'post'` plugin hooks
1651
- * - `enforce: 'post'` plugins
1652
- *
1653
- * @see https://vitejs.dev/guide/api-plugin.html#plugin-ordering
1654
- * @see https://rollupjs.org/plugin-development/#build-hooks
1655
- * @see https://webpack.js.org/concepts/loaders/#enforce---pre-and-post
1656
- * @see https://esbuild.github.io/plugins/#concepts
1657
- */
1658
- enforce?: "pre" | "post";
1659
- /**
1660
- * A function to determine if two plugins are the same and can be de-duplicated.
1661
- *
1662
- * @remarks
1663
- * If this is not provided, plugins are de-duplicated by comparing their names.
1664
- *
1665
- * @param other - The other plugin to compare against.
1666
- * @returns `true` if the two plugins are the same, `false` otherwise.
1667
- */
1668
- dedupe?: false | ((other: Plugin<any>) => boolean);
1669
- /**
1670
- * A list of pre-requisite plugins that must be loaded before this plugin can be used.
1671
- */
1672
- dependsOn?: PluginConfig<any>[];
1673
- /**
1674
- * Define environments where this plugin should be active. By default, the plugin is active in all environments.
1675
- *
1676
- * @param environment - The environment to check.
1677
- * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
1678
- */
1679
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<any>;
1680
- }
1681
- import * as import___deepkit_type from "@deepkit/type";
1682
- //#endregion
1683
- //#region ../deepkit/schemas/reflection.d.ts
1684
- declare const ReflectionKind: {
1685
- readonly NEVER: 0;
1686
- readonly ANY: 1;
1687
- readonly UNKNOWN: 2;
1688
- readonly VOID: 3;
1689
- readonly OBJECT: 4;
1690
- readonly STRING: 5;
1691
- readonly NUMBER: 6;
1692
- readonly BOOLEAN: 7;
1693
- readonly SYMBOL: 8;
1694
- readonly BIGINT: 9;
1695
- readonly NULL: 10;
1696
- readonly UNDEFINED: 11;
1697
- readonly REGEXP: 12;
1698
- readonly LITERAL: 13;
1699
- readonly TEMPLATE_LITERAL: 14;
1700
- readonly PROPERTY: 15;
1701
- readonly METHOD: 16;
1702
- readonly FUNCTION: 17;
1703
- readonly PARAMETER: 18;
1704
- readonly PROMISE: 19;
1705
- readonly CLASS: 20;
1706
- readonly TYPE_PARAMETER: 21;
1707
- readonly ENUM: 22;
1708
- readonly UNION: 23;
1709
- readonly INTERSECTION: 24;
1710
- readonly ARRAY: 25;
1711
- readonly TUPLE: 26;
1712
- readonly TUPLE_MEMBER: 27;
1713
- readonly ENUM_MEMBER: 28;
1714
- readonly REST: 29;
1715
- readonly OBJECT_LITERAL: 30;
1716
- readonly INDEX_SIGNATURE: 31;
1717
- readonly PROPERTY_SIGNATURE: 32;
1718
- readonly METHOD_SIGNATURE: 33;
1719
- readonly INFER: 34;
1720
- readonly CALL_SIGNATURE: 35;
1721
- };
1722
- type ReflectionKind = (typeof ReflectionKind)[keyof typeof ReflectionKind];
1723
- declare const ReflectionVisibility: {
1724
- readonly PUBLIC: 0;
1725
- readonly PROTECTED: 1;
1726
- readonly PRIVATE: 2;
1727
- };
1728
- type ReflectionVisibility = (typeof ReflectionVisibility)[keyof typeof ReflectionVisibility];
1729
- declare class TagsReflection extends $.Struct {
1730
- static readonly _capnp: {
1731
- displayName: string;
1732
- id: string;
1733
- size: $.ObjectSize;
1734
- };
1735
- _adoptAlias(value: $.Orphan<$.List<string>>): void;
1736
- _disownAlias(): $.Orphan<$.List<string>>;
1737
- get alias(): $.List<string>;
1738
- _hasAlias(): boolean;
1739
- _initAlias(length: number): $.List<string>;
1740
- set alias(value: $.List<string>);
1741
- get title(): string;
1742
- set title(value: string);
1743
- get hidden(): boolean;
1744
- set hidden(value: boolean);
1745
- get readonly(): boolean;
1746
- set readonly(value: boolean);
1747
- get ignore(): boolean;
1748
- set ignore(value: boolean);
1749
- get internal(): boolean;
1750
- set internal(value: boolean);
1751
- _adoptPermission(value: $.Orphan<$.List<string>>): void;
1752
- _disownPermission(): $.Orphan<$.List<string>>;
1753
- get permission(): $.List<string>;
1754
- _hasPermission(): boolean;
1755
- _initPermission(length: number): $.List<string>;
1756
- set permission(value: $.List<string>);
1757
- get domain(): string;
1758
- set domain(value: string);
1759
- toString(): string;
1760
- }
1761
- declare const DefaultValueReflection_Value_Which: {
1762
- readonly UNDEFINED: 0;
1763
- readonly BOOLEAN: 1;
1764
- readonly INTEGER: 2;
1765
- readonly FLOAT: 3;
1766
- readonly STRING: 4;
1767
- };
1768
- type DefaultValueReflection_Value_Which = (typeof DefaultValueReflection_Value_Which)[keyof typeof DefaultValueReflection_Value_Which];
1769
- declare class DefaultValueReflection_Value extends $.Struct {
1770
- static readonly UNDEFINED: 0;
1771
- static readonly BOOLEAN: 1;
1772
- static readonly INTEGER: 2;
1773
- static readonly FLOAT: 3;
1774
- static readonly STRING: 4;
1775
- static readonly _capnp: {
1776
- displayName: string;
1777
- id: string;
1778
- size: $.ObjectSize;
1779
- };
1780
- get _isUndefined(): boolean;
1781
- set undefined(_: true);
1782
- get boolean(): boolean;
1783
- get _isBoolean(): boolean;
1784
- set boolean(value: boolean);
1785
- get integer(): number;
1786
- get _isInteger(): boolean;
1787
- set integer(value: number);
1788
- get float(): number;
1789
- get _isFloat(): boolean;
1790
- set float(value: number);
1791
- get string(): string;
1792
- get _isString(): boolean;
1793
- set string(value: string);
1794
- toString(): string;
1795
- which(): DefaultValueReflection_Value_Which;
1796
- }
1797
- declare class DefaultValueReflection extends $.Struct {
1798
- static readonly _capnp: {
1799
- displayName: string;
1800
- id: string;
1801
- size: $.ObjectSize;
1802
- };
1803
- get value(): DefaultValueReflection_Value;
1804
- _initValue(): DefaultValueReflection_Value;
1805
- toString(): string;
1806
- }
1807
- declare class SerializedTypeReference extends $.Struct {
1808
- static readonly _capnp: {
1809
- displayName: string;
1810
- id: string;
1811
- size: $.ObjectSize;
1812
- };
1813
- get id(): number;
1814
- set id(value: number);
1815
- toString(): string;
1816
- }
1817
- declare class IndexAccessOrigin extends $.Struct {
1818
- static readonly _capnp: {
1819
- displayName: string;
1820
- id: string;
1821
- size: $.ObjectSize;
1822
- };
1823
- _adoptContainer(value: $.Orphan<SerializedTypeReference>): void;
1824
- _disownContainer(): $.Orphan<SerializedTypeReference>;
1825
- get container(): SerializedTypeReference;
1826
- _hasContainer(): boolean;
1827
- _initContainer(): SerializedTypeReference;
1828
- set container(value: SerializedTypeReference);
1829
- _adoptIndex(value: $.Orphan<SerializedTypeReference>): void;
1830
- _disownIndex(): $.Orphan<SerializedTypeReference>;
1831
- get index(): SerializedTypeReference;
1832
- _hasIndex(): boolean;
1833
- _initIndex(): SerializedTypeReference;
1834
- set index(value: SerializedTypeReference);
1835
- toString(): string;
1836
- }
1837
- declare class SerializedTypeObjectLiteral extends $.Struct {
1838
- static readonly _capnp: {
1839
- displayName: string;
1840
- id: string;
1841
- size: $.ObjectSize;
1842
- };
1843
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1844
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1845
- static _Types: $.ListCtor<SerializedTypeReference>;
1846
- get typeName(): string;
1847
- set typeName(value: string);
1848
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1849
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1850
- get typeArguments(): $.List<SerializedTypeReference>;
1851
- _hasTypeArguments(): boolean;
1852
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1853
- set typeArguments(value: $.List<SerializedTypeReference>);
1854
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1855
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1856
- get indexAccessOrigin(): IndexAccessOrigin;
1857
- _hasIndexAccessOrigin(): boolean;
1858
- _initIndexAccessOrigin(): IndexAccessOrigin;
1859
- set indexAccessOrigin(value: IndexAccessOrigin);
1860
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1861
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1862
- get decorators(): $.List<SerializedTypeReference>;
1863
- _hasDecorators(): boolean;
1864
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1865
- set decorators(value: $.List<SerializedTypeReference>);
1866
- get kind(): ReflectionKind;
1867
- set kind(value: ReflectionKind);
1868
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1869
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
1870
- get types(): $.List<SerializedTypeReference>;
1871
- _hasTypes(): boolean;
1872
- _initTypes(length: number): $.List<SerializedTypeReference>;
1873
- set types(value: $.List<SerializedTypeReference>);
1874
- _adoptTags(value: $.Orphan<TagsReflection>): void;
1875
- _disownTags(): $.Orphan<TagsReflection>;
1876
- get tags(): TagsReflection;
1877
- _hasTags(): boolean;
1878
- _initTags(): TagsReflection;
1879
- set tags(value: TagsReflection);
1880
- toString(): string;
1881
- }
1882
- declare class SerializedTypeClassType extends $.Struct {
1883
- static readonly _capnp: {
1884
- displayName: string;
1885
- id: string;
1886
- size: $.ObjectSize;
1887
- };
1888
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1889
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1890
- static _ExtendsArguments: $.ListCtor<SerializedTypeReference>;
1891
- static _Arguments: $.ListCtor<SerializedTypeReference>;
1892
- static _Types: $.ListCtor<SerializedTypeReference>;
1893
- get typeName(): string;
1894
- set typeName(value: string);
1895
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1896
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1897
- get typeArguments(): $.List<SerializedTypeReference>;
1898
- _hasTypeArguments(): boolean;
1899
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1900
- set typeArguments(value: $.List<SerializedTypeReference>);
1901
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1902
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1903
- get indexAccessOrigin(): IndexAccessOrigin;
1904
- _hasIndexAccessOrigin(): boolean;
1905
- _initIndexAccessOrigin(): IndexAccessOrigin;
1906
- set indexAccessOrigin(value: IndexAccessOrigin);
1907
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1908
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1909
- get decorators(): $.List<SerializedTypeReference>;
1910
- _hasDecorators(): boolean;
1911
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1912
- set decorators(value: $.List<SerializedTypeReference>);
1913
- get kind(): ReflectionKind;
1914
- set kind(value: ReflectionKind);
1915
- get name(): string;
1916
- set name(value: string);
1917
- get globalObject(): boolean;
1918
- set globalObject(value: boolean);
1919
- get classType(): string;
1920
- set classType(value: string);
1921
- _adoptExtendsArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1922
- _disownExtendsArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1923
- get extendsArguments(): $.List<SerializedTypeReference>;
1924
- _hasExtendsArguments(): boolean;
1925
- _initExtendsArguments(length: number): $.List<SerializedTypeReference>;
1926
- set extendsArguments(value: $.List<SerializedTypeReference>);
1927
- _adoptArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1928
- _disownArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1929
- get arguments(): $.List<SerializedTypeReference>;
1930
- _hasArguments(): boolean;
1931
- _initArguments(length: number): $.List<SerializedTypeReference>;
1932
- set arguments(value: $.List<SerializedTypeReference>);
1933
- _adoptSuperClass(value: $.Orphan<SerializedTypeReference>): void;
1934
- _disownSuperClass(): $.Orphan<SerializedTypeReference>;
1935
- get superClass(): SerializedTypeReference;
1936
- _hasSuperClass(): boolean;
1937
- _initSuperClass(): SerializedTypeReference;
1938
- set superClass(value: SerializedTypeReference);
1939
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1940
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
1941
- get types(): $.List<SerializedTypeReference>;
1942
- _hasTypes(): boolean;
1943
- _initTypes(length: number): $.List<SerializedTypeReference>;
1944
- set types(value: $.List<SerializedTypeReference>);
1945
- _adoptTags(value: $.Orphan<TagsReflection>): void;
1946
- _disownTags(): $.Orphan<TagsReflection>;
1947
- get tags(): TagsReflection;
1948
- _hasTags(): boolean;
1949
- _initTags(): TagsReflection;
1950
- set tags(value: TagsReflection);
1951
- toString(): string;
1952
- }
1953
- declare class SerializedTypeParameter extends $.Struct {
1954
- static readonly _capnp: {
1955
- displayName: string;
1956
- id: string;
1957
- size: $.ObjectSize;
1958
- };
1959
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1960
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1961
- get typeName(): string;
1962
- set typeName(value: string);
1963
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1964
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1965
- get typeArguments(): $.List<SerializedTypeReference>;
1966
- _hasTypeArguments(): boolean;
1967
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1968
- set typeArguments(value: $.List<SerializedTypeReference>);
1969
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1970
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1971
- get indexAccessOrigin(): IndexAccessOrigin;
1972
- _hasIndexAccessOrigin(): boolean;
1973
- _initIndexAccessOrigin(): IndexAccessOrigin;
1974
- set indexAccessOrigin(value: IndexAccessOrigin);
1975
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1976
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1977
- get decorators(): $.List<SerializedTypeReference>;
1978
- _hasDecorators(): boolean;
1979
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1980
- set decorators(value: $.List<SerializedTypeReference>);
1981
- get kind(): ReflectionKind;
1982
- set kind(value: ReflectionKind);
1983
- get name(): string;
1984
- set name(value: string);
1985
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
1986
- _disownType(): $.Orphan<SerializedTypeReference>;
1987
- get type(): SerializedTypeReference;
1988
- _hasType(): boolean;
1989
- _initType(): SerializedTypeReference;
1990
- set type(value: SerializedTypeReference);
1991
- get visibility(): ReflectionVisibility;
1992
- set visibility(value: ReflectionVisibility);
1993
- get readonly(): boolean;
1994
- set readonly(value: boolean);
1995
- get optional(): boolean;
1996
- set optional(value: boolean);
1997
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
1998
- _disownDefault(): $.Orphan<DefaultValueReflection>;
1999
- get default(): DefaultValueReflection;
2000
- _hasDefault(): boolean;
2001
- _initDefault(): DefaultValueReflection;
2002
- set default(value: DefaultValueReflection);
2003
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2004
- _disownTags(): $.Orphan<TagsReflection>;
2005
- get tags(): TagsReflection;
2006
- _hasTags(): boolean;
2007
- _initTags(): TagsReflection;
2008
- set tags(value: TagsReflection);
2009
- toString(): string;
2010
- }
2011
- declare class SerializedTypeMethod extends $.Struct {
2012
- static readonly _capnp: {
2013
- displayName: string;
2014
- id: string;
2015
- size: $.ObjectSize;
2016
- };
2017
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2018
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2019
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
2020
- get typeName(): string;
2021
- set typeName(value: string);
2022
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2023
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2024
- get typeArguments(): $.List<SerializedTypeReference>;
2025
- _hasTypeArguments(): boolean;
2026
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2027
- set typeArguments(value: $.List<SerializedTypeReference>);
2028
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2029
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2030
- get indexAccessOrigin(): IndexAccessOrigin;
2031
- _hasIndexAccessOrigin(): boolean;
2032
- _initIndexAccessOrigin(): IndexAccessOrigin;
2033
- set indexAccessOrigin(value: IndexAccessOrigin);
2034
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2035
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2036
- get decorators(): $.List<SerializedTypeReference>;
2037
- _hasDecorators(): boolean;
2038
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2039
- set decorators(value: $.List<SerializedTypeReference>);
2040
- get visibility(): ReflectionVisibility;
2041
- set visibility(value: ReflectionVisibility);
2042
- get abstract(): boolean;
2043
- set abstract(value: boolean);
2044
- get optional(): boolean;
2045
- set optional(value: boolean);
2046
- get readonly(): boolean;
2047
- set readonly(value: boolean);
2048
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2049
- _disownTags(): $.Orphan<TagsReflection>;
2050
- get tags(): TagsReflection;
2051
- _hasTags(): boolean;
2052
- _initTags(): TagsReflection;
2053
- set tags(value: TagsReflection);
2054
- get kind(): ReflectionKind;
2055
- set kind(value: ReflectionKind);
2056
- get name(): string;
2057
- set name(value: string);
2058
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
2059
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
2060
- get parameters(): $.List<SerializedTypeParameter>;
2061
- _hasParameters(): boolean;
2062
- _initParameters(length: number): $.List<SerializedTypeParameter>;
2063
- set parameters(value: $.List<SerializedTypeParameter>);
2064
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
2065
- _disownReturn(): $.Orphan<SerializedTypeReference>;
2066
- get return(): SerializedTypeReference;
2067
- _hasReturn(): boolean;
2068
- _initReturn(): SerializedTypeReference;
2069
- set return(value: SerializedTypeReference);
2070
- toString(): string;
2071
- }
2072
- declare class SerializedTypeProperty extends $.Struct {
2073
- static readonly _capnp: {
2074
- displayName: string;
2075
- id: string;
2076
- size: $.ObjectSize;
2077
- };
2078
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2079
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2080
- get typeName(): string;
2081
- set typeName(value: string);
2082
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2083
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2084
- get typeArguments(): $.List<SerializedTypeReference>;
2085
- _hasTypeArguments(): boolean;
2086
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2087
- set typeArguments(value: $.List<SerializedTypeReference>);
2088
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2089
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2090
- get indexAccessOrigin(): IndexAccessOrigin;
2091
- _hasIndexAccessOrigin(): boolean;
2092
- _initIndexAccessOrigin(): IndexAccessOrigin;
2093
- set indexAccessOrigin(value: IndexAccessOrigin);
2094
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2095
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2096
- get decorators(): $.List<SerializedTypeReference>;
2097
- _hasDecorators(): boolean;
2098
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2099
- set decorators(value: $.List<SerializedTypeReference>);
2100
- get visibility(): ReflectionVisibility;
2101
- set visibility(value: ReflectionVisibility);
2102
- get abstract(): boolean;
2103
- set abstract(value: boolean);
2104
- get optional(): boolean;
2105
- set optional(value: boolean);
2106
- get readonly(): boolean;
2107
- set readonly(value: boolean);
2108
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2109
- _disownTags(): $.Orphan<TagsReflection>;
2110
- get tags(): TagsReflection;
2111
- _hasTags(): boolean;
2112
- _initTags(): TagsReflection;
2113
- set tags(value: TagsReflection);
2114
- get kind(): ReflectionKind;
2115
- set kind(value: ReflectionKind);
2116
- get name(): string;
2117
- set name(value: string);
2118
- get description(): string;
2119
- set description(value: string);
2120
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2121
- _disownType(): $.Orphan<SerializedTypeReference>;
2122
- get type(): SerializedTypeReference;
2123
- _hasType(): boolean;
2124
- _initType(): SerializedTypeReference;
2125
- set type(value: SerializedTypeReference);
2126
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
2127
- _disownDefault(): $.Orphan<DefaultValueReflection>;
2128
- get default(): DefaultValueReflection;
2129
- _hasDefault(): boolean;
2130
- _initDefault(): DefaultValueReflection;
2131
- set default(value: DefaultValueReflection);
2132
- toString(): string;
2133
- }
2134
- declare class SerializedTypeFunction extends $.Struct {
2135
- static readonly _capnp: {
2136
- displayName: string;
2137
- id: string;
2138
- size: $.ObjectSize;
2139
- };
2140
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2141
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2142
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
2143
- get typeName(): string;
2144
- set typeName(value: string);
2145
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2146
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2147
- get typeArguments(): $.List<SerializedTypeReference>;
2148
- _hasTypeArguments(): boolean;
2149
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2150
- set typeArguments(value: $.List<SerializedTypeReference>);
2151
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2152
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2153
- get indexAccessOrigin(): IndexAccessOrigin;
2154
- _hasIndexAccessOrigin(): boolean;
2155
- _initIndexAccessOrigin(): IndexAccessOrigin;
2156
- set indexAccessOrigin(value: IndexAccessOrigin);
2157
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2158
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2159
- get decorators(): $.List<SerializedTypeReference>;
2160
- _hasDecorators(): boolean;
2161
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2162
- set decorators(value: $.List<SerializedTypeReference>);
2163
- get visibility(): ReflectionVisibility;
2164
- set visibility(value: ReflectionVisibility);
2165
- get abstract(): boolean;
2166
- set abstract(value: boolean);
2167
- get optional(): boolean;
2168
- set optional(value: boolean);
2169
- get readonly(): boolean;
2170
- set readonly(value: boolean);
2171
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2172
- _disownTags(): $.Orphan<TagsReflection>;
2173
- get tags(): TagsReflection;
2174
- _hasTags(): boolean;
2175
- _initTags(): TagsReflection;
2176
- set tags(value: TagsReflection);
2177
- get kind(): ReflectionKind;
2178
- set kind(value: ReflectionKind);
2179
- get name(): string;
2180
- set name(value: string);
2181
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
2182
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
2183
- get parameters(): $.List<SerializedTypeParameter>;
2184
- _hasParameters(): boolean;
2185
- _initParameters(length: number): $.List<SerializedTypeParameter>;
2186
- set parameters(value: $.List<SerializedTypeParameter>);
2187
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
2188
- _disownReturn(): $.Orphan<SerializedTypeReference>;
2189
- get return(): SerializedTypeReference;
2190
- _hasReturn(): boolean;
2191
- _initReturn(): SerializedTypeReference;
2192
- set return(value: SerializedTypeReference);
2193
- toString(): string;
2194
- }
2195
- declare class SerializedTypePromise extends $.Struct {
2196
- static readonly _capnp: {
2197
- displayName: string;
2198
- id: string;
2199
- size: $.ObjectSize;
2200
- };
2201
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2202
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2203
- get typeName(): string;
2204
- set typeName(value: string);
2205
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2206
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2207
- get typeArguments(): $.List<SerializedTypeReference>;
2208
- _hasTypeArguments(): boolean;
2209
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2210
- set typeArguments(value: $.List<SerializedTypeReference>);
2211
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2212
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2213
- get indexAccessOrigin(): IndexAccessOrigin;
2214
- _hasIndexAccessOrigin(): boolean;
2215
- _initIndexAccessOrigin(): IndexAccessOrigin;
2216
- set indexAccessOrigin(value: IndexAccessOrigin);
2217
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2218
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2219
- get decorators(): $.List<SerializedTypeReference>;
2220
- _hasDecorators(): boolean;
2221
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2222
- set decorators(value: $.List<SerializedTypeReference>);
2223
- get visibility(): ReflectionVisibility;
2224
- set visibility(value: ReflectionVisibility);
2225
- get abstract(): boolean;
2226
- set abstract(value: boolean);
2227
- toString(): string;
2228
- }
2229
- declare class SerializedTypeEnumEntry extends $.Struct {
2230
- static readonly _capnp: {
2231
- displayName: string;
2232
- id: string;
2233
- size: $.ObjectSize;
2234
- };
2235
- get name(): string;
2236
- set name(value: string);
2237
- get value(): string;
2238
- set value(value: string);
2239
- toString(): string;
2240
- }
2241
- declare class SerializedTypeEnum extends $.Struct {
2242
- static readonly _capnp: {
2243
- displayName: string;
2244
- id: string;
2245
- size: $.ObjectSize;
2246
- };
2247
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2248
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2249
- static _EnumEntries: $.ListCtor<SerializedTypeEnumEntry>;
2250
- get typeName(): string;
2251
- set typeName(value: string);
2252
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2253
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2254
- get typeArguments(): $.List<SerializedTypeReference>;
2255
- _hasTypeArguments(): boolean;
2256
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2257
- set typeArguments(value: $.List<SerializedTypeReference>);
2258
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2259
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2260
- get indexAccessOrigin(): IndexAccessOrigin;
2261
- _hasIndexAccessOrigin(): boolean;
2262
- _initIndexAccessOrigin(): IndexAccessOrigin;
2263
- set indexAccessOrigin(value: IndexAccessOrigin);
2264
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2265
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2266
- get decorators(): $.List<SerializedTypeReference>;
2267
- _hasDecorators(): boolean;
2268
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2269
- set decorators(value: $.List<SerializedTypeReference>);
2270
- get kind(): ReflectionKind;
2271
- set kind(value: ReflectionKind);
2272
- _adoptEnumEntries(value: $.Orphan<$.List<SerializedTypeEnumEntry>>): void;
2273
- _disownEnumEntries(): $.Orphan<$.List<SerializedTypeEnumEntry>>;
2274
- get enumEntries(): $.List<SerializedTypeEnumEntry>;
2275
- _hasEnumEntries(): boolean;
2276
- _initEnumEntries(length: number): $.List<SerializedTypeEnumEntry>;
2277
- set enumEntries(value: $.List<SerializedTypeEnumEntry>);
2278
- _adoptValues(value: $.Orphan<$.List<string>>): void;
2279
- _disownValues(): $.Orphan<$.List<string>>;
2280
- get values(): $.List<string>;
2281
- _hasValues(): boolean;
2282
- _initValues(length: number): $.List<string>;
2283
- set values(value: $.List<string>);
2284
- _adoptIndexType(value: $.Orphan<SerializedTypeReference>): void;
2285
- _disownIndexType(): $.Orphan<SerializedTypeReference>;
2286
- get indexType(): SerializedTypeReference;
2287
- _hasIndexType(): boolean;
2288
- _initIndexType(): SerializedTypeReference;
2289
- set indexType(value: SerializedTypeReference);
2290
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2291
- _disownTags(): $.Orphan<TagsReflection>;
2292
- get tags(): TagsReflection;
2293
- _hasTags(): boolean;
2294
- _initTags(): TagsReflection;
2295
- set tags(value: TagsReflection);
2296
- toString(): string;
2297
- }
2298
- declare class SerializedTypeUnion extends $.Struct {
2299
- static readonly _capnp: {
2300
- displayName: string;
2301
- id: string;
2302
- size: $.ObjectSize;
2303
- };
2304
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2305
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2306
- static _Types: $.ListCtor<SerializedTypeReference>;
2307
- get typeName(): string;
2308
- set typeName(value: string);
2309
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2310
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2311
- get typeArguments(): $.List<SerializedTypeReference>;
2312
- _hasTypeArguments(): boolean;
2313
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2314
- set typeArguments(value: $.List<SerializedTypeReference>);
2315
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2316
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2317
- get indexAccessOrigin(): IndexAccessOrigin;
2318
- _hasIndexAccessOrigin(): boolean;
2319
- _initIndexAccessOrigin(): IndexAccessOrigin;
2320
- set indexAccessOrigin(value: IndexAccessOrigin);
2321
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2322
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2323
- get decorators(): $.List<SerializedTypeReference>;
2324
- _hasDecorators(): boolean;
2325
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2326
- set decorators(value: $.List<SerializedTypeReference>);
2327
- get kind(): ReflectionKind;
2328
- set kind(value: ReflectionKind);
2329
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2330
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
2331
- get types(): $.List<SerializedTypeReference>;
2332
- _hasTypes(): boolean;
2333
- _initTypes(length: number): $.List<SerializedTypeReference>;
2334
- set types(value: $.List<SerializedTypeReference>);
2335
- toString(): string;
2336
- }
2337
- declare class SerializedTypeIntersection extends $.Struct {
2338
- static readonly _capnp: {
2339
- displayName: string;
2340
- id: string;
2341
- size: $.ObjectSize;
2342
- };
2343
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2344
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2345
- static _Types: $.ListCtor<SerializedTypeReference>;
2346
- get typeName(): string;
2347
- set typeName(value: string);
2348
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2349
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2350
- get typeArguments(): $.List<SerializedTypeReference>;
2351
- _hasTypeArguments(): boolean;
2352
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2353
- set typeArguments(value: $.List<SerializedTypeReference>);
2354
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2355
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2356
- get indexAccessOrigin(): IndexAccessOrigin;
2357
- _hasIndexAccessOrigin(): boolean;
2358
- _initIndexAccessOrigin(): IndexAccessOrigin;
2359
- set indexAccessOrigin(value: IndexAccessOrigin);
2360
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2361
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2362
- get decorators(): $.List<SerializedTypeReference>;
2363
- _hasDecorators(): boolean;
2364
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2365
- set decorators(value: $.List<SerializedTypeReference>);
2366
- get kind(): ReflectionKind;
2367
- set kind(value: ReflectionKind);
2368
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2369
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
2370
- get types(): $.List<SerializedTypeReference>;
2371
- _hasTypes(): boolean;
2372
- _initTypes(length: number): $.List<SerializedTypeReference>;
2373
- set types(value: $.List<SerializedTypeReference>);
2374
- toString(): string;
2375
- }
2376
- declare class SerializedTypeArray extends $.Struct {
2377
- static readonly _capnp: {
2378
- displayName: string;
2379
- id: string;
2380
- size: $.ObjectSize;
2381
- };
2382
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2383
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2384
- get typeName(): string;
2385
- set typeName(value: string);
2386
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2387
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2388
- get typeArguments(): $.List<SerializedTypeReference>;
2389
- _hasTypeArguments(): boolean;
2390
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2391
- set typeArguments(value: $.List<SerializedTypeReference>);
2392
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2393
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2394
- get indexAccessOrigin(): IndexAccessOrigin;
2395
- _hasIndexAccessOrigin(): boolean;
2396
- _initIndexAccessOrigin(): IndexAccessOrigin;
2397
- set indexAccessOrigin(value: IndexAccessOrigin);
2398
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2399
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2400
- get decorators(): $.List<SerializedTypeReference>;
2401
- _hasDecorators(): boolean;
2402
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2403
- set decorators(value: $.List<SerializedTypeReference>);
2404
- get kind(): ReflectionKind;
2405
- set kind(value: ReflectionKind);
2406
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2407
- _disownType(): $.Orphan<SerializedTypeReference>;
2408
- get type(): SerializedTypeReference;
2409
- _hasType(): boolean;
2410
- _initType(): SerializedTypeReference;
2411
- set type(value: SerializedTypeReference);
2412
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2413
- _disownTags(): $.Orphan<TagsReflection>;
2414
- get tags(): TagsReflection;
2415
- _hasTags(): boolean;
2416
- _initTags(): TagsReflection;
2417
- set tags(value: TagsReflection);
2418
- toString(): string;
2419
- }
2420
- declare class SerializedTypeIndexSignature extends $.Struct {
2421
- static readonly _capnp: {
2422
- displayName: string;
2423
- id: string;
2424
- size: $.ObjectSize;
2425
- };
2426
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2427
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2428
- get typeName(): string;
2429
- set typeName(value: string);
2430
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2431
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2432
- get typeArguments(): $.List<SerializedTypeReference>;
2433
- _hasTypeArguments(): boolean;
2434
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2435
- set typeArguments(value: $.List<SerializedTypeReference>);
2436
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2437
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2438
- get indexAccessOrigin(): IndexAccessOrigin;
2439
- _hasIndexAccessOrigin(): boolean;
2440
- _initIndexAccessOrigin(): IndexAccessOrigin;
2441
- set indexAccessOrigin(value: IndexAccessOrigin);
2442
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2443
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2444
- get decorators(): $.List<SerializedTypeReference>;
2445
- _hasDecorators(): boolean;
2446
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2447
- set decorators(value: $.List<SerializedTypeReference>);
2448
- get kind(): ReflectionKind;
2449
- set kind(value: ReflectionKind);
2450
- _adoptIndex(value: $.Orphan<SerializedTypeReference>): void;
2451
- _disownIndex(): $.Orphan<SerializedTypeReference>;
2452
- get index(): SerializedTypeReference;
2453
- _hasIndex(): boolean;
2454
- _initIndex(): SerializedTypeReference;
2455
- set index(value: SerializedTypeReference);
2456
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2457
- _disownType(): $.Orphan<SerializedTypeReference>;
2458
- get type(): SerializedTypeReference;
2459
- _hasType(): boolean;
2460
- _initType(): SerializedTypeReference;
2461
- set type(value: SerializedTypeReference);
2462
- toString(): string;
2463
- }
2464
- declare class SerializedTypePropertySignature extends $.Struct {
2465
- static readonly _capnp: {
2466
- displayName: string;
2467
- id: string;
2468
- size: $.ObjectSize;
2469
- };
2470
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2471
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2472
- get typeName(): string;
2473
- set typeName(value: string);
2474
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2475
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2476
- get typeArguments(): $.List<SerializedTypeReference>;
2477
- _hasTypeArguments(): boolean;
2478
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2479
- set typeArguments(value: $.List<SerializedTypeReference>);
2480
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2481
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2482
- get indexAccessOrigin(): IndexAccessOrigin;
2483
- _hasIndexAccessOrigin(): boolean;
2484
- _initIndexAccessOrigin(): IndexAccessOrigin;
2485
- set indexAccessOrigin(value: IndexAccessOrigin);
2486
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2487
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2488
- get decorators(): $.List<SerializedTypeReference>;
2489
- _hasDecorators(): boolean;
2490
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2491
- set decorators(value: $.List<SerializedTypeReference>);
2492
- get kind(): ReflectionKind;
2493
- set kind(value: ReflectionKind);
2494
- get name(): string;
2495
- set name(value: string);
2496
- get optional(): boolean;
2497
- set optional(value: boolean);
2498
- get readonly(): boolean;
2499
- set readonly(value: boolean);
2500
- get description(): string;
2501
- set description(value: string);
2502
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
2503
- _disownDefault(): $.Orphan<DefaultValueReflection>;
2504
- get default(): DefaultValueReflection;
2505
- _hasDefault(): boolean;
2506
- _initDefault(): DefaultValueReflection;
2507
- set default(value: DefaultValueReflection);
2508
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2509
- _disownType(): $.Orphan<SerializedTypeReference>;
2510
- get type(): SerializedTypeReference;
2511
- _hasType(): boolean;
2512
- _initType(): SerializedTypeReference;
2513
- set type(value: SerializedTypeReference);
2514
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2515
- _disownTags(): $.Orphan<TagsReflection>;
2516
- get tags(): TagsReflection;
2517
- _hasTags(): boolean;
2518
- _initTags(): TagsReflection;
2519
- set tags(value: TagsReflection);
2520
- toString(): string;
2521
- }
2522
- declare class SerializedTypeMethodSignature extends $.Struct {
2523
- static readonly _capnp: {
2524
- displayName: string;
2525
- id: string;
2526
- size: $.ObjectSize;
2527
- };
2528
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2529
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2530
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
2531
- get typeName(): string;
2532
- set typeName(value: string);
2533
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2534
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2535
- get typeArguments(): $.List<SerializedTypeReference>;
2536
- _hasTypeArguments(): boolean;
2537
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2538
- set typeArguments(value: $.List<SerializedTypeReference>);
2539
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2540
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2541
- get indexAccessOrigin(): IndexAccessOrigin;
2542
- _hasIndexAccessOrigin(): boolean;
2543
- _initIndexAccessOrigin(): IndexAccessOrigin;
2544
- set indexAccessOrigin(value: IndexAccessOrigin);
2545
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2546
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2547
- get decorators(): $.List<SerializedTypeReference>;
2548
- _hasDecorators(): boolean;
2549
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2550
- set decorators(value: $.List<SerializedTypeReference>);
2551
- get kind(): ReflectionKind;
2552
- set kind(value: ReflectionKind);
2553
- get name(): string;
2554
- set name(value: string);
2555
- get optional(): boolean;
2556
- set optional(value: boolean);
2557
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
2558
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
2559
- get parameters(): $.List<SerializedTypeParameter>;
2560
- _hasParameters(): boolean;
2561
- _initParameters(length: number): $.List<SerializedTypeParameter>;
2562
- set parameters(value: $.List<SerializedTypeParameter>);
2563
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
2564
- _disownReturn(): $.Orphan<SerializedTypeReference>;
2565
- get return(): SerializedTypeReference;
2566
- _hasReturn(): boolean;
2567
- _initReturn(): SerializedTypeReference;
2568
- set return(value: SerializedTypeReference);
2569
- _adoptTags(value: $.Orphan<TagsReflection>): void;
2570
- _disownTags(): $.Orphan<TagsReflection>;
2571
- get tags(): TagsReflection;
2572
- _hasTags(): boolean;
2573
- _initTags(): TagsReflection;
2574
- set tags(value: TagsReflection);
2575
- toString(): string;
2576
- }
2577
- declare class SerializedTypeTypeParameter extends $.Struct {
2578
- static readonly _capnp: {
2579
- displayName: string;
2580
- id: string;
2581
- size: $.ObjectSize;
2582
- };
2583
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2584
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2585
- get typeName(): string;
2586
- set typeName(value: string);
2587
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2588
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2589
- get typeArguments(): $.List<SerializedTypeReference>;
2590
- _hasTypeArguments(): boolean;
2591
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2592
- set typeArguments(value: $.List<SerializedTypeReference>);
2593
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2594
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2595
- get indexAccessOrigin(): IndexAccessOrigin;
2596
- _hasIndexAccessOrigin(): boolean;
2597
- _initIndexAccessOrigin(): IndexAccessOrigin;
2598
- set indexAccessOrigin(value: IndexAccessOrigin);
2599
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2600
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2601
- get decorators(): $.List<SerializedTypeReference>;
2602
- _hasDecorators(): boolean;
2603
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2604
- set decorators(value: $.List<SerializedTypeReference>);
2605
- get kind(): ReflectionKind;
2606
- set kind(value: ReflectionKind);
2607
- get name(): string;
2608
- set name(value: string);
2609
- toString(): string;
2610
- }
2611
- declare class SerializedTypeInfer extends $.Struct {
2612
- static readonly _capnp: {
2613
- displayName: string;
2614
- id: string;
2615
- size: $.ObjectSize;
2616
- };
2617
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2618
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2619
- get typeName(): string;
2620
- set typeName(value: string);
2621
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2622
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2623
- get typeArguments(): $.List<SerializedTypeReference>;
2624
- _hasTypeArguments(): boolean;
2625
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2626
- set typeArguments(value: $.List<SerializedTypeReference>);
2627
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2628
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2629
- get indexAccessOrigin(): IndexAccessOrigin;
2630
- _hasIndexAccessOrigin(): boolean;
2631
- _initIndexAccessOrigin(): IndexAccessOrigin;
2632
- set indexAccessOrigin(value: IndexAccessOrigin);
2633
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2634
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2635
- get decorators(): $.List<SerializedTypeReference>;
2636
- _hasDecorators(): boolean;
2637
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2638
- set decorators(value: $.List<SerializedTypeReference>);
2639
- get kind(): ReflectionKind;
2640
- set kind(value: ReflectionKind);
2641
- toString(): string;
2642
- }
2643
- declare class SerializedTypeTupleMember extends $.Struct {
2644
- static readonly _capnp: {
2645
- displayName: string;
2646
- id: string;
2647
- size: $.ObjectSize;
2648
- };
2649
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2650
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2651
- get typeName(): string;
2652
- set typeName(value: string);
2653
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2654
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2655
- get typeArguments(): $.List<SerializedTypeReference>;
2656
- _hasTypeArguments(): boolean;
2657
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2658
- set typeArguments(value: $.List<SerializedTypeReference>);
2659
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2660
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2661
- get indexAccessOrigin(): IndexAccessOrigin;
2662
- _hasIndexAccessOrigin(): boolean;
2663
- _initIndexAccessOrigin(): IndexAccessOrigin;
2664
- set indexAccessOrigin(value: IndexAccessOrigin);
2665
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2666
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2667
- get decorators(): $.List<SerializedTypeReference>;
2668
- _hasDecorators(): boolean;
2669
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2670
- set decorators(value: $.List<SerializedTypeReference>);
2671
- get kind(): ReflectionKind;
2672
- set kind(value: ReflectionKind);
2673
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2674
- _disownType(): $.Orphan<SerializedTypeReference>;
2675
- get type(): SerializedTypeReference;
2676
- _hasType(): boolean;
2677
- _initType(): SerializedTypeReference;
2678
- set type(value: SerializedTypeReference);
2679
- get optional(): boolean;
2680
- set optional(value: boolean);
2681
- get name(): string;
2682
- set name(value: string);
2683
- toString(): string;
2684
- }
2685
- declare class SerializedTypeTuple extends $.Struct {
2686
- static readonly _capnp: {
2687
- displayName: string;
2688
- id: string;
2689
- size: $.ObjectSize;
2690
- };
2691
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2692
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2693
- static _Types: $.ListCtor<SerializedTypeTupleMember>;
2694
- get typeName(): string;
2695
- set typeName(value: string);
2696
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2697
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2698
- get typeArguments(): $.List<SerializedTypeReference>;
2699
- _hasTypeArguments(): boolean;
2700
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2701
- set typeArguments(value: $.List<SerializedTypeReference>);
2702
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2703
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2704
- get indexAccessOrigin(): IndexAccessOrigin;
2705
- _hasIndexAccessOrigin(): boolean;
2706
- _initIndexAccessOrigin(): IndexAccessOrigin;
2707
- set indexAccessOrigin(value: IndexAccessOrigin);
2708
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2709
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2710
- get decorators(): $.List<SerializedTypeReference>;
2711
- _hasDecorators(): boolean;
2712
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2713
- set decorators(value: $.List<SerializedTypeReference>);
2714
- get kind(): ReflectionKind;
2715
- set kind(value: ReflectionKind);
2716
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeTupleMember>>): void;
2717
- _disownTypes(): $.Orphan<$.List<SerializedTypeTupleMember>>;
2718
- get types(): $.List<SerializedTypeTupleMember>;
2719
- _hasTypes(): boolean;
2720
- _initTypes(length: number): $.List<SerializedTypeTupleMember>;
2721
- set types(value: $.List<SerializedTypeTupleMember>);
2722
- toString(): string;
2723
- }
2724
- declare class SerializedTypeRest extends $.Struct {
2725
- static readonly _capnp: {
2726
- displayName: string;
2727
- id: string;
2728
- size: $.ObjectSize;
2729
- };
2730
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2731
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2732
- get typeName(): string;
2733
- set typeName(value: string);
2734
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2735
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2736
- get typeArguments(): $.List<SerializedTypeReference>;
2737
- _hasTypeArguments(): boolean;
2738
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2739
- set typeArguments(value: $.List<SerializedTypeReference>);
2740
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2741
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2742
- get indexAccessOrigin(): IndexAccessOrigin;
2743
- _hasIndexAccessOrigin(): boolean;
2744
- _initIndexAccessOrigin(): IndexAccessOrigin;
2745
- set indexAccessOrigin(value: IndexAccessOrigin);
2746
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2747
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2748
- get decorators(): $.List<SerializedTypeReference>;
2749
- _hasDecorators(): boolean;
2750
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2751
- set decorators(value: $.List<SerializedTypeReference>);
2752
- get kind(): ReflectionKind;
2753
- set kind(value: ReflectionKind);
2754
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
2755
- _disownType(): $.Orphan<SerializedTypeReference>;
2756
- get type(): SerializedTypeReference;
2757
- _hasType(): boolean;
2758
- _initType(): SerializedTypeReference;
2759
- set type(value: SerializedTypeReference);
2760
- toString(): string;
2761
- }
2762
- declare class SimpleSerializedType extends $.Struct {
2763
- static readonly _capnp: {
2764
- displayName: string;
2765
- id: string;
2766
- size: $.ObjectSize;
2767
- };
2768
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2769
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2770
- get typeName(): string;
2771
- set typeName(value: string);
2772
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2773
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2774
- get typeArguments(): $.List<SerializedTypeReference>;
2775
- _hasTypeArguments(): boolean;
2776
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2777
- set typeArguments(value: $.List<SerializedTypeReference>);
2778
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2779
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2780
- get indexAccessOrigin(): IndexAccessOrigin;
2781
- _hasIndexAccessOrigin(): boolean;
2782
- _initIndexAccessOrigin(): IndexAccessOrigin;
2783
- set indexAccessOrigin(value: IndexAccessOrigin);
2784
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2785
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2786
- get decorators(): $.List<SerializedTypeReference>;
2787
- _hasDecorators(): boolean;
2788
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2789
- set decorators(value: $.List<SerializedTypeReference>);
2790
- get kind(): ReflectionKind;
2791
- set kind(value: ReflectionKind);
2792
- _adoptOrigin(value: $.Orphan<SerializedTypeReference>): void;
2793
- _disownOrigin(): $.Orphan<SerializedTypeReference>;
2794
- get origin(): SerializedTypeReference;
2795
- _hasOrigin(): boolean;
2796
- _initOrigin(): SerializedTypeReference;
2797
- set origin(value: SerializedTypeReference);
2798
- toString(): string;
2799
- }
2800
- declare class SerializedTypeLiteralSymbol extends $.Struct {
2801
- static readonly _capnp: {
2802
- displayName: string;
2803
- id: string;
2804
- size: $.ObjectSize;
2805
- };
2806
- /**
2807
- * "symbol"
2808
- *
2809
- */
2810
- get type(): string;
2811
- set type(value: string);
2812
- get name(): string;
2813
- set name(value: string);
2814
- toString(): string;
2815
- }
2816
- declare class SerializedTypeLiteralBigInt extends $.Struct {
2817
- static readonly _capnp: {
2818
- displayName: string;
2819
- id: string;
2820
- size: $.ObjectSize;
2821
- };
2822
- /**
2823
- * "bigint"
2824
- *
2825
- */
2826
- get type(): string;
2827
- set type(value: string);
2828
- get value(): string;
2829
- set value(value: string);
2830
- toString(): string;
2831
- }
2832
- declare class SerializedTypeLiteralRegex extends $.Struct {
2833
- static readonly _capnp: {
2834
- displayName: string;
2835
- id: string;
2836
- size: $.ObjectSize;
2837
- };
2838
- /**
2839
- * "regex"
2840
- *
2841
- */
2842
- get type(): string;
2843
- set type(value: string);
2844
- get regex(): string;
2845
- set regex(value: string);
2846
- toString(): string;
2847
- }
2848
- declare const SerializedTypeLiteral_Literal_Which: {
2849
- readonly SYMBOL: 0;
2850
- readonly STRING: 1;
2851
- readonly NUMBER: 2;
2852
- readonly BOOLEAN: 3;
2853
- readonly BIGINT: 4;
2854
- readonly REGEX: 5;
2855
- };
2856
- type SerializedTypeLiteral_Literal_Which = (typeof SerializedTypeLiteral_Literal_Which)[keyof typeof SerializedTypeLiteral_Literal_Which];
2857
- declare class SerializedTypeLiteral_Literal extends $.Struct {
2858
- static readonly SYMBOL: 0;
2859
- static readonly STRING: 1;
2860
- static readonly NUMBER: 2;
2861
- static readonly BOOLEAN: 3;
2862
- static readonly BIGINT: 4;
2863
- static readonly REGEX: 5;
2864
- static readonly _capnp: {
2865
- displayName: string;
2866
- id: string;
2867
- size: $.ObjectSize;
2868
- };
2869
- _adoptSymbol(value: $.Orphan<SerializedTypeLiteralSymbol>): void;
2870
- _disownSymbol(): $.Orphan<SerializedTypeLiteralSymbol>;
2871
- get symbol(): SerializedTypeLiteralSymbol;
2872
- _hasSymbol(): boolean;
2873
- _initSymbol(): SerializedTypeLiteralSymbol;
2874
- get _isSymbol(): boolean;
2875
- set symbol(value: SerializedTypeLiteralSymbol);
2876
- get string(): string;
2877
- get _isString(): boolean;
2878
- set string(value: string);
2879
- get number(): number;
2880
- get _isNumber(): boolean;
2881
- set number(value: number);
2882
- get boolean(): boolean;
2883
- get _isBoolean(): boolean;
2884
- set boolean(value: boolean);
2885
- _adoptBigint(value: $.Orphan<SerializedTypeLiteralBigInt>): void;
2886
- _disownBigint(): $.Orphan<SerializedTypeLiteralBigInt>;
2887
- get bigint(): SerializedTypeLiteralBigInt;
2888
- _hasBigint(): boolean;
2889
- _initBigint(): SerializedTypeLiteralBigInt;
2890
- get _isBigint(): boolean;
2891
- set bigint(value: SerializedTypeLiteralBigInt);
2892
- _adoptRegex(value: $.Orphan<SerializedTypeLiteralRegex>): void;
2893
- _disownRegex(): $.Orphan<SerializedTypeLiteralRegex>;
2894
- get regex(): SerializedTypeLiteralRegex;
2895
- _hasRegex(): boolean;
2896
- _initRegex(): SerializedTypeLiteralRegex;
2897
- get _isRegex(): boolean;
2898
- set regex(value: SerializedTypeLiteralRegex);
2899
- toString(): string;
2900
- which(): SerializedTypeLiteral_Literal_Which;
2901
- }
2902
- declare class SerializedTypeLiteral extends $.Struct {
2903
- static readonly _capnp: {
2904
- displayName: string;
2905
- id: string;
2906
- size: $.ObjectSize;
2907
- };
2908
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2909
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2910
- get typeName(): string;
2911
- set typeName(value: string);
2912
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2913
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2914
- get typeArguments(): $.List<SerializedTypeReference>;
2915
- _hasTypeArguments(): boolean;
2916
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2917
- set typeArguments(value: $.List<SerializedTypeReference>);
2918
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2919
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2920
- get indexAccessOrigin(): IndexAccessOrigin;
2921
- _hasIndexAccessOrigin(): boolean;
2922
- _initIndexAccessOrigin(): IndexAccessOrigin;
2923
- set indexAccessOrigin(value: IndexAccessOrigin);
2924
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2925
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2926
- get decorators(): $.List<SerializedTypeReference>;
2927
- _hasDecorators(): boolean;
2928
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2929
- set decorators(value: $.List<SerializedTypeReference>);
2930
- get kind(): ReflectionKind;
2931
- set kind(value: ReflectionKind);
2932
- get literal(): SerializedTypeLiteral_Literal;
2933
- _initLiteral(): SerializedTypeLiteral_Literal;
2934
- toString(): string;
2935
- }
2936
- declare class SerializedTypeTemplateLiteral extends $.Struct {
2937
- static readonly _capnp: {
2938
- displayName: string;
2939
- id: string;
2940
- size: $.ObjectSize;
2941
- };
2942
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
2943
- static _Decorators: $.ListCtor<SerializedTypeReference>;
2944
- static _Types: $.ListCtor<SerializedTypeReference>;
2945
- get typeName(): string;
2946
- set typeName(value: string);
2947
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2948
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
2949
- get typeArguments(): $.List<SerializedTypeReference>;
2950
- _hasTypeArguments(): boolean;
2951
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
2952
- set typeArguments(value: $.List<SerializedTypeReference>);
2953
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
2954
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
2955
- get indexAccessOrigin(): IndexAccessOrigin;
2956
- _hasIndexAccessOrigin(): boolean;
2957
- _initIndexAccessOrigin(): IndexAccessOrigin;
2958
- set indexAccessOrigin(value: IndexAccessOrigin);
2959
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2960
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
2961
- get decorators(): $.List<SerializedTypeReference>;
2962
- _hasDecorators(): boolean;
2963
- _initDecorators(length: number): $.List<SerializedTypeReference>;
2964
- set decorators(value: $.List<SerializedTypeReference>);
2965
- get kind(): ReflectionKind;
2966
- set kind(value: ReflectionKind);
2967
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
2968
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
2969
- get types(): $.List<SerializedTypeReference>;
2970
- _hasTypes(): boolean;
2971
- _initTypes(length: number): $.List<SerializedTypeReference>;
2972
- set types(value: $.List<SerializedTypeReference>);
2973
- toString(): string;
2974
- }
2975
- declare class SerializedTypeOther extends $.Struct {
2976
- static readonly _capnp: {
2977
- displayName: string;
2978
- id: string;
2979
- size: $.ObjectSize;
2980
- };
2981
- get typeName(): string;
2982
- set typeName(value: string);
2983
- get kind(): ReflectionKind;
2984
- set kind(value: ReflectionKind);
2985
- toString(): string;
2986
- }
2987
- declare const SerializedType_Type_Which: {
2988
- readonly SIMPLE: 0;
2989
- readonly LITERAL: 1;
2990
- readonly TEMPLATE_LITERAL: 2;
2991
- readonly PARAMETER: 3;
2992
- readonly FUNCTION: 4;
2993
- readonly METHOD: 5;
2994
- readonly PROPERTY: 6;
2995
- readonly PROMISE: 7;
2996
- readonly CLASS_TYPE: 8;
2997
- readonly ENUM: 9;
2998
- readonly UNION: 10;
2999
- readonly INTERSECTION: 11;
3000
- readonly ARRAY: 12;
3001
- readonly OBJECT_LITERAL: 13;
3002
- readonly INDEX_SIGNATURE: 14;
3003
- readonly PROPERTY_SIGNATURE: 15;
3004
- readonly METHOD_SIGNATURE: 16;
3005
- readonly TYPE_PARAMETER: 17;
3006
- readonly INFER: 18;
3007
- readonly TUPLE: 19;
3008
- readonly TUPLE_MEMBER: 20;
3009
- readonly REST: 21;
3010
- /**
3011
- * For any other type that is not explicitly defined
3012
- *
3013
- */
3014
- readonly OTHER: 22;
3015
- };
3016
- type SerializedType_Type_Which = (typeof SerializedType_Type_Which)[keyof typeof SerializedType_Type_Which];
3017
- declare class SerializedType_Type extends $.Struct {
3018
- static readonly SIMPLE: 0;
3019
- static readonly LITERAL: 1;
3020
- static readonly TEMPLATE_LITERAL: 2;
3021
- static readonly PARAMETER: 3;
3022
- static readonly FUNCTION: 4;
3023
- static readonly METHOD: 5;
3024
- static readonly PROPERTY: 6;
3025
- static readonly PROMISE: 7;
3026
- static readonly CLASS_TYPE: 8;
3027
- static readonly ENUM: 9;
3028
- static readonly UNION: 10;
3029
- static readonly INTERSECTION: 11;
3030
- static readonly ARRAY: 12;
3031
- static readonly OBJECT_LITERAL: 13;
3032
- static readonly INDEX_SIGNATURE: 14;
3033
- static readonly PROPERTY_SIGNATURE: 15;
3034
- static readonly METHOD_SIGNATURE: 16;
3035
- static readonly TYPE_PARAMETER: 17;
3036
- static readonly INFER: 18;
3037
- static readonly TUPLE: 19;
3038
- static readonly TUPLE_MEMBER: 20;
3039
- static readonly REST: 21;
3040
- static readonly OTHER: 22;
3041
- static readonly _capnp: {
3042
- displayName: string;
3043
- id: string;
3044
- size: $.ObjectSize;
3045
- };
3046
- _adoptSimple(value: $.Orphan<SimpleSerializedType>): void;
3047
- _disownSimple(): $.Orphan<SimpleSerializedType>;
3048
- get simple(): SimpleSerializedType;
3049
- _hasSimple(): boolean;
3050
- _initSimple(): SimpleSerializedType;
3051
- get _isSimple(): boolean;
3052
- set simple(value: SimpleSerializedType);
3053
- _adoptLiteral(value: $.Orphan<SerializedTypeLiteral>): void;
3054
- _disownLiteral(): $.Orphan<SerializedTypeLiteral>;
3055
- get literal(): SerializedTypeLiteral;
3056
- _hasLiteral(): boolean;
3057
- _initLiteral(): SerializedTypeLiteral;
3058
- get _isLiteral(): boolean;
3059
- set literal(value: SerializedTypeLiteral);
3060
- _adoptTemplateLiteral(value: $.Orphan<SerializedTypeTemplateLiteral>): void;
3061
- _disownTemplateLiteral(): $.Orphan<SerializedTypeTemplateLiteral>;
3062
- get templateLiteral(): SerializedTypeTemplateLiteral;
3063
- _hasTemplateLiteral(): boolean;
3064
- _initTemplateLiteral(): SerializedTypeTemplateLiteral;
3065
- get _isTemplateLiteral(): boolean;
3066
- set templateLiteral(value: SerializedTypeTemplateLiteral);
3067
- _adoptParameter(value: $.Orphan<SerializedTypeParameter>): void;
3068
- _disownParameter(): $.Orphan<SerializedTypeParameter>;
3069
- get parameter(): SerializedTypeParameter;
3070
- _hasParameter(): boolean;
3071
- _initParameter(): SerializedTypeParameter;
3072
- get _isParameter(): boolean;
3073
- set parameter(value: SerializedTypeParameter);
3074
- _adoptFunction(value: $.Orphan<SerializedTypeFunction>): void;
3075
- _disownFunction(): $.Orphan<SerializedTypeFunction>;
3076
- get function(): SerializedTypeFunction;
3077
- _hasFunction(): boolean;
3078
- _initFunction(): SerializedTypeFunction;
3079
- get _isFunction(): boolean;
3080
- set function(value: SerializedTypeFunction);
3081
- _adoptMethod(value: $.Orphan<SerializedTypeMethod>): void;
3082
- _disownMethod(): $.Orphan<SerializedTypeMethod>;
3083
- get method(): SerializedTypeMethod;
3084
- _hasMethod(): boolean;
3085
- _initMethod(): SerializedTypeMethod;
3086
- get _isMethod(): boolean;
3087
- set method(value: SerializedTypeMethod);
3088
- _adoptProperty(value: $.Orphan<SerializedTypeProperty>): void;
3089
- _disownProperty(): $.Orphan<SerializedTypeProperty>;
3090
- get property(): SerializedTypeProperty;
3091
- _hasProperty(): boolean;
3092
- _initProperty(): SerializedTypeProperty;
3093
- get _isProperty(): boolean;
3094
- set property(value: SerializedTypeProperty);
3095
- _adoptPromise(value: $.Orphan<SerializedTypePromise>): void;
3096
- _disownPromise(): $.Orphan<SerializedTypePromise>;
3097
- get promise(): SerializedTypePromise;
3098
- _hasPromise(): boolean;
3099
- _initPromise(): SerializedTypePromise;
3100
- get _isPromise(): boolean;
3101
- set promise(value: SerializedTypePromise);
3102
- _adoptClassType(value: $.Orphan<SerializedTypeClassType>): void;
3103
- _disownClassType(): $.Orphan<SerializedTypeClassType>;
3104
- get classType(): SerializedTypeClassType;
3105
- _hasClassType(): boolean;
3106
- _initClassType(): SerializedTypeClassType;
3107
- get _isClassType(): boolean;
3108
- set classType(value: SerializedTypeClassType);
3109
- _adoptEnum(value: $.Orphan<SerializedTypeEnum>): void;
3110
- _disownEnum(): $.Orphan<SerializedTypeEnum>;
3111
- get enum(): SerializedTypeEnum;
3112
- _hasEnum(): boolean;
3113
- _initEnum(): SerializedTypeEnum;
3114
- get _isEnum(): boolean;
3115
- set enum(value: SerializedTypeEnum);
3116
- _adoptUnion(value: $.Orphan<SerializedTypeUnion>): void;
3117
- _disownUnion(): $.Orphan<SerializedTypeUnion>;
3118
- get union(): SerializedTypeUnion;
3119
- _hasUnion(): boolean;
3120
- _initUnion(): SerializedTypeUnion;
3121
- get _isUnion(): boolean;
3122
- set union(value: SerializedTypeUnion);
3123
- _adoptIntersection(value: $.Orphan<SerializedTypeIntersection>): void;
3124
- _disownIntersection(): $.Orphan<SerializedTypeIntersection>;
3125
- get intersection(): SerializedTypeIntersection;
3126
- _hasIntersection(): boolean;
3127
- _initIntersection(): SerializedTypeIntersection;
3128
- get _isIntersection(): boolean;
3129
- set intersection(value: SerializedTypeIntersection);
3130
- _adoptArray(value: $.Orphan<SerializedTypeArray>): void;
3131
- _disownArray(): $.Orphan<SerializedTypeArray>;
3132
- get array(): SerializedTypeArray;
3133
- _hasArray(): boolean;
3134
- _initArray(): SerializedTypeArray;
3135
- get _isArray(): boolean;
3136
- set array(value: SerializedTypeArray);
3137
- _adoptObjectLiteral(value: $.Orphan<SerializedTypeObjectLiteral>): void;
3138
- _disownObjectLiteral(): $.Orphan<SerializedTypeObjectLiteral>;
3139
- get objectLiteral(): SerializedTypeObjectLiteral;
3140
- _hasObjectLiteral(): boolean;
3141
- _initObjectLiteral(): SerializedTypeObjectLiteral;
3142
- get _isObjectLiteral(): boolean;
3143
- set objectLiteral(value: SerializedTypeObjectLiteral);
3144
- _adoptIndexSignature(value: $.Orphan<SerializedTypeIndexSignature>): void;
3145
- _disownIndexSignature(): $.Orphan<SerializedTypeIndexSignature>;
3146
- get indexSignature(): SerializedTypeIndexSignature;
3147
- _hasIndexSignature(): boolean;
3148
- _initIndexSignature(): SerializedTypeIndexSignature;
3149
- get _isIndexSignature(): boolean;
3150
- set indexSignature(value: SerializedTypeIndexSignature);
3151
- _adoptPropertySignature(value: $.Orphan<SerializedTypePropertySignature>): void;
3152
- _disownPropertySignature(): $.Orphan<SerializedTypePropertySignature>;
3153
- get propertySignature(): SerializedTypePropertySignature;
3154
- _hasPropertySignature(): boolean;
3155
- _initPropertySignature(): SerializedTypePropertySignature;
3156
- get _isPropertySignature(): boolean;
3157
- set propertySignature(value: SerializedTypePropertySignature);
3158
- _adoptMethodSignature(value: $.Orphan<SerializedTypeMethodSignature>): void;
3159
- _disownMethodSignature(): $.Orphan<SerializedTypeMethodSignature>;
3160
- get methodSignature(): SerializedTypeMethodSignature;
3161
- _hasMethodSignature(): boolean;
3162
- _initMethodSignature(): SerializedTypeMethodSignature;
3163
- get _isMethodSignature(): boolean;
3164
- set methodSignature(value: SerializedTypeMethodSignature);
3165
- _adoptTypeParameter(value: $.Orphan<SerializedTypeTypeParameter>): void;
3166
- _disownTypeParameter(): $.Orphan<SerializedTypeTypeParameter>;
3167
- get typeParameter(): SerializedTypeTypeParameter;
3168
- _hasTypeParameter(): boolean;
3169
- _initTypeParameter(): SerializedTypeTypeParameter;
3170
- get _isTypeParameter(): boolean;
3171
- set typeParameter(value: SerializedTypeTypeParameter);
3172
- _adoptInfer(value: $.Orphan<SerializedTypeInfer>): void;
3173
- _disownInfer(): $.Orphan<SerializedTypeInfer>;
3174
- get infer(): SerializedTypeInfer;
3175
- _hasInfer(): boolean;
3176
- _initInfer(): SerializedTypeInfer;
3177
- get _isInfer(): boolean;
3178
- set infer(value: SerializedTypeInfer);
3179
- _adoptTuple(value: $.Orphan<SerializedTypeTuple>): void;
3180
- _disownTuple(): $.Orphan<SerializedTypeTuple>;
3181
- get tuple(): SerializedTypeTuple;
3182
- _hasTuple(): boolean;
3183
- _initTuple(): SerializedTypeTuple;
3184
- get _isTuple(): boolean;
3185
- set tuple(value: SerializedTypeTuple);
3186
- _adoptTupleMember(value: $.Orphan<SerializedTypeTupleMember>): void;
3187
- _disownTupleMember(): $.Orphan<SerializedTypeTupleMember>;
3188
- get tupleMember(): SerializedTypeTupleMember;
3189
- _hasTupleMember(): boolean;
3190
- _initTupleMember(): SerializedTypeTupleMember;
3191
- get _isTupleMember(): boolean;
3192
- set tupleMember(value: SerializedTypeTupleMember);
3193
- _adoptRest(value: $.Orphan<SerializedTypeRest>): void;
3194
- _disownRest(): $.Orphan<SerializedTypeRest>;
3195
- get rest(): SerializedTypeRest;
3196
- _hasRest(): boolean;
3197
- _initRest(): SerializedTypeRest;
3198
- get _isRest(): boolean;
3199
- set rest(value: SerializedTypeRest);
3200
- _adoptOther(value: $.Orphan<SerializedTypeOther>): void;
3201
- _disownOther(): $.Orphan<SerializedTypeOther>;
3202
- /**
3203
- * For any other type that is not explicitly defined
3204
- *
3205
- */
3206
- get other(): SerializedTypeOther;
3207
- _hasOther(): boolean;
3208
- _initOther(): SerializedTypeOther;
3209
- get _isOther(): boolean;
3210
- set other(value: SerializedTypeOther);
3211
- toString(): string;
3212
- which(): SerializedType_Type_Which;
3213
- }
3214
- declare class SerializedType extends $.Struct {
3215
- static readonly _capnp: {
3216
- displayName: string;
3217
- id: string;
3218
- size: $.ObjectSize;
3219
- };
3220
- get type(): SerializedType_Type;
3221
- _initType(): SerializedType_Type;
3222
- toString(): string;
3223
- }
3224
- declare class SerializedTypes extends $.Struct {
3225
- static readonly _capnp: {
3226
- displayName: string;
3227
- id: string;
3228
- size: $.ObjectSize;
3229
- };
3230
- static _Types: $.ListCtor<SerializedType>;
3231
- _adoptTypes(value: $.Orphan<$.List<SerializedType>>): void;
3232
- _disownTypes(): $.Orphan<$.List<SerializedType>>;
3233
- get types(): $.List<SerializedType>;
3234
- _hasTypes(): boolean;
3235
- _initTypes(length: number): $.List<SerializedType>;
3236
- set types(value: $.List<SerializedType>);
3237
- toString(): string;
3238
- }
3239
- //#endregion
3240
- //#region ../deepkit/src/types.d.ts
3241
- type Reflection<T extends Record<string, any> = Record<string, any>> = type_d_exports.ReflectionClass<T> & {
3242
- dataBuffer?: ArrayBuffer;
3243
- messageRoot?: SerializedTypes;
3244
- };
3245
- //#endregion
3246
- //#region ../plugin-babel/src/types/plugin.d.ts
3247
- type BabelPluginOptions = Partial<BabelUserConfig>;
3248
- type BabelPluginUserConfig = UserConfig;
3249
- interface BabelPluginResolvedConfig extends ResolvedConfig {
3250
- transform: {
3251
- babel: BabelResolvedConfig;
3252
- };
3253
- }
3254
- type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
3255
- //#endregion
3256
- //#region ../plugin-env/src/types/runtime.d.ts
3257
- /**
3258
- * The base environment configuration used by Powerlines applications
3259
- *
3260
- * @remarks
3261
- * This interface is used to define the environment variables, configuration options, and runtime settings used by applications. It is used to provide type safety, autocompletion, and default values for the environment variables. The comments of each variable are used to provide documentation descriptions when running the \`powerlines docs\` command.
3262
- *
3263
- * @categoryDescription Platform
3264
- * The name of the platform the configuration parameter is intended for use in.
3265
- *
3266
- * @showCategories
3267
- */
3268
- interface EnvInterface {
3269
- /**
3270
- * The name of the application.
3271
- *
3272
- * @readonly
3273
- * @category neutral
3274
- */
3275
- readonly APP_NAME: string;
3276
- /**
3277
- * The version of the application.
3278
- *
3279
- * @defaultValue "1.0.0"
3280
- *
3281
- * @readonly
3282
- * @category neutral
3283
- */
3284
- readonly APP_VERSION: string;
3285
- /**
3286
- * The unique identifier for the build.
3287
- *
3288
- * @readonly
3289
- * @category neutral
3290
- */
3291
- readonly BUILD_ID: string;
3292
- /**
3293
- * The timestamp the build was ran at.
3294
- *
3295
- * @readonly
3296
- * @category neutral
3297
- */
3298
- readonly BUILD_TIMESTAMP: string;
3299
- /**
3300
- * A checksum hash created during the build.
3301
- *
3302
- * @readonly
3303
- * @category neutral
3304
- */
3305
- readonly BUILD_CHECKSUM: string;
3306
- /**
3307
- * The unique identifier for the release.
3308
- *
3309
- * @readonly
3310
- * @category neutral
3311
- */
3312
- readonly RELEASE_ID: string;
3313
- /**
3314
- * The tag for the release. This is generally in the format of "\<APP_NAME\>\@\<APP_VERSION\>".
3315
- *
3316
- * @readonly
3317
- * @category neutral
3318
- */
3319
- readonly RELEASE_TAG: string;
3320
- /**
3321
- * The name of the organization that maintains the application.
3322
- *
3323
- * @remarks
3324
- * This variable is used to specify the name of the organization that maintains the application. If not provided in an environment, it will try to use the value in {@link @storm-software/config-tools/StormWorkspaceConfig#organization}.
3325
- *
3326
- * @alias ORG
3327
- * @alias ORG_ID
3328
- * @category neutral
3329
- */
3330
- ORGANIZATION: string;
3331
- /**
3332
- * The platform for which the application was built.
3333
- *
3334
- * @defaultValue "neutral"
3335
- *
3336
- * @category neutral
3337
- */
3338
- PLATFORM: "node" | "neutral" | "browser";
3339
- /**
3340
- * The mode in which the application is running.
3341
- *
3342
- * @defaultValue "production"
3343
- *
3344
- * @alias NODE_ENV
3345
- *
3346
- * @category neutral
3347
- */
3348
- MODE: "development" | "test" | "production";
3349
- /**
3350
- * The environment the application is running in. This value will be populated with the value of `MODE` if not provided.
3351
- *
3352
- * @defaultValue "production"
3353
- *
3354
- * @alias ENV
3355
- * @alias VERCEL_ENV
3356
- * @category neutral
3357
- */
3358
- ENVIRONMENT: string;
3359
- /**
3360
- * Indicates if the application is running in debug mode.
3361
- *
3362
- * @category neutral
3363
- */
3364
- DEBUG: boolean;
3365
- /**
3366
- * An indicator that specifies the current runtime is a test environment.
3367
- *
3368
- * @category neutral
3369
- */
3370
- TEST: boolean;
3371
- /**
3372
- * An indicator that specifies the current runtime is a minimal environment.
3373
- *
3374
- * @category node
3375
- */
3376
- MINIMAL: boolean;
3377
- /**
3378
- * An indicator that specifies the current runtime is a no color environment.
3379
- *
3380
- * @category node
3381
- */
3382
- NO_COLOR: boolean;
3383
- /**
3384
- * An indicator that specifies the current runtime is a force color environment.
3385
- *
3386
- * @category node
3387
- */
3388
- FORCE_COLOR: boolean | number;
3389
- /**
3390
- * An indicator that specifies the current runtime should force hyperlinks in terminal output.
3391
- *
3392
- * @remarks
3393
- * This variable is used to force hyperlinks in terminal output, even if the terminal does not support them. This is useful for debugging and development purposes.
3394
- * @category node
3395
- */
3396
- FORCE_HYPERLINK: boolean | number;
3397
- /**
3398
- * The name of the agent running the application. This variable is set by certain CI/CD systems.
3399
- *
3400
- * @readonly
3401
- * @category neutral
3402
- */
3403
- readonly AGENT_NAME?: string;
3404
- /**
3405
- * The color terminal type. This variable is set by certain terminal emulators.
3406
- *
3407
- * @readonly
3408
- * @category node
3409
- */
3410
- readonly COLORTERM?: string;
3411
- /**
3412
- * The terminal type. This variable is set by certain CI/CD systems.
3413
- *
3414
- * @remarks
3415
- * This variable is used to specify the terminal type that the application is running in. It can be used to determine how to format output for the terminal.
3416
- *
3417
- * @readonly
3418
- * @category node
3419
- */
3420
- readonly TERM?: string;
3421
- /**
3422
- * The terminal program name. This variable is set by certain terminal emulators.
3423
- *
3424
- * @readonly
3425
- * @category node
3426
- */
3427
- readonly TERM_PROGRAM?: string;
3428
- /**
3429
- * The terminal program version. This variable is set by certain terminal emulators.
3430
- *
3431
- * @readonly
3432
- * @category node
3433
- */
3434
- readonly TERM_PROGRAM_VERSION?: string;
3435
- /**
3436
- * The terminal emulator name. This variable is set by certain terminal emulators.
3437
- *
3438
- * @readonly
3439
- * @category node
3440
- */
3441
- readonly TERMINAL_EMULATOR?: string;
3442
- /**
3443
- * The terminal emulator session ID. This variable is set by certain terminal emulators.
3444
- *
3445
- * @readonly
3446
- * @category node
3447
- */
3448
- readonly WT_SESSION?: string;
3449
- /**
3450
- * An indicator that specifies the current terminal is running Terminus Sublime. This variable is set by certain terminal emulators.
3451
- *
3452
- * @readonly
3453
- * @category node
3454
- */
3455
- readonly TERMINUS_SUBLIME?: boolean;
3456
- /**
3457
- * The ConEmu task name. This variable is set by certain terminal emulators.
3458
- *
3459
- * @readonly
3460
- * @category node
3461
- */
3462
- readonly ConEmuTask?: string;
3463
- /**
3464
- * The cursor trace ID. This variable is set by certain terminal emulators.
3465
- *
3466
- * @readonly
3467
- * @category node
3468
- */
3469
- readonly CURSOR_TRACE_ID?: string;
3470
- /**
3471
- * The VTE version. This variable is set by certain terminal emulators.
3472
- *
3473
- * @readonly
3474
- * @category node
3475
- */
3476
- readonly VTE_VERSION?: string;
3477
- /**
3478
- * Indicates if error stack traces should be captured.
3479
- *
3480
- * @category neutral
3481
- */
3482
- STACKTRACE: boolean;
3483
- /**
3484
- * Indicates if error data should be included.
3485
- *
3486
- * @category neutral
3487
- */
3488
- INCLUDE_ERROR_DATA: boolean;
3489
- /**
3490
- * A web page to lookup error messages and display additional information given an error code.
3491
- *
3492
- * @remarks
3493
- * This variable is used to provide a URL to a page that can be used to look up error messages given an error code. This is used to provide a more user-friendly error message to the user.
3494
- *
3495
- * @title Error Details URL
3496
- * @category neutral
3497
- */
3498
- ERROR_URL: string;
3499
- /**
3500
- * The default timezone for the application.
3501
- *
3502
- * @defaultValue "America/New_York"
3503
- * @category neutral
3504
- */
3505
- DEFAULT_TIMEZONE: string;
3506
- /**
3507
- * The default locale to be used in the application.
3508
- *
3509
- * @defaultValue "en_US"
3510
- * @category neutral
3511
- */
3512
- DEFAULT_LOCALE: string;
3513
- /**
3514
- * The default lowest log level to accept. If `null`, the logger will reject all records. This value only applies if `lowestLogLevel` is not provided to the `logs` configuration.
3515
- *
3516
- * @defaultValue "info"
3517
- *
3518
- * @category neutral
3519
- */
3520
- LOG_LEVEL?: LogLevel | null;
3521
- /**
3522
- * An indicator that specifies the current runtime is a continuous integration environment.
3523
- *
3524
- * @title Continuous Integration
3525
- * @alias CONTINUOUS_INTEGRATION
3526
- * @category neutral
3527
- */
3528
- CI: boolean;
3529
- /**
3530
- * The unique identifier for the current run. This value is set by certain CI/CD systems.
3531
- *
3532
- * @readonly
3533
- * @category node
3534
- */
3535
- readonly RUN_ID?: string;
3536
- /**
3537
- * The agola git reference. This value is set by certain CI/CD systems.
3538
- *
3539
- * @readonly
3540
- * @category node
3541
- */
3542
- readonly AGOLA_GIT_REF?: string;
3543
- /**
3544
- * The appcircle build ID. This value is set by certain CI/CD systems.
3545
- *
3546
- * @readonly
3547
- * @category node
3548
- */
3549
- readonly AC_APPCIRCLE?: string;
3550
- /**
3551
- * The appveyor build ID. This value is set by certain CI/CD systems.
3552
- *
3553
- * @readonly
3554
- * @category node
3555
- */
3556
- readonly APPVEYOR?: string;
3557
- /**
3558
- * The codebuild build ID. This value is set by certain CI/CD systems.
3559
- *
3560
- * @readonly
3561
- * @category node
3562
- */
3563
- readonly CODEBUILD?: string;
3564
- /**
3565
- * The task force build ID. This value is set by certain CI/CD systems.
3566
- *
3567
- * @readonly
3568
- * @category node
3569
- */
3570
- readonly TF_BUILD?: string;
3571
- /**
3572
- * The bamboo plan key. This value is set by certain CI/CD systems.
3573
- *
3574
- * @readonly
3575
- * @category node
3576
- */
3577
- readonly bamboo_planKey?: string;
3578
- /**
3579
- * The bitbucket commit. This value is set by certain CI/CD systems.
3580
- *
3581
- * @readonly
3582
- * @category node
3583
- */
3584
- readonly BITBUCKET_COMMIT?: string;
3585
- /**
3586
- * The bitrise build ID. This value is set by certain CI/CD systems.
3587
- *
3588
- * @readonly
3589
- * @category node
3590
- */
3591
- readonly BITRISE_IO?: string;
3592
- /**
3593
- * The buddy workspace ID. This value is set by certain CI/CD systems.
3594
- *
3595
- * @readonly
3596
- * @category node
3597
- */
3598
- readonly BUDDY_WORKSPACE_ID?: string;
3599
- /**
3600
- * The buildkite build ID. This value is set by certain CI/CD systems.
3601
- *
3602
- * @readonly
3603
- * @category node
3604
- */
3605
- readonly BUILDKITE?: string;
3606
- /**
3607
- * The circleci build ID. This value is set by certain CI/CD systems.
3608
- *
3609
- * @readonly
3610
- * @category node
3611
- */
3612
- readonly CIRCLECI?: string;
3613
- /**
3614
- * The cirrus-ci build ID. This value is set by certain CI/CD systems.
3615
- *
3616
- * @readonly
3617
- * @category node
3618
- */
3619
- readonly CIRRUS_CI?: string;
3620
- /**
3621
- * The cf build ID. This value is set by certain CI/CD systems.
3622
- *
3623
- * @readonly
3624
- * @category node
3625
- */
3626
- readonly CF_BUILD_ID?: string;
3627
- /**
3628
- * The cm build ID. This value is set by certain CI/CD systems.
3629
- *
3630
- * @readonly
3631
- * @category node
3632
- */
3633
- readonly CM_BUILD_ID?: string;
3634
- /**
3635
- * The ci name. This value is set by certain CI/CD systems.
3636
- *
3637
- * @readonly
3638
- * @category node
3639
- */
3640
- readonly CI_NAME?: string;
3641
- /**
3642
- * The drone build ID. This value is set by certain CI/CD systems.
3643
- *
3644
- * @readonly
3645
- * @category node
3646
- */
3647
- readonly DRONE?: string;
3648
- /**
3649
- * The dsari build ID. This value is set by certain CI/CD systems.
3650
- *
3651
- * @readonly
3652
- * @category node
3653
- */
3654
- readonly DSARI?: string;
3655
- /**
3656
- * The earthly build ID. This value is set by certain CI/CD systems.
3657
- *
3658
- * @readonly
3659
- * @category node
3660
- */
3661
- readonly EARTHLY_CI?: string;
3662
- /**
3663
- * The eas build ID. This value is set by certain CI/CD systems.
3664
- *
3665
- * @readonly
3666
- * @category node
3667
- */
3668
- readonly EAS_BUILD?: string;
3669
- /**
3670
- * The gerrit project. This value is set by certain CI/CD systems.
3671
- *
3672
- * @readonly
3673
- * @category node
3674
- */
3675
- readonly GERRIT_PROJECT?: string;
3676
- /**
3677
- * The gitea actions build ID. This value is set by certain CI/CD systems.
3678
- *
3679
- * @readonly
3680
- * @category node
3681
- */
3682
- readonly GITEA_ACTIONS?: string;
3683
- /**
3684
- * The github actions build ID. This value is set by certain CI/CD systems.
3685
- *
3686
- * @readonly
3687
- * @category node
3688
- */
3689
- readonly GITHUB_ACTIONS?: string;
3690
- /**
3691
- * The gitlab ci build ID. This value is set by certain CI/CD systems.
3692
- *
3693
- * @readonly
3694
- * @category node
3695
- */
3696
- readonly GITLAB_CI?: string;
3697
- /**
3698
- * The go cd build ID. This value is set by certain CI/CD systems.
3699
- *
3700
- * @readonly
3701
- * @category node
3702
- */
3703
- readonly GOCD?: string;
3704
- /**
3705
- * The builder output build ID. This value is set by certain CI/CD systems.
3706
- *
3707
- * @readonly
3708
- * @category node
3709
- */
3710
- readonly BUILDER_OUTPUT?: string;
3711
- /**
3712
- * The harness build ID. This value is set by certain CI/CD systems.
3713
- *
3714
- * @readonly
3715
- * @category node
3716
- */
3717
- readonly HARNESS_BUILD_ID?: string;
3718
- /**
3719
- * The jenkins url. This value is set by certain CI/CD systems.
3720
- *
3721
- * @readonly
3722
- * @category node
3723
- */
3724
- readonly JENKINS_URL?: string;
3725
- /**
3726
- * The layerci build ID. This value is set by certain CI/CD systems.
3727
- *
3728
- * @readonly
3729
- * @category node
3730
- */
3731
- readonly LAYERCI?: string;
3732
- /**
3733
- * The magnum build ID. This value is set by certain CI/CD systems.
3734
- *
3735
- * @readonly
3736
- * @category node
3737
- */
3738
- readonly MAGNUM?: string;
3739
- /**
3740
- * The netlify build ID. This value is set by certain CI/CD systems.
3741
- *
3742
- * @readonly
3743
- * @category node
3744
- */
3745
- readonly NETLIFY?: string;
3746
- /**
3747
- * The nevercode build ID. This value is set by certain CI/CD systems.
3748
- *
3749
- * @readonly
3750
- * @category node
3751
- */
3752
- readonly NEVERCODE?: string;
3753
- /**
3754
- * The prow job ID. This value is set by certain CI/CD systems.
3755
- *
3756
- * @readonly
3757
- * @category node
3758
- */
3759
- readonly PROW_JOB_ID?: string;
3760
- /**
3761
- * The release build ID. This value is set by certain CI/CD systems.
3762
- *
3763
- * @readonly
3764
- * @category node
3765
- */
3766
- readonly RELEASE_BUILD_ID?: string;
3767
- /**
3768
- * The render build ID. This value is set by certain CI/CD systems.
3769
- *
3770
- * @readonly
3771
- * @category node
3772
- */
3773
- readonly RENDER?: string;
3774
- /**
3775
- * The sailci build ID. This value is set by certain CI/CD systems.
3776
- *
3777
- * @readonly
3778
- * @category node
3779
- */
3780
- readonly SAILCI?: string;
3781
- /**
3782
- * The hudson build ID. This value is set by certain CI/CD systems.
3783
- *
3784
- * @readonly
3785
- * @category node
3786
- */
3787
- readonly HUDSON?: string;
3788
- /**
3789
- * The screwdriver build ID. This value is set by certain CI/CD systems.
3790
- *
3791
- * @readonly
3792
- * @category node
3793
- */
3794
- readonly SCREWDRIVER?: string;
3795
- /**
3796
- * The semaphore build ID. This value is set by certain CI/CD systems.
3797
- *
3798
- * @readonly
3799
- * @category node
3800
- */
3801
- readonly SEMAPHORE?: string;
3802
- /**
3803
- * The sourcehut build ID. This value is set by certain CI/CD systems.
3804
- *
3805
- * @readonly
3806
- * @category node
3807
- */
3808
- readonly SOURCEHUT?: string;
3809
- /**
3810
- * The spaceship build ID. This value is set by certain CI/CD systems.
3811
- *
3812
- * @readonly
3813
- * @category node
3814
- */
3815
- readonly SPACESHIP_CI?: string;
3816
- /**
3817
- * The strider build ID. This value is set by certain CI/CD systems.
3818
- *
3819
- * @readonly
3820
- * @category node
3821
- */
3822
- readonly STRIDER?: string;
3823
- /**
3824
- * The task ID. This value is set by certain CI/CD systems.
3825
- *
3826
- * @readonly
3827
- * @category node
3828
- */
3829
- readonly TASK_ID?: string;
3830
- /**
3831
- * The teamcity version. This value is set by certain CI/CD systems.
3832
- *
3833
- * @readonly
3834
- * @category node
3835
- */
3836
- readonly TEAMCITY_VERSION?: string;
3837
- /**
3838
- * The travis build ID. This value is set by certain CI/CD systems.
3839
- *
3840
- * @readonly
3841
- * @category node
3842
- */
3843
- readonly TRAVIS?: string;
3844
- /**
3845
- * The vela build ID. This value is set by certain CI/CD systems.
3846
- *
3847
- * @readonly
3848
- * @category node
3849
- */
3850
- readonly VELA?: string;
3851
- /**
3852
- * The now builder build ID. This value is set by certain CI/CD systems.
3853
- *
3854
- * @readonly
3855
- * @category node
3856
- */
3857
- readonly NOW_BUILDER?: string;
3858
- /**
3859
- * The appcenter build ID. This value is set by certain CI/CD systems.
3860
- *
3861
- * @readonly
3862
- * @category node
3863
- */
3864
- readonly APPCENTER_BUILD_ID?: string;
3865
- /**
3866
- * The xcode project build ID. This value is set by certain CI/CD systems.
3867
- *
3868
- * @readonly
3869
- * @category node
3870
- */
3871
- readonly CI_XCODE_PROJECT?: string;
3872
- /**
3873
- * The xcode server build ID. This value is set by certain CI/CD systems.
3874
- *
3875
- * @readonly
3876
- * @category node
3877
- */
3878
- readonly XCS?: string;
3879
- /**
3880
- * The application's runtime data directory.
3881
- *
3882
- * @remarks
3883
- * This variable is used to override the base path of the system's local application data directory. This variable is used to set the \`$storm.paths.data\` property.
3884
- *
3885
- * @title Data Directory
3886
- * @category node
3887
- */
3888
- DATA_DIR?: string;
3889
- /**
3890
- * The application's configuration data directory.
3891
- *
3892
- * @remarks
3893
- * This variable is used to override the base path of the system's local application configuration directory. This variable is used to set the \`$storm.paths.config\` property.
3894
- *
3895
- * @title Configuration Directory
3896
- * @category node
3897
- */
3898
- CONFIG_DIR?: string;
3899
- /**
3900
- * The application's cached data directory.
3901
- *
3902
- * @remarks
3903
- * This variable is used to override the base path of the system's local cache data directory. This variable is used to set the \`$storm.paths.cache\` property.
3904
- *
3905
- * @title Cache Directory
3906
- * @category node
3907
- */
3908
- CACHE_DIR?: string;
3909
- /**
3910
- * The application's logging directory.
3911
- *
3912
- * @remarks
3913
- * This variable is used to override the base path of the system's local application log directory. This variable is used to set the \`$storm.paths.log\` property.
3914
- *
3915
- * @title Log Directory
3916
- * @category node
3917
- */
3918
- LOG_DIR?: string;
3919
- /**
3920
- * The application's temporary data directory.
3921
- *
3922
- * @remarks
3923
- * This variable is used to override the base path of the system's local temporary data directory. This variable is used to set the \`$storm.paths.temp\` property.
3924
- *
3925
- * @title Temporary Directory
3926
- * @category node
3927
- */
3928
- TEMP_DIR?: string;
3929
- /**
3930
- * A variable that specifies the current user's local application data directory on Windows.
3931
- *
3932
- * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html
3933
- *
3934
- * @remarks
3935
- * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \`$storm.paths.data\`, \`$storm.paths.cache\`, and \`$storm.paths.log\` properties.
3936
- *
3937
- * @readonly
3938
- * @category node
3939
- */
3940
- readonly LOCALAPPDATA?: string;
3941
- /**
3942
- * A variable that specifies the application data directory on Windows.
3943
- *
3944
- * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html
3945
- *
3946
- * @remarks
3947
- * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \`$storm.paths.config\` property.
3948
- *
3949
- * @readonly
3950
- * @category node
3951
- */
3952
- readonly APPDATA?: string;
3953
- /**
3954
- * A variable that specifies the data path in the home directory on Linux systems using the XDG base directory specification.
3955
- *
3956
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3957
- *
3958
- * @remarks
3959
- * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \`$storm.paths.data\` property.
3960
- *
3961
- * @readonly
3962
- * @category node
3963
- */
3964
- readonly XDG_DATA_HOME?: string;
3965
- /**
3966
- * A variable that specifies the configuration path in the home directory on Linux systems using the XDG base directory specification.
3967
- *
3968
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3969
- *
3970
- * @remarks
3971
- * This variable is used to specify a path to configuration data that is specific to the current user. This variable can be used to set the \`$storm.paths.config\` property.
3972
- *
3973
- * @readonly
3974
- * @category node
3975
- */
3976
- readonly XDG_CONFIG_HOME?: string;
3977
- /**
3978
- * A variable that specifies the cache path in the home directory on Linux systems using the XDG base directory specification.
3979
- *
3980
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3981
- *
3982
- * @remarks
3983
- * This variable is used to specify a path to cache data that is specific to the current user. This variable can be used to set the \`$storm.paths.cache\` property.
3984
- *
3985
- * @readonly
3986
- * @category node
3987
- */
3988
- readonly XDG_CACHE_HOME?: string;
3989
- /**
3990
- * A variable that specifies the state directory on Linux systems using the XDG base directory specification.
3991
- *
3992
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3993
- *
3994
- * @remarks
3995
- * This variable is used to specify a path to application state data that is specific to the current user. This variable can be used to set the \`$storm.paths.state\` property.
3996
- *
3997
- * @readonly
3998
- * @category node
3999
- */
4000
- readonly XDG_STATE_HOME?: string;
4001
- /**
4002
- * A variable that specifies the runtime directory on Linux systems using the XDG base directory specification.
4003
- *
4004
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
4005
- *
4006
- * @remarks
4007
- * This variable is used to specify a path to runtime data that is specific to the current user. This variable can be used to set the \`$storm.paths.temp\` property.
4008
- *
4009
- * @readonly
4010
- * @category node
4011
- */
4012
- readonly XDG_RUNTIME_DIR?: string;
4013
- /**
4014
- * A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.
4015
- *
4016
- * @see https://devenv.sh/files-and-variables/#devenv_dotfile
4017
- * @see https://nixos.org/
4018
- *
4019
- * @remarks
4020
- * This variable is used to specify a path to application data that is specific to the current [Nix](https://nixos.org/) environment. This variable can be used to set the \`$storm.paths.temp\` property.
4021
- *
4022
- * @category node
4023
- */
4024
- DEVENV_RUNTIME?: string;
4025
- }
4026
- /**
4027
- * The base secrets configuration used by Powerlines applications
4028
- *
4029
- * @remarks
4030
- * This interface is used to define the secret configuration options used by Powerlines applications. It is used to provide type safety, autocompletion, and default values for the environment variables. The comments of each variable are used to provide documentation descriptions when running the \`storm docs\` command. Since these are secrets, no default values should be provided and the values should be kept confidential (excluded from the client).
4031
- */
4032
- interface SecretsInterface {
4033
- /**
4034
- * The secret key used for encryption and decryption.
4035
- *
4036
- * @remarks
4037
- * This variable is used to provide a secret key for encryption and decryption of sensitive data. It is important that this value is kept confidential and not exposed in client-side code or public repositories.
4038
- *
4039
- * @title Encryption Key
4040
- */
4041
- ENCRYPTION_KEY: string;
4042
- }
4043
- //#endregion
4044
- //#region ../plugin-env/src/types/plugin.d.ts
4045
- type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
4046
- /**
4047
- * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
4048
- */
4049
- types?: TypeDefinitionParameter;
4050
- /**
4051
- * A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
4052
- */
4053
- secrets?: TypeDefinitionParameter;
4054
- /**
4055
- * An additional prefix (or list of additional prefixes) to apply to the environment variables
4056
- *
4057
- * @remarks
4058
- * By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
4059
- */
4060
- prefix?: string | string[];
4061
- /**
4062
- * Should the plugin inject the env variables in the source code with their values?
4063
- *
4064
- * @remarks
4065
- * This option is set to `true` when building an application project.
4066
- *
4067
- * @defaultValue false
4068
- */
4069
- inject?: boolean;
4070
- /**
4071
- * The default configuration to use when loading environment variables.
4072
- *
4073
- * @remarks
4074
- * This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
4075
- */
4076
- defaultConfig?: Children;
4077
- /**
4078
- * Babel configuration options to use when injecting environment variables into the source code.
4079
- *
4080
- * @remarks
4081
- * This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
4082
- */
4083
- babel?: BabelPluginOptions;
4084
- };
4085
- type EnvPluginUserConfig = BabelPluginUserConfig & {
4086
- env: EnvPluginOptions;
4087
- };
4088
- type EnvPluginResolvedConfig = BabelPluginResolvedConfig & {
4089
- env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
4090
- /**
4091
- * The type definition for the expected env variable parameters
4092
- *
4093
- * @remarks
4094
- * This value is parsed from the {@link EnvPluginOptions.types} option.
4095
- */
4096
- types: TypeDefinition;
4097
- /**
4098
- * The type definition for the expected env secret parameters
4099
- *
4100
- * @remarks
4101
- * This value is parsed from the {@link EnvPluginOptions.secrets} option.
4102
- */
4103
- secrets: TypeDefinition;
4104
- /**
4105
- * Should the plugin inject the env variables in the source code with their values?
4106
- *
4107
- * @remarks
4108
- * This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
4109
- */
4110
- inject: EnvPluginOptions["inject"];
4111
- /**
4112
- * The prefix used for environment variables
4113
- *
4114
- * @remarks
4115
- * This value is used to filter environment variables that are loaded from the .env file and the process environment.
4116
- */
4117
- prefix: string[];
4118
- };
4119
- };
4120
- interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig> {
4121
- env: {
4122
- /**
4123
- * The type definitions reflection for the env variables and secrets
4124
- *
4125
- * @remarks
4126
- * These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
4127
- */
4128
- types: {
4129
- /**
4130
- * The type definitions for the expected env variables
4131
- */
4132
- env: Reflection;
4133
- /**
4134
- * The type definitions for the expected env secrets
4135
- */
4136
- secrets: Reflection;
4137
- };
4138
- /**
4139
- * The current **used** environment variables and secrets reflection
4140
- *
4141
- * @remarks
4142
- * This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
4143
- */
4144
- used: {
4145
- /**
4146
- * The current env variables reflection
4147
- */
4148
- env: Reflection<EnvInterface>;
4149
- /**
4150
- * The current env secrets reflection
4151
- */
4152
- secrets: Reflection<SecretsInterface>;
4153
- };
4154
- /**
4155
- * The parsed .env configuration object
4156
- *
4157
- * @remarks
4158
- * This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
4159
- */
4160
- parsed: DotenvParseOutput;
4161
- /**
4162
- * The injected environment variables and secrets reflection
4163
- *
4164
- * @remarks
4165
- * This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
4166
- */
4167
- injected: Reflection;
4168
- };
4169
- }
4170
- //#endregion
4171
- //#region src/types/plugin.d.ts
4172
- type DateLibraryType = "date-fns" | "dayjs" | "luxon" | "moment";
4173
- interface DatePluginOptions {
4174
- /**
4175
- * The type of date library to use
4176
- *
4177
- * @remarks
4178
- * This value is used to determine which date library to use for date manipulation. It can be one of the following:
4179
- * - [date-fns](https://date-fns.org/)
4180
- * - [dayjs](https://day.js.org/)
4181
- * - [luxon](https://moment.github.io/luxon/)
4182
- * - [moment](https://momentjs.com/)
4183
- *
4184
- * @defaultValue "date-fns"
4185
- */
4186
- type?: DateLibraryType;
4187
- /**
4188
- * Options for the Env plugin.
4189
- */
4190
- env?: EnvPluginOptions;
4191
- }
4192
- interface DatePluginUserConfig extends EnvPluginUserConfig {
4193
- /**
4194
- * Options for the date plugin.
4195
- */
4196
- date?: Omit<DatePluginOptions, "env">;
4197
- }
4198
- interface DatePluginResolvedConfig extends EnvPluginResolvedConfig {
4199
- /**
4200
- * Options for the date plugin.
4201
- */
4202
- date: Required<Omit<DatePluginOptions, "env">>;
4203
- }
4204
- type DatePluginContext<TResolvedConfig extends DatePluginResolvedConfig = DatePluginResolvedConfig> = EnvPluginContext<TResolvedConfig>;
4205
- declare type __ΩDateLibraryType = any[];
4206
- declare type __ΩDatePluginOptions = any[];
4207
- declare type __ΩDatePluginUserConfig = any[];
4208
- declare type __ΩDatePluginResolvedConfig = any[];
4209
- declare type __ΩDatePluginContext = any[];
4210
- //#endregion
4211
- export { DatePluginUserConfig as a, __ΩDatePluginOptions as c, Plugin as d, DatePluginResolvedConfig as i, __ΩDatePluginResolvedConfig as l, DatePluginContext as n, __ΩDateLibraryType as o, DatePluginOptions as r, __ΩDatePluginContext as s, DateLibraryType as t, __ΩDatePluginUserConfig as u };