@powerlines/plugin-env 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/package.json +9 -9
  2. package/dist/babel/index.cjs +0 -1
  3. package/dist/babel/index.d.cts +0 -28
  4. package/dist/babel/index.d.ts +0 -28
  5. package/dist/babel/index.js +0 -1
  6. package/dist/babel/plugin.cjs +0 -19
  7. package/dist/babel/plugin.d.cts +0 -31
  8. package/dist/babel/plugin.d.ts +0 -31
  9. package/dist/babel/plugin.js +0 -19
  10. package/dist/chunk-FBBMZ4NC.cjs +0 -7
  11. package/dist/chunk-UCUR73HG.js +0 -7
  12. package/dist/components/env.cjs +0 -40
  13. package/dist/components/env.d.cts +0 -106
  14. package/dist/components/env.d.ts +0 -106
  15. package/dist/components/env.js +0 -40
  16. package/dist/components/index.cjs +0 -1
  17. package/dist/components/index.d.cts +0 -9
  18. package/dist/components/index.d.ts +0 -9
  19. package/dist/components/index.js +0 -1
  20. package/dist/helpers/index.cjs +0 -1
  21. package/dist/helpers/index.d.cts +0 -32
  22. package/dist/helpers/index.d.ts +0 -32
  23. package/dist/helpers/index.js +0 -1
  24. package/dist/helpers/load.cjs +0 -7
  25. package/dist/helpers/load.d.cts +0 -57
  26. package/dist/helpers/load.d.ts +0 -57
  27. package/dist/helpers/load.js +0 -7
  28. package/dist/helpers/persistence.cjs +0 -7
  29. package/dist/helpers/persistence.d.cts +0 -98
  30. package/dist/helpers/persistence.d.ts +0 -98
  31. package/dist/helpers/persistence.js +0 -7
  32. package/dist/helpers/reflect.cjs +0 -7
  33. package/dist/helpers/reflect.d.cts +0 -70
  34. package/dist/helpers/reflect.d.ts +0 -70
  35. package/dist/helpers/reflect.js +0 -7
  36. package/dist/helpers/source-file-env.cjs +0 -7
  37. package/dist/helpers/source-file-env.d.cts +0 -7
  38. package/dist/helpers/source-file-env.d.ts +0 -7
  39. package/dist/helpers/source-file-env.js +0 -7
  40. package/dist/helpers/template-helpers.cjs +0 -7
  41. package/dist/helpers/template-helpers.d.cts +0 -38
  42. package/dist/helpers/template-helpers.d.ts +0 -38
  43. package/dist/helpers/template-helpers.js +0 -7
  44. package/dist/index.cjs +0 -22
  45. package/dist/index.d.cts +0 -76
  46. package/dist/index.d.ts +0 -76
  47. package/dist/index.js +0 -22
  48. package/dist/runtime-2DL8LKdD.d.cts +0 -3294
  49. package/dist/runtime-Cij6nHdf.d.ts +0 -3294
  50. package/dist/types/index.cjs +0 -1
  51. package/dist/types/index.d.cts +0 -27
  52. package/dist/types/index.d.ts +0 -27
  53. package/dist/types/index.js +0 -1
  54. package/dist/types/plugin.cjs +0 -1
  55. package/dist/types/plugin.d.cts +0 -169
  56. package/dist/types/plugin.d.ts +0 -169
  57. package/dist/types/plugin.js +0 -0
  58. package/dist/types/runtime.cjs +0 -1
  59. package/dist/types/runtime.d.cts +0 -24
  60. package/dist/types/runtime.d.ts +0 -24
  61. package/dist/types/runtime.js +0 -0
  62. package/dist/vfs-COoZkq8D.d.cts +0 -358
  63. package/dist/vfs-COoZkq8D.d.ts +0 -358
