@powerlines/plugin-date 0.12.140 → 0.12.142

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