@@ -1,3294 +0,0 @@
1
- import { EnvPaths } from '@stryke/env/get-env-paths';
2
- import { PackageJson } from '@stryke/types/package-json';
3
- import { Jiti } from 'jiti';
4
- import { ReflectionClass } from '@deepkit/type';
5
- import { Range } from 'semver';
6
- import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
7
- import * as $ from '@stryke/capnp';
8
- import { LogLevelLabel } from '@storm-software/config-tools/types';
9
- import { MaybePromise, FunctionLike, NonUndefined } from '@stryke/types/base';
10
- import { TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
11
- import { AssetGlob } from '@stryke/types/file';
12
- import { PreviewOptions, ResolvedPreviewOptions } from 'vite';
13
- import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
14
- import { Format } from '@storm-software/build-tools/types';
15
- import { StormWorkspaceConfig } from '@storm-software/config/types';
16
- import { BabelAPI } from '@babel/helper-plugin-utils';
17
- import { ArrayValues } from '@stryke/types/array';
18
- import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
19
- import ts from 'typescript';
20
- import { O as OutputModeType, V as VirtualFileSystemInterface } from './vfs-COoZkq8D.js';
21
-
22
- declare const ReflectionKind: {
23
- readonly NEVER: 0;
24
- readonly ANY: 1;
25
- readonly UNKNOWN: 2;
26
- readonly VOID: 3;
27
- readonly OBJECT: 4;
28
- readonly STRING: 5;
29
- readonly NUMBER: 6;
30
- readonly BOOLEAN: 7;
31
- readonly SYMBOL: 8;
32
- readonly BIGINT: 9;
33
- readonly NULL: 10;
34
- readonly UNDEFINED: 11;
35
- readonly REGEXP: 12;
36
- readonly LITERAL: 13;
37
- readonly TEMPLATE_LITERAL: 14;
38
- readonly PROPERTY: 15;
39
- readonly METHOD: 16;
40
- readonly FUNCTION: 17;
41
- readonly PARAMETER: 18;
42
- readonly PROMISE: 19;
43
- readonly CLASS: 20;
44
- readonly TYPE_PARAMETER: 21;
45
- readonly ENUM: 22;
46
- readonly UNION: 23;
47
- readonly INTERSECTION: 24;
48
- readonly ARRAY: 25;
49
- readonly TUPLE: 26;
50
- readonly TUPLE_MEMBER: 27;
51
- readonly ENUM_MEMBER: 28;
52
- readonly REST: 29;
53
- readonly OBJECT_LITERAL: 30;
54
- readonly INDEX_SIGNATURE: 31;
55
- readonly PROPERTY_SIGNATURE: 32;
56
- readonly METHOD_SIGNATURE: 33;
57
- readonly INFER: 34;
58
- readonly CALL_SIGNATURE: 35;
59
- };
60
- type ReflectionKind = (typeof ReflectionKind)[keyof typeof ReflectionKind];
61
- declare const ReflectionVisibility: {
62
- readonly PUBLIC: 0;
63
- readonly PROTECTED: 1;
64
- readonly PRIVATE: 2;
65
- };
66
- type ReflectionVisibility = (typeof ReflectionVisibility)[keyof typeof ReflectionVisibility];
67
- declare class TagsReflection extends $.Struct {
68
- static readonly _capnp: {
69
- displayName: string;
70
- id: string;
71
- size: $.ObjectSize;
72
- };
73
- _adoptAlias(value: $.Orphan<$.List<string>>): void;
74
- _disownAlias(): $.Orphan<$.List<string>>;
75
- get alias(): $.List<string>;
76
- _hasAlias(): boolean;
77
- _initAlias(length: number): $.List<string>;
78
- set alias(value: $.List<string>);
79
- get title(): string;
80
- set title(value: string);
81
- get hidden(): boolean;
82
- set hidden(value: boolean);
83
- get readonly(): boolean;
84
- set readonly(value: boolean);
85
- get ignore(): boolean;
86
- set ignore(value: boolean);
87
- get internal(): boolean;
88
- set internal(value: boolean);
89
- _adoptPermission(value: $.Orphan<$.List<string>>): void;
90
- _disownPermission(): $.Orphan<$.List<string>>;
91
- get permission(): $.List<string>;
92
- _hasPermission(): boolean;
93
- _initPermission(length: number): $.List<string>;
94
- set permission(value: $.List<string>);
95
- get domain(): string;
96
- set domain(value: string);
97
- toString(): string;
98
- }
99
- declare const DefaultValueReflection_Value_Which: {
100
- readonly UNDEFINED: 0;
101
- readonly BOOLEAN: 1;
102
- readonly INTEGER: 2;
103
- readonly FLOAT: 3;
104
- readonly STRING: 4;
105
- };
106
- type DefaultValueReflection_Value_Which = (typeof DefaultValueReflection_Value_Which)[keyof typeof DefaultValueReflection_Value_Which];
107
- declare class DefaultValueReflection_Value extends $.Struct {
108
- static readonly UNDEFINED: 0;
109
- static readonly BOOLEAN: 1;
110
- static readonly INTEGER: 2;
111
- static readonly FLOAT: 3;
112
- static readonly STRING: 4;
113
- static readonly _capnp: {
114
- displayName: string;
115
- id: string;
116
- size: $.ObjectSize;
117
- };
118
- get _isUndefined(): boolean;
119
- set undefined(_: true);
120
- get boolean(): boolean;
121
- get _isBoolean(): boolean;
122
- set boolean(value: boolean);
123
- get integer(): number;
124
- get _isInteger(): boolean;
125
- set integer(value: number);
126
- get float(): number;
127
- get _isFloat(): boolean;
128
- set float(value: number);
129
- get string(): string;
130
- get _isString(): boolean;
131
- set string(value: string);
132
- toString(): string;
133
- which(): DefaultValueReflection_Value_Which;
134
- }
135
- declare class DefaultValueReflection extends $.Struct {
136
- static readonly _capnp: {
137
- displayName: string;
138
- id: string;
139
- size: $.ObjectSize;
140
- };
141
- get value(): DefaultValueReflection_Value;
142
- _initValue(): DefaultValueReflection_Value;
143
- toString(): string;
144
- }
145
- declare class SerializedTypeReference extends $.Struct {
146
- static readonly _capnp: {
147
- displayName: string;
148
- id: string;
149
- size: $.ObjectSize;
150
- };
151
- get id(): number;
152
- set id(value: number);
153
- toString(): string;
154
- }
155
- declare class IndexAccessOrigin extends $.Struct {
156
- static readonly _capnp: {
157
- displayName: string;
158
- id: string;
159
- size: $.ObjectSize;
160
- };
161
- _adoptContainer(value: $.Orphan<SerializedTypeReference>): void;
162
- _disownContainer(): $.Orphan<SerializedTypeReference>;
163
- get container(): SerializedTypeReference;
164
- _hasContainer(): boolean;
165
- _initContainer(): SerializedTypeReference;
166
- set container(value: SerializedTypeReference);
167
- _adoptIndex(value: $.Orphan<SerializedTypeReference>): void;
168
- _disownIndex(): $.Orphan<SerializedTypeReference>;
169
- get index(): SerializedTypeReference;
170
- _hasIndex(): boolean;
171
- _initIndex(): SerializedTypeReference;
172
- set index(value: SerializedTypeReference);
173
- toString(): string;
174
- }
175
- declare class SerializedTypeObjectLiteral extends $.Struct {
176
- static readonly _capnp: {
177
- displayName: string;
178
- id: string;
179
- size: $.ObjectSize;
180
- };
181
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
182
- static _Decorators: $.ListCtor<SerializedTypeReference>;
183
- static _Types: $.ListCtor<SerializedTypeReference>;
184
- get typeName(): string;
185
- set typeName(value: string);
186
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
187
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
188
- get typeArguments(): $.List<SerializedTypeReference>;
189
- _hasTypeArguments(): boolean;
190
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
191
- set typeArguments(value: $.List<SerializedTypeReference>);
192
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
193
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
194
- get indexAccessOrigin(): IndexAccessOrigin;
195
- _hasIndexAccessOrigin(): boolean;
196
- _initIndexAccessOrigin(): IndexAccessOrigin;
197
- set indexAccessOrigin(value: IndexAccessOrigin);
198
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
199
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
200
- get decorators(): $.List<SerializedTypeReference>;
201
- _hasDecorators(): boolean;
202
- _initDecorators(length: number): $.List<SerializedTypeReference>;
203
- set decorators(value: $.List<SerializedTypeReference>);
204
- get kind(): ReflectionKind;
205
- set kind(value: ReflectionKind);
206
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
207
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
208
- get types(): $.List<SerializedTypeReference>;
209
- _hasTypes(): boolean;
210
- _initTypes(length: number): $.List<SerializedTypeReference>;
211
- set types(value: $.List<SerializedTypeReference>);
212
- _adoptTags(value: $.Orphan<TagsReflection>): void;
213
- _disownTags(): $.Orphan<TagsReflection>;
214
- get tags(): TagsReflection;
215
- _hasTags(): boolean;
216
- _initTags(): TagsReflection;
217
- set tags(value: TagsReflection);
218
- toString(): string;
219
- }
220
- declare class SerializedTypeClassType extends $.Struct {
221
- static readonly _capnp: {
222
- displayName: string;
223
- id: string;
224
- size: $.ObjectSize;
225
- };
226
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
227
- static _Decorators: $.ListCtor<SerializedTypeReference>;
228
- static _ExtendsArguments: $.ListCtor<SerializedTypeReference>;
229
- static _Arguments: $.ListCtor<SerializedTypeReference>;
230
- static _Types: $.ListCtor<SerializedTypeReference>;
231
- get typeName(): string;
232
- set typeName(value: string);
233
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
234
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
235
- get typeArguments(): $.List<SerializedTypeReference>;
236
- _hasTypeArguments(): boolean;
237
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
238
- set typeArguments(value: $.List<SerializedTypeReference>);
239
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
240
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
241
- get indexAccessOrigin(): IndexAccessOrigin;
242
- _hasIndexAccessOrigin(): boolean;
243
- _initIndexAccessOrigin(): IndexAccessOrigin;
244
- set indexAccessOrigin(value: IndexAccessOrigin);
245
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
246
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
247
- get decorators(): $.List<SerializedTypeReference>;
248
- _hasDecorators(): boolean;
249
- _initDecorators(length: number): $.List<SerializedTypeReference>;
250
- set decorators(value: $.List<SerializedTypeReference>);
251
- get kind(): ReflectionKind;
252
- set kind(value: ReflectionKind);
253
- get name(): string;
254
- set name(value: string);
255
- get globalObject(): boolean;
256
- set globalObject(value: boolean);
257
- get classType(): string;
258
- set classType(value: string);
259
- _adoptExtendsArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
260
- _disownExtendsArguments(): $.Orphan<$.List<SerializedTypeReference>>;
261
- get extendsArguments(): $.List<SerializedTypeReference>;
262
- _hasExtendsArguments(): boolean;
263
- _initExtendsArguments(length: number): $.List<SerializedTypeReference>;
264
- set extendsArguments(value: $.List<SerializedTypeReference>);
265
- _adoptArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
266
- _disownArguments(): $.Orphan<$.List<SerializedTypeReference>>;
267
- get arguments(): $.List<SerializedTypeReference>;
268
- _hasArguments(): boolean;
269
- _initArguments(length: number): $.List<SerializedTypeReference>;
270
- set arguments(value: $.List<SerializedTypeReference>);
271
- _adoptSuperClass(value: $.Orphan<SerializedTypeReference>): void;
272
- _disownSuperClass(): $.Orphan<SerializedTypeReference>;
273
- get superClass(): SerializedTypeReference;
274
- _hasSuperClass(): boolean;
275
- _initSuperClass(): SerializedTypeReference;
276
- set superClass(value: SerializedTypeReference);
277
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
278
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
279
- get types(): $.List<SerializedTypeReference>;
280
- _hasTypes(): boolean;
281
- _initTypes(length: number): $.List<SerializedTypeReference>;
282
- set types(value: $.List<SerializedTypeReference>);
283
- _adoptTags(value: $.Orphan<TagsReflection>): void;
284
- _disownTags(): $.Orphan<TagsReflection>;
285
- get tags(): TagsReflection;
286
- _hasTags(): boolean;
287
- _initTags(): TagsReflection;
288
- set tags(value: TagsReflection);
289
- toString(): string;
290
- }
291
- declare class SerializedTypeParameter extends $.Struct {
292
- static readonly _capnp: {
293
- displayName: string;
294
- id: string;
295
- size: $.ObjectSize;
296
- };
297
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
298
- static _Decorators: $.ListCtor<SerializedTypeReference>;
299
- get typeName(): string;
300
- set typeName(value: string);
301
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
302
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
303
- get typeArguments(): $.List<SerializedTypeReference>;
304
- _hasTypeArguments(): boolean;
305
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
306
- set typeArguments(value: $.List<SerializedTypeReference>);
307
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
308
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
309
- get indexAccessOrigin(): IndexAccessOrigin;
310
- _hasIndexAccessOrigin(): boolean;
311
- _initIndexAccessOrigin(): IndexAccessOrigin;
312
- set indexAccessOrigin(value: IndexAccessOrigin);
313
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
314
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
315
- get decorators(): $.List<SerializedTypeReference>;
316
- _hasDecorators(): boolean;
317
- _initDecorators(length: number): $.List<SerializedTypeReference>;
318
- set decorators(value: $.List<SerializedTypeReference>);
319
- get kind(): ReflectionKind;
320
- set kind(value: ReflectionKind);
321
- get name(): string;
322
- set name(value: string);
323
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
324
- _disownType(): $.Orphan<SerializedTypeReference>;
325
- get type(): SerializedTypeReference;
326
- _hasType(): boolean;
327
- _initType(): SerializedTypeReference;
328
- set type(value: SerializedTypeReference);
329
- get visibility(): ReflectionVisibility;
330
- set visibility(value: ReflectionVisibility);
331
- get readonly(): boolean;
332
- set readonly(value: boolean);
333
- get optional(): boolean;
334
- set optional(value: boolean);
335
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
336
- _disownDefault(): $.Orphan<DefaultValueReflection>;
337
- get default(): DefaultValueReflection;
338
- _hasDefault(): boolean;
339
- _initDefault(): DefaultValueReflection;
340
- set default(value: DefaultValueReflection);
341
- _adoptTags(value: $.Orphan<TagsReflection>): void;
342
- _disownTags(): $.Orphan<TagsReflection>;
343
- get tags(): TagsReflection;
344
- _hasTags(): boolean;
345
- _initTags(): TagsReflection;
346
- set tags(value: TagsReflection);
347
- toString(): string;
348
- }
349
- declare class SerializedTypeMethod extends $.Struct {
350
- static readonly _capnp: {
351
- displayName: string;
352
- id: string;
353
- size: $.ObjectSize;
354
- };
355
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
356
- static _Decorators: $.ListCtor<SerializedTypeReference>;
357
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
358
- get typeName(): string;
359
- set typeName(value: string);
360
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
361
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
362
- get typeArguments(): $.List<SerializedTypeReference>;
363
- _hasTypeArguments(): boolean;
364
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
365
- set typeArguments(value: $.List<SerializedTypeReference>);
366
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
367
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
368
- get indexAccessOrigin(): IndexAccessOrigin;
369
- _hasIndexAccessOrigin(): boolean;
370
- _initIndexAccessOrigin(): IndexAccessOrigin;
371
- set indexAccessOrigin(value: IndexAccessOrigin);
372
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
373
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
374
- get decorators(): $.List<SerializedTypeReference>;
375
- _hasDecorators(): boolean;
376
- _initDecorators(length: number): $.List<SerializedTypeReference>;
377
- set decorators(value: $.List<SerializedTypeReference>);
378
- get visibility(): ReflectionVisibility;
379
- set visibility(value: ReflectionVisibility);
380
- get abstract(): boolean;
381
- set abstract(value: boolean);
382
- get optional(): boolean;
383
- set optional(value: boolean);
384
- get readonly(): boolean;
385
- set readonly(value: boolean);
386
- _adoptTags(value: $.Orphan<TagsReflection>): void;
387
- _disownTags(): $.Orphan<TagsReflection>;
388
- get tags(): TagsReflection;
389
- _hasTags(): boolean;
390
- _initTags(): TagsReflection;
391
- set tags(value: TagsReflection);
392
- get kind(): ReflectionKind;
393
- set kind(value: ReflectionKind);
394
- get name(): string;
395
- set name(value: string);
396
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
397
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
398
- get parameters(): $.List<SerializedTypeParameter>;
399
- _hasParameters(): boolean;
400
- _initParameters(length: number): $.List<SerializedTypeParameter>;
401
- set parameters(value: $.List<SerializedTypeParameter>);
402
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
403
- _disownReturn(): $.Orphan<SerializedTypeReference>;
404
- get return(): SerializedTypeReference;
405
- _hasReturn(): boolean;
406
- _initReturn(): SerializedTypeReference;
407
- set return(value: SerializedTypeReference);
408
- toString(): string;
409
- }
410
- declare class SerializedTypeProperty extends $.Struct {
411
- static readonly _capnp: {
412
- displayName: string;
413
- id: string;
414
- size: $.ObjectSize;
415
- };
416
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
417
- static _Decorators: $.ListCtor<SerializedTypeReference>;
418
- get typeName(): string;
419
- set typeName(value: string);
420
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
421
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
422
- get typeArguments(): $.List<SerializedTypeReference>;
423
- _hasTypeArguments(): boolean;
424
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
425
- set typeArguments(value: $.List<SerializedTypeReference>);
426
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
427
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
428
- get indexAccessOrigin(): IndexAccessOrigin;
429
- _hasIndexAccessOrigin(): boolean;
430
- _initIndexAccessOrigin(): IndexAccessOrigin;
431
- set indexAccessOrigin(value: IndexAccessOrigin);
432
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
433
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
434
- get decorators(): $.List<SerializedTypeReference>;
435
- _hasDecorators(): boolean;
436
- _initDecorators(length: number): $.List<SerializedTypeReference>;
437
- set decorators(value: $.List<SerializedTypeReference>);
438
- get visibility(): ReflectionVisibility;
439
- set visibility(value: ReflectionVisibility);
440
- get abstract(): boolean;
441
- set abstract(value: boolean);
442
- get optional(): boolean;
443
- set optional(value: boolean);
444
- get readonly(): boolean;
445
- set readonly(value: boolean);
446
- _adoptTags(value: $.Orphan<TagsReflection>): void;
447
- _disownTags(): $.Orphan<TagsReflection>;
448
- get tags(): TagsReflection;
449
- _hasTags(): boolean;
450
- _initTags(): TagsReflection;
451
- set tags(value: TagsReflection);
452
- get kind(): ReflectionKind;
453
- set kind(value: ReflectionKind);
454
- get name(): string;
455
- set name(value: string);
456
- get description(): string;
457
- set description(value: string);
458
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
459
- _disownType(): $.Orphan<SerializedTypeReference>;
460
- get type(): SerializedTypeReference;
461
- _hasType(): boolean;
462
- _initType(): SerializedTypeReference;
463
- set type(value: SerializedTypeReference);
464
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
465
- _disownDefault(): $.Orphan<DefaultValueReflection>;
466
- get default(): DefaultValueReflection;
467
- _hasDefault(): boolean;
468
- _initDefault(): DefaultValueReflection;
469
- set default(value: DefaultValueReflection);
470
- toString(): string;
471
- }
472
- declare class SerializedTypeFunction extends $.Struct {
473
- static readonly _capnp: {
474
- displayName: string;
475
- id: string;
476
- size: $.ObjectSize;
477
- };
478
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
479
- static _Decorators: $.ListCtor<SerializedTypeReference>;
480
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
481
- get typeName(): string;
482
- set typeName(value: string);
483
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
484
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
485
- get typeArguments(): $.List<SerializedTypeReference>;
486
- _hasTypeArguments(): boolean;
487
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
488
- set typeArguments(value: $.List<SerializedTypeReference>);
489
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
490
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
491
- get indexAccessOrigin(): IndexAccessOrigin;
492
- _hasIndexAccessOrigin(): boolean;
493
- _initIndexAccessOrigin(): IndexAccessOrigin;
494
- set indexAccessOrigin(value: IndexAccessOrigin);
495
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
496
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
497
- get decorators(): $.List<SerializedTypeReference>;
498
- _hasDecorators(): boolean;
499
- _initDecorators(length: number): $.List<SerializedTypeReference>;
500
- set decorators(value: $.List<SerializedTypeReference>);
501
- get visibility(): ReflectionVisibility;
502
- set visibility(value: ReflectionVisibility);
503
- get abstract(): boolean;
504
- set abstract(value: boolean);
505
- get optional(): boolean;
506
- set optional(value: boolean);
507
- get readonly(): boolean;
508
- set readonly(value: boolean);
509
- _adoptTags(value: $.Orphan<TagsReflection>): void;
510
- _disownTags(): $.Orphan<TagsReflection>;
511
- get tags(): TagsReflection;
512
- _hasTags(): boolean;
513
- _initTags(): TagsReflection;
514
- set tags(value: TagsReflection);
515
- get kind(): ReflectionKind;
516
- set kind(value: ReflectionKind);
517
- get name(): string;
518
- set name(value: string);
519
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
520
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
521
- get parameters(): $.List<SerializedTypeParameter>;
522
- _hasParameters(): boolean;
523
- _initParameters(length: number): $.List<SerializedTypeParameter>;
524
- set parameters(value: $.List<SerializedTypeParameter>);
525
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
526
- _disownReturn(): $.Orphan<SerializedTypeReference>;
527
- get return(): SerializedTypeReference;
528
- _hasReturn(): boolean;
529
- _initReturn(): SerializedTypeReference;
530
- set return(value: SerializedTypeReference);
531
- toString(): string;
532
- }
533
- declare class SerializedTypePromise extends $.Struct {
534
- static readonly _capnp: {
535
- displayName: string;
536
- id: string;
537
- size: $.ObjectSize;
538
- };
539
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
540
- static _Decorators: $.ListCtor<SerializedTypeReference>;
541
- get typeName(): string;
542
- set typeName(value: string);
543
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
544
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
545
- get typeArguments(): $.List<SerializedTypeReference>;
546
- _hasTypeArguments(): boolean;
547
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
548
- set typeArguments(value: $.List<SerializedTypeReference>);
549
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
550
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
551
- get indexAccessOrigin(): IndexAccessOrigin;
552
- _hasIndexAccessOrigin(): boolean;
553
- _initIndexAccessOrigin(): IndexAccessOrigin;
554
- set indexAccessOrigin(value: IndexAccessOrigin);
555
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
556
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
557
- get decorators(): $.List<SerializedTypeReference>;
558
- _hasDecorators(): boolean;
559
- _initDecorators(length: number): $.List<SerializedTypeReference>;
560
- set decorators(value: $.List<SerializedTypeReference>);
561
- get visibility(): ReflectionVisibility;
562
- set visibility(value: ReflectionVisibility);
563
- get abstract(): boolean;
564
- set abstract(value: boolean);
565
- toString(): string;
566
- }
567
- declare class SerializedTypeEnumEntry extends $.Struct {
568
- static readonly _capnp: {
569
- displayName: string;
570
- id: string;
571
- size: $.ObjectSize;
572
- };
573
- get name(): string;
574
- set name(value: string);
575
- get value(): string;
576
- set value(value: string);
577
- toString(): string;
578
- }
579
- declare class SerializedTypeEnum extends $.Struct {
580
- static readonly _capnp: {
581
- displayName: string;
582
- id: string;
583
- size: $.ObjectSize;
584
- };
585
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
586
- static _Decorators: $.ListCtor<SerializedTypeReference>;
587
- static _EnumEntries: $.ListCtor<SerializedTypeEnumEntry>;
588
- get typeName(): string;
589
- set typeName(value: string);
590
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
591
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
592
- get typeArguments(): $.List<SerializedTypeReference>;
593
- _hasTypeArguments(): boolean;
594
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
595
- set typeArguments(value: $.List<SerializedTypeReference>);
596
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
597
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
598
- get indexAccessOrigin(): IndexAccessOrigin;
599
- _hasIndexAccessOrigin(): boolean;
600
- _initIndexAccessOrigin(): IndexAccessOrigin;
601
- set indexAccessOrigin(value: IndexAccessOrigin);
602
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
603
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
604
- get decorators(): $.List<SerializedTypeReference>;
605
- _hasDecorators(): boolean;
606
- _initDecorators(length: number): $.List<SerializedTypeReference>;
607
- set decorators(value: $.List<SerializedTypeReference>);
608
- get kind(): ReflectionKind;
609
- set kind(value: ReflectionKind);
610
- _adoptEnumEntries(value: $.Orphan<$.List<SerializedTypeEnumEntry>>): void;
611
- _disownEnumEntries(): $.Orphan<$.List<SerializedTypeEnumEntry>>;
612
- get enumEntries(): $.List<SerializedTypeEnumEntry>;
613
- _hasEnumEntries(): boolean;
614
- _initEnumEntries(length: number): $.List<SerializedTypeEnumEntry>;
615
- set enumEntries(value: $.List<SerializedTypeEnumEntry>);
616
- _adoptValues(value: $.Orphan<$.List<string>>): void;
617
- _disownValues(): $.Orphan<$.List<string>>;
618
- get values(): $.List<string>;
619
- _hasValues(): boolean;
620
- _initValues(length: number): $.List<string>;
621
- set values(value: $.List<string>);
622
- _adoptIndexType(value: $.Orphan<SerializedTypeReference>): void;
623
- _disownIndexType(): $.Orphan<SerializedTypeReference>;
624
- get indexType(): SerializedTypeReference;
625
- _hasIndexType(): boolean;
626
- _initIndexType(): SerializedTypeReference;
627
- set indexType(value: SerializedTypeReference);
628
- _adoptTags(value: $.Orphan<TagsReflection>): void;
629
- _disownTags(): $.Orphan<TagsReflection>;
630
- get tags(): TagsReflection;
631
- _hasTags(): boolean;
632
- _initTags(): TagsReflection;
633
- set tags(value: TagsReflection);
634
- toString(): string;
635
- }
636
- declare class SerializedTypeUnion extends $.Struct {
637
- static readonly _capnp: {
638
- displayName: string;
639
- id: string;
640
- size: $.ObjectSize;
641
- };
642
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
643
- static _Decorators: $.ListCtor<SerializedTypeReference>;
644
- static _Types: $.ListCtor<SerializedTypeReference>;
645
- get typeName(): string;
646
- set typeName(value: string);
647
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
648
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
649
- get typeArguments(): $.List<SerializedTypeReference>;
650
- _hasTypeArguments(): boolean;
651
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
652
- set typeArguments(value: $.List<SerializedTypeReference>);
653
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
654
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
655
- get indexAccessOrigin(): IndexAccessOrigin;
656
- _hasIndexAccessOrigin(): boolean;
657
- _initIndexAccessOrigin(): IndexAccessOrigin;
658
- set indexAccessOrigin(value: IndexAccessOrigin);
659
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
660
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
661
- get decorators(): $.List<SerializedTypeReference>;
662
- _hasDecorators(): boolean;
663
- _initDecorators(length: number): $.List<SerializedTypeReference>;
664
- set decorators(value: $.List<SerializedTypeReference>);
665
- get kind(): ReflectionKind;
666
- set kind(value: ReflectionKind);
667
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
668
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
669
- get types(): $.List<SerializedTypeReference>;
670
- _hasTypes(): boolean;
671
- _initTypes(length: number): $.List<SerializedTypeReference>;
672
- set types(value: $.List<SerializedTypeReference>);
673
- toString(): string;
674
- }
675
- declare class SerializedTypeIntersection extends $.Struct {
676
- static readonly _capnp: {
677
- displayName: string;
678
- id: string;
679
- size: $.ObjectSize;
680
- };
681
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
682
- static _Decorators: $.ListCtor<SerializedTypeReference>;
683
- static _Types: $.ListCtor<SerializedTypeReference>;
684
- get typeName(): string;
685
- set typeName(value: string);
686
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
687
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
688
- get typeArguments(): $.List<SerializedTypeReference>;
689
- _hasTypeArguments(): boolean;
690
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
691
- set typeArguments(value: $.List<SerializedTypeReference>);
692
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
693
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
694
- get indexAccessOrigin(): IndexAccessOrigin;
695
- _hasIndexAccessOrigin(): boolean;
696
- _initIndexAccessOrigin(): IndexAccessOrigin;
697
- set indexAccessOrigin(value: IndexAccessOrigin);
698
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
699
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
700
- get decorators(): $.List<SerializedTypeReference>;
701
- _hasDecorators(): boolean;
702
- _initDecorators(length: number): $.List<SerializedTypeReference>;
703
- set decorators(value: $.List<SerializedTypeReference>);
704
- get kind(): ReflectionKind;
705
- set kind(value: ReflectionKind);
706
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
707
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
708
- get types(): $.List<SerializedTypeReference>;
709
- _hasTypes(): boolean;
710
- _initTypes(length: number): $.List<SerializedTypeReference>;
711
- set types(value: $.List<SerializedTypeReference>);
712
- toString(): string;
713
- }
714
- declare class SerializedTypeArray extends $.Struct {
715
- static readonly _capnp: {
716
- displayName: string;
717
- id: string;
718
- size: $.ObjectSize;
719
- };
720
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
721
- static _Decorators: $.ListCtor<SerializedTypeReference>;
722
- get typeName(): string;
723
- set typeName(value: string);
724
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
725
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
726
- get typeArguments(): $.List<SerializedTypeReference>;
727
- _hasTypeArguments(): boolean;
728
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
729
- set typeArguments(value: $.List<SerializedTypeReference>);
730
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
731
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
732
- get indexAccessOrigin(): IndexAccessOrigin;
733
- _hasIndexAccessOrigin(): boolean;
734
- _initIndexAccessOrigin(): IndexAccessOrigin;
735
- set indexAccessOrigin(value: IndexAccessOrigin);
736
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
737
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
738
- get decorators(): $.List<SerializedTypeReference>;
739
- _hasDecorators(): boolean;
740
- _initDecorators(length: number): $.List<SerializedTypeReference>;
741
- set decorators(value: $.List<SerializedTypeReference>);
742
- get kind(): ReflectionKind;
743
- set kind(value: ReflectionKind);
744
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
745
- _disownType(): $.Orphan<SerializedTypeReference>;
746
- get type(): SerializedTypeReference;
747
- _hasType(): boolean;
748
- _initType(): SerializedTypeReference;
749
- set type(value: SerializedTypeReference);
750
- _adoptTags(value: $.Orphan<TagsReflection>): void;
751
- _disownTags(): $.Orphan<TagsReflection>;
752
- get tags(): TagsReflection;
753
- _hasTags(): boolean;
754
- _initTags(): TagsReflection;
755
- set tags(value: TagsReflection);
756
- toString(): string;
757
- }
758
- declare class SerializedTypeIndexSignature extends $.Struct {
759
- static readonly _capnp: {
760
- displayName: string;
761
- id: string;
762
- size: $.ObjectSize;
763
- };
764
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
765
- static _Decorators: $.ListCtor<SerializedTypeReference>;
766
- get typeName(): string;
767
- set typeName(value: string);
768
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
769
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
770
- get typeArguments(): $.List<SerializedTypeReference>;
771
- _hasTypeArguments(): boolean;
772
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
773
- set typeArguments(value: $.List<SerializedTypeReference>);
774
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
775
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
776
- get indexAccessOrigin(): IndexAccessOrigin;
777
- _hasIndexAccessOrigin(): boolean;
778
- _initIndexAccessOrigin(): IndexAccessOrigin;
779
- set indexAccessOrigin(value: IndexAccessOrigin);
780
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
781
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
782
- get decorators(): $.List<SerializedTypeReference>;
783
- _hasDecorators(): boolean;
784
- _initDecorators(length: number): $.List<SerializedTypeReference>;
785
- set decorators(value: $.List<SerializedTypeReference>);
786
- get kind(): ReflectionKind;
787
- set kind(value: ReflectionKind);
788
- _adoptIndex(value: $.Orphan<SerializedTypeReference>): void;
789
- _disownIndex(): $.Orphan<SerializedTypeReference>;
790
- get index(): SerializedTypeReference;
791
- _hasIndex(): boolean;
792
- _initIndex(): SerializedTypeReference;
793
- set index(value: SerializedTypeReference);
794
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
795
- _disownType(): $.Orphan<SerializedTypeReference>;
796
- get type(): SerializedTypeReference;
797
- _hasType(): boolean;
798
- _initType(): SerializedTypeReference;
799
- set type(value: SerializedTypeReference);
800
- toString(): string;
801
- }
802
- declare class SerializedTypePropertySignature extends $.Struct {
803
- static readonly _capnp: {
804
- displayName: string;
805
- id: string;
806
- size: $.ObjectSize;
807
- };
808
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
809
- static _Decorators: $.ListCtor<SerializedTypeReference>;
810
- get typeName(): string;
811
- set typeName(value: string);
812
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
813
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
814
- get typeArguments(): $.List<SerializedTypeReference>;
815
- _hasTypeArguments(): boolean;
816
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
817
- set typeArguments(value: $.List<SerializedTypeReference>);
818
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
819
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
820
- get indexAccessOrigin(): IndexAccessOrigin;
821
- _hasIndexAccessOrigin(): boolean;
822
- _initIndexAccessOrigin(): IndexAccessOrigin;
823
- set indexAccessOrigin(value: IndexAccessOrigin);
824
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
825
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
826
- get decorators(): $.List<SerializedTypeReference>;
827
- _hasDecorators(): boolean;
828
- _initDecorators(length: number): $.List<SerializedTypeReference>;
829
- set decorators(value: $.List<SerializedTypeReference>);
830
- get kind(): ReflectionKind;
831
- set kind(value: ReflectionKind);
832
- get name(): string;
833
- set name(value: string);
834
- get optional(): boolean;
835
- set optional(value: boolean);
836
- get readonly(): boolean;
837
- set readonly(value: boolean);
838
- get description(): string;
839
- set description(value: string);
840
- _adoptDefault(value: $.Orphan<DefaultValueReflection>): void;
841
- _disownDefault(): $.Orphan<DefaultValueReflection>;
842
- get default(): DefaultValueReflection;
843
- _hasDefault(): boolean;
844
- _initDefault(): DefaultValueReflection;
845
- set default(value: DefaultValueReflection);
846
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
847
- _disownType(): $.Orphan<SerializedTypeReference>;
848
- get type(): SerializedTypeReference;
849
- _hasType(): boolean;
850
- _initType(): SerializedTypeReference;
851
- set type(value: SerializedTypeReference);
852
- _adoptTags(value: $.Orphan<TagsReflection>): void;
853
- _disownTags(): $.Orphan<TagsReflection>;
854
- get tags(): TagsReflection;
855
- _hasTags(): boolean;
856
- _initTags(): TagsReflection;
857
- set tags(value: TagsReflection);
858
- toString(): string;
859
- }
860
- declare class SerializedTypeMethodSignature extends $.Struct {
861
- static readonly _capnp: {
862
- displayName: string;
863
- id: string;
864
- size: $.ObjectSize;
865
- };
866
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
867
- static _Decorators: $.ListCtor<SerializedTypeReference>;
868
- static _Parameters: $.ListCtor<SerializedTypeParameter>;
869
- get typeName(): string;
870
- set typeName(value: string);
871
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
872
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
873
- get typeArguments(): $.List<SerializedTypeReference>;
874
- _hasTypeArguments(): boolean;
875
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
876
- set typeArguments(value: $.List<SerializedTypeReference>);
877
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
878
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
879
- get indexAccessOrigin(): IndexAccessOrigin;
880
- _hasIndexAccessOrigin(): boolean;
881
- _initIndexAccessOrigin(): IndexAccessOrigin;
882
- set indexAccessOrigin(value: IndexAccessOrigin);
883
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
884
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
885
- get decorators(): $.List<SerializedTypeReference>;
886
- _hasDecorators(): boolean;
887
- _initDecorators(length: number): $.List<SerializedTypeReference>;
888
- set decorators(value: $.List<SerializedTypeReference>);
889
- get kind(): ReflectionKind;
890
- set kind(value: ReflectionKind);
891
- get name(): string;
892
- set name(value: string);
893
- get optional(): boolean;
894
- set optional(value: boolean);
895
- _adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
896
- _disownParameters(): $.Orphan<$.List<SerializedTypeParameter>>;
897
- get parameters(): $.List<SerializedTypeParameter>;
898
- _hasParameters(): boolean;
899
- _initParameters(length: number): $.List<SerializedTypeParameter>;
900
- set parameters(value: $.List<SerializedTypeParameter>);
901
- _adoptReturn(value: $.Orphan<SerializedTypeReference>): void;
902
- _disownReturn(): $.Orphan<SerializedTypeReference>;
903
- get return(): SerializedTypeReference;
904
- _hasReturn(): boolean;
905
- _initReturn(): SerializedTypeReference;
906
- set return(value: SerializedTypeReference);
907
- _adoptTags(value: $.Orphan<TagsReflection>): void;
908
- _disownTags(): $.Orphan<TagsReflection>;
909
- get tags(): TagsReflection;
910
- _hasTags(): boolean;
911
- _initTags(): TagsReflection;
912
- set tags(value: TagsReflection);
913
- toString(): string;
914
- }
915
- declare class SerializedTypeTypeParameter extends $.Struct {
916
- static readonly _capnp: {
917
- displayName: string;
918
- id: string;
919
- size: $.ObjectSize;
920
- };
921
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
922
- static _Decorators: $.ListCtor<SerializedTypeReference>;
923
- get typeName(): string;
924
- set typeName(value: string);
925
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
926
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
927
- get typeArguments(): $.List<SerializedTypeReference>;
928
- _hasTypeArguments(): boolean;
929
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
930
- set typeArguments(value: $.List<SerializedTypeReference>);
931
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
932
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
933
- get indexAccessOrigin(): IndexAccessOrigin;
934
- _hasIndexAccessOrigin(): boolean;
935
- _initIndexAccessOrigin(): IndexAccessOrigin;
936
- set indexAccessOrigin(value: IndexAccessOrigin);
937
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
938
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
939
- get decorators(): $.List<SerializedTypeReference>;
940
- _hasDecorators(): boolean;
941
- _initDecorators(length: number): $.List<SerializedTypeReference>;
942
- set decorators(value: $.List<SerializedTypeReference>);
943
- get kind(): ReflectionKind;
944
- set kind(value: ReflectionKind);
945
- get name(): string;
946
- set name(value: string);
947
- toString(): string;
948
- }
949
- declare class SerializedTypeInfer extends $.Struct {
950
- static readonly _capnp: {
951
- displayName: string;
952
- id: string;
953
- size: $.ObjectSize;
954
- };
955
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
956
- static _Decorators: $.ListCtor<SerializedTypeReference>;
957
- get typeName(): string;
958
- set typeName(value: string);
959
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
960
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
961
- get typeArguments(): $.List<SerializedTypeReference>;
962
- _hasTypeArguments(): boolean;
963
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
964
- set typeArguments(value: $.List<SerializedTypeReference>);
965
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
966
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
967
- get indexAccessOrigin(): IndexAccessOrigin;
968
- _hasIndexAccessOrigin(): boolean;
969
- _initIndexAccessOrigin(): IndexAccessOrigin;
970
- set indexAccessOrigin(value: IndexAccessOrigin);
971
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
972
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
973
- get decorators(): $.List<SerializedTypeReference>;
974
- _hasDecorators(): boolean;
975
- _initDecorators(length: number): $.List<SerializedTypeReference>;
976
- set decorators(value: $.List<SerializedTypeReference>);
977
- get kind(): ReflectionKind;
978
- set kind(value: ReflectionKind);
979
- toString(): string;
980
- }
981
- declare class SerializedTypeTupleMember extends $.Struct {
982
- static readonly _capnp: {
983
- displayName: string;
984
- id: string;
985
- size: $.ObjectSize;
986
- };
987
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
988
- static _Decorators: $.ListCtor<SerializedTypeReference>;
989
- get typeName(): string;
990
- set typeName(value: string);
991
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
992
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
993
- get typeArguments(): $.List<SerializedTypeReference>;
994
- _hasTypeArguments(): boolean;
995
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
996
- set typeArguments(value: $.List<SerializedTypeReference>);
997
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
998
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
999
- get indexAccessOrigin(): IndexAccessOrigin;
1000
- _hasIndexAccessOrigin(): boolean;
1001
- _initIndexAccessOrigin(): IndexAccessOrigin;
1002
- set indexAccessOrigin(value: IndexAccessOrigin);
1003
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1004
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1005
- get decorators(): $.List<SerializedTypeReference>;
1006
- _hasDecorators(): boolean;
1007
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1008
- set decorators(value: $.List<SerializedTypeReference>);
1009
- get kind(): ReflectionKind;
1010
- set kind(value: ReflectionKind);
1011
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
1012
- _disownType(): $.Orphan<SerializedTypeReference>;
1013
- get type(): SerializedTypeReference;
1014
- _hasType(): boolean;
1015
- _initType(): SerializedTypeReference;
1016
- set type(value: SerializedTypeReference);
1017
- get optional(): boolean;
1018
- set optional(value: boolean);
1019
- get name(): string;
1020
- set name(value: string);
1021
- toString(): string;
1022
- }
1023
- declare class SerializedTypeTuple extends $.Struct {
1024
- static readonly _capnp: {
1025
- displayName: string;
1026
- id: string;
1027
- size: $.ObjectSize;
1028
- };
1029
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1030
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1031
- static _Types: $.ListCtor<SerializedTypeTupleMember>;
1032
- get typeName(): string;
1033
- set typeName(value: string);
1034
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1035
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1036
- get typeArguments(): $.List<SerializedTypeReference>;
1037
- _hasTypeArguments(): boolean;
1038
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1039
- set typeArguments(value: $.List<SerializedTypeReference>);
1040
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1041
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1042
- get indexAccessOrigin(): IndexAccessOrigin;
1043
- _hasIndexAccessOrigin(): boolean;
1044
- _initIndexAccessOrigin(): IndexAccessOrigin;
1045
- set indexAccessOrigin(value: IndexAccessOrigin);
1046
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1047
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1048
- get decorators(): $.List<SerializedTypeReference>;
1049
- _hasDecorators(): boolean;
1050
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1051
- set decorators(value: $.List<SerializedTypeReference>);
1052
- get kind(): ReflectionKind;
1053
- set kind(value: ReflectionKind);
1054
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeTupleMember>>): void;
1055
- _disownTypes(): $.Orphan<$.List<SerializedTypeTupleMember>>;
1056
- get types(): $.List<SerializedTypeTupleMember>;
1057
- _hasTypes(): boolean;
1058
- _initTypes(length: number): $.List<SerializedTypeTupleMember>;
1059
- set types(value: $.List<SerializedTypeTupleMember>);
1060
- toString(): string;
1061
- }
1062
- declare class SerializedTypeRest extends $.Struct {
1063
- static readonly _capnp: {
1064
- displayName: string;
1065
- id: string;
1066
- size: $.ObjectSize;
1067
- };
1068
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1069
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1070
- get typeName(): string;
1071
- set typeName(value: string);
1072
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1073
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1074
- get typeArguments(): $.List<SerializedTypeReference>;
1075
- _hasTypeArguments(): boolean;
1076
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1077
- set typeArguments(value: $.List<SerializedTypeReference>);
1078
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1079
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1080
- get indexAccessOrigin(): IndexAccessOrigin;
1081
- _hasIndexAccessOrigin(): boolean;
1082
- _initIndexAccessOrigin(): IndexAccessOrigin;
1083
- set indexAccessOrigin(value: IndexAccessOrigin);
1084
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1085
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1086
- get decorators(): $.List<SerializedTypeReference>;
1087
- _hasDecorators(): boolean;
1088
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1089
- set decorators(value: $.List<SerializedTypeReference>);
1090
- get kind(): ReflectionKind;
1091
- set kind(value: ReflectionKind);
1092
- _adoptType(value: $.Orphan<SerializedTypeReference>): void;
1093
- _disownType(): $.Orphan<SerializedTypeReference>;
1094
- get type(): SerializedTypeReference;
1095
- _hasType(): boolean;
1096
- _initType(): SerializedTypeReference;
1097
- set type(value: SerializedTypeReference);
1098
- toString(): string;
1099
- }
1100
- declare class SimpleSerializedType extends $.Struct {
1101
- static readonly _capnp: {
1102
- displayName: string;
1103
- id: string;
1104
- size: $.ObjectSize;
1105
- };
1106
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1107
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1108
- get typeName(): string;
1109
- set typeName(value: string);
1110
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1111
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1112
- get typeArguments(): $.List<SerializedTypeReference>;
1113
- _hasTypeArguments(): boolean;
1114
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1115
- set typeArguments(value: $.List<SerializedTypeReference>);
1116
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1117
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1118
- get indexAccessOrigin(): IndexAccessOrigin;
1119
- _hasIndexAccessOrigin(): boolean;
1120
- _initIndexAccessOrigin(): IndexAccessOrigin;
1121
- set indexAccessOrigin(value: IndexAccessOrigin);
1122
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1123
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1124
- get decorators(): $.List<SerializedTypeReference>;
1125
- _hasDecorators(): boolean;
1126
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1127
- set decorators(value: $.List<SerializedTypeReference>);
1128
- get kind(): ReflectionKind;
1129
- set kind(value: ReflectionKind);
1130
- _adoptOrigin(value: $.Orphan<SerializedTypeReference>): void;
1131
- _disownOrigin(): $.Orphan<SerializedTypeReference>;
1132
- get origin(): SerializedTypeReference;
1133
- _hasOrigin(): boolean;
1134
- _initOrigin(): SerializedTypeReference;
1135
- set origin(value: SerializedTypeReference);
1136
- toString(): string;
1137
- }
1138
- declare class SerializedTypeLiteralSymbol extends $.Struct {
1139
- static readonly _capnp: {
1140
- displayName: string;
1141
- id: string;
1142
- size: $.ObjectSize;
1143
- };
1144
- /**
1145
- * "symbol"
1146
- *
1147
- */
1148
- get type(): string;
1149
- set type(value: string);
1150
- get name(): string;
1151
- set name(value: string);
1152
- toString(): string;
1153
- }
1154
- declare class SerializedTypeLiteralBigInt extends $.Struct {
1155
- static readonly _capnp: {
1156
- displayName: string;
1157
- id: string;
1158
- size: $.ObjectSize;
1159
- };
1160
- /**
1161
- * "bigint"
1162
- *
1163
- */
1164
- get type(): string;
1165
- set type(value: string);
1166
- get value(): string;
1167
- set value(value: string);
1168
- toString(): string;
1169
- }
1170
- declare class SerializedTypeLiteralRegex extends $.Struct {
1171
- static readonly _capnp: {
1172
- displayName: string;
1173
- id: string;
1174
- size: $.ObjectSize;
1175
- };
1176
- /**
1177
- * "regex"
1178
- *
1179
- */
1180
- get type(): string;
1181
- set type(value: string);
1182
- get regex(): string;
1183
- set regex(value: string);
1184
- toString(): string;
1185
- }
1186
- declare const SerializedTypeLiteral_Literal_Which: {
1187
- readonly SYMBOL: 0;
1188
- readonly STRING: 1;
1189
- readonly NUMBER: 2;
1190
- readonly BOOLEAN: 3;
1191
- readonly BIGINT: 4;
1192
- readonly REGEX: 5;
1193
- };
1194
- type SerializedTypeLiteral_Literal_Which = (typeof SerializedTypeLiteral_Literal_Which)[keyof typeof SerializedTypeLiteral_Literal_Which];
1195
- declare class SerializedTypeLiteral_Literal extends $.Struct {
1196
- static readonly SYMBOL: 0;
1197
- static readonly STRING: 1;
1198
- static readonly NUMBER: 2;
1199
- static readonly BOOLEAN: 3;
1200
- static readonly BIGINT: 4;
1201
- static readonly REGEX: 5;
1202
- static readonly _capnp: {
1203
- displayName: string;
1204
- id: string;
1205
- size: $.ObjectSize;
1206
- };
1207
- _adoptSymbol(value: $.Orphan<SerializedTypeLiteralSymbol>): void;
1208
- _disownSymbol(): $.Orphan<SerializedTypeLiteralSymbol>;
1209
- get symbol(): SerializedTypeLiteralSymbol;
1210
- _hasSymbol(): boolean;
1211
- _initSymbol(): SerializedTypeLiteralSymbol;
1212
- get _isSymbol(): boolean;
1213
- set symbol(value: SerializedTypeLiteralSymbol);
1214
- get string(): string;
1215
- get _isString(): boolean;
1216
- set string(value: string);
1217
- get number(): number;
1218
- get _isNumber(): boolean;
1219
- set number(value: number);
1220
- get boolean(): boolean;
1221
- get _isBoolean(): boolean;
1222
- set boolean(value: boolean);
1223
- _adoptBigint(value: $.Orphan<SerializedTypeLiteralBigInt>): void;
1224
- _disownBigint(): $.Orphan<SerializedTypeLiteralBigInt>;
1225
- get bigint(): SerializedTypeLiteralBigInt;
1226
- _hasBigint(): boolean;
1227
- _initBigint(): SerializedTypeLiteralBigInt;
1228
- get _isBigint(): boolean;
1229
- set bigint(value: SerializedTypeLiteralBigInt);
1230
- _adoptRegex(value: $.Orphan<SerializedTypeLiteralRegex>): void;
1231
- _disownRegex(): $.Orphan<SerializedTypeLiteralRegex>;
1232
- get regex(): SerializedTypeLiteralRegex;
1233
- _hasRegex(): boolean;
1234
- _initRegex(): SerializedTypeLiteralRegex;
1235
- get _isRegex(): boolean;
1236
- set regex(value: SerializedTypeLiteralRegex);
1237
- toString(): string;
1238
- which(): SerializedTypeLiteral_Literal_Which;
1239
- }
1240
- declare class SerializedTypeLiteral extends $.Struct {
1241
- static readonly _capnp: {
1242
- displayName: string;
1243
- id: string;
1244
- size: $.ObjectSize;
1245
- };
1246
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1247
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1248
- get typeName(): string;
1249
- set typeName(value: string);
1250
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1251
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1252
- get typeArguments(): $.List<SerializedTypeReference>;
1253
- _hasTypeArguments(): boolean;
1254
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1255
- set typeArguments(value: $.List<SerializedTypeReference>);
1256
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1257
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1258
- get indexAccessOrigin(): IndexAccessOrigin;
1259
- _hasIndexAccessOrigin(): boolean;
1260
- _initIndexAccessOrigin(): IndexAccessOrigin;
1261
- set indexAccessOrigin(value: IndexAccessOrigin);
1262
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1263
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1264
- get decorators(): $.List<SerializedTypeReference>;
1265
- _hasDecorators(): boolean;
1266
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1267
- set decorators(value: $.List<SerializedTypeReference>);
1268
- get kind(): ReflectionKind;
1269
- set kind(value: ReflectionKind);
1270
- get literal(): SerializedTypeLiteral_Literal;
1271
- _initLiteral(): SerializedTypeLiteral_Literal;
1272
- toString(): string;
1273
- }
1274
- declare class SerializedTypeTemplateLiteral extends $.Struct {
1275
- static readonly _capnp: {
1276
- displayName: string;
1277
- id: string;
1278
- size: $.ObjectSize;
1279
- };
1280
- static _TypeArguments: $.ListCtor<SerializedTypeReference>;
1281
- static _Decorators: $.ListCtor<SerializedTypeReference>;
1282
- static _Types: $.ListCtor<SerializedTypeReference>;
1283
- get typeName(): string;
1284
- set typeName(value: string);
1285
- _adoptTypeArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1286
- _disownTypeArguments(): $.Orphan<$.List<SerializedTypeReference>>;
1287
- get typeArguments(): $.List<SerializedTypeReference>;
1288
- _hasTypeArguments(): boolean;
1289
- _initTypeArguments(length: number): $.List<SerializedTypeReference>;
1290
- set typeArguments(value: $.List<SerializedTypeReference>);
1291
- _adoptIndexAccessOrigin(value: $.Orphan<IndexAccessOrigin>): void;
1292
- _disownIndexAccessOrigin(): $.Orphan<IndexAccessOrigin>;
1293
- get indexAccessOrigin(): IndexAccessOrigin;
1294
- _hasIndexAccessOrigin(): boolean;
1295
- _initIndexAccessOrigin(): IndexAccessOrigin;
1296
- set indexAccessOrigin(value: IndexAccessOrigin);
1297
- _adoptDecorators(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1298
- _disownDecorators(): $.Orphan<$.List<SerializedTypeReference>>;
1299
- get decorators(): $.List<SerializedTypeReference>;
1300
- _hasDecorators(): boolean;
1301
- _initDecorators(length: number): $.List<SerializedTypeReference>;
1302
- set decorators(value: $.List<SerializedTypeReference>);
1303
- get kind(): ReflectionKind;
1304
- set kind(value: ReflectionKind);
1305
- _adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
1306
- _disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
1307
- get types(): $.List<SerializedTypeReference>;
1308
- _hasTypes(): boolean;
1309
- _initTypes(length: number): $.List<SerializedTypeReference>;
1310
- set types(value: $.List<SerializedTypeReference>);
1311
- toString(): string;
1312
- }
1313
- declare class SerializedTypeOther extends $.Struct {
1314
- static readonly _capnp: {
1315
- displayName: string;
1316
- id: string;
1317
- size: $.ObjectSize;
1318
- };
1319
- get typeName(): string;
1320
- set typeName(value: string);
1321
- get kind(): ReflectionKind;
1322
- set kind(value: ReflectionKind);
1323
- toString(): string;
1324
- }
1325
- declare const SerializedType_Type_Which: {
1326
- readonly SIMPLE: 0;
1327
- readonly LITERAL: 1;
1328
- readonly TEMPLATE_LITERAL: 2;
1329
- readonly PARAMETER: 3;
1330
- readonly FUNCTION: 4;
1331
- readonly METHOD: 5;
1332
- readonly PROPERTY: 6;
1333
- readonly PROMISE: 7;
1334
- readonly CLASS_TYPE: 8;
1335
- readonly ENUM: 9;
1336
- readonly UNION: 10;
1337
- readonly INTERSECTION: 11;
1338
- readonly ARRAY: 12;
1339
- readonly OBJECT_LITERAL: 13;
1340
- readonly INDEX_SIGNATURE: 14;
1341
- readonly PROPERTY_SIGNATURE: 15;
1342
- readonly METHOD_SIGNATURE: 16;
1343
- readonly TYPE_PARAMETER: 17;
1344
- readonly INFER: 18;
1345
- readonly TUPLE: 19;
1346
- readonly TUPLE_MEMBER: 20;
1347
- readonly REST: 21;
1348
- /**
1349
- * For any other type that is not explicitly defined
1350
- *
1351
- */
1352
- readonly OTHER: 22;
1353
- };
1354
- type SerializedType_Type_Which = (typeof SerializedType_Type_Which)[keyof typeof SerializedType_Type_Which];
1355
- declare class SerializedType_Type extends $.Struct {
1356
- static readonly SIMPLE: 0;
1357
- static readonly LITERAL: 1;
1358
- static readonly TEMPLATE_LITERAL: 2;
1359
- static readonly PARAMETER: 3;
1360
- static readonly FUNCTION: 4;
1361
- static readonly METHOD: 5;
1362
- static readonly PROPERTY: 6;
1363
- static readonly PROMISE: 7;
1364
- static readonly CLASS_TYPE: 8;
1365
- static readonly ENUM: 9;
1366
- static readonly UNION: 10;
1367
- static readonly INTERSECTION: 11;
1368
- static readonly ARRAY: 12;
1369
- static readonly OBJECT_LITERAL: 13;
1370
- static readonly INDEX_SIGNATURE: 14;
1371
- static readonly PROPERTY_SIGNATURE: 15;
1372
- static readonly METHOD_SIGNATURE: 16;
1373
- static readonly TYPE_PARAMETER: 17;
1374
- static readonly INFER: 18;
1375
- static readonly TUPLE: 19;
1376
- static readonly TUPLE_MEMBER: 20;
1377
- static readonly REST: 21;
1378
- static readonly OTHER: 22;
1379
- static readonly _capnp: {
1380
- displayName: string;
1381
- id: string;
1382
- size: $.ObjectSize;
1383
- };
1384
- _adoptSimple(value: $.Orphan<SimpleSerializedType>): void;
1385
- _disownSimple(): $.Orphan<SimpleSerializedType>;
1386
- get simple(): SimpleSerializedType;
1387
- _hasSimple(): boolean;
1388
- _initSimple(): SimpleSerializedType;
1389
- get _isSimple(): boolean;
1390
- set simple(value: SimpleSerializedType);
1391
- _adoptLiteral(value: $.Orphan<SerializedTypeLiteral>): void;
1392
- _disownLiteral(): $.Orphan<SerializedTypeLiteral>;
1393
- get literal(): SerializedTypeLiteral;
1394
- _hasLiteral(): boolean;
1395
- _initLiteral(): SerializedTypeLiteral;
1396
- get _isLiteral(): boolean;
1397
- set literal(value: SerializedTypeLiteral);
1398
- _adoptTemplateLiteral(value: $.Orphan<SerializedTypeTemplateLiteral>): void;
1399
- _disownTemplateLiteral(): $.Orphan<SerializedTypeTemplateLiteral>;
1400
- get templateLiteral(): SerializedTypeTemplateLiteral;
1401
- _hasTemplateLiteral(): boolean;
1402
- _initTemplateLiteral(): SerializedTypeTemplateLiteral;
1403
- get _isTemplateLiteral(): boolean;
1404
- set templateLiteral(value: SerializedTypeTemplateLiteral);
1405
- _adoptParameter(value: $.Orphan<SerializedTypeParameter>): void;
1406
- _disownParameter(): $.Orphan<SerializedTypeParameter>;
1407
- get parameter(): SerializedTypeParameter;
1408
- _hasParameter(): boolean;
1409
- _initParameter(): SerializedTypeParameter;
1410
- get _isParameter(): boolean;
1411
- set parameter(value: SerializedTypeParameter);
1412
- _adoptFunction(value: $.Orphan<SerializedTypeFunction>): void;
1413
- _disownFunction(): $.Orphan<SerializedTypeFunction>;
1414
- get function(): SerializedTypeFunction;
1415
- _hasFunction(): boolean;
1416
- _initFunction(): SerializedTypeFunction;
1417
- get _isFunction(): boolean;
1418
- set function(value: SerializedTypeFunction);
1419
- _adoptMethod(value: $.Orphan<SerializedTypeMethod>): void;
1420
- _disownMethod(): $.Orphan<SerializedTypeMethod>;
1421
- get method(): SerializedTypeMethod;
1422
- _hasMethod(): boolean;
1423
- _initMethod(): SerializedTypeMethod;
1424
- get _isMethod(): boolean;
1425
- set method(value: SerializedTypeMethod);
1426
- _adoptProperty(value: $.Orphan<SerializedTypeProperty>): void;
1427
- _disownProperty(): $.Orphan<SerializedTypeProperty>;
1428
- get property(): SerializedTypeProperty;
1429
- _hasProperty(): boolean;
1430
- _initProperty(): SerializedTypeProperty;
1431
- get _isProperty(): boolean;
1432
- set property(value: SerializedTypeProperty);
1433
- _adoptPromise(value: $.Orphan<SerializedTypePromise>): void;
1434
- _disownPromise(): $.Orphan<SerializedTypePromise>;
1435
- get promise(): SerializedTypePromise;
1436
- _hasPromise(): boolean;
1437
- _initPromise(): SerializedTypePromise;
1438
- get _isPromise(): boolean;
1439
- set promise(value: SerializedTypePromise);
1440
- _adoptClassType(value: $.Orphan<SerializedTypeClassType>): void;
1441
- _disownClassType(): $.Orphan<SerializedTypeClassType>;
1442
- get classType(): SerializedTypeClassType;
1443
- _hasClassType(): boolean;
1444
- _initClassType(): SerializedTypeClassType;
1445
- get _isClassType(): boolean;
1446
- set classType(value: SerializedTypeClassType);
1447
- _adoptEnum(value: $.Orphan<SerializedTypeEnum>): void;
1448
- _disownEnum(): $.Orphan<SerializedTypeEnum>;
1449
- get enum(): SerializedTypeEnum;
1450
- _hasEnum(): boolean;
1451
- _initEnum(): SerializedTypeEnum;
1452
- get _isEnum(): boolean;
1453
- set enum(value: SerializedTypeEnum);
1454
- _adoptUnion(value: $.Orphan<SerializedTypeUnion>): void;
1455
- _disownUnion(): $.Orphan<SerializedTypeUnion>;
1456
- get union(): SerializedTypeUnion;
1457
- _hasUnion(): boolean;
1458
- _initUnion(): SerializedTypeUnion;
1459
- get _isUnion(): boolean;
1460
- set union(value: SerializedTypeUnion);
1461
- _adoptIntersection(value: $.Orphan<SerializedTypeIntersection>): void;
1462
- _disownIntersection(): $.Orphan<SerializedTypeIntersection>;
1463
- get intersection(): SerializedTypeIntersection;
1464
- _hasIntersection(): boolean;
1465
- _initIntersection(): SerializedTypeIntersection;
1466
- get _isIntersection(): boolean;
1467
- set intersection(value: SerializedTypeIntersection);
1468
- _adoptArray(value: $.Orphan<SerializedTypeArray>): void;
1469
- _disownArray(): $.Orphan<SerializedTypeArray>;
1470
- get array(): SerializedTypeArray;
1471
- _hasArray(): boolean;
1472
- _initArray(): SerializedTypeArray;
1473
- get _isArray(): boolean;
1474
- set array(value: SerializedTypeArray);
1475
- _adoptObjectLiteral(value: $.Orphan<SerializedTypeObjectLiteral>): void;
1476
- _disownObjectLiteral(): $.Orphan<SerializedTypeObjectLiteral>;
1477
- get objectLiteral(): SerializedTypeObjectLiteral;
1478
- _hasObjectLiteral(): boolean;
1479
- _initObjectLiteral(): SerializedTypeObjectLiteral;
1480
- get _isObjectLiteral(): boolean;
1481
- set objectLiteral(value: SerializedTypeObjectLiteral);
1482
- _adoptIndexSignature(value: $.Orphan<SerializedTypeIndexSignature>): void;
1483
- _disownIndexSignature(): $.Orphan<SerializedTypeIndexSignature>;
1484
- get indexSignature(): SerializedTypeIndexSignature;
1485
- _hasIndexSignature(): boolean;
1486
- _initIndexSignature(): SerializedTypeIndexSignature;
1487
- get _isIndexSignature(): boolean;
1488
- set indexSignature(value: SerializedTypeIndexSignature);
1489
- _adoptPropertySignature(value: $.Orphan<SerializedTypePropertySignature>): void;
1490
- _disownPropertySignature(): $.Orphan<SerializedTypePropertySignature>;
1491
- get propertySignature(): SerializedTypePropertySignature;
1492
- _hasPropertySignature(): boolean;
1493
- _initPropertySignature(): SerializedTypePropertySignature;
1494
- get _isPropertySignature(): boolean;
1495
- set propertySignature(value: SerializedTypePropertySignature);
1496
- _adoptMethodSignature(value: $.Orphan<SerializedTypeMethodSignature>): void;
1497
- _disownMethodSignature(): $.Orphan<SerializedTypeMethodSignature>;
1498
- get methodSignature(): SerializedTypeMethodSignature;
1499
- _hasMethodSignature(): boolean;
1500
- _initMethodSignature(): SerializedTypeMethodSignature;
1501
- get _isMethodSignature(): boolean;
1502
- set methodSignature(value: SerializedTypeMethodSignature);
1503
- _adoptTypeParameter(value: $.Orphan<SerializedTypeTypeParameter>): void;
1504
- _disownTypeParameter(): $.Orphan<SerializedTypeTypeParameter>;
1505
- get typeParameter(): SerializedTypeTypeParameter;
1506
- _hasTypeParameter(): boolean;
1507
- _initTypeParameter(): SerializedTypeTypeParameter;
1508
- get _isTypeParameter(): boolean;
1509
- set typeParameter(value: SerializedTypeTypeParameter);
1510
- _adoptInfer(value: $.Orphan<SerializedTypeInfer>): void;
1511
- _disownInfer(): $.Orphan<SerializedTypeInfer>;
1512
- get infer(): SerializedTypeInfer;
1513
- _hasInfer(): boolean;
1514
- _initInfer(): SerializedTypeInfer;
1515
- get _isInfer(): boolean;
1516
- set infer(value: SerializedTypeInfer);
1517
- _adoptTuple(value: $.Orphan<SerializedTypeTuple>): void;
1518
- _disownTuple(): $.Orphan<SerializedTypeTuple>;
1519
- get tuple(): SerializedTypeTuple;
1520
- _hasTuple(): boolean;
1521
- _initTuple(): SerializedTypeTuple;
1522
- get _isTuple(): boolean;
1523
- set tuple(value: SerializedTypeTuple);
1524
- _adoptTupleMember(value: $.Orphan<SerializedTypeTupleMember>): void;
1525
- _disownTupleMember(): $.Orphan<SerializedTypeTupleMember>;
1526
- get tupleMember(): SerializedTypeTupleMember;
1527
- _hasTupleMember(): boolean;
1528
- _initTupleMember(): SerializedTypeTupleMember;
1529
- get _isTupleMember(): boolean;
1530
- set tupleMember(value: SerializedTypeTupleMember);
1531
- _adoptRest(value: $.Orphan<SerializedTypeRest>): void;
1532
- _disownRest(): $.Orphan<SerializedTypeRest>;
1533
- get rest(): SerializedTypeRest;
1534
- _hasRest(): boolean;
1535
- _initRest(): SerializedTypeRest;
1536
- get _isRest(): boolean;
1537
- set rest(value: SerializedTypeRest);
1538
- _adoptOther(value: $.Orphan<SerializedTypeOther>): void;
1539
- _disownOther(): $.Orphan<SerializedTypeOther>;
1540
- /**
1541
- * For any other type that is not explicitly defined
1542
- *
1543
- */
1544
- get other(): SerializedTypeOther;
1545
- _hasOther(): boolean;
1546
- _initOther(): SerializedTypeOther;
1547
- get _isOther(): boolean;
1548
- set other(value: SerializedTypeOther);
1549
- toString(): string;
1550
- which(): SerializedType_Type_Which;
1551
- }
1552
- declare class SerializedType extends $.Struct {
1553
- static readonly _capnp: {
1554
- displayName: string;
1555
- id: string;
1556
- size: $.ObjectSize;
1557
- };
1558
- get type(): SerializedType_Type;
1559
- _initType(): SerializedType_Type;
1560
- toString(): string;
1561
- }
1562
- declare class SerializedTypes extends $.Struct {
1563
- static readonly _capnp: {
1564
- displayName: string;
1565
- id: string;
1566
- size: $.ObjectSize;
1567
- };
1568
- static _Types: $.ListCtor<SerializedType>;
1569
- _adoptTypes(value: $.Orphan<$.List<SerializedType>>): void;
1570
- _disownTypes(): $.Orphan<$.List<SerializedType>>;
1571
- get types(): $.List<SerializedType>;
1572
- _hasTypes(): boolean;
1573
- _initTypes(length: number): $.List<SerializedType>;
1574
- set types(value: $.List<SerializedType>);
1575
- toString(): string;
1576
- }
1577
-
1578
- type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
1579
- interface BuildConfig {
1580
- /**
1581
- * The platform to build the project for
1582
- *
1583
- * @defaultValue "neutral"
1584
- */
1585
- platform?: "node" | "browser" | "neutral";
1586
- /**
1587
- * The alias mappings to use for module resolution during the build process.
1588
- *
1589
- * @remarks
1590
- * This option allows you to define custom path aliases for modules, which can be useful for simplifying imports and managing dependencies.
1591
- *
1592
- * @example
1593
- * ```ts
1594
- * {
1595
- * alias: {
1596
- * "@utils": "./src/utils",
1597
- * "@components": "./src/components"
1598
- * }
1599
- * }
1600
- * ```
1601
- */
1602
- alias?: Record<string, string>;
1603
- /**
1604
- * A list of modules that should not be bundled, even if they are external dependencies.
1605
- *
1606
- * @remarks
1607
- * 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.
1608
- */
1609
- external?: (string | RegExp)[];
1610
- /**
1611
- * A list of modules that should always be bundled, even if they are external dependencies.
1612
- */
1613
- noExternal?: (string | RegExp)[];
1614
- /**
1615
- * Should the Powerlines CLI processes skip bundling the `node_modules` directory?
1616
- */
1617
- skipNodeModulesBundle?: boolean;
1618
- /**
1619
- * Should the Powerlines processes skip the `"prepare"` task prior to building?
1620
- *
1621
- * @defaultValue false
1622
- */
1623
- skipPrepare?: boolean;
1624
- }
1625
- type BuildResolvedConfig = BuildConfig;
1626
-
1627
- type BabelPluginPass<TState = unknown> = PluginPass & TState;
1628
- type BabelTransformPluginFilter = (code: string, id: string) => boolean;
1629
- type BabelTransformPlugin<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = ((context: TContext) => (options: {
1630
- name: string;
1631
- log: LogFn;
1632
- api: BabelAPI;
1633
- options: TOptions;
1634
- context: TContext;
1635
- dirname: string;
1636
- }) => PluginObj<TOptions & BabelPluginPass<TState>>) & {
1637
- $$name: string;
1638
- };
1639
- 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] | [
1640
- BabelTransformPlugin<TContext, TOptions, TState>,
1641
- TOptions,
1642
- BabelTransformPluginFilter
1643
- ];
1644
- type DeclareBabelTransformPluginReturn<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = any> = Omit<BabelTransformPlugin<TContext, TOptions, TState>, "$$name"> & Required<Pick<BabelTransformPlugin<TContext, TOptions, TState>, "$$name">>;
1645
-
1646
- declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1647
- type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1648
-
1649
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1650
- /**
1651
- * The order in which the plugin should be applied.
1652
- */
1653
- order?: "pre" | "post" | null | undefined;
1654
- /**
1655
- * A filter to determine when the hook should be called.
1656
- */
1657
- filter?: TFilter;
1658
- /**
1659
- * The hook function to be called.
1660
- */
1661
- handler: THookFunction;
1662
- }
1663
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1664
- interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
1665
- /**
1666
- * A function that returns configuration options to be merged with the build context's options.
1667
- *
1668
- * @remarks
1669
- * 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.
1670
- *
1671
- * @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.
1672
- *
1673
- * @see https://vitejs.dev/guide/api-plugin#config
1674
- *
1675
- * @param this - The build context.
1676
- * @param config - The partial configuration object to be modified.
1677
- * @returns A promise that resolves to a partial configuration object.
1678
- */
1679
- config: (this: Context<TContext["config"]>) => MaybePromise<Partial<TContext["config"]["userConfig"]>>;
1680
- /**
1681
- * 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.
1682
- *
1683
- * @remarks
1684
- * 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.
1685
- *
1686
- * @see https://vitejs.dev/guide/api-plugin#configenvironment
1687
- *
1688
- * @param this - The build context.
1689
- * @param name - The name of the environment being configured.
1690
- * @param environment - The Vite-like environment object containing information about the current build environment.
1691
- * @returns A promise that resolves when the hook is complete.
1692
- */
1693
- configEnvironment: (this: TContext, name: string, environment: EnvironmentConfig) => MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>;
1694
- /**
1695
- * A hook that is called when the plugin is resolved.
1696
- *
1697
- * @see https://vitejs.dev/guide/api-plugin#configresolved
1698
- *
1699
- * @param this - The build context.
1700
- * @returns A promise that resolves when the hook is complete.
1701
- */
1702
- configResolved: (this: TContext) => MaybePromise<void>;
1703
- /**
1704
- * A hook that is called at the start of the build process.
1705
- *
1706
- * @param this - The build context and unplugin build context.
1707
- * @returns A promise that resolves when the hook is complete.
1708
- */
1709
- buildStart: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
1710
- /**
1711
- * A hook that is called at the end of the build process.
1712
- *
1713
- * @param this - The build context and unplugin build context.
1714
- * @returns A promise that resolves when the hook is complete.
1715
- */
1716
- buildEnd: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
1717
- /**
1718
- * A hook that is called to transform the source code.
1719
- *
1720
- * @param this - The build context, unplugin build context, and unplugin context.
1721
- * @param code - The source code to transform.
1722
- * @param id - The identifier of the source code.
1723
- * @returns A promise that resolves when the hook is complete.
1724
- */
1725
- transform: (this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>;
1726
- /**
1727
- * A hook that is called to load the source code.
1728
- *
1729
- * @param this - The build context, unplugin build context, and unplugin context.
1730
- * @param id - The identifier of the source code.
1731
- * @returns A promise that resolves when the hook is complete.
1732
- */
1733
- load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>;
1734
- /**
1735
- * A hook that is called to resolve the identifier of the source code.
1736
- *
1737
- * @param this - The build context, unplugin build context, and unplugin context.
1738
- * @param id - The identifier of the source code.
1739
- * @param importer - The importer of the source code.
1740
- * @param options - The options for resolving the identifier.
1741
- * @returns A promise that resolves when the hook is complete.
1742
- */
1743
- resolveId: (this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
1744
- isEntry: boolean;
1745
- }) => MaybePromise<string | ExternalIdResult | null | undefined>;
1746
- /**
1747
- * A hook that is called to write the bundle to disk.
1748
- *
1749
- * @param this - The build context.
1750
- * @returns A promise that resolves when the hook is complete.
1751
- */
1752
- writeBundle: (this: TContext) => MaybePromise<void>;
1753
- }
1754
- type BuildPlugin<TContext extends PluginContext = PluginContext, TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant, TOptions extends Required<UnpluginOptions>[TBuildVariant] = Required<UnpluginOptions>[TBuildVariant]> = {
1755
- [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];
1756
- };
1757
- type PluginHooks<TContext extends PluginContext = PluginContext> = {
1758
- [TKey in keyof BasePluginHookFunctions<TContext>]: PluginHook<BasePluginHookFunctions<TContext>[TKey]>;
1759
- } & {
1760
- /**
1761
- * A function that returns configuration options to be merged with the build context's options.
1762
- *
1763
- * @remarks
1764
- * 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.
1765
- *
1766
- * @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.
1767
- *
1768
- * @see https://vitejs.dev/guide/api-plugin#config
1769
- *
1770
- * @param this - The build context.
1771
- * @param config - The partial configuration object to be modified.
1772
- * @returns A promise that resolves to a partial configuration object.
1773
- */
1774
- config: PluginHook<(this: Context<TContext["config"]>) => MaybePromise<Partial<TContext["config"]["userConfig"]>>> | Partial<TContext["config"]["userConfig"]>;
1775
- /**
1776
- * A hook that is called to transform the source code.
1777
- *
1778
- * @param this - The build context, unplugin build context, and unplugin context.
1779
- * @param code - The source code to transform.
1780
- * @param id - The identifier of the source code.
1781
- * @returns A promise that resolves when the hook is complete.
1782
- */
1783
- transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>, "code" | "id">;
1784
- /**
1785
- * A hook that is called to load the source code.
1786
- *
1787
- * @param this - The build context, unplugin build context, and unplugin context.
1788
- * @param id - The identifier of the source code.
1789
- * @returns A promise that resolves when the hook is complete.
1790
- */
1791
- load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>, "id">;
1792
- /**
1793
- * A hook that is called to resolve the identifier of the source code.
1794
- *
1795
- * @param this - The build context, unplugin build context, and unplugin context.
1796
- * @param id - The identifier of the source code.
1797
- * @param importer - The importer of the source code.
1798
- * @param options - The options for resolving the identifier.
1799
- * @returns A promise that resolves when the hook is complete.
1800
- */
1801
- resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
1802
- isEntry: boolean;
1803
- }) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
1804
- };
1805
- type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
1806
- [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
1807
- };
1808
- interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1809
- /**
1810
- * The name of the plugin, for use in deduplication, error messages and logs.
1811
- */
1812
- name: string;
1813
- /**
1814
- * Enforce plugin invocation tier similar to webpack loaders. Hooks ordering is still subject to the `order` property in the hook object.
1815
- *
1816
- * @remarks
1817
- * The Plugin invocation order is as follows:
1818
- * - `enforce: 'pre'` plugins
1819
- * - `order: 'pre'` plugin hooks
1820
- * - any other plugins (normal)
1821
- * - `order: 'post'` plugin hooks
1822
- * - `enforce: 'post'` plugins
1823
- *
1824
- * @see https://vitejs.dev/guide/api-plugin.html#plugin-ordering
1825
- * @see https://rollupjs.org/plugin-development/#build-hooks
1826
- * @see https://webpack.js.org/concepts/loaders/#enforce---pre-and-post
1827
- * @see https://esbuild.github.io/plugins/#concepts
1828
- */
1829
- enforce?: "pre" | "post";
1830
- /**
1831
- * A function to determine if two plugins are the same and can be de-duplicated.
1832
- *
1833
- * @remarks
1834
- * If this is not provided, the plugin will not be de-duplicated.
1835
- *
1836
- * @param other - The other plugin to compare against.
1837
- * @returns `true` if the two plugins are the same, `false` otherwise.
1838
- */
1839
- dedupe?: false | ((other: PluginConfig<any>) => boolean);
1840
- /**
1841
- * A list of pre-requisite plugins that must be loaded before this plugin can be used.
1842
- */
1843
- dependsOn?: PluginConfig<TContext>[];
1844
- /**
1845
- * Define environments where this plugin should be active. By default, the plugin is active in all environments.
1846
- *
1847
- * @param environment - The environment to check.
1848
- * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
1849
- */
1850
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<any>>;
1851
- }
1852
-
1853
- type ReflectionMode = "default" | "explicit" | "never";
1854
- type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
1855
- /**
1856
- * Defines the level of reflection to be used during the transpilation process.
1857
- *
1858
- * @remarks
1859
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
1860
- * - `minimal` - Only the essential type information is captured.
1861
- * - `normal` - Additional type information is captured, including some contextual data.
1862
- * - `verbose` - All available type information is captured, including detailed contextual data.
1863
- */
1864
- type ReflectionLevel = "minimal" | "normal" | "verbose";
1865
- interface DeepkitOptions {
1866
- /**
1867
- * Either true to activate reflection for all files compiled using this tsconfig,
1868
- * or a list of globs/file paths relative to this tsconfig.json.
1869
- * Globs/file paths can be prefixed with a ! to exclude them.
1870
- */
1871
- reflection?: RawReflectionMode;
1872
- /**
1873
- * Defines the level of reflection to be used during the transpilation process.
1874
- *
1875
- * @remarks
1876
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
1877
- * - `minimal` - Only the essential type information is captured.
1878
- * - `normal` - Additional type information is captured, including some contextual data.
1879
- * - `verbose` - All available type information is captured, including detailed contextual data.
1880
- */
1881
- reflectionLevel?: ReflectionLevel;
1882
- }
1883
- type TSCompilerOptions = CompilerOptions & DeepkitOptions;
1884
- /**
1885
- * The TypeScript compiler configuration.
1886
- *
1887
- * @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
1888
- */
1889
- interface TSConfig extends Omit<TsConfigJson, "reflection"> {
1890
- /**
1891
- * Either true to activate reflection for all files compiled using this tsconfig,
1892
- * or a list of globs/file paths relative to this tsconfig.json.
1893
- * Globs/file paths can be prefixed with a ! to exclude them.
1894
- */
1895
- reflection?: RawReflectionMode;
1896
- /**
1897
- * Defines the level of reflection to be used during the transpilation process.
1898
- *
1899
- * @remarks
1900
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
1901
- * - `minimal` - Only the essential type information is captured.
1902
- * - `normal` - Additional type information is captured, including some contextual data.
1903
- * - `verbose` - All available type information is captured, including detailed contextual data.
1904
- */
1905
- reflectionLevel?: ReflectionLevel;
1906
- /**
1907
- * Instructs the TypeScript compiler how to compile `.ts` files.
1908
- */
1909
- compilerOptions?: TSCompilerOptions;
1910
- }
1911
- type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
1912
- originalTsconfigJson: TsConfigJson;
1913
- tsconfigJson: TSConfig;
1914
- tsconfigFilePath: string;
1915
- };
1916
-
1917
- type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
1918
- /**
1919
- * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
1920
- */
1921
- type WorkspaceConfig = Partial<StormWorkspaceConfig> & Required<Pick<StormWorkspaceConfig, "workspaceRoot">>;
1922
- type PluginFactory<TProps = unknown, in out TContext extends PluginContext = PluginContext> = (options: TProps) => Plugin<TContext>;
1923
- /**
1924
- * A configuration tuple for a Powerlines plugin.
1925
- */
1926
- type PluginConfigTuple<TProps = unknown, TContext extends PluginContext = PluginContext> = [string | PluginFactory<TProps, TContext>, TProps] | [Plugin<TContext>];
1927
- /**
1928
- * A configuration object for a Powerlines plugin.
1929
- */
1930
- type PluginConfigObject<TProps = unknown, TContext extends PluginContext = PluginContext> = {
1931
- plugin: string | PluginFactory<TProps, TContext>;
1932
- options: TProps;
1933
- } | {
1934
- plugin: Plugin<TContext>;
1935
- options?: never;
1936
- };
1937
- /**
1938
- * A configuration tuple for a Powerlines plugin.
1939
- */
1940
- type PluginConfig<TContext extends PluginContext = PluginContext, TProps = unknown> = string | PluginFactory<void, TContext> | Plugin<TContext> | PluginConfigTuple<TProps> | PluginConfigObject<TProps>;
1941
- type ProjectType = "application" | "library";
1942
- type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
1943
- /**
1944
- * The Babel plugins to be used during the build process
1945
- */
1946
- plugins?: BabelTransformPluginOptions[];
1947
- /**
1948
- * The Babel presets to be used during the build process
1949
- */
1950
- presets?: BabelTransformPluginOptions[];
1951
- };
1952
- interface ESLintConfig {
1953
- eslintOptions?: any;
1954
- reportErrorsOnly?: boolean;
1955
- maxWarnings?: number;
1956
- formatter?: string | null;
1957
- outputFile?: string | null;
1958
- type?: "base" | "recommended" | "strict";
1959
- }
1960
- interface LintConfig {
1961
- /**
1962
- * Configuration options for ESLint
1963
- */
1964
- eslint?: ESLintConfig;
1965
- }
1966
- interface OutputConfig {
1967
- /**
1968
- * The path to output the final compiled files to
1969
- *
1970
- * @remarks
1971
- * If a value is not provided, Powerlines will attempt to:
1972
- * 1. Use the `outDir` value in the `tsconfig.json` file.
1973
- * 2. Use the `dist` directory in the project root directory.
1974
- *
1975
- * @defaultValue "dist/\{projectRoot\}"
1976
- */
1977
- outputPath?: string;
1978
- /**
1979
- * The format of the output files
1980
- *
1981
- * @defaultValue "virtual"
1982
- */
1983
- mode?: OutputModeType;
1984
- /**
1985
- * The path of the generated runtime declaration file relative to the workspace root.
1986
- *
1987
- * @defaultValue "\{projectRoot\}/powerlines.d.ts"
1988
- */
1989
- dts?: string | false;
1990
- /**
1991
- * A prefix to use for identifying builtin modules
1992
- *
1993
- * @remarks
1994
- * 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"`.
1995
- *
1996
- * @defaultValue "powerlines"
1997
- */
1998
- builtinPrefix?: string;
1999
- /**
2000
- * The folder where the generated runtime artifacts will be located
2001
- *
2002
- * @remarks
2003
- * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
2004
- *
2005
- * @defaultValue "\{projectRoot\}/.powerlines"
2006
- */
2007
- artifactsFolder?: string;
2008
- /**
2009
- * The module format of the output files
2010
- *
2011
- * @remarks
2012
- * 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.
2013
- *
2014
- * @defaultValue "esm"
2015
- */
2016
- format?: Format | Format[];
2017
- /**
2018
- * A list of assets to copy to the output directory
2019
- *
2020
- * @remarks
2021
- * 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.
2022
- */
2023
- assets?: Array<string | AssetGlob>;
2024
- }
2025
- interface BaseConfig {
2026
- /**
2027
- * The name of the project
2028
- */
2029
- name?: string;
2030
- /**
2031
- * The project display title
2032
- *
2033
- * @remarks
2034
- * This option is used in documentation generation and other places where a human-readable title is needed.
2035
- */
2036
- title?: string;
2037
- /**
2038
- * A description of the project
2039
- *
2040
- * @remarks
2041
- * If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
2042
- */
2043
- description?: string;
2044
- /**
2045
- * The log level to use for the Powerlines processes.
2046
- *
2047
- * @defaultValue "info"
2048
- */
2049
- logLevel?: LogLevelLabel | null;
2050
- /**
2051
- * A custom logger function to use for logging messages
2052
- */
2053
- customLogger?: LogFn;
2054
- /**
2055
- * 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.
2056
- *
2057
- * @defaultValue "production"
2058
- */
2059
- mode?: "development" | "test" | "production";
2060
- /**
2061
- * The entry point(s) for the application
2062
- */
2063
- entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
2064
- /**
2065
- * Configuration for linting the source code
2066
- */
2067
- lint?: LintConfig | false;
2068
- /**
2069
- * Configuration for the output of the build process
2070
- */
2071
- output?: OutputConfig;
2072
- /**
2073
- * Configuration for the transformation of the source code
2074
- */
2075
- transform?: Record<string, any>;
2076
- /**
2077
- * Options to to provide to the build process
2078
- */
2079
- build?: BuildConfig;
2080
- /**
2081
- * Configuration for documentation generation
2082
- *
2083
- * @remarks
2084
- * This configuration will be used by the documentation generation plugins during the `docs` command.
2085
- */
2086
- docs?: Record<string, any>;
2087
- /**
2088
- * The path to the tsconfig file to be used by the compiler
2089
- *
2090
- * @remarks
2091
- * 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).
2092
- *
2093
- * @defaultValue "\{projectRoot\}/tsconfig.json"
2094
- */
2095
- tsconfig?: string;
2096
- /**
2097
- * The raw {@link TSConfig} object to be used by the compiler. This object will be merged with the `tsconfig.json` file.
2098
- *
2099
- * @see https://www.typescriptlang.org/tsconfig
2100
- *
2101
- * @remarks
2102
- * If populated, this option takes higher priority than `tsconfig`
2103
- */
2104
- tsconfigRaw?: TSConfig;
2105
- }
2106
- interface EnvironmentConfig extends BaseConfig {
2107
- /**
2108
- * 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.
2109
- *
2110
- * @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
2111
- */
2112
- mainFields?: string[];
2113
- /**
2114
- * Array of strings indicating what conditions should be used for module resolution.
2115
- */
2116
- conditions?: string[];
2117
- /**
2118
- * Array of strings indicating what conditions should be used for external modules.
2119
- */
2120
- externalConditions?: string[];
2121
- /**
2122
- * Array of strings indicating what file extensions should be used for module resolution.
2123
- *
2124
- * @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
2125
- */
2126
- extensions?: string[];
2127
- /**
2128
- * Array of strings indicating what modules should be deduplicated to a single version in the build.
2129
- *
2130
- * @remarks
2131
- * 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.
2132
- */
2133
- dedupe?: string[];
2134
- /**
2135
- * Array of strings or regular expressions that indicate what modules are builtin for the environment.
2136
- */
2137
- builtins?: (string | RegExp)[];
2138
- /**
2139
- * Configuration options for the preview server
2140
- */
2141
- preview?: PreviewOptions;
2142
- /**
2143
- * A flag indicating whether the build is for a Server-Side Rendering environment.
2144
- */
2145
- ssr?: boolean;
2146
- /**
2147
- * Define if this environment is used for Server-Side Rendering
2148
- *
2149
- * @defaultValue "server" (if it isn't the client environment)
2150
- */
2151
- consumer?: "client" | "server";
2152
- }
2153
- interface CommonUserConfig extends BaseConfig {
2154
- /**
2155
- * The type of project being built
2156
- *
2157
- * @defaultValue "application"
2158
- */
2159
- type?: ProjectType;
2160
- /**
2161
- * The root directory of the project
2162
- */
2163
- root: string;
2164
- /**
2165
- * The root directory of the project's source code
2166
- *
2167
- * @defaultValue "\{root\}/src"
2168
- */
2169
- sourceRoot?: string;
2170
- /**
2171
- * A path to a custom configuration file to be used instead of the default `storm.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
2172
- *
2173
- * @remarks
2174
- * This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
2175
- */
2176
- configFile?: string;
2177
- /**
2178
- * Should the Powerlines CLI processes skip installing missing packages?
2179
- *
2180
- * @remarks
2181
- * This option is useful for CI/CD environments where the installation of packages is handled by a different process.
2182
- *
2183
- * @defaultValue false
2184
- */
2185
- skipInstalls?: boolean;
2186
- /**
2187
- * Should the compiler processes skip any improvements that make use of cache?
2188
- *
2189
- * @defaultValue false
2190
- */
2191
- skipCache?: boolean;
2192
- /**
2193
- * A list of resolvable paths to plugins used during the build process
2194
- */
2195
- plugins?: PluginConfig<PluginContext<any>>[];
2196
- /**
2197
- * Environment-specific configurations
2198
- */
2199
- environments?: Record<string, EnvironmentConfig>;
2200
- /**
2201
- * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
2202
- *
2203
- * @defaultValue "powerlines"
2204
- */
2205
- framework?: string;
2206
- }
2207
- type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = CommonUserConfig & {
2208
- build?: TBuildConfig & {
2209
- /**
2210
- * The build variant being used by the Powerlines engine.
2211
- */
2212
- variant?: TBuildVariant;
2213
- };
2214
- override?: Partial<TBuildResolvedConfig>;
2215
- };
2216
- type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "release" | "clean";
2217
- /**
2218
- * The configuration provided while executing Powerlines commands.
2219
- */
2220
- type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
2221
- /**
2222
- * A string identifier for the Powerlines command being executed
2223
- */
2224
- command: PowerlinesCommand;
2225
- };
2226
-
2227
- interface ResolvedEntryTypeDefinition extends TypeDefinition {
2228
- /**
2229
- * The user provided entry point in the source code
2230
- */
2231
- input: TypeDefinition;
2232
- /**
2233
- * An optional name to use in the package export during the build process
2234
- */
2235
- output?: string;
2236
- }
2237
- type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
2238
- type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview" | "mainFields" | "extensions"> & Required<Pick<EnvironmentConfig, "consumer" | "mode" | "ssr" | "mainFields" | "extensions">> & {
2239
- /**
2240
- * The name of the environment
2241
- */
2242
- name: string;
2243
- /**
2244
- * Configuration options for the preview server
2245
- */
2246
- preview?: ResolvedPreviewOptions;
2247
- };
2248
- type LintResolvedConfig = Required<LintConfig>;
2249
- type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
2250
- type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
2251
- assets: ResolvedAssetGlob[];
2252
- }>;
2253
- /**
2254
- * The resolved options for the Powerlines project configuration.
2255
- */
2256
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "build" | "transform" | "override" | "root" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "build" | "transform" | "override" | "framework">> & {
2257
- /**
2258
- * The configuration options that were provided inline to the Powerlines CLI.
2259
- */
2260
- inlineConfig: InlineConfig<TUserConfig>;
2261
- /**
2262
- * The original configuration options that were provided by the user to the Powerlines process.
2263
- */
2264
- userConfig: TUserConfig;
2265
- /**
2266
- * A string identifier for the Powerlines command being executed.
2267
- */
2268
- command: NonUndefined<InlineConfig<TUserConfig>["command"]>;
2269
- /**
2270
- * The root directory of the project's source code
2271
- *
2272
- * @defaultValue "\{projectRoot\}/src"
2273
- */
2274
- sourceRoot: NonUndefined<TUserConfig["sourceRoot"]>;
2275
- /**
2276
- * The root directory of the project.
2277
- */
2278
- projectRoot: NonUndefined<TUserConfig["root"]>;
2279
- /**
2280
- * The type of project being built.
2281
- */
2282
- projectType: NonUndefined<TUserConfig["type"]>;
2283
- /**
2284
- * The output configuration options to use for the build process
2285
- */
2286
- output: OutputResolvedConfig;
2287
- /**
2288
- * The linting configuration options to use for the build process
2289
- */
2290
- lint: LintResolvedConfig | false;
2291
- /**
2292
- * The log level to use for the Powerlines processes.
2293
- *
2294
- * @defaultValue "info"
2295
- */
2296
- logLevel: LogLevelLabel | null;
2297
- };
2298
-
2299
- /**
2300
- * The severity level of a {@link LogRecord}.
2301
- */
2302
- type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
2303
- declare const LogLevel: {
2304
- DEBUG: LogLevel;
2305
- INFO: LogLevel;
2306
- WARNING: LogLevel;
2307
- ERROR: LogLevel;
2308
- FATAL: LogLevel;
2309
- };
2310
- interface MetaInfo {
2311
- /**
2312
- * The checksum generated from the resolved options
2313
- */
2314
- checksum: string;
2315
- /**
2316
- * The build id
2317
- */
2318
- buildId: string;
2319
- /**
2320
- * The release id
2321
- */
2322
- releaseId: string;
2323
- /**
2324
- * The build timestamp
2325
- */
2326
- timestamp: number;
2327
- /**
2328
- * A hash that represents the path to the project root directory
2329
- */
2330
- projectRootHash: string;
2331
- /**
2332
- * A hash that represents the path to the project root directory
2333
- */
2334
- configHash: string;
2335
- /**
2336
- * A mapping of runtime ids to their corresponding file paths
2337
- */
2338
- builtinIdMap: Record<string, string>;
2339
- /**
2340
- * A mapping of virtual file paths to their corresponding file contents
2341
- */
2342
- virtualFiles: Record<string, string | null>;
2343
- }
2344
- interface Resolver extends Jiti {
2345
- plugin: Jiti;
2346
- }
2347
- type Reflection<T extends Record<string, any> = Record<string, any>> = ReflectionClass<T> & {
2348
- dataBuffer?: ArrayBuffer;
2349
- messageRoot?: SerializedTypes;
2350
- };
2351
- type ReflectionRecord<T extends Record<string, any> = Record<string, any>> = Record<string, Reflection<T>>;
2352
- interface InitContextOptions {
2353
- /**
2354
- * If false, the plugin will be loaded after all other plugins.
2355
- *
2356
- * @defaultValue true
2357
- */
2358
- isHighPriority: boolean;
2359
- }
2360
- interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
2361
- /**
2362
- * The Storm workspace configuration
2363
- */
2364
- workspaceConfig: WorkspaceConfig;
2365
- /**
2366
- * An object containing the options provided to Powerlines
2367
- */
2368
- config: TResolvedConfig;
2369
- /**
2370
- * A logging function for the Powerlines engine
2371
- */
2372
- log: LogFn;
2373
- /**
2374
- * The metadata information
2375
- */
2376
- meta: MetaInfo;
2377
- /**
2378
- * The metadata information currently written to disk
2379
- */
2380
- persistedMeta?: MetaInfo;
2381
- /**
2382
- * The reflections found and used by Powerlines plugins
2383
- *
2384
- * @remarks
2385
- * These reflections are used by plugins to store data that will be passed around the Powerlines processes. Please note: these values are not persisted to disk by default.
2386
- */
2387
- reflections: {
2388
- [P in keyof unknown]: ReflectionRecord;
2389
- };
2390
- /**
2391
- * The parsed TypeScript configuration from the `tsconfig.json` file
2392
- */
2393
- tsconfig: ParsedTypeScriptConfig;
2394
- /**
2395
- * The entry points of the source code
2396
- */
2397
- entry: ResolvedEntryTypeDefinition[];
2398
- /**
2399
- * The relative path to the Powerlines workspace root directory
2400
- */
2401
- relativeToWorkspaceRoot: string;
2402
- /**
2403
- * The Powerlines artifacts directory
2404
- */
2405
- artifactsPath: string;
2406
- /**
2407
- * The path to the Powerlines builtin runtime modules directory
2408
- */
2409
- builtinsPath: string;
2410
- /**
2411
- * The path to the Powerlines entry modules directory
2412
- */
2413
- entryPath: string;
2414
- /**
2415
- * The path to the Powerlines TypeScript declaration files directory
2416
- */
2417
- dtsPath: string;
2418
- /**
2419
- * The path to a directory where the reflection data buffers (used by the build processes) are stored
2420
- */
2421
- dataPath: string;
2422
- /**
2423
- * The path to a directory where the project cache (used by the build processes) is stored
2424
- */
2425
- cachePath: string;
2426
- /**
2427
- * The Powerlines environment paths
2428
- */
2429
- envPaths: EnvPaths;
2430
- /**
2431
- * The file system path to the Powerlines package installation
2432
- */
2433
- powerlinesPath: string;
2434
- /**
2435
- * The dependency installations required by the project
2436
- */
2437
- dependencies: Record<string, string | Range>;
2438
- /**
2439
- * The development dependency installations required by the project
2440
- */
2441
- devDependencies: Record<string, string | Range>;
2442
- /**
2443
- * The project's `package.json` file content
2444
- */
2445
- packageJson: PackageJson;
2446
- /**
2447
- * The project's `project.json` file content
2448
- */
2449
- projectJson?: Record<string, any>;
2450
- /**
2451
- * The virtual file system manager used during the build process to reference generated runtime files
2452
- */
2453
- fs: VirtualFileSystemInterface;
2454
- /**
2455
- * The Jiti module resolver
2456
- */
2457
- resolver: Resolver;
2458
- /**
2459
- * A function to update the context fields using a new user configuration options
2460
- */
2461
- withUserConfig: (userConfig: UserConfig, options?: InitContextOptions) => Promise<void>;
2462
- /**
2463
- * A function to update the context fields using inline configuration options
2464
- */
2465
- withInlineConfig: (inlineConfig: InlineConfig, options?: InitContextOptions) => Promise<void>;
2466
- /**
2467
- * Create a new logger instance
2468
- *
2469
- * @param name - The name to use for the logger instance
2470
- * @returns A logger function
2471
- */
2472
- createLog: (name: string | null) => LogFn;
2473
- /**
2474
- * Extend the current logger instance with a new name
2475
- *
2476
- * @param name - The name to use for the extended logger instance
2477
- * @returns A logger function
2478
- */
2479
- extendLog: (name: string) => LogFn;
2480
- }
2481
- interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
2482
- /**
2483
- * The environment specific resolved configuration
2484
- */
2485
- environment: EnvironmentResolvedConfig;
2486
- /**
2487
- * An alternative property name for the {@link log} property
2488
- *
2489
- * @remarks
2490
- * This is provided for compatibility with other logging libraries that expect a `logger` property.
2491
- */
2492
- logger: LogFn;
2493
- }
2494
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & UnpluginBuildContext;
2495
-
2496
- /**
2497
- * The base environment configuration used by Powerlines applications
2498
- *
2499
- * @remarks
2500
- * 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.
2501
- *
2502
- * @categoryDescription Platform
2503
- * The name of the platform the configuration parameter is intended for use in.
2504
- *
2505
- * @showCategories
2506
- */
2507
- interface EnvInterface {
2508
- /**
2509
- * An indicator that specifies the application is running in the local development environment.
2510
- *
2511
- * @hidden
2512
- * @readonly
2513
- * @category node
2514
- */
2515
- readonly POWERLINES_LOCAL: boolean;
2516
- /**
2517
- * The name of the application.
2518
- *
2519
- * @readonly
2520
- * @category neutral
2521
- */
2522
- readonly APP_NAME: string;
2523
- /**
2524
- * The version of the application.
2525
- *
2526
- * @defaultValue "1.0.0"
2527
- *
2528
- * @readonly
2529
- * @category neutral
2530
- */
2531
- readonly APP_VERSION: string;
2532
- /**
2533
- * The unique identifier for the build.
2534
- *
2535
- * @readonly
2536
- * @category neutral
2537
- */
2538
- readonly BUILD_ID: string;
2539
- /**
2540
- * The timestamp the build was ran at.
2541
- *
2542
- * @readonly
2543
- * @category neutral
2544
- */
2545
- readonly BUILD_TIMESTAMP: string;
2546
- /**
2547
- * A checksum hash created during the build.
2548
- *
2549
- * @readonly
2550
- * @category neutral
2551
- */
2552
- readonly BUILD_CHECKSUM: string;
2553
- /**
2554
- * The unique identifier for the release.
2555
- *
2556
- * @readonly
2557
- * @category neutral
2558
- */
2559
- readonly RELEASE_ID: string;
2560
- /**
2561
- * The tag for the release. This is generally in the format of "\<APP_NAME\>\@\<APP_VERSION\>".
2562
- *
2563
- * @readonly
2564
- * @category neutral
2565
- */
2566
- readonly RELEASE_TAG: string;
2567
- /**
2568
- * The name of the organization that maintains the application.
2569
- *
2570
- * @remarks
2571
- * 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}.
2572
- *
2573
- * @alias ORG
2574
- * @alias ORG_ID
2575
- * @category neutral
2576
- */
2577
- ORGANIZATION: string;
2578
- /**
2579
- * The platform for which the application was built.
2580
- *
2581
- * @defaultValue "neutral"
2582
- *
2583
- * @category neutral
2584
- */
2585
- PLATFORM: "node" | "neutral" | "browser";
2586
- /**
2587
- * The mode in which the application is running.
2588
- *
2589
- * @defaultValue "production"
2590
- *
2591
- * @alias NODE_ENV
2592
- *
2593
- * @category neutral
2594
- */
2595
- MODE: "development" | "test" | "production";
2596
- /**
2597
- * The environment the application is running in. This value will be populated with the value of `MODE` if not provided.
2598
- *
2599
- * @defaultValue "production"
2600
- *
2601
- * @alias ENV
2602
- * @alias VERCEL_ENV
2603
- * @category neutral
2604
- */
2605
- ENVIRONMENT: string;
2606
- /**
2607
- * Indicates if the application is running in debug mode.
2608
- *
2609
- * @category neutral
2610
- */
2611
- DEBUG: boolean;
2612
- /**
2613
- * An indicator that specifies the current runtime is a test environment.
2614
- *
2615
- * @category neutral
2616
- */
2617
- TEST: boolean;
2618
- /**
2619
- * An indicator that specifies the current runtime is a minimal environment.
2620
- *
2621
- * @category node
2622
- */
2623
- MINIMAL: boolean;
2624
- /**
2625
- * An indicator that specifies the current runtime is a no color environment.
2626
- *
2627
- * @category node
2628
- */
2629
- NO_COLOR: boolean;
2630
- /**
2631
- * An indicator that specifies the current runtime is a force color environment.
2632
- *
2633
- * @category node
2634
- */
2635
- FORCE_COLOR: boolean | number;
2636
- /**
2637
- * An indicator that specifies the current runtime should force hyperlinks in terminal output.
2638
- *
2639
- * @remarks
2640
- * 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.
2641
-
2642
- * @category node
2643
- */
2644
- FORCE_HYPERLINK: boolean | number;
2645
- /**
2646
- * The name of the agent running the application. This variable is set by certain CI/CD systems.
2647
- *
2648
- * @readonly
2649
- * @category neutral
2650
- */
2651
- readonly AGENT_NAME?: string;
2652
- /**
2653
- * The color terminal type. This variable is set by certain terminal emulators.
2654
- *
2655
- * @readonly
2656
- * @category node
2657
- */
2658
- readonly COLORTERM?: string;
2659
- /**
2660
- * The terminal type. This variable is set by certain CI/CD systems.
2661
- *
2662
- * @remarks
2663
- * 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.
2664
- *
2665
- * @readonly
2666
- * @category node
2667
- */
2668
- readonly TERM?: string;
2669
- /**
2670
- * The terminal program name. This variable is set by certain terminal emulators.
2671
- *
2672
- * @readonly
2673
- * @category node
2674
- */
2675
- readonly TERM_PROGRAM?: string;
2676
- /**
2677
- * The terminal program version. This variable is set by certain terminal emulators.
2678
- *
2679
- * @readonly
2680
- * @category node
2681
- */
2682
- readonly TERM_PROGRAM_VERSION?: string;
2683
- /**
2684
- * The terminal emulator name. This variable is set by certain terminal emulators.
2685
- *
2686
- * @readonly
2687
- * @category node
2688
- */
2689
- readonly TERMINAL_EMULATOR?: string;
2690
- /**
2691
- * The terminal emulator session ID. This variable is set by certain terminal emulators.
2692
- *
2693
- * @readonly
2694
- * @category node
2695
- */
2696
- readonly WT_SESSION?: string;
2697
- /**
2698
- * An indicator that specifies the current terminal is running Terminus Sublime. This variable is set by certain terminal emulators.
2699
- *
2700
- * @readonly
2701
- * @category node
2702
- */
2703
- readonly TERMINUS_SUBLIME?: boolean;
2704
- /**
2705
- * The ConEmu task name. This variable is set by certain terminal emulators.
2706
- *
2707
- * @readonly
2708
- * @category node
2709
- */
2710
- readonly ConEmuTask?: string;
2711
- /**
2712
- * The cursor trace ID. This variable is set by certain terminal emulators.
2713
- *
2714
- * @readonly
2715
- * @category node
2716
- */
2717
- readonly CURSOR_TRACE_ID?: string;
2718
- /**
2719
- * The VTE version. This variable is set by certain terminal emulators.
2720
- *
2721
- * @readonly
2722
- * @category node
2723
- */
2724
- readonly VTE_VERSION?: string;
2725
- /**
2726
- * Indicates if error stack traces should be captured.
2727
- *
2728
- * @category neutral
2729
- */
2730
- STACKTRACE: boolean;
2731
- /**
2732
- * Indicates if error data should be included.
2733
- *
2734
- * @category neutral
2735
- */
2736
- INCLUDE_ERROR_DATA: boolean;
2737
- /**
2738
- * A web page to lookup error messages and display additional information given an error code.
2739
- *
2740
- * @remarks
2741
- * 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.
2742
- *
2743
- * @title Error Details URL
2744
- * @category neutral
2745
- */
2746
- ERROR_URL: string;
2747
- /**
2748
- * The default timezone for the application.
2749
- *
2750
- * @defaultValue "America/New_York"
2751
- * @category neutral
2752
- */
2753
- DEFAULT_TIMEZONE: string;
2754
- /**
2755
- * The default locale to be used in the application.
2756
- *
2757
- * @defaultValue "en_US"
2758
- * @category neutral
2759
- */
2760
- DEFAULT_LOCALE: string;
2761
- /**
2762
- * 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.
2763
- *
2764
- * @defaultValue "info"
2765
- *
2766
- * @category neutral
2767
- */
2768
- LOG_LEVEL?: LogLevel | null;
2769
- /**
2770
- * An indicator that specifies the current runtime is a continuous integration environment.
2771
- *
2772
- * @title Continuous Integration
2773
- * @alias CONTINUOUS_INTEGRATION
2774
- * @category neutral
2775
- */
2776
- CI: boolean;
2777
- /**
2778
- * The unique identifier for the current run. This value is set by certain CI/CD systems.
2779
- *
2780
- * @readonly
2781
- * @category node
2782
- */
2783
- readonly RUN_ID?: string;
2784
- /**
2785
- * The agola git reference. This value is set by certain CI/CD systems.
2786
- *
2787
- * @readonly
2788
- * @category node
2789
- */
2790
- readonly AGOLA_GIT_REF?: string;
2791
- /**
2792
- * The appcircle build ID. This value is set by certain CI/CD systems.
2793
- *
2794
- * @readonly
2795
- * @category node
2796
- */
2797
- readonly AC_APPCIRCLE?: string;
2798
- /**
2799
- * The appveyor build ID. This value is set by certain CI/CD systems.
2800
- *
2801
- * @readonly
2802
- * @category node
2803
- */
2804
- readonly APPVEYOR?: string;
2805
- /**
2806
- * The codebuild build ID. This value is set by certain CI/CD systems.
2807
- *
2808
- * @readonly
2809
- * @category node
2810
- */
2811
- readonly CODEBUILD?: string;
2812
- /**
2813
- * The task force build ID. This value is set by certain CI/CD systems.
2814
- *
2815
- * @readonly
2816
- * @category node
2817
- */
2818
- readonly TF_BUILD?: string;
2819
- /**
2820
- * The bamboo plan key. This value is set by certain CI/CD systems.
2821
- *
2822
- * @readonly
2823
- * @category node
2824
- */
2825
- readonly bamboo_planKey?: string;
2826
- /**
2827
- * The bitbucket commit. This value is set by certain CI/CD systems.
2828
- *
2829
- * @readonly
2830
- * @category node
2831
- */
2832
- readonly BITBUCKET_COMMIT?: string;
2833
- /**
2834
- * The bitrise build ID. This value is set by certain CI/CD systems.
2835
- *
2836
- * @readonly
2837
- * @category node
2838
- */
2839
- readonly BITRISE_IO?: string;
2840
- /**
2841
- * The buddy workspace ID. This value is set by certain CI/CD systems.
2842
- *
2843
- * @readonly
2844
- * @category node
2845
- */
2846
- readonly BUDDY_WORKSPACE_ID?: string;
2847
- /**
2848
- * The buildkite build ID. This value is set by certain CI/CD systems.
2849
- *
2850
- * @readonly
2851
- * @category node
2852
- */
2853
- readonly BUILDKITE?: string;
2854
- /**
2855
- * The circleci build ID. This value is set by certain CI/CD systems.
2856
- *
2857
- * @readonly
2858
- * @category node
2859
- */
2860
- readonly CIRCLECI?: string;
2861
- /**
2862
- * The cirrus-ci build ID. This value is set by certain CI/CD systems.
2863
- *
2864
- * @readonly
2865
- * @category node
2866
- */
2867
- readonly CIRRUS_CI?: string;
2868
- /**
2869
- * The cf build ID. This value is set by certain CI/CD systems.
2870
- *
2871
- * @readonly
2872
- * @category node
2873
- */
2874
- readonly CF_BUILD_ID?: string;
2875
- /**
2876
- * The cm build ID. This value is set by certain CI/CD systems.
2877
- *
2878
- * @readonly
2879
- * @category node
2880
- */
2881
- readonly CM_BUILD_ID?: string;
2882
- /**
2883
- * The ci name. This value is set by certain CI/CD systems.
2884
- *
2885
- * @readonly
2886
- * @category node
2887
- */
2888
- readonly CI_NAME?: string;
2889
- /**
2890
- * The drone build ID. This value is set by certain CI/CD systems.
2891
- *
2892
- * @readonly
2893
- * @category node
2894
- */
2895
- readonly DRONE?: string;
2896
- /**
2897
- * The dsari build ID. This value is set by certain CI/CD systems.
2898
- *
2899
- * @readonly
2900
- * @category node
2901
- */
2902
- readonly DSARI?: string;
2903
- /**
2904
- * The earthly build ID. This value is set by certain CI/CD systems.
2905
- *
2906
- * @readonly
2907
- * @category node
2908
- */
2909
- readonly EARTHLY_CI?: string;
2910
- /**
2911
- * The eas build ID. This value is set by certain CI/CD systems.
2912
- *
2913
- * @readonly
2914
- * @category node
2915
- */
2916
- readonly EAS_BUILD?: string;
2917
- /**
2918
- * The gerrit project. This value is set by certain CI/CD systems.
2919
- *
2920
- * @readonly
2921
- * @category node
2922
- */
2923
- readonly GERRIT_PROJECT?: string;
2924
- /**
2925
- * The gitea actions build ID. This value is set by certain CI/CD systems.
2926
- *
2927
- * @readonly
2928
- * @category node
2929
- */
2930
- readonly GITEA_ACTIONS?: string;
2931
- /**
2932
- * The github actions build ID. This value is set by certain CI/CD systems.
2933
- *
2934
- * @readonly
2935
- * @category node
2936
- */
2937
- readonly GITHUB_ACTIONS?: string;
2938
- /**
2939
- * The gitlab ci build ID. This value is set by certain CI/CD systems.
2940
- *
2941
- * @readonly
2942
- * @category node
2943
- */
2944
- readonly GITLAB_CI?: string;
2945
- /**
2946
- * The go cd build ID. This value is set by certain CI/CD systems.
2947
- *
2948
- * @readonly
2949
- * @category node
2950
- */
2951
- readonly GOCD?: string;
2952
- /**
2953
- * The builder output build ID. This value is set by certain CI/CD systems.
2954
- *
2955
- * @readonly
2956
- * @category node
2957
- */
2958
- readonly BUILDER_OUTPUT?: string;
2959
- /**
2960
- * The harness build ID. This value is set by certain CI/CD systems.
2961
- *
2962
- * @readonly
2963
- * @category node
2964
- */
2965
- readonly HARNESS_BUILD_ID?: string;
2966
- /**
2967
- * The jenkins url. This value is set by certain CI/CD systems.
2968
- *
2969
- * @readonly
2970
- * @category node
2971
- */
2972
- readonly JENKINS_URL?: string;
2973
- /**
2974
- * The layerci build ID. This value is set by certain CI/CD systems.
2975
- *
2976
- * @readonly
2977
- * @category node
2978
- */
2979
- readonly LAYERCI?: string;
2980
- /**
2981
- * The magnum build ID. This value is set by certain CI/CD systems.
2982
- *
2983
- * @readonly
2984
- * @category node
2985
- */
2986
- readonly MAGNUM?: string;
2987
- /**
2988
- * The netlify build ID. This value is set by certain CI/CD systems.
2989
- *
2990
- * @readonly
2991
- * @category node
2992
- */
2993
- readonly NETLIFY?: string;
2994
- /**
2995
- * The nevercode build ID. This value is set by certain CI/CD systems.
2996
- *
2997
- * @readonly
2998
- * @category node
2999
- */
3000
- readonly NEVERCODE?: string;
3001
- /**
3002
- * The prow job ID. This value is set by certain CI/CD systems.
3003
- *
3004
- * @readonly
3005
- * @category node
3006
- */
3007
- readonly PROW_JOB_ID?: string;
3008
- /**
3009
- * The release build ID. This value is set by certain CI/CD systems.
3010
- *
3011
- * @readonly
3012
- * @category node
3013
- */
3014
- readonly RELEASE_BUILD_ID?: string;
3015
- /**
3016
- * The render build ID. This value is set by certain CI/CD systems.
3017
- *
3018
- * @readonly
3019
- * @category node
3020
- */
3021
- readonly RENDER?: string;
3022
- /**
3023
- * The sailci build ID. This value is set by certain CI/CD systems.
3024
- *
3025
- * @readonly
3026
- * @category node
3027
- */
3028
- readonly SAILCI?: string;
3029
- /**
3030
- * The hudson build ID. This value is set by certain CI/CD systems.
3031
- *
3032
- * @readonly
3033
- * @category node
3034
- */
3035
- readonly HUDSON?: string;
3036
- /**
3037
- * The screwdriver build ID. This value is set by certain CI/CD systems.
3038
- *
3039
- * @readonly
3040
- * @category node
3041
- */
3042
- readonly SCREWDRIVER?: string;
3043
- /**
3044
- * The semaphore build ID. This value is set by certain CI/CD systems.
3045
- *
3046
- * @readonly
3047
- * @category node
3048
- */
3049
- readonly SEMAPHORE?: string;
3050
- /**
3051
- * The sourcehut build ID. This value is set by certain CI/CD systems.
3052
- *
3053
- * @readonly
3054
- * @category node
3055
- */
3056
- readonly SOURCEHUT?: string;
3057
- /**
3058
- * The spaceship build ID. This value is set by certain CI/CD systems.
3059
- *
3060
- * @readonly
3061
- * @category node
3062
- */
3063
- readonly SPACESHIP_CI?: string;
3064
- /**
3065
- * The strider build ID. This value is set by certain CI/CD systems.
3066
- *
3067
- * @readonly
3068
- * @category node
3069
- */
3070
- readonly STRIDER?: string;
3071
- /**
3072
- * The task ID. This value is set by certain CI/CD systems.
3073
- *
3074
- * @readonly
3075
- * @category node
3076
- */
3077
- readonly TASK_ID?: string;
3078
- /**
3079
- * The teamcity version. This value is set by certain CI/CD systems.
3080
- *
3081
- * @readonly
3082
- * @category node
3083
- */
3084
- readonly TEAMCITY_VERSION?: string;
3085
- /**
3086
- * The travis build ID. This value is set by certain CI/CD systems.
3087
- *
3088
- * @readonly
3089
- * @category node
3090
- */
3091
- readonly TRAVIS?: string;
3092
- /**
3093
- * The vela build ID. This value is set by certain CI/CD systems.
3094
- *
3095
- * @readonly
3096
- * @category node
3097
- */
3098
- readonly VELA?: string;
3099
- /**
3100
- * The now builder build ID. This value is set by certain CI/CD systems.
3101
- *
3102
- * @readonly
3103
- * @category node
3104
- */
3105
- readonly NOW_BUILDER?: string;
3106
- /**
3107
- * The appcenter build ID. This value is set by certain CI/CD systems.
3108
- *
3109
- * @readonly
3110
- * @category node
3111
- */
3112
- readonly APPCENTER_BUILD_ID?: string;
3113
- /**
3114
- * The xcode project build ID. This value is set by certain CI/CD systems.
3115
- *
3116
- * @readonly
3117
- * @category node
3118
- */
3119
- readonly CI_XCODE_PROJECT?: string;
3120
- /**
3121
- * The xcode server build ID. This value is set by certain CI/CD systems.
3122
- *
3123
- * @readonly
3124
- * @category node
3125
- */
3126
- readonly XCS?: string;
3127
- /**
3128
- * The application's runtime data directory.
3129
- *
3130
- * @remarks
3131
- * 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.
3132
- *
3133
- * @title Data Directory
3134
- * @category node
3135
- */
3136
- DATA_DIR?: string;
3137
- /**
3138
- * The application's configuration data directory.
3139
- *
3140
- * @remarks
3141
- * 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.
3142
- *
3143
- * @title Configuration Directory
3144
- * @category node
3145
- */
3146
- CONFIG_DIR?: string;
3147
- /**
3148
- * The application's cached data directory.
3149
- *
3150
- * @remarks
3151
- * 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.
3152
- *
3153
- * @title Cache Directory
3154
- * @category node
3155
- */
3156
- CACHE_DIR?: string;
3157
- /**
3158
- * The application's logging directory.
3159
- *
3160
- * @remarks
3161
- * 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.
3162
- *
3163
- * @title Log Directory
3164
- * @category node
3165
- */
3166
- LOG_DIR?: string;
3167
- /**
3168
- * The application's temporary data directory.
3169
- *
3170
- * @remarks
3171
- * 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.
3172
- *
3173
- * @title Temporary Directory
3174
- * @category node
3175
- */
3176
- TEMP_DIR?: string;
3177
- /**
3178
- * A variable that specifies the current user's local application data directory on Windows.
3179
- *
3180
- * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html
3181
- *
3182
- * @remarks
3183
- * 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.
3184
- *
3185
- * @readonly
3186
- * @category node
3187
- */
3188
- readonly LOCALAPPDATA?: string;
3189
- /**
3190
- * A variable that specifies the application data directory on Windows.
3191
- *
3192
- * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html
3193
- *
3194
- * @remarks
3195
- * 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.
3196
- *
3197
- * @readonly
3198
- * @category node
3199
- */
3200
- readonly APPDATA?: string;
3201
- /**
3202
- * A variable that specifies the data path in the home directory on Linux systems using the XDG base directory specification.
3203
- *
3204
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3205
- *
3206
- * @remarks
3207
- * 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.
3208
- *
3209
- * @readonly
3210
- * @category node
3211
- */
3212
- readonly XDG_DATA_HOME?: string;
3213
- /**
3214
- * A variable that specifies the configuration path in the home directory on Linux systems using the XDG base directory specification.
3215
- *
3216
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3217
- *
3218
- * @remarks
3219
- * 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.
3220
- *
3221
- * @readonly
3222
- * @category node
3223
- */
3224
- readonly XDG_CONFIG_HOME?: string;
3225
- /**
3226
- * A variable that specifies the cache path in the home directory on Linux systems using the XDG base directory specification.
3227
- *
3228
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3229
- *
3230
- * @remarks
3231
- * 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.
3232
- *
3233
- * @readonly
3234
- * @category node
3235
- */
3236
- readonly XDG_CACHE_HOME?: string;
3237
- /**
3238
- * A variable that specifies the state directory on Linux systems using the XDG base directory specification.
3239
- *
3240
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3241
- *
3242
- * @remarks
3243
- * 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.
3244
- *
3245
- * @readonly
3246
- * @category node
3247
- */
3248
- readonly XDG_STATE_HOME?: string;
3249
- /**
3250
- * A variable that specifies the runtime directory on Linux systems using the XDG base directory specification.
3251
- *
3252
- * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
3253
- *
3254
- * @remarks
3255
- * 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.
3256
- *
3257
- * @readonly
3258
- * @category node
3259
- */
3260
- readonly XDG_RUNTIME_DIR?: string;
3261
- /**
3262
- * A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.
3263
- *
3264
- * @see https://devenv.sh/files-and-variables/#devenv_dotfile
3265
- * @see https://nixos.org/
3266
- *
3267
- * @remarks
3268
- * 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.
3269
- *
3270
- * @category node
3271
- */
3272
- DEVENV_RUNTIME?: string;
3273
- }
3274
- /**
3275
- * The base secrets configuration used by Powerlines applications
3276
- *
3277
- * @remarks
3278
- * 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).
3279
- */
3280
- interface SecretsInterface {
3281
- /**
3282
- * The secret key used for encryption and decryption.
3283
- *
3284
- * @remarks
3285
- * 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.
3286
- *
3287
- * @title Encryption Key
3288
- */
3289
- ENCRYPTION_KEY: string;
3290
- }
3291
- declare type __ΩEnvInterface = any[];
3292
- declare type __ΩSecretsInterface = any[];
3293
-
3294
- export type { BabelTransformPluginOptions as B, Context as C, DeclareBabelTransformPluginReturn as D, EnvInterface as E, Plugin as P, ResolvedConfig as R, SecretsInterface as S, UserConfig as U, __ΩEnvInterface as _, EnvironmentResolvedConfig as a, __ΩSecretsInterface as b, BabelUserConfig as c, BabelResolvedConfig as d, PluginContext as e, Reflection as f };