@pipelab/shared 2.0.1-beta.20

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 (54) hide show
  1. package/.turbo/turbo-build.log +41 -0
  2. package/.turbo/turbo-lint.log +136 -0
  3. package/CHANGELOG.md +167 -0
  4. package/LICENSE +110 -0
  5. package/LICENSE.md +110 -0
  6. package/README.md +3 -0
  7. package/dist/index.d.mts +3603 -0
  8. package/dist/index.d.mts.map +1 -0
  9. package/dist/index.mjs +43763 -0
  10. package/dist/index.mjs.map +1 -0
  11. package/package.json +53 -0
  12. package/src/apis.ts +191 -0
  13. package/src/build-history.ts +127 -0
  14. package/src/config/migrators.ts +308 -0
  15. package/src/config/projects-definition.ts +25 -0
  16. package/src/config/projects-types.ts +25 -0
  17. package/src/config/projects.ts +1 -0
  18. package/src/config/settings-definition.ts +21 -0
  19. package/src/config/settings.ts +21 -0
  20. package/src/config.schema.ts +149 -0
  21. package/src/database.types.ts +95 -0
  22. package/src/errors.ts +11 -0
  23. package/src/evaluator.ts +58 -0
  24. package/src/fmt.ts +5 -0
  25. package/src/graph.ts +207 -0
  26. package/src/i18n/de_DE.json +86 -0
  27. package/src/i18n/en_US.json +147 -0
  28. package/src/i18n/es_ES.json +86 -0
  29. package/src/i18n/fr_FR.json +89 -0
  30. package/src/i18n/pt_BR.json +86 -0
  31. package/src/i18n/zh_CN.json +86 -0
  32. package/src/i18n-utils.ts +10 -0
  33. package/src/index.ts +51 -0
  34. package/src/ipc.types.ts +73 -0
  35. package/src/logger.ts +20 -0
  36. package/src/migrations/model.ts +1 -0
  37. package/src/migrations/projects.ts +1 -0
  38. package/src/migrations/settings.ts +1 -0
  39. package/src/model.test.ts +214 -0
  40. package/src/model.ts +233 -0
  41. package/src/plugins/definitions.ts +472 -0
  42. package/src/plugins.ts +20 -0
  43. package/src/quickjs.ts +98 -0
  44. package/src/save-location.ts +42 -0
  45. package/src/subscription-errors.ts +87 -0
  46. package/src/supabase.ts +28 -0
  47. package/src/tests/helpers.ts +5 -0
  48. package/src/types.ts +3 -0
  49. package/src/utils.ts +3 -0
  50. package/src/validation.ts +16 -0
  51. package/src/variables.ts +27 -0
  52. package/src/wasm.d.ts +9 -0
  53. package/src/websocket.types.ts +186 -0
  54. package/tsconfig.json +13 -0
@@ -0,0 +1,3603 @@
1
+ /// <reference types="node" />
2
+ import * as valibot from "valibot";
3
+ import { GenericSchema, InferInput, InferOutput } from "valibot";
4
+ import { ILogObjMeta, Logger } from "tslog";
5
+ import { RELEASE_SYNC, newVariant } from "quickjs-emscripten";
6
+ import * as _supabase_supabase_js0 from "@supabase/supabase-js";
7
+ import { User, UserResponse } from "@supabase/supabase-js";
8
+ import { ConditionalPick, Simplify, Tagged } from "type-fest";
9
+ import { WebSocket } from "ws";
10
+ import { IncomingMessage as IncomingMessage$1 } from "http";
11
+
12
+ //#region src/config/migrators.d.ts
13
+ interface Migrator<T> {
14
+ migrate: (data: any, options?: any) => Promise<T>;
15
+ defaultValue: T;
16
+ }
17
+ //#endregion
18
+ //#region ../../node_modules/electron/electron.d.ts
19
+ declare module 'electron' {
20
+ export = Electron.CrossProcessExports;
21
+ }
22
+ declare module 'electron/main' {
23
+ export = Electron.Main;
24
+ }
25
+ declare module 'electron/common' {
26
+ export = Electron.Common;
27
+ }
28
+ declare module 'electron/renderer' {
29
+ export = Electron.Renderer;
30
+ }
31
+ declare module 'electron/utility' {
32
+ export = Electron.Utility;
33
+ }
34
+ declare module 'original-fs' {
35
+ import * as fs from 'fs';
36
+ export = fs;
37
+ }
38
+ declare module 'node:original-fs' {
39
+ import * as fs from 'fs';
40
+ export = fs;
41
+ }
42
+ //#endregion
43
+ //#region src/plugins/definitions.d.ts
44
+ type PathOptions = {
45
+ filter?: RegExp;
46
+ type?: "file" | "folder";
47
+ };
48
+ type PropType = "string" | "number" | "boolean" | "array" | {
49
+ type: "array";
50
+ of: PropType;
51
+ } | "any" | PropType[];
52
+ interface ControlTypeBase {
53
+ type: string;
54
+ }
55
+ interface ControlTypeInput extends ControlTypeBase {
56
+ type: "input";
57
+ options: {
58
+ kind: "number" | "text";
59
+ validator?: string;
60
+ placeholder?: string;
61
+ password?: boolean;
62
+ };
63
+ }
64
+ interface ControlTypeExpression extends ControlTypeBase {
65
+ type: "expression";
66
+ options: {};
67
+ }
68
+ interface ControlTypeNetlifySite extends ControlTypeBase {
69
+ type: "netlify-site";
70
+ options: {
71
+ allowCreate?: boolean;
72
+ placeholder?: string;
73
+ tokenKey: string;
74
+ };
75
+ }
76
+ interface PipelabSelectOption {
77
+ label: string;
78
+ value: string;
79
+ }
80
+ interface ControlTypeSelect extends ControlTypeBase {
81
+ type: "select";
82
+ options: {
83
+ options: Array<PipelabSelectOption>;
84
+ placeholder: string;
85
+ };
86
+ }
87
+ interface ControlTypeMultiSelect extends ControlTypeBase {
88
+ type: "multi-select";
89
+ options: {
90
+ options: Array<PipelabSelectOption>;
91
+ placeholder: string;
92
+ };
93
+ }
94
+ interface ControlTypeBoolean extends ControlTypeBase {
95
+ type: "boolean";
96
+ }
97
+ interface ControlTypeCheckbox extends ControlTypeBase {
98
+ type: "checkbox";
99
+ }
100
+ interface ControlTypePath extends ControlTypeBase {
101
+ type: "path";
102
+ options: OpenDialogOptions$1;
103
+ label?: string;
104
+ }
105
+ interface ControlTypeJSON extends ControlTypeBase {
106
+ type: "json";
107
+ }
108
+ interface ControlTypeArray extends ControlTypeBase {
109
+ type: "array";
110
+ options: {
111
+ kind: "number" | "text";
112
+ };
113
+ }
114
+ interface ControlTypeColor extends ControlTypeBase {
115
+ type: "color";
116
+ }
117
+ interface ControlTypeElectronConfigureV2 extends ControlTypeBase {
118
+ type: "electron:configure:v2";
119
+ }
120
+ type ControlType = ControlTypeInput | ControlTypeSelect | ControlTypeMultiSelect | ControlTypeBoolean | ControlTypeCheckbox | ControlTypePath | ControlTypeJSON | ControlTypeExpression | ControlTypeNetlifySite | ControlTypeArray | ControlTypeColor | ControlTypeElectronConfigureV2;
121
+ type InputDefinition<T extends ControlType = ControlType> = {
122
+ label: string;
123
+ description?: string;
124
+ validator?: () => any;
125
+ required: boolean;
126
+ control: T;
127
+ value: unknown;
128
+ platforms?: NodeJS.Platform[];
129
+ onNodeUpdate?: (value: any, settings: InputDefinition<any>) => void;
130
+ };
131
+ type InputsDefinition = Record<string, InputDefinition>;
132
+ type Meta = Record<string, unknown>;
133
+ interface OutputDefinition {
134
+ label: string;
135
+ description?: string;
136
+ deprecated?: boolean;
137
+ validator?: (value: any) => any;
138
+ control?: ControlType;
139
+ value: unknown;
140
+ }
141
+ type OutputsDefinition = Record<string, OutputDefinition>;
142
+ type InputOutputDefinition = InputDefinition | OutputDefinition;
143
+ type IconType = {
144
+ type: "image";
145
+ /**
146
+ * base64 image
147
+ */
148
+ image: string;
149
+ } | {
150
+ type: "icon";
151
+ icon: string;
152
+ };
153
+ interface PluginDefinition {
154
+ id: string;
155
+ name: string;
156
+ icon: IconType;
157
+ description: string;
158
+ }
159
+ type RendererNodeDefinition = {
160
+ node: PipelabNode;
161
+ };
162
+ interface RendererPluginDefinition extends PluginDefinition {
163
+ nodes: Array<RendererNodeDefinition>;
164
+ }
165
+ interface MainPluginDefinition extends PluginDefinition {
166
+ nodes: ({
167
+ runner: any;
168
+ } & RendererNodeDefinition)[];
169
+ validators?: Array<{
170
+ id: string;
171
+ description: string;
172
+ validator: (options: any) => any;
173
+ }>;
174
+ }
175
+ declare const createNodeDefinition: (def: MainPluginDefinition) => MainPluginDefinition;
176
+ type InputsOutputsDefinition = InputsDefinition | OutputsDefinition;
177
+ type GetFlowEntries<T extends InputsOutputsDefinition> = ConditionalPick<T, {
178
+ type: "flow";
179
+ }>;
180
+ type GetDataEntries<T extends InputsOutputsDefinition> = ConditionalPick<T, {
181
+ type: "data";
182
+ }>;
183
+ type GetFlowKeys<T extends InputsOutputsDefinition> = keyof GetFlowEntries<T>;
184
+ type GetDataKeys<T extends InputsOutputsDefinition> = keyof GetDataEntries<T>;
185
+ type DataResult = Record<string, any>;
186
+ type SetOutputActionFn<T extends Action> = (key: keyof T["outputs"], value: T["outputs"][typeof key]["value"]) => void;
187
+ type SetOutputLoopFn<T extends Loop> = (key: keyof T["outputs"], value: T["outputs"][typeof key]["value"]) => void;
188
+ type SetOutputExpressionFn<T extends Expression> = (key: keyof T["outputs"], value: T["outputs"][typeof key]["value"]) => void;
189
+ type ParamsToInput<PARAMS extends InputsDefinition> = { [index in keyof PARAMS]: PARAMS[index]["required"] extends true ? PARAMS[index]["value"] : PARAMS[index]["value"] | null };
190
+ interface BaseNode {
191
+ disabled?: boolean | string;
192
+ advanced?: boolean | string;
193
+ updateAvailable?: boolean | string;
194
+ }
195
+ interface Action extends BaseNode {
196
+ id: string;
197
+ type: "action";
198
+ version?: number;
199
+ displayString: string;
200
+ icon: string;
201
+ name: string;
202
+ description: string;
203
+ params: InputsDefinition;
204
+ meta: Meta;
205
+ outputs: OutputsDefinition;
206
+ platforms?: NodeJS.Platform[];
207
+ deprecated?: boolean;
208
+ deprecatedMessage?: string;
209
+ }
210
+ type ExtractInputsFromAction<ACTION extends Action> = { [index in keyof ACTION["params"]]: ACTION["params"][index]["value"] };
211
+ type ExtractInputsFromCondition<CONDITION extends Condition> = { [index in keyof CONDITION["params"]]: CONDITION["params"][index]["value"] };
212
+ type ExtractInputsFromLoop<LOOP extends Loop> = { [index in keyof LOOP["params"]]: LOOP["params"][index]["value"] };
213
+ type ExtractInputsFromEvent<EVENT extends Event$1> = { [index in keyof EVENT["params"]]: EVENT["params"][index]["value"] };
214
+ type ExtractInputsFromExpression<EXPRESSION extends Expression> = { [index in keyof EXPRESSION["params"]]: EXPRESSION["params"][index]["value"] };
215
+ interface Condition extends BaseNode {
216
+ id: string;
217
+ type: "condition";
218
+ version?: number;
219
+ displayString: string;
220
+ icon: string;
221
+ name: string;
222
+ description: string;
223
+ params: InputsDefinition;
224
+ meta?: Meta;
225
+ platforms?: NodeJS.Platform[];
226
+ }
227
+ interface Loop extends BaseNode {
228
+ id: string;
229
+ type: "loop";
230
+ version?: number;
231
+ displayString: string;
232
+ icon: string;
233
+ name: string;
234
+ description: string;
235
+ params: InputsDefinition;
236
+ meta?: Meta;
237
+ outputs: OutputsDefinition;
238
+ }
239
+ interface Expression extends BaseNode {
240
+ id: string;
241
+ type: "expression";
242
+ displayString: string;
243
+ version?: number;
244
+ icon: string;
245
+ name: string;
246
+ description: string;
247
+ params: InputsDefinition;
248
+ meta?: Meta;
249
+ outputs: OutputsDefinition;
250
+ }
251
+ interface Event$1 extends BaseNode {
252
+ id: string;
253
+ type: "event";
254
+ version?: number;
255
+ displayString: string;
256
+ icon: string;
257
+ name: string;
258
+ description: string;
259
+ params: InputsDefinition;
260
+ meta?: Meta;
261
+ platforms?: NodeJS.Platform[];
262
+ }
263
+ type PipelabNode = Event$1 | Condition | Expression | Action | Loop;
264
+ declare const createDefinition: <T extends MainPluginDefinition>(definition: T) => T;
265
+ declare const createAction: <T extends Omit<Action, "type">>(action: T) => T & {
266
+ type: "action";
267
+ };
268
+ declare const createStringParam: (value: string, definition: Omit<InputDefinition<ControlTypeInput>, "value" | "control">) => {
269
+ control: {
270
+ type: "input";
271
+ options: {
272
+ kind: "text";
273
+ };
274
+ };
275
+ value: string;
276
+ description?: string;
277
+ platforms?: NodeJS.Platform[];
278
+ label: string;
279
+ validator?: () => any;
280
+ required: boolean;
281
+ onNodeUpdate?: (value: any, settings: InputDefinition<any>) => void;
282
+ };
283
+ declare const createColorPicker: (value: string, definition: Omit<InputDefinition<ControlTypeColor>, "value" | "control">) => {
284
+ control: {
285
+ type: "color";
286
+ };
287
+ value: string;
288
+ description?: string;
289
+ platforms?: NodeJS.Platform[];
290
+ label: string;
291
+ validator?: () => any;
292
+ required: boolean;
293
+ onNodeUpdate?: (value: any, settings: InputDefinition<any>) => void;
294
+ };
295
+ declare const createPasswordParam: (value: string, definition: Omit<InputDefinition<ControlTypeInput>, "value" | "control">) => {
296
+ control: {
297
+ type: "input";
298
+ options: {
299
+ kind: "text";
300
+ password: true;
301
+ };
302
+ };
303
+ value: string;
304
+ description?: string;
305
+ platforms?: NodeJS.Platform[];
306
+ label: string;
307
+ validator?: () => any;
308
+ required: boolean;
309
+ onNodeUpdate?: (value: any, settings: InputDefinition<any>) => void;
310
+ };
311
+ declare const createPathParam: (value: string | undefined, definition: Omit<InputDefinition<ControlTypePath>, "value">) => {
312
+ value: string;
313
+ description?: string;
314
+ platforms?: NodeJS.Platform[];
315
+ control: ControlTypePath;
316
+ label: string;
317
+ validator?: () => any;
318
+ required: boolean;
319
+ onNodeUpdate?: (value: any, settings: InputDefinition<any>) => void;
320
+ };
321
+ declare const createArray: <T extends unknown[]>(value: string | Array<unknown>, definition: Omit<InputDefinition<ControlTypeArray>, "value">) => {
322
+ value: T;
323
+ description?: string;
324
+ platforms?: NodeJS.Platform[];
325
+ control: ControlTypeArray;
326
+ label: string;
327
+ validator?: () => any;
328
+ required: boolean;
329
+ onNodeUpdate?: (value: any, settings: InputDefinition<any>) => void;
330
+ };
331
+ declare const createNetlifySiteParam: (value: string, tokenKey: string, definition: Omit<InputDefinition<ControlTypeNetlifySite>, "value" | "control">) => {
332
+ control: {
333
+ type: "netlify-site";
334
+ options: {
335
+ allowCreate: true;
336
+ placeholder: string;
337
+ tokenKey: string;
338
+ };
339
+ };
340
+ value: string;
341
+ description?: string;
342
+ platforms?: NodeJS.Platform[];
343
+ label: string;
344
+ validator?: () => any;
345
+ required: boolean;
346
+ onNodeUpdate?: (value: any, settings: InputDefinition<any>) => void;
347
+ };
348
+ declare const createNumberParam: (value: number, definition: Omit<InputDefinition<ControlTypeInput>, "value" | "control">) => {
349
+ control: {
350
+ type: "input";
351
+ options: {
352
+ kind: "number";
353
+ };
354
+ };
355
+ value: number;
356
+ description?: string;
357
+ platforms?: NodeJS.Platform[];
358
+ label: string;
359
+ validator?: () => any;
360
+ required: boolean;
361
+ onNodeUpdate?: (value: any, settings: InputDefinition<any>) => void;
362
+ };
363
+ declare const createBooleanParam: (value: boolean, definition: Omit<InputDefinition<ControlTypeBoolean>, "value" | "control">) => {
364
+ control: {
365
+ type: "boolean";
366
+ };
367
+ value: boolean;
368
+ description?: string;
369
+ platforms?: NodeJS.Platform[];
370
+ label: string;
371
+ validator?: () => any;
372
+ required: boolean;
373
+ onNodeUpdate?: (value: any, settings: InputDefinition<any>) => void;
374
+ };
375
+ declare const createRawParam: <T>(value: T, definition: Omit<InputDefinition, "value">) => {
376
+ value: T;
377
+ description?: string;
378
+ platforms?: NodeJS.Platform[];
379
+ control: ControlType;
380
+ label: string;
381
+ validator?: () => any;
382
+ required: boolean;
383
+ onNodeUpdate?: (value: any, settings: InputDefinition<any>) => void;
384
+ };
385
+ declare const createExpression: <T extends Omit<Expression, "type">>(expression: T) => T & {
386
+ type: "expression";
387
+ };
388
+ declare const createCondition: <T extends Omit<Condition, "type">>(condition: T) => T & {
389
+ type: "condition";
390
+ };
391
+ declare const createLoop: <T extends Omit<Loop, "type">>(loop: T) => T & {
392
+ type: "loop";
393
+ };
394
+ declare const createEvent: <T extends Omit<Event$1, "type">>(event: T) => T & {
395
+ type: "event";
396
+ };
397
+ //#endregion
398
+ //#region src/quickjs.d.ts
399
+ /**
400
+ * Creates a QuickJS instance from an already-resolved variant.
401
+ * Callers are responsible for importing and passing the correct variant
402
+ * for their environment (Node vs browser) using a static import.
403
+ */
404
+ declare const createQuickJsFromVariant: (variant: any) => Promise<{
405
+ run: (code: string, params: Record<string, unknown>) => any;
406
+ createContext: () => {
407
+ run: (code: string, params: Record<string, unknown>) => any;
408
+ dispose: () => void;
409
+ };
410
+ }>;
411
+ declare const createQuickJs: () => Promise<{
412
+ run: (code: string, params: Record<string, unknown>) => any;
413
+ createContext: () => {
414
+ run: (code: string, params: Record<string, unknown>) => any;
415
+ dispose: () => void;
416
+ };
417
+ }>;
418
+ type CreateQuickJSFn = ReturnType<typeof createQuickJs>;
419
+ //#endregion
420
+ //#region src/variables.d.ts
421
+ interface VariableBase {
422
+ value: string;
423
+ id: string;
424
+ name: string;
425
+ description: string;
426
+ }
427
+ type Variable = VariableBase;
428
+ declare const variableToFormattedVariable: (vm: Awaited<CreateQuickJSFn>, variables: Variable[]) => Promise<Record<string, string>>;
429
+ //#endregion
430
+ //#region src/utils.d.ts
431
+ declare const foo = "bar";
432
+ type WithId<T> = T extends string | number ? never : T & {
433
+ id: string;
434
+ };
435
+ //#endregion
436
+ //#region src/save-location.d.ts
437
+ declare const SaveLocationInternalValidator: valibot.ObjectSchema<{
438
+ readonly id: valibot.StringSchema<undefined>;
439
+ readonly project: valibot.StringSchema<undefined>;
440
+ readonly lastModified: valibot.StringSchema<undefined>;
441
+ readonly type: valibot.LiteralSchema<"internal", undefined>;
442
+ readonly configName: valibot.StringSchema<undefined>;
443
+ }, undefined>;
444
+ type SaveLocationInternal = InferInput<typeof SaveLocationInternalValidator>;
445
+ /** @deprecated External pipeline files are deprecated and will be removed in future versions. */
446
+ declare const SaveLocationExternalValidator: valibot.ObjectSchema<{
447
+ readonly id: valibot.StringSchema<undefined>;
448
+ readonly project: valibot.StringSchema<undefined>;
449
+ readonly path: valibot.StringSchema<undefined>;
450
+ readonly lastModified: valibot.StringSchema<undefined>;
451
+ readonly type: valibot.LiteralSchema<"external", undefined>;
452
+ readonly summary: valibot.ObjectSchema<{
453
+ readonly plugins: valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>;
454
+ readonly name: valibot.StringSchema<undefined>;
455
+ readonly description: valibot.StringSchema<undefined>;
456
+ }, undefined>;
457
+ }, undefined>;
458
+ /** @deprecated External pipeline files are deprecated and will be removed in future versions. */
459
+ type SaveLocationExternal = InferInput<typeof SaveLocationExternalValidator>;
460
+ declare const SaveLocationPipelabCloudValidator: valibot.ObjectSchema<{
461
+ readonly id: valibot.StringSchema<undefined>;
462
+ readonly project: valibot.StringSchema<undefined>;
463
+ readonly type: valibot.LiteralSchema<"pipelab-cloud", undefined>;
464
+ }, undefined>;
465
+ type SaveLocationPipelabCloud = InferInput<typeof SaveLocationPipelabCloudValidator>;
466
+ declare const SaveLocationValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
467
+ readonly id: valibot.StringSchema<undefined>;
468
+ readonly project: valibot.StringSchema<undefined>;
469
+ readonly path: valibot.StringSchema<undefined>;
470
+ readonly lastModified: valibot.StringSchema<undefined>;
471
+ readonly type: valibot.LiteralSchema<"external", undefined>;
472
+ readonly summary: valibot.ObjectSchema<{
473
+ readonly plugins: valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>;
474
+ readonly name: valibot.StringSchema<undefined>;
475
+ readonly description: valibot.StringSchema<undefined>;
476
+ }, undefined>;
477
+ }, undefined>, valibot.ObjectSchema<{
478
+ readonly id: valibot.StringSchema<undefined>;
479
+ readonly project: valibot.StringSchema<undefined>;
480
+ readonly lastModified: valibot.StringSchema<undefined>;
481
+ readonly type: valibot.LiteralSchema<"internal", undefined>;
482
+ readonly configName: valibot.StringSchema<undefined>;
483
+ }, undefined>, valibot.ObjectSchema<{
484
+ readonly id: valibot.StringSchema<undefined>;
485
+ readonly project: valibot.StringSchema<undefined>;
486
+ readonly type: valibot.LiteralSchema<"pipelab-cloud", undefined>;
487
+ }, undefined>], undefined>;
488
+ type SaveLocation = InferInput<typeof SaveLocationValidator>;
489
+ //#endregion
490
+ //#region src/model.d.ts
491
+ type Position = {
492
+ x: number;
493
+ y: number;
494
+ };
495
+ declare const OriginValidator: valibot.ObjectSchema<{
496
+ readonly pluginId: valibot.StringSchema<undefined>;
497
+ readonly nodeId: valibot.StringSchema<undefined>;
498
+ }, undefined>;
499
+ type Origin = InferOutput<typeof OriginValidator>;
500
+ declare const EditorParamValidatorV3: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
501
+ type EditorParam = InferOutput<typeof EditorParamValidatorV3>;
502
+ declare const BlockActionValidatorV3: valibot.ObjectSchema<{
503
+ readonly type: valibot.LiteralSchema<"action", undefined>;
504
+ readonly uid: valibot.StringSchema<undefined>;
505
+ readonly name: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "A custom name provided by the user">]>;
506
+ readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
507
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
508
+ readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
509
+ readonly value: valibot.UnknownSchema;
510
+ }, undefined>, undefined>;
511
+ readonly origin: valibot.ObjectSchema<{
512
+ readonly pluginId: valibot.StringSchema<undefined>;
513
+ readonly nodeId: valibot.StringSchema<undefined>;
514
+ }, undefined>;
515
+ }, undefined>;
516
+ type BlockCondition = {
517
+ type: "condition";
518
+ uid: string;
519
+ origin: Origin;
520
+ params: Record<string, any>;
521
+ branchTrue: Array<Block>;
522
+ branchFalse: Array<Block>;
523
+ };
524
+ type BlockLoop = {
525
+ type: "loop";
526
+ uid: string;
527
+ origin: Origin;
528
+ params: Record<string, any>;
529
+ children: Array<Block>;
530
+ };
531
+ declare const BlockEventValidator: valibot.ObjectSchema<{
532
+ readonly type: valibot.LiteralSchema<"event", undefined>;
533
+ readonly uid: valibot.StringSchema<undefined>;
534
+ readonly origin: valibot.ObjectSchema<{
535
+ readonly pluginId: valibot.StringSchema<undefined>;
536
+ readonly nodeId: valibot.StringSchema<undefined>;
537
+ }, undefined>;
538
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
539
+ }, undefined>;
540
+ declare const BlockCommentValidator: valibot.ObjectSchema<{
541
+ readonly type: valibot.LiteralSchema<"comment", undefined>;
542
+ readonly uid: valibot.StringSchema<undefined>;
543
+ readonly origin: valibot.ObjectSchema<{
544
+ readonly pluginId: valibot.StringSchema<undefined>;
545
+ readonly nodeId: valibot.StringSchema<undefined>;
546
+ }, undefined>;
547
+ readonly comment: valibot.StringSchema<undefined>;
548
+ }, undefined>;
549
+ declare const BlockValidatorV3: valibot.VariantSchema<"type", [valibot.ObjectSchema<{
550
+ readonly type: valibot.LiteralSchema<"action", undefined>;
551
+ readonly uid: valibot.StringSchema<undefined>;
552
+ readonly name: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "A custom name provided by the user">]>;
553
+ readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
554
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
555
+ readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
556
+ readonly value: valibot.UnknownSchema;
557
+ }, undefined>, undefined>;
558
+ readonly origin: valibot.ObjectSchema<{
559
+ readonly pluginId: valibot.StringSchema<undefined>;
560
+ readonly nodeId: valibot.StringSchema<undefined>;
561
+ }, undefined>;
562
+ }, undefined>], undefined>;
563
+ type BlockAction = Simplify<InferOutput<typeof BlockActionValidatorV3>>;
564
+ type BlockEvent = InferOutput<typeof BlockEventValidator>;
565
+ type BlockComment = InferOutput<typeof BlockCommentValidator>;
566
+ type Block = InferOutput<typeof BlockValidatorV3>;
567
+ declare const VariableValidatorV1: valibot.CustomSchema<VariableBase, undefined>;
568
+ declare const SavedFileValidatorV1: valibot.ObjectSchema<{
569
+ readonly version: valibot.LiteralSchema<"1.0.0", undefined>;
570
+ readonly name: valibot.StringSchema<undefined>;
571
+ readonly description: valibot.StringSchema<undefined>;
572
+ readonly canvas: valibot.ObjectSchema<{
573
+ readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
574
+ readonly type: valibot.LiteralSchema<"action", undefined>;
575
+ readonly uid: valibot.StringSchema<undefined>;
576
+ readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
577
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
578
+ readonly origin: valibot.ObjectSchema<{
579
+ readonly pluginId: valibot.StringSchema<undefined>;
580
+ readonly nodeId: valibot.StringSchema<undefined>;
581
+ }, undefined>;
582
+ }, undefined>, valibot.ObjectSchema<{
583
+ readonly type: valibot.LiteralSchema<"event", undefined>;
584
+ readonly uid: valibot.StringSchema<undefined>;
585
+ readonly origin: valibot.ObjectSchema<{
586
+ readonly pluginId: valibot.StringSchema<undefined>;
587
+ readonly nodeId: valibot.StringSchema<undefined>;
588
+ }, undefined>;
589
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
590
+ }, undefined>], undefined>, undefined>;
591
+ }, undefined>;
592
+ readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
593
+ }, undefined>;
594
+ declare const SavedFileValidatorV2: valibot.ObjectSchema<{
595
+ readonly version: valibot.LiteralSchema<"2.0.0", undefined>;
596
+ readonly name: valibot.StringSchema<undefined>;
597
+ readonly description: valibot.StringSchema<undefined>;
598
+ readonly canvas: valibot.ObjectSchema<{
599
+ readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
600
+ readonly type: valibot.LiteralSchema<"action", undefined>;
601
+ readonly uid: valibot.StringSchema<undefined>;
602
+ readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
603
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
604
+ readonly origin: valibot.ObjectSchema<{
605
+ readonly pluginId: valibot.StringSchema<undefined>;
606
+ readonly nodeId: valibot.StringSchema<undefined>;
607
+ }, undefined>;
608
+ }, undefined>], undefined>, undefined>;
609
+ readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
610
+ readonly type: valibot.LiteralSchema<"event", undefined>;
611
+ readonly uid: valibot.StringSchema<undefined>;
612
+ readonly origin: valibot.ObjectSchema<{
613
+ readonly pluginId: valibot.StringSchema<undefined>;
614
+ readonly nodeId: valibot.StringSchema<undefined>;
615
+ }, undefined>;
616
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
617
+ }, undefined>, undefined>;
618
+ }, undefined>;
619
+ readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
620
+ }, undefined>;
621
+ declare const SavedFileValidatorV3: valibot.ObjectSchema<{
622
+ readonly version: valibot.LiteralSchema<"3.0.0", undefined>;
623
+ readonly name: valibot.StringSchema<undefined>;
624
+ readonly description: valibot.StringSchema<undefined>;
625
+ readonly canvas: valibot.ObjectSchema<{
626
+ readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
627
+ readonly type: valibot.LiteralSchema<"action", undefined>;
628
+ readonly uid: valibot.StringSchema<undefined>;
629
+ readonly name: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "A custom name provided by the user">]>;
630
+ readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
631
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
632
+ readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
633
+ readonly value: valibot.UnknownSchema;
634
+ }, undefined>, undefined>;
635
+ readonly origin: valibot.ObjectSchema<{
636
+ readonly pluginId: valibot.StringSchema<undefined>;
637
+ readonly nodeId: valibot.StringSchema<undefined>;
638
+ }, undefined>;
639
+ }, undefined>], undefined>, undefined>;
640
+ readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
641
+ readonly type: valibot.LiteralSchema<"event", undefined>;
642
+ readonly uid: valibot.StringSchema<undefined>;
643
+ readonly origin: valibot.ObjectSchema<{
644
+ readonly pluginId: valibot.StringSchema<undefined>;
645
+ readonly nodeId: valibot.StringSchema<undefined>;
646
+ }, undefined>;
647
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
648
+ }, undefined>, undefined>;
649
+ }, undefined>;
650
+ readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
651
+ }, undefined>;
652
+ declare const SavedFileDefaultValidator: valibot.ObjectSchema<{
653
+ readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
654
+ readonly type: valibot.LiteralSchema<"default", undefined>;
655
+ readonly name: valibot.StringSchema<undefined>;
656
+ readonly description: valibot.StringSchema<undefined>;
657
+ readonly canvas: valibot.ObjectSchema<{
658
+ readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
659
+ readonly type: valibot.LiteralSchema<"action", undefined>;
660
+ readonly uid: valibot.StringSchema<undefined>;
661
+ readonly name: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "A custom name provided by the user">]>;
662
+ readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
663
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
664
+ readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
665
+ readonly value: valibot.UnknownSchema;
666
+ }, undefined>, undefined>;
667
+ readonly origin: valibot.ObjectSchema<{
668
+ readonly pluginId: valibot.StringSchema<undefined>;
669
+ readonly nodeId: valibot.StringSchema<undefined>;
670
+ }, undefined>;
671
+ }, undefined>], undefined>, undefined>;
672
+ readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
673
+ readonly type: valibot.LiteralSchema<"event", undefined>;
674
+ readonly uid: valibot.StringSchema<undefined>;
675
+ readonly origin: valibot.ObjectSchema<{
676
+ readonly pluginId: valibot.StringSchema<undefined>;
677
+ readonly nodeId: valibot.StringSchema<undefined>;
678
+ }, undefined>;
679
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
680
+ }, undefined>, undefined>;
681
+ }, undefined>;
682
+ readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
683
+ }, undefined>;
684
+ declare const SavedFileSimpleValidator: valibot.ObjectSchema<{
685
+ readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
686
+ readonly type: valibot.LiteralSchema<"simple", undefined>;
687
+ readonly name: valibot.StringSchema<undefined>;
688
+ readonly description: valibot.StringSchema<undefined>;
689
+ readonly source: valibot.ObjectSchema<{
690
+ readonly type: valibot.UnionSchema<[valibot.LiteralSchema<"c3-html", undefined>, valibot.LiteralSchema<"c3-nwjs", undefined>, valibot.LiteralSchema<"godot", undefined>, valibot.LiteralSchema<"html", undefined>], undefined>;
691
+ readonly path: valibot.StringSchema<undefined>;
692
+ }, undefined>;
693
+ readonly packaging: valibot.ObjectSchema<{
694
+ readonly enabled: valibot.BooleanSchema<undefined>;
695
+ }, undefined>;
696
+ readonly publishing: valibot.ObjectSchema<{
697
+ readonly steam: valibot.ObjectSchema<{
698
+ readonly enabled: valibot.BooleanSchema<undefined>;
699
+ readonly appId: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
700
+ }, undefined>;
701
+ readonly itch: valibot.ObjectSchema<{
702
+ readonly enabled: valibot.BooleanSchema<undefined>;
703
+ readonly project: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
704
+ }, undefined>;
705
+ readonly poki: valibot.ObjectSchema<{
706
+ readonly enabled: valibot.BooleanSchema<undefined>;
707
+ readonly gameId: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
708
+ }, undefined>;
709
+ }, undefined>;
710
+ }, undefined>;
711
+ type SavedFileDefault = InferOutput<typeof SavedFileDefaultValidator>;
712
+ type SavedFileSimple = InferOutput<typeof SavedFileSimpleValidator>;
713
+ declare const SavedFileValidatorV4: valibot.UnionSchema<[valibot.ObjectSchema<{
714
+ readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
715
+ readonly type: valibot.LiteralSchema<"default", undefined>;
716
+ readonly name: valibot.StringSchema<undefined>;
717
+ readonly description: valibot.StringSchema<undefined>;
718
+ readonly canvas: valibot.ObjectSchema<{
719
+ readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
720
+ readonly type: valibot.LiteralSchema<"action", undefined>;
721
+ readonly uid: valibot.StringSchema<undefined>;
722
+ readonly name: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "A custom name provided by the user">]>;
723
+ readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
724
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
725
+ readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
726
+ readonly value: valibot.UnknownSchema;
727
+ }, undefined>, undefined>;
728
+ readonly origin: valibot.ObjectSchema<{
729
+ readonly pluginId: valibot.StringSchema<undefined>;
730
+ readonly nodeId: valibot.StringSchema<undefined>;
731
+ }, undefined>;
732
+ }, undefined>], undefined>, undefined>;
733
+ readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
734
+ readonly type: valibot.LiteralSchema<"event", undefined>;
735
+ readonly uid: valibot.StringSchema<undefined>;
736
+ readonly origin: valibot.ObjectSchema<{
737
+ readonly pluginId: valibot.StringSchema<undefined>;
738
+ readonly nodeId: valibot.StringSchema<undefined>;
739
+ }, undefined>;
740
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
741
+ }, undefined>, undefined>;
742
+ }, undefined>;
743
+ readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
744
+ }, undefined>, valibot.ObjectSchema<{
745
+ readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
746
+ readonly type: valibot.LiteralSchema<"simple", undefined>;
747
+ readonly name: valibot.StringSchema<undefined>;
748
+ readonly description: valibot.StringSchema<undefined>;
749
+ readonly source: valibot.ObjectSchema<{
750
+ readonly type: valibot.UnionSchema<[valibot.LiteralSchema<"c3-html", undefined>, valibot.LiteralSchema<"c3-nwjs", undefined>, valibot.LiteralSchema<"godot", undefined>, valibot.LiteralSchema<"html", undefined>], undefined>;
751
+ readonly path: valibot.StringSchema<undefined>;
752
+ }, undefined>;
753
+ readonly packaging: valibot.ObjectSchema<{
754
+ readonly enabled: valibot.BooleanSchema<undefined>;
755
+ }, undefined>;
756
+ readonly publishing: valibot.ObjectSchema<{
757
+ readonly steam: valibot.ObjectSchema<{
758
+ readonly enabled: valibot.BooleanSchema<undefined>;
759
+ readonly appId: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
760
+ }, undefined>;
761
+ readonly itch: valibot.ObjectSchema<{
762
+ readonly enabled: valibot.BooleanSchema<undefined>;
763
+ readonly project: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
764
+ }, undefined>;
765
+ readonly poki: valibot.ObjectSchema<{
766
+ readonly enabled: valibot.BooleanSchema<undefined>;
767
+ readonly gameId: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
768
+ }, undefined>;
769
+ }, undefined>;
770
+ }, undefined>], undefined>;
771
+ type SavedFileV1 = InferOutput<typeof SavedFileValidatorV1>;
772
+ type SavedFileV2 = InferOutput<typeof SavedFileValidatorV2>;
773
+ type SavedFileV3 = InferOutput<typeof SavedFileValidatorV3>;
774
+ type SavedFileV4 = InferOutput<typeof SavedFileValidatorV4>;
775
+ type SavedFile = SavedFileV4;
776
+ declare const SavedFileValidator: valibot.UnionSchema<[valibot.ObjectSchema<{
777
+ readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
778
+ readonly type: valibot.LiteralSchema<"default", undefined>;
779
+ readonly name: valibot.StringSchema<undefined>;
780
+ readonly description: valibot.StringSchema<undefined>;
781
+ readonly canvas: valibot.ObjectSchema<{
782
+ readonly blocks: valibot.ArraySchema<valibot.VariantSchema<"type", [valibot.ObjectSchema<{
783
+ readonly type: valibot.LiteralSchema<"action", undefined>;
784
+ readonly uid: valibot.StringSchema<undefined>;
785
+ readonly name: valibot.SchemaWithPipe<[valibot.OptionalSchema<valibot.StringSchema<undefined>, never>, valibot.DescriptionAction<string, "A custom name provided by the user">]>;
786
+ readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, never>;
787
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.ObjectSchema<{
788
+ readonly editor: valibot.UnionSchema<[valibot.LiteralSchema<"simple", undefined>, valibot.LiteralSchema<"editor", undefined>], undefined>;
789
+ readonly value: valibot.UnknownSchema;
790
+ }, undefined>, undefined>;
791
+ readonly origin: valibot.ObjectSchema<{
792
+ readonly pluginId: valibot.StringSchema<undefined>;
793
+ readonly nodeId: valibot.StringSchema<undefined>;
794
+ }, undefined>;
795
+ }, undefined>], undefined>, undefined>;
796
+ readonly triggers: valibot.ArraySchema<valibot.ObjectSchema<{
797
+ readonly type: valibot.LiteralSchema<"event", undefined>;
798
+ readonly uid: valibot.StringSchema<undefined>;
799
+ readonly origin: valibot.ObjectSchema<{
800
+ readonly pluginId: valibot.StringSchema<undefined>;
801
+ readonly nodeId: valibot.StringSchema<undefined>;
802
+ }, undefined>;
803
+ readonly params: valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>;
804
+ }, undefined>, undefined>;
805
+ }, undefined>;
806
+ readonly variables: valibot.ArraySchema<valibot.CustomSchema<VariableBase, undefined>, undefined>;
807
+ }, undefined>, valibot.ObjectSchema<{
808
+ readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
809
+ readonly type: valibot.LiteralSchema<"simple", undefined>;
810
+ readonly name: valibot.StringSchema<undefined>;
811
+ readonly description: valibot.StringSchema<undefined>;
812
+ readonly source: valibot.ObjectSchema<{
813
+ readonly type: valibot.UnionSchema<[valibot.LiteralSchema<"c3-html", undefined>, valibot.LiteralSchema<"c3-nwjs", undefined>, valibot.LiteralSchema<"godot", undefined>, valibot.LiteralSchema<"html", undefined>], undefined>;
814
+ readonly path: valibot.StringSchema<undefined>;
815
+ }, undefined>;
816
+ readonly packaging: valibot.ObjectSchema<{
817
+ readonly enabled: valibot.BooleanSchema<undefined>;
818
+ }, undefined>;
819
+ readonly publishing: valibot.ObjectSchema<{
820
+ readonly steam: valibot.ObjectSchema<{
821
+ readonly enabled: valibot.BooleanSchema<undefined>;
822
+ readonly appId: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
823
+ }, undefined>;
824
+ readonly itch: valibot.ObjectSchema<{
825
+ readonly enabled: valibot.BooleanSchema<undefined>;
826
+ readonly project: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
827
+ }, undefined>;
828
+ readonly poki: valibot.ObjectSchema<{
829
+ readonly enabled: valibot.BooleanSchema<undefined>;
830
+ readonly gameId: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
831
+ }, undefined>;
832
+ }, undefined>;
833
+ }, undefined>], undefined>;
834
+ type Preset = SavedFile;
835
+ type PresetResult = {
836
+ data: SavedFile;
837
+ hightlight?: boolean;
838
+ disabled?: boolean;
839
+ };
840
+ type PresetFn = () => Promise<PresetResult>;
841
+ type Steps = Record<string, {
842
+ outputs: Record<string, unknown>;
843
+ }>;
844
+ type EnhancedFile<T extends SavedFile = SavedFile> = WithId<SaveLocation> & {
845
+ content: T;
846
+ };
847
+ //#endregion
848
+ //#region src/websocket.types.d.ts
849
+ type WebSocketConnectionState = "connecting" | "connected" | "disconnected" | "error" | "reconnecting";
850
+ interface WebSocketServerConfig {
851
+ port?: number;
852
+ host?: string;
853
+ maxReconnectAttempts?: number;
854
+ reconnectDelay?: number;
855
+ }
856
+ interface WebSocketServerEvents {
857
+ connection: (ws: WebSocket, request: IncomingMessage$1) => void;
858
+ message: (ws: WebSocket, data: Buffer) => void;
859
+ close: (ws: WebSocket) => void;
860
+ error: (ws: WebSocket, error: Error) => void;
861
+ }
862
+ interface WebSocketClientConfig {
863
+ url?: string;
864
+ maxReconnectAttempts?: number;
865
+ reconnectDelay?: number;
866
+ timeout?: number;
867
+ }
868
+ interface WebSocketClientEvents {
869
+ open: () => void;
870
+ message: (event: MessageEvent) => void;
871
+ close: (event: CloseEvent) => void;
872
+ error: (error: Event) => void;
873
+ }
874
+ interface WebSocketEvent {
875
+ sender: string;
876
+ timestamp?: number;
877
+ }
878
+ interface WebSocketRequestMessage {
879
+ channel: Channels;
880
+ requestId: RequestId$1;
881
+ data: any;
882
+ }
883
+ interface WebSocketResponseMessage {
884
+ type: "response";
885
+ requestId: RequestId$1;
886
+ events: Events<any>;
887
+ }
888
+ interface WebSocketErrorMessage {
889
+ type: "error";
890
+ requestId: RequestId$1;
891
+ error: string;
892
+ code?: string;
893
+ }
894
+ type WebSocketMessage = WebSocketRequestMessage | WebSocketResponseMessage | WebSocketErrorMessage;
895
+ interface WebSocketConnectionInfo {
896
+ id: string;
897
+ state: WebSocketConnectionState;
898
+ url: string;
899
+ connectedAt?: Date;
900
+ lastActivity?: Date;
901
+ }
902
+ interface Agent {
903
+ id: string;
904
+ name: string;
905
+ isSelf: boolean;
906
+ connectedAt?: number;
907
+ }
908
+ type WebSocketHandler<KEY extends Channels> = (event: WebSocketEvent, data: {
909
+ value: Data$1<KEY>;
910
+ send: WebSocketSendFunction<KEY>;
911
+ }) => Promise<void>;
912
+ type WebSocketSendFunction<KEY extends Channels> = (events: Events<KEY>) => Promise<void>;
913
+ type WebSocketListener<KEY extends Channels> = (event: Events<KEY>) => Promise<void>;
914
+ interface WebSocketAPI {
915
+ execute: <KEY extends Channels>(channel: KEY, data?: Data$1<KEY>, listener?: WebSocketListener<KEY>) => Promise<End<KEY>>;
916
+ send: <KEY extends Channels>(channel: KEY, data?: Data$1<KEY>) => Promise<End<KEY>>;
917
+ on: <KEY extends Channels>(channel: KEY, listener: (event: WebSocketEvent, data: Events<KEY>) => void) => () => void;
918
+ isConnected: () => boolean;
919
+ disconnect: () => void;
920
+ }
921
+ interface WebSocketManager {
922
+ connect: (url?: string) => Promise<void>;
923
+ disconnect: () => void;
924
+ send: <KEY extends Channels>(channel: KEY, data?: Data$1<KEY>) => Promise<End<KEY>>;
925
+ isConnected: () => boolean;
926
+ getConnectionState: () => WebSocketConnectionState;
927
+ onStateChange: (callback: (state: WebSocketConnectionState) => void) => () => void;
928
+ }
929
+ declare class WebSocketError extends Error {
930
+ code?: string;
931
+ requestId?: RequestId$1;
932
+ constructor(message: string, code?: string, requestId?: RequestId$1);
933
+ }
934
+ declare class WebSocketConnectionError extends WebSocketError {
935
+ url?: string;
936
+ constructor(message: string, url?: string);
937
+ }
938
+ declare class WebSocketTimeoutError extends WebSocketError {
939
+ timeout: number;
940
+ constructor(message: string, timeout: number, requestId?: RequestId$1);
941
+ }
942
+ declare const isWebSocketRequestMessage: (message: any) => message is WebSocketRequestMessage;
943
+ declare const isWebSocketResponseMessage: (message: any) => message is WebSocketResponseMessage;
944
+ declare const isWebSocketErrorMessage: (message: any) => message is WebSocketErrorMessage;
945
+ type WebSocketMessageType<T extends Channels> = {
946
+ channel: T;
947
+ requestId: RequestId$1;
948
+ data: Data$1<T>;
949
+ };
950
+ type WebSocketResponseType<T extends Channels> = {
951
+ type: "response";
952
+ requestId: RequestId$1;
953
+ events: Events<T>;
954
+ };
955
+ //#endregion
956
+ //#region src/build-history.d.ts
957
+ interface ExecutionStep {
958
+ id: string;
959
+ name: string;
960
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
961
+ startTime: number;
962
+ endTime?: number;
963
+ duration?: number;
964
+ logs: LogEntry[];
965
+ error?: ExecutionError;
966
+ output?: Record<string, unknown>;
967
+ }
968
+ interface ExecutionError {
969
+ message: string;
970
+ stack?: string;
971
+ code?: string;
972
+ timestamp: number;
973
+ }
974
+ interface LogEntry {
975
+ id: string;
976
+ timestamp: number;
977
+ level: "debug" | "info" | "warn" | "error";
978
+ message: string;
979
+ source?: string;
980
+ data?: Record<string, unknown>;
981
+ }
982
+ interface BuildHistoryEntry {
983
+ id: string;
984
+ pipelineId: string;
985
+ projectName: string;
986
+ projectPath: string;
987
+ status: "running" | "completed" | "failed" | "cancelled";
988
+ startTime: number;
989
+ endTime?: number;
990
+ duration?: number;
991
+ steps: ExecutionStep[];
992
+ totalSteps: number;
993
+ completedSteps: number;
994
+ failedSteps: number;
995
+ cancelledSteps: number;
996
+ logs: LogEntry[];
997
+ error?: ExecutionError;
998
+ output?: Record<string, unknown>;
999
+ metadata?: Record<string, unknown>;
1000
+ userId?: string;
1001
+ createdAt: number;
1002
+ updatedAt: number;
1003
+ }
1004
+ interface BuildHistoryQuery {
1005
+ pipelineId?: string;
1006
+ }
1007
+ interface BuildHistoryResponse {
1008
+ entries: BuildHistoryEntry[];
1009
+ total: number;
1010
+ }
1011
+ interface IBuildHistoryStorage {
1012
+ save(entry: BuildHistoryEntry): Promise<void>;
1013
+ get(id: string, pipelineId?: string): Promise<BuildHistoryEntry | undefined>;
1014
+ getAll(): Promise<BuildHistoryEntry[]>;
1015
+ getByPipeline(pipelineId: string): Promise<BuildHistoryEntry[]>;
1016
+ update(id: string, updates: Partial<BuildHistoryEntry>, pipelineId?: string): Promise<void>;
1017
+ delete(id: string, pipelineId?: string): Promise<void>;
1018
+ clear(): Promise<void>;
1019
+ getStorageInfo(): Promise<{
1020
+ totalEntries: number;
1021
+ totalSize: number;
1022
+ oldestEntry?: number;
1023
+ newestEntry?: number;
1024
+ }>;
1025
+ }
1026
+ interface RetentionPolicy {
1027
+ enabled: boolean;
1028
+ maxEntries: number;
1029
+ maxAge: number;
1030
+ maxSize: number;
1031
+ keepFailedBuilds: boolean;
1032
+ keepSuccessfulBuilds: boolean;
1033
+ }
1034
+ interface BuildHistoryConfig {
1035
+ storagePath: string;
1036
+ indexFileName: string;
1037
+ entryFilePrefix: string;
1038
+ retentionPolicy: RetentionPolicy;
1039
+ }
1040
+ interface SubscriptionBenefit {
1041
+ id: string;
1042
+ name: string;
1043
+ description?: string;
1044
+ }
1045
+ interface SubscriptionError extends Error {
1046
+ code: "SUBSCRIPTION_REQUIRED" | "SUBSCRIPTION_EXPIRED" | "BENEFIT_NOT_FOUND" | "UNAUTHORIZED";
1047
+ benefit?: string;
1048
+ userMessage: string;
1049
+ }
1050
+ interface AuthorizationContext {
1051
+ userId?: string;
1052
+ hasBenefit: (benefitId: string) => boolean;
1053
+ isPaidUser: boolean;
1054
+ }
1055
+ type AuthorizationCheck = (context: AuthorizationContext) => void;
1056
+ //#endregion
1057
+ //#region src/apis.d.ts
1058
+ type Event$2<TYPE extends string, DATA> = {
1059
+ type: TYPE;
1060
+ data: DATA;
1061
+ } | {
1062
+ type: "log";
1063
+ data: {
1064
+ decorator: string;
1065
+ message: unknown[];
1066
+ time: number;
1067
+ };
1068
+ };
1069
+ type EndEvent$1<DATA> = {
1070
+ type: "end";
1071
+ data: {
1072
+ type: "success";
1073
+ result: DATA;
1074
+ } | {
1075
+ type: "error";
1076
+ ipcError: string;
1077
+ code?: string;
1078
+ };
1079
+ };
1080
+ type Presets = Record<string, PresetResult>;
1081
+ type IpcDefinition$1 = {
1082
+ "fs:read": [{
1083
+ path: string;
1084
+ }, EndEvent$1<{
1085
+ content: string;
1086
+ }>];
1087
+ "fs:remove": [{
1088
+ path: string;
1089
+ }, EndEvent$1<boolean>];
1090
+ "fs:write": [{
1091
+ path: string;
1092
+ content: string;
1093
+ }, EndEvent$1<{
1094
+ ok: boolean;
1095
+ }>];
1096
+ "fs:rm": [{
1097
+ path: string;
1098
+ recursive: boolean;
1099
+ force: boolean;
1100
+ }, EndEvent$1<{
1101
+ ok: boolean;
1102
+ }>];
1103
+ "fs:listDirectory": [{
1104
+ path: string;
1105
+ }, EndEvent$1<{
1106
+ files: {
1107
+ name: string;
1108
+ isDirectory: boolean;
1109
+ isSymbolicLink: boolean;
1110
+ size: number;
1111
+ mtime: number;
1112
+ }[];
1113
+ }>];
1114
+ "fs:getHomeDirectory": [void, EndEvent$1<{
1115
+ path: string;
1116
+ }>];
1117
+ "dialog:showOpenDialog": [Electron.OpenDialogOptions, EndEvent$1<{
1118
+ canceled: boolean;
1119
+ filePaths: string[];
1120
+ }>];
1121
+ "dialog:showSaveDialog": [Electron.SaveDialogOptions, EndEvent$1<{
1122
+ canceled: boolean;
1123
+ filePath: string | undefined;
1124
+ }>];
1125
+ "nodes:get": [void, EndEvent$1<{
1126
+ nodes: RendererPluginDefinition[];
1127
+ }>];
1128
+ "presets:get": [void, EndEvent$1<Presets>];
1129
+ "action:execute": [{
1130
+ pluginId: string;
1131
+ nodeId: string;
1132
+ params: any;
1133
+ steps: Steps;
1134
+ }, (Event$2<"progress", unknown> | Event$2<"progress", unknown> | EndEvent$1<{
1135
+ outputs: Record<string, unknown>;
1136
+ tmp: string;
1137
+ }>)];
1138
+ "condition:execute": [{
1139
+ pluginId: string;
1140
+ nodeId: string;
1141
+ params: any;
1142
+ steps: Steps;
1143
+ }, (Event$2<"progress", unknown> | Event$2<"progress", unknown> | EndEvent$1<{
1144
+ outputs: Record<string, unknown>;
1145
+ value: boolean;
1146
+ }>)];
1147
+ "constants:get": [void, EndEvent$1<{
1148
+ result: {
1149
+ userData: string;
1150
+ };
1151
+ }>];
1152
+ "config:load": [{
1153
+ config: string;
1154
+ }, EndEvent$1<{
1155
+ result: any;
1156
+ }>];
1157
+ "config:save": [{
1158
+ data: any;
1159
+ config: string;
1160
+ }, EndEvent$1<{
1161
+ result: "ok";
1162
+ }>];
1163
+ "config:reset": [{
1164
+ config: string;
1165
+ key: string;
1166
+ }, EndEvent$1<{
1167
+ result: "ok";
1168
+ }>];
1169
+ "action:cancel": [void, EndEvent$1<{
1170
+ result: "ok" | "ko";
1171
+ }>];
1172
+ "build-history:save": [{
1173
+ entry: BuildHistoryEntry;
1174
+ }, EndEvent$1<{
1175
+ result: "ok" | "ko";
1176
+ }>];
1177
+ "build-history:get": [{
1178
+ id: string;
1179
+ pipelineId?: string;
1180
+ }, EndEvent$1<{
1181
+ entry?: BuildHistoryEntry;
1182
+ }>];
1183
+ "build-history:get-all": [{
1184
+ query?: BuildHistoryQuery;
1185
+ }, EndEvent$1<BuildHistoryResponse>];
1186
+ "build-history:update": [{
1187
+ id: string;
1188
+ updates: Partial<BuildHistoryEntry>;
1189
+ pipelineId?: string;
1190
+ }, EndEvent$1<{
1191
+ result: "ok" | "ko";
1192
+ }>];
1193
+ "build-history:delete": [{
1194
+ id: string;
1195
+ pipelineId?: string;
1196
+ }, EndEvent$1<{
1197
+ result: "ok" | "ko";
1198
+ }>];
1199
+ "build-history:clear": [void, EndEvent$1<{
1200
+ result: "ok" | "ko";
1201
+ }>];
1202
+ "build-history:get-storage-info": [void, EndEvent$1<{
1203
+ totalEntries: number;
1204
+ totalSize: number;
1205
+ oldestEntry?: number;
1206
+ newestEntry?: number;
1207
+ }>];
1208
+ "build-history:configure": [{
1209
+ config: Partial<BuildHistoryConfig>;
1210
+ }, EndEvent$1<{
1211
+ result: "ok" | "ko";
1212
+ }>];
1213
+ "agents:get": [void, EndEvent$1<{
1214
+ agents: Agent[];
1215
+ }>];
1216
+ "graph:execute": [{
1217
+ graph: any[];
1218
+ variables: any[];
1219
+ pipelineId?: string;
1220
+ projectId?: string;
1221
+ projectName?: string;
1222
+ projectPath?: string;
1223
+ }, ({
1224
+ type: "node-enter";
1225
+ data: {
1226
+ nodeUid: string;
1227
+ nodeName: string;
1228
+ };
1229
+ } | {
1230
+ type: "node-exit";
1231
+ data: {
1232
+ nodeUid: string;
1233
+ nodeName: string;
1234
+ };
1235
+ } | {
1236
+ type: "node-log";
1237
+ data: {
1238
+ nodeUid: string;
1239
+ logData: any;
1240
+ };
1241
+ } | EndEvent$1<{
1242
+ result: any;
1243
+ buildId: string;
1244
+ }>)];
1245
+ "auth:getUser": [void, EndEvent$1<{
1246
+ user: User | null;
1247
+ }>];
1248
+ "auth:signInWithPassword": [{
1249
+ email: string;
1250
+ password: string;
1251
+ }, EndEvent$1<UserResponse>];
1252
+ "auth:signUp": [{
1253
+ email: string;
1254
+ password: string;
1255
+ }, EndEvent$1<UserResponse>];
1256
+ "auth:signOut": [void, EndEvent$1<void>];
1257
+ "auth:resetPasswordForEmail": [{
1258
+ email: string;
1259
+ }, EndEvent$1<{
1260
+ error: any | null;
1261
+ }>];
1262
+ "auth:invoke": [{
1263
+ name: string;
1264
+ options?: any;
1265
+ }, EndEvent$1<{
1266
+ data: any | null;
1267
+ error: any | null;
1268
+ }>];
1269
+ "agent:version:get": [void, EndEvent$1<{
1270
+ version: string;
1271
+ }>];
1272
+ };
1273
+ type Channels = keyof IpcDefinition$1;
1274
+ declare const ShellChannels: Channels[];
1275
+ type Data$1<KEY extends Channels> = IpcDefinition$1[KEY][0];
1276
+ type Events<KEY extends Channels> = IpcDefinition$1[KEY][1];
1277
+ type End<KEY extends Channels> = Extract<IpcDefinition$1[KEY][1], {
1278
+ type: "end";
1279
+ }>["data"];
1280
+ type IpcMessage = {
1281
+ requestId: RequestId$1;
1282
+ data: any;
1283
+ };
1284
+ type RequestId$1 = Tagged<string, "request-id">;
1285
+ //#endregion
1286
+ //#region src/config.schema.d.ts
1287
+ declare const createVersionSchema: <T extends GenericSchema<any, any>>(schema: T) => T;
1288
+ declare const AppSettingsValidatorV1: valibot.ObjectSchema<{
1289
+ readonly cacheFolder: valibot.StringSchema<undefined>;
1290
+ readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
1291
+ readonly version: valibot.LiteralSchema<"1.0.0", undefined>;
1292
+ }, undefined>;
1293
+ declare const AppSettingsValidatorV2: valibot.ObjectSchema<{
1294
+ readonly cacheFolder: valibot.StringSchema<undefined>;
1295
+ readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
1296
+ readonly version: valibot.LiteralSchema<"2.0.0", undefined>;
1297
+ }, undefined>;
1298
+ declare const AppSettingsValidatorV3: valibot.ObjectSchema<{
1299
+ readonly cacheFolder: valibot.StringSchema<undefined>;
1300
+ readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
1301
+ readonly version: valibot.LiteralSchema<"3.0.0", undefined>;
1302
+ readonly clearTemporaryFoldersOnPipelineEnd: valibot.BooleanSchema<undefined>;
1303
+ }, undefined>;
1304
+ declare const AppSettingsValidatorV4: valibot.ObjectSchema<{
1305
+ readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
1306
+ readonly version: valibot.LiteralSchema<"4.0.0", undefined>;
1307
+ readonly cacheFolder: valibot.StringSchema<undefined>;
1308
+ readonly clearTemporaryFoldersOnPipelineEnd: valibot.BooleanSchema<undefined>;
1309
+ readonly locale: valibot.UnionSchema<[valibot.LiteralSchema<"en-US", undefined>, valibot.LiteralSchema<"fr-FR", undefined>, valibot.LiteralSchema<"pt-BR", undefined>, valibot.LiteralSchema<"zh-CN", undefined>, valibot.LiteralSchema<"es-ES", undefined>, valibot.LiteralSchema<"de-DE", undefined>], undefined>;
1310
+ }, undefined>;
1311
+ declare const AppSettingsValidatorV5: valibot.ObjectSchema<{
1312
+ readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
1313
+ readonly version: valibot.LiteralSchema<"5.0.0", undefined>;
1314
+ readonly cacheFolder: valibot.StringSchema<undefined>;
1315
+ readonly clearTemporaryFoldersOnPipelineEnd: valibot.BooleanSchema<undefined>;
1316
+ readonly locale: valibot.UnionSchema<[valibot.LiteralSchema<"en-US", undefined>, valibot.LiteralSchema<"fr-FR", undefined>, valibot.LiteralSchema<"pt-BR", undefined>, valibot.LiteralSchema<"zh-CN", undefined>, valibot.LiteralSchema<"es-ES", undefined>, valibot.LiteralSchema<"de-DE", undefined>], undefined>;
1317
+ readonly tours: valibot.ObjectSchema<{
1318
+ readonly dashboard: valibot.ObjectSchema<{
1319
+ readonly step: valibot.NumberSchema<undefined>;
1320
+ readonly completed: valibot.BooleanSchema<undefined>;
1321
+ }, undefined>;
1322
+ readonly editor: valibot.ObjectSchema<{
1323
+ readonly step: valibot.NumberSchema<undefined>;
1324
+ readonly completed: valibot.BooleanSchema<undefined>;
1325
+ }, undefined>;
1326
+ }, undefined>;
1327
+ }, undefined>;
1328
+ declare const AppSettingsValidatorV6: valibot.ObjectSchema<{
1329
+ readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
1330
+ readonly version: valibot.LiteralSchema<"6.0.0", undefined>;
1331
+ readonly cacheFolder: valibot.StringSchema<undefined>;
1332
+ readonly clearTemporaryFoldersOnPipelineEnd: valibot.BooleanSchema<undefined>;
1333
+ readonly locale: valibot.UnionSchema<[valibot.LiteralSchema<"en-US", undefined>, valibot.LiteralSchema<"fr-FR", undefined>, valibot.LiteralSchema<"pt-BR", undefined>, valibot.LiteralSchema<"zh-CN", undefined>, valibot.LiteralSchema<"es-ES", undefined>, valibot.LiteralSchema<"de-DE", undefined>], undefined>;
1334
+ readonly tours: valibot.ObjectSchema<{
1335
+ readonly dashboard: valibot.ObjectSchema<{
1336
+ readonly step: valibot.NumberSchema<undefined>;
1337
+ readonly completed: valibot.BooleanSchema<undefined>;
1338
+ }, undefined>;
1339
+ readonly editor: valibot.ObjectSchema<{
1340
+ readonly step: valibot.NumberSchema<undefined>;
1341
+ readonly completed: valibot.BooleanSchema<undefined>;
1342
+ }, undefined>;
1343
+ }, undefined>;
1344
+ readonly autosave: valibot.BooleanSchema<undefined>;
1345
+ }, undefined>;
1346
+ declare const AppSettingsValidatorV7: valibot.ObjectSchema<{
1347
+ readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
1348
+ readonly version: valibot.LiteralSchema<"7.0.0", undefined>;
1349
+ readonly cacheFolder: valibot.StringSchema<undefined>;
1350
+ readonly clearTemporaryFoldersOnPipelineEnd: valibot.BooleanSchema<undefined>;
1351
+ readonly locale: valibot.UnionSchema<[valibot.LiteralSchema<"en-US", undefined>, valibot.LiteralSchema<"fr-FR", undefined>, valibot.LiteralSchema<"pt-BR", undefined>, valibot.LiteralSchema<"zh-CN", undefined>, valibot.LiteralSchema<"es-ES", undefined>, valibot.LiteralSchema<"de-DE", undefined>], undefined>;
1352
+ readonly tours: valibot.ObjectSchema<{
1353
+ readonly dashboard: valibot.ObjectSchema<{
1354
+ readonly step: valibot.NumberSchema<undefined>;
1355
+ readonly completed: valibot.BooleanSchema<undefined>;
1356
+ }, undefined>;
1357
+ readonly editor: valibot.ObjectSchema<{
1358
+ readonly step: valibot.NumberSchema<undefined>;
1359
+ readonly completed: valibot.BooleanSchema<undefined>;
1360
+ }, undefined>;
1361
+ }, undefined>;
1362
+ readonly autosave: valibot.BooleanSchema<undefined>;
1363
+ readonly agents: valibot.ArraySchema<valibot.ObjectSchema<{
1364
+ readonly id: valibot.StringSchema<undefined>;
1365
+ readonly name: valibot.StringSchema<undefined>;
1366
+ readonly url: valibot.StringSchema<undefined>;
1367
+ }, undefined>, undefined>;
1368
+ }, undefined>;
1369
+ type AppConfigV1 = InferInput<typeof AppSettingsValidatorV1>;
1370
+ type AppConfigV2 = InferInput<typeof AppSettingsValidatorV2>;
1371
+ type AppConfigV3 = InferInput<typeof AppSettingsValidatorV3>;
1372
+ type AppConfigV4 = InferInput<typeof AppSettingsValidatorV4>;
1373
+ type AppConfigV5 = InferInput<typeof AppSettingsValidatorV5>;
1374
+ type AppConfigV6 = InferInput<typeof AppSettingsValidatorV6>;
1375
+ type AppConfigV7 = InferInput<typeof AppSettingsValidatorV7>;
1376
+ type AppConfig = AppConfigV7;
1377
+ declare const AppSettingsValidator: valibot.ObjectSchema<{
1378
+ readonly theme: valibot.UnionSchema<[valibot.LiteralSchema<"light", undefined>, valibot.LiteralSchema<"dark", undefined>], undefined>;
1379
+ readonly version: valibot.LiteralSchema<"7.0.0", undefined>;
1380
+ readonly cacheFolder: valibot.StringSchema<undefined>;
1381
+ readonly clearTemporaryFoldersOnPipelineEnd: valibot.BooleanSchema<undefined>;
1382
+ readonly locale: valibot.UnionSchema<[valibot.LiteralSchema<"en-US", undefined>, valibot.LiteralSchema<"fr-FR", undefined>, valibot.LiteralSchema<"pt-BR", undefined>, valibot.LiteralSchema<"zh-CN", undefined>, valibot.LiteralSchema<"es-ES", undefined>, valibot.LiteralSchema<"de-DE", undefined>], undefined>;
1383
+ readonly tours: valibot.ObjectSchema<{
1384
+ readonly dashboard: valibot.ObjectSchema<{
1385
+ readonly step: valibot.NumberSchema<undefined>;
1386
+ readonly completed: valibot.BooleanSchema<undefined>;
1387
+ }, undefined>;
1388
+ readonly editor: valibot.ObjectSchema<{
1389
+ readonly step: valibot.NumberSchema<undefined>;
1390
+ readonly completed: valibot.BooleanSchema<undefined>;
1391
+ }, undefined>;
1392
+ }, undefined>;
1393
+ readonly autosave: valibot.BooleanSchema<undefined>;
1394
+ readonly agents: valibot.ArraySchema<valibot.ObjectSchema<{
1395
+ readonly id: valibot.StringSchema<undefined>;
1396
+ readonly name: valibot.StringSchema<undefined>;
1397
+ readonly url: valibot.StringSchema<undefined>;
1398
+ }, undefined>, undefined>;
1399
+ }, undefined>;
1400
+ //#endregion
1401
+ //#region src/database.types.d.ts
1402
+ type Json = string | number | boolean | null | {
1403
+ [key: string]: Json | undefined;
1404
+ } | Json[];
1405
+ type Database = {
1406
+ public: {
1407
+ Tables: { [_ in never]: never };
1408
+ Views: { [_ in never]: never };
1409
+ Functions: { [_ in never]: never };
1410
+ Enums: { [_ in never]: never };
1411
+ CompositeTypes: { [_ in never]: never };
1412
+ };
1413
+ };
1414
+ type PublicSchema = Database[Extract<keyof Database, "public">];
1415
+ type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
1416
+ schema: keyof Database;
1417
+ }, TableName extends (PublicTableNameOrOptions extends {
1418
+ schema: keyof Database;
1419
+ } ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never) = never> = PublicTableNameOrOptions extends {
1420
+ schema: keyof Database;
1421
+ } ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
1422
+ Row: infer R;
1423
+ } ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
1424
+ Row: infer R;
1425
+ } ? R : never : never;
1426
+ type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
1427
+ schema: keyof Database;
1428
+ }, TableName extends (PublicTableNameOrOptions extends {
1429
+ schema: keyof Database;
1430
+ } ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never) = never> = PublicTableNameOrOptions extends {
1431
+ schema: keyof Database;
1432
+ } ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
1433
+ Insert: infer I;
1434
+ } ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
1435
+ Insert: infer I;
1436
+ } ? I : never : never;
1437
+ type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
1438
+ schema: keyof Database;
1439
+ }, TableName extends (PublicTableNameOrOptions extends {
1440
+ schema: keyof Database;
1441
+ } ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never) = never> = PublicTableNameOrOptions extends {
1442
+ schema: keyof Database;
1443
+ } ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
1444
+ Update: infer U;
1445
+ } ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
1446
+ Update: infer U;
1447
+ } ? U : never : never;
1448
+ type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
1449
+ schema: keyof Database;
1450
+ }, EnumName extends (PublicEnumNameOrOptions extends {
1451
+ schema: keyof Database;
1452
+ } ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never) = never> = PublicEnumNameOrOptions extends {
1453
+ schema: keyof Database;
1454
+ } ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
1455
+ //#endregion
1456
+ //#region src/evaluator.d.ts
1457
+ declare const makeResolvedParams: (data: {
1458
+ params: BlockAction["params"];
1459
+ steps: Steps;
1460
+ variables: Record<string, string>;
1461
+ context: Record<string, unknown>;
1462
+ }, onItem?: (item: any) => string, _vm?: Awaited<CreateQuickJSFn> | undefined) => Promise<Record<string, any>>;
1463
+ //#endregion
1464
+ //#region src/fmt.d.ts
1465
+ declare const fmt: {
1466
+ param: (value: string, variant?: "primary" | "secondary" | undefined, ifEmpty?: string) => string;
1467
+ };
1468
+ //#endregion
1469
+ //#region src/types.d.ts
1470
+ type Context = Record<string, unknown>;
1471
+ //#endregion
1472
+ //#region src/graph.d.ts
1473
+ declare const processGraph: (options: {
1474
+ graph: Array<Block>;
1475
+ definitions: Array<RendererPluginDefinition>;
1476
+ variables: Array<Variable>;
1477
+ steps: Steps;
1478
+ context: Context;
1479
+ onExecuteItem: (node: Block, params: Record<string, string>, steps: Steps) => Promise<End<"condition:execute"> | End<"action:execute">>;
1480
+ onNodeEnter: (node: Block) => void;
1481
+ onNodeExit: (node: Block) => void;
1482
+ abortSignal?: AbortSignal;
1483
+ }) => Promise<{
1484
+ graph: Array<Block>;
1485
+ definitions: Array<RendererPluginDefinition>;
1486
+ variables: Array<Variable>;
1487
+ steps: Steps;
1488
+ context: Context;
1489
+ onExecuteItem: (node: Block, params: Record<string, string>, steps: Steps) => Promise<End<"condition:execute"> | End<"action:execute">>;
1490
+ onNodeEnter: (node: Block) => void;
1491
+ onNodeExit: (node: Block) => void;
1492
+ abortSignal?: AbortSignal;
1493
+ }>;
1494
+ //#endregion
1495
+ //#region src/i18n/en_US.json.d.ts
1496
+ declare let settings$5: {
1497
+ darkTheme: string;
1498
+ autosave: string;
1499
+ autosaveDescription: string;
1500
+ language: string;
1501
+ languageOptions: {
1502
+ "en-US": string;
1503
+ "fr-FR": string;
1504
+ "pt-BR": string;
1505
+ "zh-CN": string;
1506
+ "es-ES": string;
1507
+ "de-DE": string;
1508
+ };
1509
+ tabs: {
1510
+ general: string;
1511
+ storage: string;
1512
+ integrations: string;
1513
+ advanced: string;
1514
+ billing: string;
1515
+ };
1516
+ clearTempFolders: string;
1517
+ clearTempFoldersDescription: string;
1518
+ "pipeline-cache-folder": string;
1519
+ "enter-or-browse-for-a-folder": string;
1520
+ browse: string;
1521
+ "manage-where-the-app-stores-temporary-and-cache-files": string;
1522
+ "clear-cache": string;
1523
+ "reset-to-default": string;
1524
+ "manage-subscription": string;
1525
+ "renewal-date": string;
1526
+ "start-date": string;
1527
+ "cache-cleared-successfully": string;
1528
+ "failed-to-clear-cache-error-message": string;
1529
+ "failed-to-reset-cache-folder-error-message": string;
1530
+ "select-cache-folder": string;
1531
+ "restart-dashboard-tour": string;
1532
+ "restart-editor-tour": string;
1533
+ "tour-reset-success": string;
1534
+ };
1535
+ declare namespace headers$5 {
1536
+ let dashboard: string;
1537
+ let scenarios: string;
1538
+ let editor: string;
1539
+ let billing: string;
1540
+ let team: string;
1541
+ }
1542
+ declare let navigation: {
1543
+ "build-history": string;
1544
+ };
1545
+ declare namespace base$5 {
1546
+ export let close: string;
1547
+ export let save: string;
1548
+ export let run: string;
1549
+ export let cancel: string;
1550
+ export let end: string;
1551
+ let _delete: string;
1552
+ export { _delete as delete };
1553
+ export let logs: string;
1554
+ export let ok: string;
1555
+ export let add: string;
1556
+ export let search: string;
1557
+ }
1558
+ declare let editor_1$5: {
1559
+ "invalid-file-content": string;
1560
+ "welcome-back": string;
1561
+ "please-log-in-to-run-a-scenario": string;
1562
+ "execution-done": string;
1563
+ "your-project-has-been-executed-successfully": string;
1564
+ "execution-failed": string;
1565
+ "project-has-encountered-an-error": string;
1566
+ "project-saved": string;
1567
+ "your-project-has-be-saved-successfully": string;
1568
+ "view-history": string;
1569
+ "add-plugin": string;
1570
+ "display-advanced-nodes": string;
1571
+ };
1572
+ declare let home$5: {
1573
+ "invalid-preset": string;
1574
+ "store-project-on-the-cloud": string;
1575
+ cloud: string;
1576
+ "store-project-locally": string;
1577
+ local: string;
1578
+ "invalid-number-of-paths-selected": string;
1579
+ "pipelab-project": string;
1580
+ "choose-a-new-path": string;
1581
+ "invalid-file-type": string;
1582
+ "create-project": string;
1583
+ "duplicate-project": string;
1584
+ "project-name": string;
1585
+ "new-project": string;
1586
+ "new-pipeline": string;
1587
+ open: string;
1588
+ import: string;
1589
+ "pipeline-name": string;
1590
+ "your-projects": string;
1591
+ "no-projects-yet": string;
1592
+ "no-pipelines-yet": string;
1593
+ "delete-project": string;
1594
+ "confirm-delete-project": string;
1595
+ "cannot-delete-project": string;
1596
+ "project-not-empty": string;
1597
+ transfer: string;
1598
+ "transfer-successful": string;
1599
+ "pipeline-transferred": string;
1600
+ "select-project": string;
1601
+ "build-history": string;
1602
+ duplicate: string;
1603
+ "rename-project": string;
1604
+ "new-project-name": string;
1605
+ "premium-feature": string;
1606
+ "migrate-warning": string;
1607
+ "simple-pipeline": string;
1608
+ "advanced-pipeline": string;
1609
+ "new-simple-project": string;
1610
+ "new-advanced-project": string;
1611
+ "store-project-internally": string;
1612
+ internal: string;
1613
+ "confirm-migration-message": string;
1614
+ "migrate-pipeline": string;
1615
+ "migration-success": string;
1616
+ "migrate-to-internal": string;
1617
+ };
1618
+ declare namespace scenarios_1$5 {
1619
+ let scenarios_2: string;
1620
+ export { scenarios_2 as scenarios };
1621
+ }
1622
+ declare let tour: {
1623
+ "start-tour": string;
1624
+ "projects-list-title": string;
1625
+ "projects-list-description": string;
1626
+ "add-project-title": string;
1627
+ "add-project-description": string;
1628
+ "new-pipeline-title": string;
1629
+ "new-pipeline-description": string;
1630
+ "project-actions-title": string;
1631
+ "project-actions-description": string;
1632
+ "editor-canvas-title": string;
1633
+ "editor-canvas-description": string;
1634
+ "editor-save-title": string;
1635
+ "editor-save-description": string;
1636
+ "editor-run-title": string;
1637
+ "editor-run-description": string;
1638
+ "editor-logs-title": string;
1639
+ "editor-logs-description": string;
1640
+ "editor-close-title": string;
1641
+ "editor-close-description": string;
1642
+ };
1643
+ declare namespace __json_default_export$1 {
1644
+ export { settings$5 as settings, headers$5 as headers, navigation, base$5 as base, home$5 as home, scenarios_1$5 as scenarios_1, tour, editor_1$5 as editor, scenarios_1$5 as scenarios };
1645
+ }
1646
+ //#endregion
1647
+ //#region src/i18n/fr_FR.json.d.ts
1648
+ declare let settings$4: {
1649
+ darkTheme: string;
1650
+ language: string;
1651
+ languageOptions: {
1652
+ "en-US": string;
1653
+ "fr-FR": string;
1654
+ "pt-BR": string;
1655
+ "zh-CN": string;
1656
+ "es-ES": string;
1657
+ "de-DE": string;
1658
+ };
1659
+ tabs: {
1660
+ general: string;
1661
+ storage: string;
1662
+ integrations: string;
1663
+ advanced: string;
1664
+ billing: string;
1665
+ };
1666
+ clearTempFolders: string;
1667
+ clearTempFoldersDescription: string;
1668
+ "pipeline-cache-folder": string;
1669
+ "enter-or-browse-for-a-folder": string;
1670
+ browse: string;
1671
+ "manage-where-the-app-stores-temporary-and-cache-files": string;
1672
+ "clear-cache": string;
1673
+ "reset-to-default": string;
1674
+ "manage-subscription": string;
1675
+ "renewal-date": string;
1676
+ "start-date": string;
1677
+ "cache-cleared-successfully": string;
1678
+ "failed-to-clear-cache-error-message": string;
1679
+ "failed-to-reset-cache-folder-error-message": string;
1680
+ "select-cache-folder": string;
1681
+ };
1682
+ declare namespace headers$4 {
1683
+ let dashboard: string;
1684
+ let scenarios: string;
1685
+ let editor: string;
1686
+ let billing: string;
1687
+ let team: string;
1688
+ }
1689
+ declare namespace base$4 {
1690
+ export let close: string;
1691
+ export let save: string;
1692
+ export let run: string;
1693
+ export let cancel: string;
1694
+ export let end: string;
1695
+ let _delete: string;
1696
+ export { _delete as delete };
1697
+ export let logs: string;
1698
+ export let ok: string;
1699
+ export let add: string;
1700
+ export let search: string;
1701
+ }
1702
+ declare let editor_1$4: {
1703
+ "invalid-file-content": string;
1704
+ "welcome-back": string;
1705
+ "please-log-in-to-run-a-scenario": string;
1706
+ "execution-done": string;
1707
+ "your-project-has-been-executed-successfully": string;
1708
+ "execution-failed": string;
1709
+ "project-has-encountered-an-error": string;
1710
+ "project-saved": string;
1711
+ "your-project-has-be-saved-successfully": string;
1712
+ "add-plugin": string;
1713
+ "display-advanced-nodes": string;
1714
+ };
1715
+ declare let home$4: {
1716
+ "invalid-preset": string;
1717
+ "store-project-on-the-cloud": string;
1718
+ cloud: string;
1719
+ "store-project-locally": string;
1720
+ local: string;
1721
+ "invalid-number-of-paths-selected": string;
1722
+ "pipelab-project": string;
1723
+ "choose-a-new-path": string;
1724
+ "invalid-file-type": string;
1725
+ "create-project": string;
1726
+ "duplicate-project": string;
1727
+ "project-name": string;
1728
+ "new-project": string;
1729
+ open: string;
1730
+ "your-projects": string;
1731
+ "no-projects-yet": string;
1732
+ };
1733
+ declare namespace scenarios_1$4 {
1734
+ let scenarios_2: string;
1735
+ export { scenarios_2 as scenarios };
1736
+ }
1737
+ declare namespace __json_default_export$3 {
1738
+ export { settings$4 as settings, headers$4 as headers, base$4 as base, home$4 as home, scenarios_1$4 as scenarios_1, editor_1$4 as editor, scenarios_1$4 as scenarios };
1739
+ }
1740
+ //#endregion
1741
+ //#region src/i18n/pt_BR.json.d.ts
1742
+ declare let settings$3: {
1743
+ darkTheme: string;
1744
+ language: string;
1745
+ languageOptions: {
1746
+ "en-US": string;
1747
+ "fr-FR": string;
1748
+ "pt-BR": string;
1749
+ "zh-CN": string;
1750
+ "es-ES": string;
1751
+ "de-DE": string;
1752
+ };
1753
+ tabs: {
1754
+ general: string;
1755
+ storage: string;
1756
+ integrations: string;
1757
+ advanced: string;
1758
+ billing: string;
1759
+ };
1760
+ clearTempFolders: string;
1761
+ clearTempFoldersDescription: string;
1762
+ "pipeline-cache-folder": string;
1763
+ "enter-or-browse-for-a-folder": string;
1764
+ browse: string;
1765
+ "manage-where-the-app-stores-temporary-and-cache-files": string;
1766
+ "clear-cache": string;
1767
+ "reset-to-default": string;
1768
+ "manage-subscription": string;
1769
+ "renewal-date": string;
1770
+ "start-date": string;
1771
+ "cache-cleared-successfully": string;
1772
+ "failed-to-clear-cache-error-message": string;
1773
+ "failed-to-reset-cache-folder-error-message": string;
1774
+ "select-cache-folder": string;
1775
+ };
1776
+ declare namespace headers$3 {
1777
+ let dashboard: string;
1778
+ let scenarios: string;
1779
+ let editor: string;
1780
+ let billing: string;
1781
+ let team: string;
1782
+ }
1783
+ declare namespace base$3 {
1784
+ export let close: string;
1785
+ export let save: string;
1786
+ export let run: string;
1787
+ export let cancel: string;
1788
+ export let end: string;
1789
+ let _delete: string;
1790
+ export { _delete as delete };
1791
+ export let logs: string;
1792
+ export let ok: string;
1793
+ export let add: string;
1794
+ }
1795
+ declare let editor_1$3: {
1796
+ "invalid-file-content": string;
1797
+ "welcome-back": string;
1798
+ "please-log-in-to-run-a-scenario": string;
1799
+ "execution-done": string;
1800
+ "your-project-has-been-executed-successfully": string;
1801
+ "execution-failed": string;
1802
+ "project-has-encountered-an-error": string;
1803
+ "project-saved": string;
1804
+ "your-project-has-be-saved-successfully": string;
1805
+ };
1806
+ declare let home$3: {
1807
+ "invalid-preset": string;
1808
+ "store-project-on-the-cloud": string;
1809
+ cloud: string;
1810
+ "store-project-locally": string;
1811
+ local: string;
1812
+ "invalid-number-of-paths-selected": string;
1813
+ "pipelab-project": string;
1814
+ "choose-a-new-path": string;
1815
+ "invalid-file-type": string;
1816
+ "create-project": string;
1817
+ "duplicate-project": string;
1818
+ "project-name": string;
1819
+ "new-project": string;
1820
+ open: string;
1821
+ "your-projects": string;
1822
+ "no-projects-yet": string;
1823
+ };
1824
+ declare namespace scenarios_1$3 {
1825
+ let scenarios_2: string;
1826
+ export { scenarios_2 as scenarios };
1827
+ }
1828
+ declare namespace __json_default_export$4 {
1829
+ export { settings$3 as settings, headers$3 as headers, base$3 as base, home$3 as home, scenarios_1$3 as scenarios_1, editor_1$3 as editor, scenarios_1$3 as scenarios };
1830
+ }
1831
+ //#endregion
1832
+ //#region src/i18n/zh_CN.json.d.ts
1833
+ declare let settings$2: {
1834
+ darkTheme: string;
1835
+ language: string;
1836
+ languageOptions: {
1837
+ "en-US": string;
1838
+ "fr-FR": string;
1839
+ "pt-BR": string;
1840
+ "zh-CN": string;
1841
+ "es-ES": string;
1842
+ "de-DE": string;
1843
+ };
1844
+ tabs: {
1845
+ general: string;
1846
+ storage: string;
1847
+ integrations: string;
1848
+ advanced: string;
1849
+ billing: string;
1850
+ };
1851
+ clearTempFolders: string;
1852
+ clearTempFoldersDescription: string;
1853
+ "pipeline-cache-folder": string;
1854
+ "enter-or-browse-for-a-folder": string;
1855
+ browse: string;
1856
+ "manage-where-the-app-stores-temporary-and-cache-files": string;
1857
+ "clear-cache": string;
1858
+ "reset-to-default": string;
1859
+ "manage-subscription": string;
1860
+ "renewal-date": string;
1861
+ "start-date": string;
1862
+ "cache-cleared-successfully": string;
1863
+ "failed-to-clear-cache-error-message": string;
1864
+ "failed-to-reset-cache-folder-error-message": string;
1865
+ "select-cache-folder": string;
1866
+ };
1867
+ declare namespace headers$2 {
1868
+ let dashboard: string;
1869
+ let scenarios: string;
1870
+ let editor: string;
1871
+ let billing: string;
1872
+ let team: string;
1873
+ }
1874
+ declare namespace base$2 {
1875
+ export let close: string;
1876
+ export let save: string;
1877
+ export let run: string;
1878
+ export let cancel: string;
1879
+ export let end: string;
1880
+ let _delete: string;
1881
+ export { _delete as delete };
1882
+ export let logs: string;
1883
+ export let ok: string;
1884
+ export let add: string;
1885
+ }
1886
+ declare let editor_1$2: {
1887
+ "invalid-file-content": string;
1888
+ "welcome-back": string;
1889
+ "please-log-in-to-run-a-scenario": string;
1890
+ "execution-done": string;
1891
+ "your-project-has-been-executed-successfully": string;
1892
+ "execution-failed": string;
1893
+ "project-has-encountered-an-error": string;
1894
+ "project-saved": string;
1895
+ "your-project-has-be-saved-successfully": string;
1896
+ };
1897
+ declare let home$2: {
1898
+ "invalid-preset": string;
1899
+ "store-project-on-the-cloud": string;
1900
+ cloud: string;
1901
+ "store-project-locally": string;
1902
+ local: string;
1903
+ "invalid-number-of-paths-selected": string;
1904
+ "pipelab-project": string;
1905
+ "choose-a-new-path": string;
1906
+ "invalid-file-type": string;
1907
+ "create-project": string;
1908
+ "duplicate-project": string;
1909
+ "project-name": string;
1910
+ "new-project": string;
1911
+ open: string;
1912
+ "your-projects": string;
1913
+ "no-projects-yet": string;
1914
+ };
1915
+ declare namespace scenarios_1$2 {
1916
+ let scenarios_2: string;
1917
+ export { scenarios_2 as scenarios };
1918
+ }
1919
+ declare namespace __json_default_export$5 {
1920
+ export { settings$2 as settings, headers$2 as headers, base$2 as base, home$2 as home, scenarios_1$2 as scenarios_1, editor_1$2 as editor, scenarios_1$2 as scenarios };
1921
+ }
1922
+ //#endregion
1923
+ //#region src/i18n/es_ES.json.d.ts
1924
+ declare let settings$1: {
1925
+ darkTheme: string;
1926
+ language: string;
1927
+ languageOptions: {
1928
+ "en-US": string;
1929
+ "fr-FR": string;
1930
+ "pt-BR": string;
1931
+ "zh-CN": string;
1932
+ "es-ES": string;
1933
+ "de-DE": string;
1934
+ };
1935
+ tabs: {
1936
+ general: string;
1937
+ storage: string;
1938
+ integrations: string;
1939
+ advanced: string;
1940
+ billing: string;
1941
+ };
1942
+ clearTempFolders: string;
1943
+ clearTempFoldersDescription: string;
1944
+ "pipeline-cache-folder": string;
1945
+ "enter-or-browse-for-a-folder": string;
1946
+ browse: string;
1947
+ "manage-where-the-app-stores-temporary-and-cache-files": string;
1948
+ "clear-cache": string;
1949
+ "reset-to-default": string;
1950
+ "manage-subscription": string;
1951
+ "renewal-date": string;
1952
+ "start-date": string;
1953
+ "cache-cleared-successfully": string;
1954
+ "failed-to-clear-cache-error-message": string;
1955
+ "failed-to-reset-cache-folder-error-message": string;
1956
+ "select-cache-folder": string;
1957
+ };
1958
+ declare namespace headers$1 {
1959
+ let dashboard: string;
1960
+ let scenarios: string;
1961
+ let editor: string;
1962
+ let billing: string;
1963
+ let team: string;
1964
+ }
1965
+ declare namespace base$1 {
1966
+ export let close: string;
1967
+ export let save: string;
1968
+ export let run: string;
1969
+ export let cancel: string;
1970
+ export let end: string;
1971
+ let _delete: string;
1972
+ export { _delete as delete };
1973
+ export let logs: string;
1974
+ export let ok: string;
1975
+ export let add: string;
1976
+ }
1977
+ declare let editor_1$1: {
1978
+ "invalid-file-content": string;
1979
+ "welcome-back": string;
1980
+ "please-log-in-to-run-a-scenario": string;
1981
+ "execution-done": string;
1982
+ "your-project-has-been-executed-successfully": string;
1983
+ "execution-failed": string;
1984
+ "project-has-encountered-an-error": string;
1985
+ "project-saved": string;
1986
+ "your-project-has-be-saved-successfully": string;
1987
+ };
1988
+ declare let home$1: {
1989
+ "invalid-preset": string;
1990
+ "store-project-on-the-cloud": string;
1991
+ cloud: string;
1992
+ "store-project-locally": string;
1993
+ local: string;
1994
+ "invalid-number-of-paths-selected": string;
1995
+ "pipelab-project": string;
1996
+ "choose-a-new-path": string;
1997
+ "invalid-file-type": string;
1998
+ "create-project": string;
1999
+ "duplicate-project": string;
2000
+ "project-name": string;
2001
+ "new-project": string;
2002
+ open: string;
2003
+ "your-projects": string;
2004
+ "no-projects-yet": string;
2005
+ };
2006
+ declare namespace scenarios_1$1 {
2007
+ let scenarios_2: string;
2008
+ export { scenarios_2 as scenarios };
2009
+ }
2010
+ declare namespace __json_default_export$2 {
2011
+ export { settings$1 as settings, headers$1 as headers, base$1 as base, home$1 as home, scenarios_1$1 as scenarios_1, editor_1$1 as editor, scenarios_1$1 as scenarios };
2012
+ }
2013
+ //#endregion
2014
+ //#region src/i18n/de_DE.json.d.ts
2015
+ declare let settings: {
2016
+ darkTheme: string;
2017
+ language: string;
2018
+ languageOptions: {
2019
+ "en-US": string;
2020
+ "fr-FR": string;
2021
+ "pt-BR": string;
2022
+ "zh-CN": string;
2023
+ "es-ES": string;
2024
+ "de-DE": string;
2025
+ };
2026
+ tabs: {
2027
+ general: string;
2028
+ storage: string;
2029
+ integrations: string;
2030
+ advanced: string;
2031
+ billing: string;
2032
+ };
2033
+ clearTempFolders: string;
2034
+ clearTempFoldersDescription: string;
2035
+ "pipeline-cache-folder": string;
2036
+ "enter-or-browse-for-a-folder": string;
2037
+ browse: string;
2038
+ "manage-where-the-app-stores-temporary-and-cache-files": string;
2039
+ "clear-cache": string;
2040
+ "reset-to-default": string;
2041
+ "manage-subscription": string;
2042
+ "renewal-date": string;
2043
+ "start-date": string;
2044
+ "cache-cleared-successfully": string;
2045
+ "failed-to-clear-cache-error-message": string;
2046
+ "failed-to-reset-cache-folder-error-message": string;
2047
+ "select-cache-folder": string;
2048
+ };
2049
+ declare namespace headers {
2050
+ let dashboard: string;
2051
+ let scenarios: string;
2052
+ let editor: string;
2053
+ let billing: string;
2054
+ let team: string;
2055
+ }
2056
+ declare namespace base {
2057
+ export let close: string;
2058
+ export let save: string;
2059
+ export let run: string;
2060
+ export let cancel: string;
2061
+ export let end: string;
2062
+ let _delete: string;
2063
+ export { _delete as delete };
2064
+ export let logs: string;
2065
+ export let ok: string;
2066
+ export let add: string;
2067
+ }
2068
+ declare let editor_1: {
2069
+ "invalid-file-content": string;
2070
+ "welcome-back": string;
2071
+ "please-log-in-to-run-a-scenario": string;
2072
+ "execution-done": string;
2073
+ "your-project-has-been-executed-successfully": string;
2074
+ "execution-failed": string;
2075
+ "project-has-encountered-an-error": string;
2076
+ "project-saved": string;
2077
+ "your-project-has-be-saved-successfully": string;
2078
+ };
2079
+ declare let home: {
2080
+ "invalid-preset": string;
2081
+ "store-project-on-the-cloud": string;
2082
+ cloud: string;
2083
+ "store-project-locally": string;
2084
+ local: string;
2085
+ "invalid-number-of-paths-selected": string;
2086
+ "pipelab-project": string;
2087
+ "choose-a-new-path": string;
2088
+ "invalid-file-type": string;
2089
+ "create-project": string;
2090
+ "duplicate-project": string;
2091
+ "project-name": string;
2092
+ "new-project": string;
2093
+ open: string;
2094
+ "your-projects": string;
2095
+ "no-projects-yet": string;
2096
+ };
2097
+ declare namespace scenarios_1 {
2098
+ let scenarios_2: string;
2099
+ export { scenarios_2 as scenarios };
2100
+ }
2101
+ declare namespace __json_default_export {
2102
+ export { settings, headers, base, home, scenarios_1, editor_1 as editor, scenarios_1 as scenarios };
2103
+ }
2104
+ //#endregion
2105
+ //#region src/i18n-utils.d.ts
2106
+ type MessageSchema = typeof __json_default_export$1;
2107
+ type Locales = "en-US" | "fr-FR" | "pt-BR" | "zh-CN" | "es-ES" | "de-DE";
2108
+ //#endregion
2109
+ //#region src/ipc.types.d.ts
2110
+ type UpdateStatus = "update-available" | "update-downloaded" | "checking-for-update" | "update-not-available" | "error";
2111
+ type IpcEvent<TYPE extends string, DATA> = {
2112
+ type: TYPE;
2113
+ data: DATA;
2114
+ };
2115
+ type EndEvent<DATA> = {
2116
+ type: "end";
2117
+ data: {
2118
+ type: "success";
2119
+ result: DATA;
2120
+ } | {
2121
+ type: "error";
2122
+ ipcError: string;
2123
+ };
2124
+ };
2125
+ type IpcDefinition = {
2126
+ "dialog:alert": [{
2127
+ message: string;
2128
+ buttons?: {
2129
+ title: string;
2130
+ value: string;
2131
+ }[];
2132
+ }, EndEvent<{
2133
+ answer: string;
2134
+ }>];
2135
+ "dialog:prompt": [{
2136
+ message: string;
2137
+ buttons?: {
2138
+ title: string;
2139
+ value: string;
2140
+ }[];
2141
+ }, EndEvent<{
2142
+ answer: string;
2143
+ }>];
2144
+ "log:message": [ILogObjMeta, EndEvent<void>];
2145
+ "update:set-status": [{
2146
+ status: UpdateStatus;
2147
+ }, EndEvent<void>];
2148
+ };
2149
+ type RendererChannels = keyof IpcDefinition;
2150
+ type RendererData<KEY extends RendererChannels> = IpcDefinition[KEY][0];
2151
+ type RendererEvents<KEY extends RendererChannels> = IpcDefinition[KEY][1];
2152
+ type RendererEnd<KEY extends RendererChannels> = Extract<IpcDefinition[KEY][1], {
2153
+ type: "end";
2154
+ }>["data"];
2155
+ type RendererMessage = {
2156
+ requestId: RequestId;
2157
+ data: any;
2158
+ };
2159
+ type RequestId = Tagged<string, "request-id">;
2160
+ type HandleListenerRendererSendFn<KEY extends RendererChannels> = (events: RendererEvents<KEY>) => void;
2161
+ type HandleListenerRenderer<KEY extends RendererChannels> = (event: any, data: {
2162
+ value: RendererData<KEY>;
2163
+ send: HandleListenerRendererSendFn<KEY>;
2164
+ }) => Promise<void>;
2165
+ //#endregion
2166
+ //#region src/logger.d.ts
2167
+ declare const useLogger: () => {
2168
+ logger: () => Logger<unknown>;
2169
+ attachTransport: (transport: (logObj: unknown) => void) => void;
2170
+ };
2171
+ //#endregion
2172
+ //#region ../../node_modules/vue/node_modules/@vue/shared/dist/shared.d.ts
2173
+ type Prettify<T> = { [K in keyof T]: T[K] } & {};
2174
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
2175
+ type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P] };
2176
+ type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
2177
+ //#endregion
2178
+ //#region ../../node_modules/vue/node_modules/@vue/reactivity/dist/reactivity.d.ts
2179
+ declare enum TrackOpTypes {
2180
+ GET = "get",
2181
+ HAS = "has",
2182
+ ITERATE = "iterate"
2183
+ }
2184
+ declare enum TriggerOpTypes {
2185
+ SET = "set",
2186
+ ADD = "add",
2187
+ DELETE = "delete",
2188
+ CLEAR = "clear"
2189
+ }
2190
+ type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>;
2191
+ declare const ShallowReactiveMarker: unique symbol;
2192
+ type Primitive = string | number | boolean | bigint | symbol | undefined | null;
2193
+ type Builtin = Primitive | Function | Date | Error | RegExp;
2194
+ type EffectScheduler = (...args: any[]) => any;
2195
+ type DebuggerEvent = {
2196
+ effect: Subscriber;
2197
+ } & DebuggerEventExtraInfo;
2198
+ type DebuggerEventExtraInfo = {
2199
+ target: object;
2200
+ type: TrackOpTypes | TriggerOpTypes;
2201
+ key: any;
2202
+ newValue?: any;
2203
+ oldValue?: any;
2204
+ oldTarget?: Map<any, any> | Set<any>;
2205
+ };
2206
+ interface DebuggerOptions {
2207
+ onTrack?: (event: DebuggerEvent) => void;
2208
+ onTrigger?: (event: DebuggerEvent) => void;
2209
+ }
2210
+ interface ReactiveEffectOptions extends DebuggerOptions {
2211
+ scheduler?: EffectScheduler;
2212
+ allowRecurse?: boolean;
2213
+ onStop?: () => void;
2214
+ }
2215
+ /**
2216
+ * Subscriber is a type that tracks (or subscribes to) a list of deps.
2217
+ */
2218
+ interface Subscriber extends DebuggerOptions {}
2219
+ declare class ReactiveEffect<T = any> implements Subscriber, ReactiveEffectOptions {
2220
+ fn: () => T;
2221
+ scheduler?: EffectScheduler;
2222
+ onStop?: () => void;
2223
+ onTrack?: (event: DebuggerEvent) => void;
2224
+ onTrigger?: (event: DebuggerEvent) => void;
2225
+ constructor(fn: () => T);
2226
+ pause(): void;
2227
+ resume(): void;
2228
+ run(): T;
2229
+ stop(): void;
2230
+ trigger(): void;
2231
+ get dirty(): boolean;
2232
+ }
2233
+ type ComputedGetter<T> = (oldValue?: T) => T;
2234
+ type ComputedSetter<T> = (newValue: T) => void;
2235
+ interface WritableComputedOptions<T, S = T> {
2236
+ get: ComputedGetter<T>;
2237
+ set: ComputedSetter<S>;
2238
+ }
2239
+ declare const RefSymbol: unique symbol;
2240
+ declare const RawSymbol: unique symbol;
2241
+ interface Ref<T = any, S = T> {
2242
+ get value(): T;
2243
+ set value(_: S);
2244
+ /**
2245
+ * Type differentiator only.
2246
+ * We need this to be in public d.ts but don't want it to show up in IDE
2247
+ * autocomplete, so we use a private Symbol instead.
2248
+ */
2249
+ [RefSymbol]: true;
2250
+ }
2251
+ declare const ShallowRefMarker: unique symbol;
2252
+ type ShallowRef<T = any, S = T> = Ref<T, S> & {
2253
+ [ShallowRefMarker]?: true;
2254
+ };
2255
+ /**
2256
+ * This is a special exported interface for other packages to declare
2257
+ * additional types that should bail out for ref unwrapping. For example
2258
+ * \@vue/runtime-dom can declare it like so in its d.ts:
2259
+ *
2260
+ * ``` ts
2261
+ * declare module '@vue/reactivity' {
2262
+ * export interface RefUnwrapBailTypes {
2263
+ * runtimeDOMBailTypes: Node | Window
2264
+ * }
2265
+ * }
2266
+ * ```
2267
+ */
2268
+ interface RefUnwrapBailTypes {}
2269
+ type ShallowUnwrapRef<T> = { [K in keyof T]: DistributeRef<T[K]> };
2270
+ type DistributeRef<T> = T extends Ref<infer V, unknown> ? V : T;
2271
+ type UnwrapRef<T> = T extends ShallowRef<infer V, unknown> ? V : T extends Ref<infer V, unknown> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
2272
+ type UnwrapRefSimple<T> = T extends Builtin | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
2273
+ [RawSymbol]?: true;
2274
+ } ? T : T extends Map<infer K, infer V> ? Map<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Map<any, any>>> : T extends WeakMap<infer K, infer V> ? WeakMap<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakMap<any, any>>> : T extends Set<infer V> ? Set<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Set<any>>> : T extends WeakSet<infer V> ? WeakSet<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakSet<any>>> : T extends ReadonlyArray<any> ? { [K in keyof T]: UnwrapRefSimple<T[K]> } : T extends object & {
2275
+ [ShallowReactiveMarker]?: never;
2276
+ } ? { [P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]> } : T;
2277
+ type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
2278
+ type OnCleanup = (cleanupFn: () => void) => void;
2279
+ type WatchStopHandle = () => void;
2280
+ //#endregion
2281
+ //#region ../../node_modules/vue/node_modules/@vue/runtime-core/dist/runtime-core.d.ts
2282
+ type Slot<T extends any = any> = (...args: IfAny<T, any[], [T] | (T extends undefined ? [] : never)>) => VNode[];
2283
+ type InternalSlots = {
2284
+ [name: string]: Slot | undefined;
2285
+ };
2286
+ type Slots = Readonly<InternalSlots>;
2287
+ declare const SlotSymbol: unique symbol;
2288
+ type SlotsType<T extends Record<string, any> = Record<string, any>> = {
2289
+ [SlotSymbol]?: T;
2290
+ };
2291
+ type StrictUnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<T> & T;
2292
+ type UnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<Prettify<{ [K in keyof T]: NonNullable<T[K]> extends ((...args: any[]) => any) ? T[K] : Slot<T[K]> }>>;
2293
+ type RawSlots = {
2294
+ [name: string]: unknown;
2295
+ $stable?: boolean;
2296
+ };
2297
+ declare enum SchedulerJobFlags {
2298
+ QUEUED = 1,
2299
+ PRE = 2,
2300
+ /**
2301
+ * Indicates whether the effect is allowed to recursively trigger itself
2302
+ * when managed by the scheduler.
2303
+ *
2304
+ * By default, a job cannot trigger itself because some built-in method calls,
2305
+ * e.g. Array.prototype.push actually performs reads as well (#1740) which
2306
+ * can lead to confusing infinite loops.
2307
+ * The allowed cases are component update functions and watch callbacks.
2308
+ * Component update functions may update child component props, which in turn
2309
+ * trigger flush: "pre" watch callbacks that mutates state that the parent
2310
+ * relies on (#1801). Watch callbacks doesn't track its dependencies so if it
2311
+ * triggers itself again, it's likely intentional and it is the user's
2312
+ * responsibility to perform recursive state mutation that eventually
2313
+ * stabilizes (#1727).
2314
+ */
2315
+ ALLOW_RECURSE = 4,
2316
+ DISPOSED = 8
2317
+ }
2318
+ interface SchedulerJob extends Function {
2319
+ id?: number;
2320
+ /**
2321
+ * flags can technically be undefined, but it can still be used in bitwise
2322
+ * operations just like 0.
2323
+ */
2324
+ flags?: SchedulerJobFlags;
2325
+ /**
2326
+ * Attached by renderer.ts when setting up a component's render effect
2327
+ * Used to obtain component information when reporting max recursive updates.
2328
+ */
2329
+ i?: ComponentInternalInstance;
2330
+ }
2331
+ declare function nextTick<T = void, R = void>(this: T, fn?: (this: T) => R): Promise<Awaited<R>>;
2332
+ type ComponentPropsOptions<P = Data$2> = ComponentObjectPropsOptions<P> | string[];
2333
+ type ComponentObjectPropsOptions<P = Data$2> = { [K in keyof P]: Prop<P[K]> | null };
2334
+ type Prop<T, D = T> = PropOptions<T, D> | PropType$1<T>;
2335
+ type DefaultFactory<T> = (props: Data$2) => T | null | undefined;
2336
+ interface PropOptions<T = any, D = T> {
2337
+ type?: PropType$1<T> | true | null;
2338
+ required?: boolean;
2339
+ default?: D | DefaultFactory<D> | null | undefined | object;
2340
+ validator?(value: unknown, props: Data$2): boolean;
2341
+ }
2342
+ type PropType$1<T> = PropConstructor<T> | (PropConstructor<T> | null)[];
2343
+ type PropConstructor<T = any> = {
2344
+ new (...args: any[]): T & {};
2345
+ } | {
2346
+ (): T;
2347
+ } | PropMethod<T>;
2348
+ type PropMethod<T, TConstructor = any> = [T] extends [((...args: any) => any) | undefined] ? {
2349
+ new (): TConstructor;
2350
+ (): T;
2351
+ readonly prototype: TConstructor;
2352
+ } : never;
2353
+ type RequiredKeys<T> = { [K in keyof T]: T[K] extends {
2354
+ required: true;
2355
+ } | {
2356
+ default: any;
2357
+ } | BooleanConstructor | {
2358
+ type: BooleanConstructor;
2359
+ } ? T[K] extends {
2360
+ default: undefined | (() => undefined);
2361
+ } ? never : K : never }[keyof T];
2362
+ type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
2363
+ type DefaultKeys<T> = { [K in keyof T]: T[K] extends {
2364
+ default: any;
2365
+ } | BooleanConstructor | {
2366
+ type: BooleanConstructor;
2367
+ } ? T[K] extends {
2368
+ type: BooleanConstructor;
2369
+ required: true;
2370
+ } ? never : K : never }[keyof T];
2371
+ type InferPropType<T, NullAsAny = true> = [T] extends [null] ? NullAsAny extends true ? any : null : [T] extends [{
2372
+ type: null | true;
2373
+ }] ? any : [T] extends [ObjectConstructor | {
2374
+ type: ObjectConstructor;
2375
+ }] ? Record<string, any> : [T] extends [BooleanConstructor | {
2376
+ type: BooleanConstructor;
2377
+ }] ? boolean : [T] extends [DateConstructor | {
2378
+ type: DateConstructor;
2379
+ }] ? Date : [T] extends [(infer U)[] | {
2380
+ type: (infer U)[];
2381
+ }] ? U extends DateConstructor ? Date | InferPropType<U, false> : InferPropType<U, false> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? IfAny<V, V, D> : V : V : T;
2382
+ /**
2383
+ * Extract prop types from a runtime props options object.
2384
+ * The extracted types are **internal** - i.e. the resolved props received by
2385
+ * the component.
2386
+ * - Boolean props are always present
2387
+ * - Props with default values are always present
2388
+ *
2389
+ * To extract accepted props from the parent, use {@link ExtractPublicPropTypes}.
2390
+ */
2391
+ type ExtractPropTypes<O> = { [K in keyof Pick<O, RequiredKeys<O>>]: InferPropType<O[K]> } & { [K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]> };
2392
+ type ExtractDefaultPropTypes<O> = O extends object ? { [K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]> } : {};
2393
+ /**
2394
+ * Vue `<script setup>` compiler macro for declaring component props. The
2395
+ * expected argument is the same as the component `props` option.
2396
+ *
2397
+ * Example runtime declaration:
2398
+ * ```js
2399
+ * // using Array syntax
2400
+ * const props = defineProps(['foo', 'bar'])
2401
+ * // using Object syntax
2402
+ * const props = defineProps({
2403
+ * foo: String,
2404
+ * bar: {
2405
+ * type: Number,
2406
+ * required: true
2407
+ * }
2408
+ * })
2409
+ * ```
2410
+ *
2411
+ * Equivalent type-based declaration:
2412
+ * ```ts
2413
+ * // will be compiled into equivalent runtime declarations
2414
+ * const props = defineProps<{
2415
+ * foo?: string
2416
+ * bar: number
2417
+ * }>()
2418
+ * ```
2419
+ *
2420
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
2421
+ *
2422
+ * This is only usable inside `<script setup>`, is compiled away in the
2423
+ * output and should **not** be actually called at runtime.
2424
+ */
2425
+ declare function defineProps<PropNames extends string = string>(props: PropNames[]): Prettify<Readonly<{ [key in PropNames]?: any }>>;
2426
+ declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Prettify<Readonly<ExtractPropTypes<PP>>>;
2427
+ declare function defineProps<TypeProps>(): DefineProps<LooseRequired<TypeProps>, BooleanKey<TypeProps>>;
2428
+ type DefineProps<T, BKeys extends keyof T> = Readonly<T> & { readonly [K in BKeys]-?: boolean };
2429
+ type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? [T[K]] extends [boolean | undefined] ? K : never : never;
2430
+ /**
2431
+ * Vue `<script setup>` compiler macro for declaring a component's emitted
2432
+ * events. The expected argument is the same as the component `emits` option.
2433
+ *
2434
+ * Example runtime declaration:
2435
+ * ```js
2436
+ * const emit = defineEmits(['change', 'update'])
2437
+ * ```
2438
+ *
2439
+ * Example type-based declaration:
2440
+ * ```ts
2441
+ * const emit = defineEmits<{
2442
+ * // <eventName>: <expected arguments>
2443
+ * change: []
2444
+ * update: [value: number] // named tuple syntax
2445
+ * }>()
2446
+ *
2447
+ * emit('change')
2448
+ * emit('update', 1)
2449
+ * ```
2450
+ *
2451
+ * This is only usable inside `<script setup>`, is compiled away in the
2452
+ * output and should **not** be actually called at runtime.
2453
+ *
2454
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
2455
+ */
2456
+ declare function defineEmits<EE extends string = string>(emitOptions: EE[]): EmitFn<EE[]>;
2457
+ declare function defineEmits<E extends EmitsOptions = EmitsOptions>(emitOptions: E): EmitFn<E>;
2458
+ declare function defineEmits<T extends ComponentTypeEmits>(): T extends ((...args: any[]) => any) ? T : ShortEmits<T>;
2459
+ type ComponentTypeEmits = ((...args: any[]) => any) | Record<string, any>;
2460
+ type RecordToUnion<T extends Record<string, any>> = T[keyof T];
2461
+ type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{ [K in keyof T]: (evt: K, ...args: T[K]) => void }>>;
2462
+ /**
2463
+ * Vue `<script setup>` compiler macro for declaring a component's exposed
2464
+ * instance properties when it is accessed by a parent component via template
2465
+ * refs.
2466
+ *
2467
+ * `<script setup>` components are closed by default - i.e. variables inside
2468
+ * the `<script setup>` scope is not exposed to parent unless explicitly exposed
2469
+ * via `defineExpose`.
2470
+ *
2471
+ * This is only usable inside `<script setup>`, is compiled away in the
2472
+ * output and should **not** be actually called at runtime.
2473
+ *
2474
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineexpose}
2475
+ */
2476
+ declare function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed): void;
2477
+ /**
2478
+ * Vue `<script setup>` compiler macro for declaring a component's additional
2479
+ * options. This should be used only for options that cannot be expressed via
2480
+ * Composition API - e.g. `inheritAttrs`.
2481
+ *
2482
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineoptions}
2483
+ */
2484
+ declare function defineOptions<RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin>(options?: ComponentOptionsBase<{}, RawBindings, D, C, M, Mixin, Extends, {}> & {
2485
+ /**
2486
+ * props should be defined via defineProps().
2487
+ */
2488
+ props?: never;
2489
+ /**
2490
+ * emits should be defined via defineEmits().
2491
+ */
2492
+ emits?: never;
2493
+ /**
2494
+ * expose should be defined via defineExpose().
2495
+ */
2496
+ expose?: never;
2497
+ /**
2498
+ * slots should be defined via defineSlots().
2499
+ */
2500
+ slots?: never;
2501
+ }): void;
2502
+ declare function defineSlots<S extends Record<string, any> = Record<string, any>>(): StrictUnwrapSlotsType<SlotsType<S>>;
2503
+ type ModelRef<T, M extends PropertyKey = string, G = T, S = T> = Ref<G, S> & [ModelRef<T, M, G, S>, Record<M, true | undefined>];
2504
+ type DefineModelOptions<T = any, G = T, S = T> = {
2505
+ get?: (v: T) => G;
2506
+ set?: (v: S) => any;
2507
+ };
2508
+ /**
2509
+ * Vue `<script setup>` compiler macro for declaring a
2510
+ * two-way binding prop that can be consumed via `v-model` from the parent
2511
+ * component. This will declare a prop with the same name and a corresponding
2512
+ * `update:propName` event.
2513
+ *
2514
+ * If the first argument is a string, it will be used as the prop name;
2515
+ * Otherwise the prop name will default to "modelValue". In both cases, you
2516
+ * can also pass an additional object which will be used as the prop's options.
2517
+ *
2518
+ * The returned ref behaves differently depending on whether the parent
2519
+ * provided the corresponding v-model props or not:
2520
+ * - If yes, the returned ref's value will always be in sync with the parent
2521
+ * prop.
2522
+ * - If not, the returned ref will behave like a normal local ref.
2523
+ *
2524
+ * @example
2525
+ * ```ts
2526
+ * // default model (consumed via `v-model`)
2527
+ * const modelValue = defineModel<string>()
2528
+ * modelValue.value = "hello"
2529
+ *
2530
+ * // default model with options
2531
+ * const modelValue = defineModel<string>({ required: true })
2532
+ *
2533
+ * // with specified name (consumed via `v-model:count`)
2534
+ * const count = defineModel<number>('count')
2535
+ * count.value++
2536
+ *
2537
+ * // with specified name and default value
2538
+ * const count = defineModel<number>('count', { default: 0 })
2539
+ * ```
2540
+ */
2541
+ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options: ({
2542
+ default: any;
2543
+ } | {
2544
+ required: true;
2545
+ }) & PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T, M, G, S>;
2546
+ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options?: PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
2547
+ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options: ({
2548
+ default: any;
2549
+ } | {
2550
+ required: true;
2551
+ }) & PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T, M, G, S>;
2552
+ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options?: PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
2553
+ type NotUndefined<T> = T extends undefined ? never : T;
2554
+ type MappedOmit<T, K extends keyof any> = { [P in keyof T as P extends K ? never : P]: T[P] };
2555
+ type InferDefaults<T> = { [K in keyof T]?: InferDefault<T, T[K]> };
2556
+ type NativeType = null | number | string | boolean | symbol | Function;
2557
+ type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : never);
2558
+ type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = T extends unknown ? Readonly<MappedOmit<T, keyof Defaults>> & { readonly [K in keyof Defaults as K extends keyof T ? K : never]-?: K extends keyof T ? Defaults[K] extends undefined ? IfAny<Defaults[K], NotUndefined<T[K]>, T[K]> : NotUndefined<T[K]> : never } & { readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean } : never;
2559
+ /**
2560
+ * Vue `<script setup>` compiler macro for providing props default values when
2561
+ * using type-based `defineProps` declaration.
2562
+ *
2563
+ * Example usage:
2564
+ * ```ts
2565
+ * withDefaults(defineProps<{
2566
+ * size?: number
2567
+ * labels?: string[]
2568
+ * }>(), {
2569
+ * size: 3,
2570
+ * labels: () => ['default label']
2571
+ * })
2572
+ * ```
2573
+ *
2574
+ * This is only usable inside `<script setup>`, is compiled away in the output
2575
+ * and should **not** be actually called at runtime.
2576
+ *
2577
+ * @see {@link https://vuejs.org/guide/typescript/composition-api.html#typing-component-props}
2578
+ */
2579
+ declare function withDefaults<T, BKeys extends keyof T, Defaults extends InferDefaults<T>>(props: DefineProps<T, BKeys>, defaults: Defaults): PropsWithDefaults<T, Defaults, BKeys>;
2580
+ type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
2581
+ type EmitsOptions = ObjectEmitsOptions | string[];
2582
+ type EmitsToProps<T extends EmitsOptions | ComponentTypeEmits> = T extends string[] ? { [K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any } : T extends ObjectEmitsOptions ? { [K in string & keyof T as `on${Capitalize<K>}`]?: (...args: T[K] extends ((...args: infer P) => any) ? P : T[K] extends null ? any[] : never) => any } : {};
2583
+ type ShortEmitsToObject<E> = E extends Record<string, any[]> ? { [K in keyof E]: (...args: E[K]) => any } : E;
2584
+ type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{ [key in Event]: Options[key] extends ((...args: infer Args) => any) ? (event: key, ...args: Args) => void : Options[key] extends any[] ? (event: key, ...args: Options[key]) => void : (event: key, ...args: any[]) => void }[Event]>;
2585
+ /**
2586
+ Runtime helper for applying directives to a vnode. Example usage:
2587
+
2588
+ const comp = resolveComponent('comp')
2589
+ const foo = resolveDirective('foo')
2590
+ const bar = resolveDirective('bar')
2591
+
2592
+ return withDirectives(h(comp), [
2593
+ [foo, this.x],
2594
+ [bar, this.y]
2595
+ ])
2596
+ */
2597
+ interface DirectiveBinding<Value = any, Modifiers extends string = string, Arg extends string = string> {
2598
+ instance: ComponentPublicInstance | Record<string, any> | null;
2599
+ value: Value;
2600
+ oldValue: Value | null;
2601
+ arg?: Arg;
2602
+ modifiers: DirectiveModifiers<Modifiers>;
2603
+ dir: ObjectDirective<any, Value>;
2604
+ }
2605
+ type DirectiveHook<HostElement = any, Prev = VNode<any, HostElement> | null, Value = any, Modifiers extends string = string, Arg extends string = string> = (el: HostElement, binding: DirectiveBinding<Value, Modifiers, Arg>, vnode: VNode<any, HostElement>, prevVNode: Prev) => void;
2606
+ type SSRDirectiveHook<Value = any, Modifiers extends string = string, Arg extends string = string> = (binding: DirectiveBinding<Value, Modifiers, Arg>, vnode: VNode) => Data$2 | undefined;
2607
+ interface ObjectDirective<HostElement = any, Value = any, Modifiers extends string = string, Arg extends string = string> {
2608
+ created?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
2609
+ beforeMount?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
2610
+ mounted?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
2611
+ beforeUpdate?: DirectiveHook<HostElement, VNode<any, HostElement>, Value, Modifiers, Arg>;
2612
+ updated?: DirectiveHook<HostElement, VNode<any, HostElement>, Value, Modifiers, Arg>;
2613
+ beforeUnmount?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
2614
+ unmounted?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
2615
+ getSSRProps?: SSRDirectiveHook<Value, Modifiers, Arg>;
2616
+ deep?: boolean;
2617
+ }
2618
+ type FunctionDirective<HostElement = any, V = any, Modifiers extends string = string, Arg extends string = string> = DirectiveHook<HostElement, any, V, Modifiers, Arg>;
2619
+ type Directive<HostElement = any, Value = any, Modifiers extends string = string, Arg extends string = string> = ObjectDirective<HostElement, Value, Modifiers, Arg> | FunctionDirective<HostElement, Value, Modifiers, Arg>;
2620
+ type DirectiveModifiers<K extends string = string> = Record<K, boolean>;
2621
+ /**
2622
+ * Custom properties added to component instances in any way and can be accessed through `this`
2623
+ *
2624
+ * @example
2625
+ * Here is an example of adding a property `$router` to every component instance:
2626
+ * ```ts
2627
+ * import { createApp } from 'vue'
2628
+ * import { Router, createRouter } from 'vue-router'
2629
+ *
2630
+ * declare module 'vue' {
2631
+ * interface ComponentCustomProperties {
2632
+ * $router: Router
2633
+ * }
2634
+ * }
2635
+ *
2636
+ * // effectively adding the router to every component instance
2637
+ * const app = createApp({})
2638
+ * const router = createRouter()
2639
+ * app.config.globalProperties.$router = router
2640
+ *
2641
+ * const vm = app.mount('#app')
2642
+ * // we can access the router from the instance
2643
+ * vm.$router.push('/')
2644
+ * ```
2645
+ */
2646
+ interface ComponentCustomProperties {}
2647
+ type IsDefaultMixinComponent<T> = T extends ComponentOptionsMixin ? ComponentOptionsMixin extends T ? true : false : false;
2648
+ type MixinToOptionTypes<T> = T extends ComponentOptionsBase<infer P, infer B, infer D, infer C, infer M, infer Mixin, infer Extends, any, any, infer Defaults, any, any, any, any, any, any, any> ? OptionTypesType<P & {}, B & {}, D & {}, C & {}, M & {}, Defaults & {}> & IntersectionMixin<Mixin> & IntersectionMixin<Extends> : never;
2649
+ type ExtractMixin<T> = {
2650
+ Mixin: MixinToOptionTypes<T>;
2651
+ }[T extends ComponentOptionsMixin ? 'Mixin' : never];
2652
+ type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType : UnionToIntersection<ExtractMixin<T>>;
2653
+ type UnwrapMixinsType<T, Type extends OptionTypesKeys> = T extends OptionTypesType ? T[Type] : never;
2654
+ type EnsureNonVoid<T> = T extends void ? {} : T;
2655
+ type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = {
2656
+ __isFragment?: never;
2657
+ __isTeleport?: never;
2658
+ __isSuspense?: never;
2659
+ new (...args: any[]): T;
2660
+ };
2661
+ /**
2662
+ * @deprecated This is no longer used internally, but exported and relied on by
2663
+ * existing library types generated by vue-tsc.
2664
+ */
2665
+ /**
2666
+ * This is the same as `CreateComponentPublicInstance` but adds local components,
2667
+ * global directives, exposed, and provide inference.
2668
+ * It changes the arguments order so that we don't need to repeat mixin
2669
+ * inference everywhere internally, but it has to be a new type to avoid
2670
+ * breaking types that relies on previous arguments order (#10842)
2671
+ */
2672
+ type CreateComponentPublicInstanceWithMixins<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, TypeRefs extends Data$2 = {}, TypeEl extends Element = any, Provide extends ComponentProvideOptions = ComponentProvideOptions, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults, {}, string, S, LC, Directives, Exposed, Provide>, I, S, Exposed, TypeRefs, TypeEl>;
2673
+ type ExposedKeys<T, Exposed extends string & keyof T> = '' extends Exposed ? T : Pick<T, Exposed>;
2674
+ type ComponentPublicInstance<P = {}, // props type extracted from props option
2675
+ B = {}, // raw bindings returned from setup()
2676
+ D = {}, // return from data()
2677
+ C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = {}, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, Exposed extends string = '', TypeRefs extends Data$2 = {}, TypeEl extends Element = any> = {
2678
+ $: ComponentInternalInstance;
2679
+ $data: D;
2680
+ $props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<Prettify<P> & PublicProps, keyof Defaults> : Prettify<P> & PublicProps;
2681
+ $attrs: Data$2;
2682
+ $refs: Data$2 & TypeRefs;
2683
+ $slots: UnwrapSlotsType<S>;
2684
+ $root: ComponentPublicInstance | null;
2685
+ $parent: ComponentPublicInstance | null;
2686
+ $host: Element | null;
2687
+ $emit: EmitFn<E>;
2688
+ $el: TypeEl;
2689
+ $options: Options & MergedComponentOptionsOverride;
2690
+ $forceUpdate: () => void;
2691
+ $nextTick: typeof nextTick;
2692
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
2693
+ } & ExposedKeys<IfAny<P, P, Readonly<Defaults> & Omit<P, keyof ShallowUnwrapRef<B> | keyof Defaults>> & ShallowUnwrapRef<B> & UnwrapNestedRefs<D> & ExtractComputedReturns<C> & M & ComponentCustomProperties & InjectToObject<I>, Exposed>;
2694
+ interface SuspenseProps {
2695
+ onResolve?: () => void;
2696
+ onPending?: () => void;
2697
+ onFallback?: () => void;
2698
+ timeout?: string | number;
2699
+ /**
2700
+ * Allow suspense to be captured by parent suspense
2701
+ *
2702
+ * @default false
2703
+ */
2704
+ suspensible?: boolean;
2705
+ }
2706
+ declare const SuspenseImpl: {
2707
+ name: string;
2708
+ __isSuspense: boolean;
2709
+ process(n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals): void;
2710
+ hydrate: typeof hydrateSuspense;
2711
+ normalize: typeof normalizeSuspenseChildren;
2712
+ };
2713
+ declare const Suspense: {
2714
+ __isSuspense: true;
2715
+ new (): {
2716
+ $props: VNodeProps & SuspenseProps;
2717
+ $slots: {
2718
+ default(): VNode[];
2719
+ fallback(): VNode[];
2720
+ };
2721
+ };
2722
+ };
2723
+ interface SuspenseBoundary {
2724
+ vnode: VNode<RendererNode, RendererElement, SuspenseProps>;
2725
+ parent: SuspenseBoundary | null;
2726
+ parentComponent: ComponentInternalInstance | null;
2727
+ namespace: ElementNamespace;
2728
+ container: RendererElement;
2729
+ hiddenContainer: RendererElement;
2730
+ activeBranch: VNode | null;
2731
+ pendingBranch: VNode | null;
2732
+ deps: number;
2733
+ pendingId: number;
2734
+ timeout: number;
2735
+ isInFallback: boolean;
2736
+ isHydrating: boolean;
2737
+ isUnmounted: boolean;
2738
+ effects: Function[];
2739
+ resolve(force?: boolean, sync?: boolean): void;
2740
+ fallback(fallbackVNode: VNode): void;
2741
+ move(container: RendererElement, anchor: RendererNode | null, type: MoveType): void;
2742
+ next(): RendererNode | null;
2743
+ registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn, optimized: boolean): void;
2744
+ unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void;
2745
+ }
2746
+ declare function hydrateSuspense(node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, hydrateNode: (node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
2747
+ declare function normalizeSuspenseChildren(vnode: VNode): void;
2748
+ type Hook<T = () => void> = T | T[];
2749
+ interface BaseTransitionProps<HostElement = RendererElement> {
2750
+ mode?: 'in-out' | 'out-in' | 'default';
2751
+ appear?: boolean;
2752
+ persisted?: boolean;
2753
+ onBeforeEnter?: Hook<(el: HostElement) => void>;
2754
+ onEnter?: Hook<(el: HostElement, done: () => void) => void>;
2755
+ onAfterEnter?: Hook<(el: HostElement) => void>;
2756
+ onEnterCancelled?: Hook<(el: HostElement) => void>;
2757
+ onBeforeLeave?: Hook<(el: HostElement) => void>;
2758
+ onLeave?: Hook<(el: HostElement, done: () => void) => void>;
2759
+ onAfterLeave?: Hook<(el: HostElement) => void>;
2760
+ onLeaveCancelled?: Hook<(el: HostElement) => void>;
2761
+ onBeforeAppear?: Hook<(el: HostElement) => void>;
2762
+ onAppear?: Hook<(el: HostElement, done: () => void) => void>;
2763
+ onAfterAppear?: Hook<(el: HostElement) => void>;
2764
+ onAppearCancelled?: Hook<(el: HostElement) => void>;
2765
+ }
2766
+ interface TransitionHooks<HostElement = RendererElement> {
2767
+ mode: BaseTransitionProps['mode'];
2768
+ persisted: boolean;
2769
+ beforeEnter(el: HostElement): void;
2770
+ enter(el: HostElement): void;
2771
+ leave(el: HostElement, remove: () => void): void;
2772
+ clone(vnode: VNode): TransitionHooks<HostElement>;
2773
+ afterLeave?(): void;
2774
+ delayLeave?(el: HostElement, earlyRemove: () => void, delayedLeave: () => void): void;
2775
+ delayedLeave?(): void;
2776
+ }
2777
+ type ElementNamespace = 'svg' | 'mathml' | undefined;
2778
+ interface RendererOptions<HostNode = RendererNode, HostElement = RendererElement> {
2779
+ patchProp(el: HostElement, key: string, prevValue: any, nextValue: any, namespace?: ElementNamespace, parentComponent?: ComponentInternalInstance | null): void;
2780
+ insert(el: HostNode, parent: HostElement, anchor?: HostNode | null): void;
2781
+ remove(el: HostNode): void;
2782
+ createElement(type: string, namespace?: ElementNamespace, isCustomizedBuiltIn?: string, vnodeProps?: (VNodeProps & {
2783
+ [key: string]: any;
2784
+ }) | null): HostElement;
2785
+ createText(text: string): HostNode;
2786
+ createComment(text: string): HostNode;
2787
+ setText(node: HostNode, text: string): void;
2788
+ setElementText(node: HostElement, text: string): void;
2789
+ parentNode(node: HostNode): HostElement | null;
2790
+ nextSibling(node: HostNode): HostNode | null;
2791
+ querySelector?(selector: string): HostElement | null;
2792
+ setScopeId?(el: HostElement, id: string): void;
2793
+ cloneNode?(node: HostNode): HostNode;
2794
+ insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, namespace: ElementNamespace, start?: HostNode | null, end?: HostNode | null): [HostNode, HostNode];
2795
+ }
2796
+ interface RendererNode {
2797
+ [key: string | symbol]: any;
2798
+ }
2799
+ interface RendererElement extends RendererNode {}
2800
+ interface RendererInternals<HostNode = RendererNode, HostElement = RendererElement> {
2801
+ p: PatchFn;
2802
+ um: UnmountFn;
2803
+ r: RemoveFn;
2804
+ m: MoveFn;
2805
+ mt: MountComponentFn;
2806
+ mc: MountChildrenFn;
2807
+ pc: PatchChildrenFn;
2808
+ pbc: PatchBlockChildrenFn;
2809
+ n: NextFn;
2810
+ o: RendererOptions<HostNode, HostElement>;
2811
+ }
2812
+ type PatchFn = (n1: VNode | null, // null means this is a mount
2813
+ n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, namespace?: ElementNamespace, slotScopeIds?: string[] | null, optimized?: boolean) => void;
2814
+ type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void;
2815
+ type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean) => void;
2816
+ type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null) => void;
2817
+ type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
2818
+ type NextFn = (vnode: VNode) => RendererNode | null;
2819
+ type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
2820
+ type RemoveFn = (vnode: VNode) => void;
2821
+ type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, optimized: boolean) => void;
2822
+ type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, optimized: boolean) => void;
2823
+ declare enum MoveType {
2824
+ ENTER = 0,
2825
+ LEAVE = 1,
2826
+ REORDER = 2
2827
+ }
2828
+ /**
2829
+ * The createRenderer function accepts two generic arguments:
2830
+ * HostNode and HostElement, corresponding to Node and Element types in the
2831
+ * host environment. For example, for runtime-dom, HostNode would be the DOM
2832
+ * `Node` interface and HostElement would be the DOM `Element` interface.
2833
+ *
2834
+ * Custom renderers can pass in the platform specific types like this:
2835
+ *
2836
+ * ``` js
2837
+ * const { render, createApp } = createRenderer<Node, Element>({
2838
+ * patchProp,
2839
+ * ...nodeOps
2840
+ * })
2841
+ * ```
2842
+ */
2843
+ type MatchPattern = string | RegExp | (string | RegExp)[];
2844
+ interface KeepAliveProps {
2845
+ include?: MatchPattern;
2846
+ exclude?: MatchPattern;
2847
+ max?: number | string;
2848
+ }
2849
+ type DebuggerHook = (e: DebuggerEvent) => void;
2850
+ type ErrorCapturedHook<TError = unknown> = (err: TError, instance: ComponentPublicInstance | null, info: string) => boolean | void;
2851
+ declare enum DeprecationTypes$1 {
2852
+ GLOBAL_MOUNT = "GLOBAL_MOUNT",
2853
+ GLOBAL_MOUNT_CONTAINER = "GLOBAL_MOUNT_CONTAINER",
2854
+ GLOBAL_EXTEND = "GLOBAL_EXTEND",
2855
+ GLOBAL_PROTOTYPE = "GLOBAL_PROTOTYPE",
2856
+ GLOBAL_SET = "GLOBAL_SET",
2857
+ GLOBAL_DELETE = "GLOBAL_DELETE",
2858
+ GLOBAL_OBSERVABLE = "GLOBAL_OBSERVABLE",
2859
+ GLOBAL_PRIVATE_UTIL = "GLOBAL_PRIVATE_UTIL",
2860
+ CONFIG_SILENT = "CONFIG_SILENT",
2861
+ CONFIG_DEVTOOLS = "CONFIG_DEVTOOLS",
2862
+ CONFIG_KEY_CODES = "CONFIG_KEY_CODES",
2863
+ CONFIG_PRODUCTION_TIP = "CONFIG_PRODUCTION_TIP",
2864
+ CONFIG_IGNORED_ELEMENTS = "CONFIG_IGNORED_ELEMENTS",
2865
+ CONFIG_WHITESPACE = "CONFIG_WHITESPACE",
2866
+ CONFIG_OPTION_MERGE_STRATS = "CONFIG_OPTION_MERGE_STRATS",
2867
+ INSTANCE_SET = "INSTANCE_SET",
2868
+ INSTANCE_DELETE = "INSTANCE_DELETE",
2869
+ INSTANCE_DESTROY = "INSTANCE_DESTROY",
2870
+ INSTANCE_EVENT_EMITTER = "INSTANCE_EVENT_EMITTER",
2871
+ INSTANCE_EVENT_HOOKS = "INSTANCE_EVENT_HOOKS",
2872
+ INSTANCE_CHILDREN = "INSTANCE_CHILDREN",
2873
+ INSTANCE_LISTENERS = "INSTANCE_LISTENERS",
2874
+ INSTANCE_SCOPED_SLOTS = "INSTANCE_SCOPED_SLOTS",
2875
+ INSTANCE_ATTRS_CLASS_STYLE = "INSTANCE_ATTRS_CLASS_STYLE",
2876
+ OPTIONS_DATA_FN = "OPTIONS_DATA_FN",
2877
+ OPTIONS_DATA_MERGE = "OPTIONS_DATA_MERGE",
2878
+ OPTIONS_BEFORE_DESTROY = "OPTIONS_BEFORE_DESTROY",
2879
+ OPTIONS_DESTROYED = "OPTIONS_DESTROYED",
2880
+ WATCH_ARRAY = "WATCH_ARRAY",
2881
+ PROPS_DEFAULT_THIS = "PROPS_DEFAULT_THIS",
2882
+ V_ON_KEYCODE_MODIFIER = "V_ON_KEYCODE_MODIFIER",
2883
+ CUSTOM_DIR = "CUSTOM_DIR",
2884
+ ATTR_FALSE_VALUE = "ATTR_FALSE_VALUE",
2885
+ ATTR_ENUMERATED_COERCION = "ATTR_ENUMERATED_COERCION",
2886
+ TRANSITION_CLASSES = "TRANSITION_CLASSES",
2887
+ TRANSITION_GROUP_ROOT = "TRANSITION_GROUP_ROOT",
2888
+ COMPONENT_ASYNC = "COMPONENT_ASYNC",
2889
+ COMPONENT_FUNCTIONAL = "COMPONENT_FUNCTIONAL",
2890
+ COMPONENT_V_MODEL = "COMPONENT_V_MODEL",
2891
+ RENDER_FUNCTION = "RENDER_FUNCTION",
2892
+ FILTERS = "FILTERS",
2893
+ PRIVATE_APIS = "PRIVATE_APIS"
2894
+ }
2895
+ type CompatConfig = Partial<Record<DeprecationTypes$1, boolean | 'suppress-warning'>> & {
2896
+ MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3);
2897
+ };
2898
+ /**
2899
+ * Interface for declaring custom options.
2900
+ *
2901
+ * @example
2902
+ * ```ts
2903
+ * declare module 'vue' {
2904
+ * interface ComponentCustomOptions {
2905
+ * beforeRouteUpdate?(
2906
+ * to: Route,
2907
+ * from: Route,
2908
+ * next: () => void
2909
+ * ): void
2910
+ * }
2911
+ * }
2912
+ * ```
2913
+ */
2914
+ interface ComponentCustomOptions {}
2915
+ type RenderFunction = () => VNodeChild;
2916
+ interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string, Defaults = {}, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions> extends LegacyOptions<Props, D, C, M, Mixin, Extends, I, II, Provide>, ComponentInternalOptions, ComponentCustomOptions {
2917
+ setup?: (this: void, props: LooseRequired<Props & Prettify<UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, 'P'>>>, ctx: SetupContext<E, S>) => Promise<RawBindings> | RawBindings | RenderFunction | void;
2918
+ name?: string;
2919
+ template?: string | object;
2920
+ render?: Function;
2921
+ components?: LC & Record<string, Component>;
2922
+ directives?: Directives & Record<string, Directive>;
2923
+ inheritAttrs?: boolean;
2924
+ emits?: (E | EE[]) & ThisType<void>;
2925
+ slots?: S;
2926
+ expose?: Exposed[];
2927
+ serverPrefetch?(): void | Promise<any>;
2928
+ compilerOptions?: RuntimeCompilerOptions;
2929
+ call?: (this: unknown, ...args: unknown[]) => never;
2930
+ __isFragment?: never;
2931
+ __isTeleport?: never;
2932
+ __isSuspense?: never;
2933
+ __defaults?: Defaults;
2934
+ }
2935
+ /**
2936
+ * Subset of compiler options that makes sense for the runtime.
2937
+ */
2938
+ interface RuntimeCompilerOptions {
2939
+ isCustomElement?: (tag: string) => boolean;
2940
+ whitespace?: 'preserve' | 'condense';
2941
+ comments?: boolean;
2942
+ delimiters?: [string, string];
2943
+ }
2944
+ type ComponentOptions<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = any, M extends MethodOptions = any, Mixin extends ComponentOptionsMixin = any, Extends extends ComponentOptionsMixin = any, E extends EmitsOptions = any, EE extends string = string, Defaults = {}, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, I, II, S, LC, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<{}, RawBindings, D, C, M, Mixin, Extends, E, Readonly<Props>, Defaults, false, I, S, LC, Directives>>;
2945
+ type ComponentOptionsMixin = ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>;
2946
+ type ComputedOptions = Record<string, ComputedGetter<any> | WritableComputedOptions<any>>;
2947
+ interface MethodOptions {
2948
+ [key: string]: Function;
2949
+ }
2950
+ type ExtractComputedReturns<T extends any> = { [key in keyof T]: T[key] extends {
2951
+ get: (...args: any[]) => infer TReturn;
2952
+ } ? TReturn : T[key] extends ((...args: any[]) => infer TReturn) ? TReturn : never };
2953
+ type ObjectWatchOptionItem = {
2954
+ handler: WatchCallback | string;
2955
+ } & WatchOptions;
2956
+ type WatchOptionItem = string | WatchCallback | ObjectWatchOptionItem;
2957
+ type ComponentWatchOptionItem = WatchOptionItem | WatchOptionItem[];
2958
+ type ComponentWatchOptions = Record<string, ComponentWatchOptionItem>;
2959
+ type ComponentProvideOptions = ObjectProvideOptions | Function;
2960
+ type ObjectProvideOptions = Record<string | symbol, unknown>;
2961
+ type ComponentInjectOptions = string[] | ObjectInjectOptions;
2962
+ type ObjectInjectOptions = Record<string | symbol, string | symbol | {
2963
+ from?: string | symbol;
2964
+ default?: unknown;
2965
+ }>;
2966
+ type InjectToObject<T extends ComponentInjectOptions> = T extends string[] ? { [K in T[number]]?: unknown } : T extends ObjectInjectOptions ? { [K in keyof T]?: unknown } : never;
2967
+ interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, I extends ComponentInjectOptions, II extends string, Provide extends ComponentProvideOptions = ComponentProvideOptions> {
2968
+ compatConfig?: CompatConfig;
2969
+ [key: string]: any;
2970
+ data?: (this: CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, MethodOptions, Mixin, Extends>, vm: CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, MethodOptions, Mixin, Extends>) => D;
2971
+ computed?: C;
2972
+ methods?: M;
2973
+ watch?: ComponentWatchOptions;
2974
+ provide?: Provide;
2975
+ inject?: I | II[];
2976
+ filters?: Record<string, Function>;
2977
+ mixins?: Mixin[];
2978
+ extends?: Extends;
2979
+ beforeCreate?(): void;
2980
+ created?(): void;
2981
+ beforeMount?(): void;
2982
+ mounted?(): void;
2983
+ beforeUpdate?(): void;
2984
+ updated?(): void;
2985
+ activated?(): void;
2986
+ deactivated?(): void;
2987
+ /** @deprecated use `beforeUnmount` instead */
2988
+ beforeDestroy?(): void;
2989
+ beforeUnmount?(): void;
2990
+ /** @deprecated use `unmounted` instead */
2991
+ destroyed?(): void;
2992
+ unmounted?(): void;
2993
+ renderTracked?: DebuggerHook;
2994
+ renderTriggered?: DebuggerHook;
2995
+ errorCaptured?: ErrorCapturedHook;
2996
+ /**
2997
+ * runtime compile only
2998
+ * @deprecated use `compilerOptions.delimiters` instead.
2999
+ */
3000
+ delimiters?: [string, string];
3001
+ /**
3002
+ * #3468
3003
+ *
3004
+ * type-only, used to assist Mixin's type inference,
3005
+ * typescript will try to simplify the inferred `Mixin` type,
3006
+ * with the `__differentiator`, typescript won't be able to combine different mixins,
3007
+ * because the `__differentiator` will be different
3008
+ */
3009
+ __differentiator?: keyof D | keyof C | keyof M;
3010
+ }
3011
+ type MergedHook<T = () => void> = T | T[];
3012
+ type MergedComponentOptionsOverride = {
3013
+ beforeCreate?: MergedHook;
3014
+ created?: MergedHook;
3015
+ beforeMount?: MergedHook;
3016
+ mounted?: MergedHook;
3017
+ beforeUpdate?: MergedHook;
3018
+ updated?: MergedHook;
3019
+ activated?: MergedHook;
3020
+ deactivated?: MergedHook; /** @deprecated use `beforeUnmount` instead */
3021
+ beforeDestroy?: MergedHook;
3022
+ beforeUnmount?: MergedHook; /** @deprecated use `unmounted` instead */
3023
+ destroyed?: MergedHook;
3024
+ unmounted?: MergedHook;
3025
+ renderTracked?: MergedHook<DebuggerHook>;
3026
+ renderTriggered?: MergedHook<DebuggerHook>;
3027
+ errorCaptured?: MergedHook<ErrorCapturedHook>;
3028
+ };
3029
+ type OptionTypesKeys = 'P' | 'B' | 'D' | 'C' | 'M' | 'Defaults';
3030
+ type OptionTypesType<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Defaults = {}> = {
3031
+ P: P;
3032
+ B: B;
3033
+ D: D;
3034
+ C: C;
3035
+ M: M;
3036
+ Defaults: Defaults;
3037
+ };
3038
+ /**
3039
+ * @deprecated
3040
+ */
3041
+ interface InjectionConstraint<T> {}
3042
+ type InjectionKey<T> = symbol & InjectionConstraint<T>;
3043
+ type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
3044
+ type ResolveProps<PropsOrPropOptions, E extends EmitsOptions> = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>);
3045
+ type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = ResolveProps<PropsOrPropOptions, E>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, MakeDefaultsOptional extends boolean = true, TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any> = ComponentPublicInstanceConstructor<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, PP, Defaults, MakeDefaultsOptional, {}, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, TypeRefs, TypeEl>> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, {}, string, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, Provide> & PP;
3046
+ interface App$1<HostElement = any> {
3047
+ version: string;
3048
+ config: AppConfig$1;
3049
+ use<Options extends unknown[]>(plugin: Plugin$1<Options>, ...options: Options): this;
3050
+ use<Options>(plugin: Plugin$1<Options>, options: Options): this;
3051
+ mixin(mixin: ComponentOptions): this;
3052
+ component(name: string): Component | undefined;
3053
+ component<T extends Component | DefineComponent>(name: string, component: T): this;
3054
+ directive<HostElement = any, Value = any, Modifiers extends string = string, Arg extends string = string>(name: string): Directive<HostElement, Value, Modifiers, Arg> | undefined;
3055
+ directive<HostElement = any, Value = any, Modifiers extends string = string, Arg extends string = string>(name: string, directive: Directive<HostElement, Value, Modifiers, Arg>): this;
3056
+ mount(rootContainer: HostElement | string,
3057
+ /**
3058
+ * @internal
3059
+ */
3060
+
3061
+ isHydrate?: boolean,
3062
+ /**
3063
+ * @internal
3064
+ */
3065
+
3066
+ namespace?: boolean | ElementNamespace,
3067
+ /**
3068
+ * @internal
3069
+ */
3070
+
3071
+ vnode?: VNode): ComponentPublicInstance;
3072
+ unmount(): void;
3073
+ onUnmount(cb: () => void): void;
3074
+ provide<T, K = InjectionKey<T> | string | number>(key: K, value: K extends InjectionKey<infer V> ? V : T): this;
3075
+ /**
3076
+ * Runs a function with the app as active instance. This allows using of `inject()` within the function to get access
3077
+ * to variables provided via `app.provide()`.
3078
+ *
3079
+ * @param fn - function to run with the app as active instance
3080
+ */
3081
+ runWithContext<T>(fn: () => T): T;
3082
+ _uid: number;
3083
+ _component: ConcreteComponent;
3084
+ _props: Data$2 | null;
3085
+ _container: HostElement | null;
3086
+ _context: AppContext;
3087
+ _instance: ComponentInternalInstance | null;
3088
+ /**
3089
+ * v2 compat only
3090
+ */
3091
+ filter?(name: string): Function | undefined;
3092
+ filter?(name: string, filter: Function): this;
3093
+ }
3094
+ type OptionMergeFunction = (to: unknown, from: unknown) => any;
3095
+ interface AppConfig$1 {
3096
+ readonly isNativeTag: (tag: string) => boolean;
3097
+ performance: boolean;
3098
+ optionMergeStrategies: Record<string, OptionMergeFunction>;
3099
+ globalProperties: ComponentCustomProperties & Record<string, any>;
3100
+ errorHandler?: (err: unknown, instance: ComponentPublicInstance | null, info: string) => void;
3101
+ warnHandler?: (msg: string, instance: ComponentPublicInstance | null, trace: string) => void;
3102
+ /**
3103
+ * Options to pass to `@vue/compiler-dom`.
3104
+ * Only supported in runtime compiler build.
3105
+ */
3106
+ compilerOptions: RuntimeCompilerOptions;
3107
+ /**
3108
+ * @deprecated use config.compilerOptions.isCustomElement
3109
+ */
3110
+ isCustomElement?: (tag: string) => boolean;
3111
+ /**
3112
+ * TODO document for 3.5
3113
+ * Enable warnings for computed getters that recursively trigger itself.
3114
+ */
3115
+ warnRecursiveComputed?: boolean;
3116
+ /**
3117
+ * Whether to throw unhandled errors in production.
3118
+ * Default is `false` to avoid crashing on any error (and only logs it)
3119
+ * But in some cases, e.g. SSR, throwing might be more desirable.
3120
+ */
3121
+ throwUnhandledErrorInProduction?: boolean;
3122
+ /**
3123
+ * Prefix for all useId() calls within this app
3124
+ */
3125
+ idPrefix?: string;
3126
+ }
3127
+ interface AppContext {
3128
+ app: App$1;
3129
+ config: AppConfig$1;
3130
+ mixins: ComponentOptions[];
3131
+ components: Record<string, Component>;
3132
+ directives: Record<string, Directive>;
3133
+ provides: Record<string | symbol, any>;
3134
+ }
3135
+ type PluginInstallFunction<Options = any[]> = Options extends unknown[] ? (app: App$1, ...options: Options) => any : (app: App$1, options: Options) => any;
3136
+ type ObjectPlugin<Options = any[]> = {
3137
+ install: PluginInstallFunction<Options>;
3138
+ };
3139
+ type FunctionPlugin<Options = any[]> = PluginInstallFunction<Options> & Partial<ObjectPlugin<Options>>;
3140
+ type Plugin$1<Options = any[]> = FunctionPlugin<Options> | ObjectPlugin<Options>;
3141
+ type TeleportVNode = VNode<RendererNode, RendererElement, TeleportProps>;
3142
+ interface TeleportProps {
3143
+ to: string | RendererElement | null | undefined;
3144
+ disabled?: boolean;
3145
+ defer?: boolean;
3146
+ }
3147
+ declare const TeleportImpl: {
3148
+ name: string;
3149
+ __isTeleport: boolean;
3150
+ process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
3151
+ remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, {
3152
+ um: unmount,
3153
+ o: {
3154
+ remove: hostRemove
3155
+ }
3156
+ }: RendererInternals, doRemove: boolean): void;
3157
+ move: typeof moveTeleport;
3158
+ hydrate: typeof hydrateTeleport;
3159
+ };
3160
+ declare enum TeleportMoveTypes {
3161
+ TARGET_CHANGE = 0,
3162
+ TOGGLE = 1,
3163
+ // enable / disable
3164
+ REORDER = 2
3165
+ }
3166
+ declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, {
3167
+ o: {
3168
+ insert
3169
+ },
3170
+ m: move
3171
+ }: RendererInternals, moveType?: TeleportMoveTypes): void;
3172
+ declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, {
3173
+ o: {
3174
+ nextSibling,
3175
+ parentNode,
3176
+ querySelector,
3177
+ insert,
3178
+ createText
3179
+ }
3180
+ }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
3181
+ declare const Teleport: {
3182
+ __isTeleport: true;
3183
+ new (): {
3184
+ $props: VNodeProps & TeleportProps;
3185
+ $slots: {
3186
+ default(): VNode[];
3187
+ };
3188
+ };
3189
+ };
3190
+ declare const Fragment: {
3191
+ __isFragment: true;
3192
+ new (): {
3193
+ $props: VNodeProps;
3194
+ };
3195
+ };
3196
+ declare const Text: unique symbol;
3197
+ declare const Comment: unique symbol;
3198
+ declare const Static: unique symbol;
3199
+ type VNodeTypes = string | VNode | Component | typeof Text | typeof Static | typeof Comment | typeof Fragment | typeof Teleport | typeof TeleportImpl | typeof Suspense | typeof SuspenseImpl;
3200
+ type VNodeRef = string | Ref | ((ref: Element | ComponentPublicInstance | null, refs: Record<string, any>) => void);
3201
+ type VNodeNormalizedRefAtom = {
3202
+ /**
3203
+ * component instance
3204
+ */
3205
+ i: ComponentInternalInstance;
3206
+ /**
3207
+ * Actual ref
3208
+ */
3209
+ r: VNodeRef;
3210
+ /**
3211
+ * setup ref key
3212
+ */
3213
+ k?: string;
3214
+ /**
3215
+ * refInFor marker
3216
+ */
3217
+ f?: boolean;
3218
+ };
3219
+ type VNodeNormalizedRef = VNodeNormalizedRefAtom | VNodeNormalizedRefAtom[];
3220
+ type VNodeMountHook = (vnode: VNode) => void;
3221
+ type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
3222
+ type VNodeProps = {
3223
+ key?: PropertyKey;
3224
+ ref?: VNodeRef;
3225
+ ref_for?: boolean;
3226
+ ref_key?: string;
3227
+ onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[];
3228
+ onVnodeMounted?: VNodeMountHook | VNodeMountHook[];
3229
+ onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[];
3230
+ onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[];
3231
+ onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
3232
+ onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
3233
+ };
3234
+ type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
3235
+ type VNodeArrayChildren = Array<VNodeArrayChildren | VNodeChildAtom>;
3236
+ type VNodeChild = VNodeChildAtom | VNodeArrayChildren;
3237
+ type VNodeNormalizedChildren = string | VNodeArrayChildren | RawSlots | null;
3238
+ interface VNode<HostNode = RendererNode, HostElement = RendererElement, ExtraProps = {
3239
+ [key: string]: any;
3240
+ }> {
3241
+ type: VNodeTypes;
3242
+ props: (VNodeProps & ExtraProps) | null;
3243
+ key: PropertyKey | null;
3244
+ ref: VNodeNormalizedRef | null;
3245
+ /**
3246
+ * SFC only. This is assigned on vnode creation using currentScopeId
3247
+ * which is set alongside currentRenderingInstance.
3248
+ */
3249
+ scopeId: string | null;
3250
+ children: VNodeNormalizedChildren;
3251
+ component: ComponentInternalInstance | null;
3252
+ dirs: DirectiveBinding[] | null;
3253
+ transition: TransitionHooks<HostElement> | null;
3254
+ el: HostNode | null;
3255
+ anchor: HostNode | null;
3256
+ target: HostElement | null;
3257
+ targetStart: HostNode | null;
3258
+ targetAnchor: HostNode | null;
3259
+ suspense: SuspenseBoundary | null;
3260
+ shapeFlag: number;
3261
+ patchFlag: number;
3262
+ appContext: AppContext | null;
3263
+ }
3264
+ type Data$2 = Record<string, unknown>;
3265
+ /**
3266
+ * Public utility type for extracting the instance type of a component.
3267
+ * Works with all valid component definition types. This is intended to replace
3268
+ * the usage of `InstanceType<typeof Comp>` which only works for
3269
+ * constructor-based component definition types.
3270
+ *
3271
+ * @example
3272
+ * ```ts
3273
+ * const MyComp = { ... }
3274
+ * declare const instance: ComponentInstance<typeof MyComp>
3275
+ * ```
3276
+ */
3277
+ /**
3278
+ * For extending allowed non-declared props on components in TSX
3279
+ */
3280
+ interface ComponentCustomProps {}
3281
+ /**
3282
+ * For globally defined Directives
3283
+ * Here is an example of adding a directive `VTooltip` as global directive:
3284
+ *
3285
+ * @example
3286
+ * ```ts
3287
+ * import VTooltip from 'v-tooltip'
3288
+ *
3289
+ * declare module '@vue/runtime-core' {
3290
+ * interface GlobalDirectives {
3291
+ * VTooltip
3292
+ * }
3293
+ * }
3294
+ * ```
3295
+ */
3296
+ interface GlobalDirectives {}
3297
+ /**
3298
+ * For globally defined Components
3299
+ * Here is an example of adding a component `RouterView` as global component:
3300
+ *
3301
+ * @example
3302
+ * ```ts
3303
+ * import { RouterView } from 'vue-router'
3304
+ *
3305
+ * declare module '@vue/runtime-core' {
3306
+ * interface GlobalComponents {
3307
+ * RouterView
3308
+ * }
3309
+ * }
3310
+ * ```
3311
+ */
3312
+ interface GlobalComponents {
3313
+ Teleport: DefineComponent<TeleportProps>;
3314
+ Suspense: DefineComponent<SuspenseProps>;
3315
+ KeepAlive: DefineComponent<KeepAliveProps>;
3316
+ BaseTransition: DefineComponent<BaseTransitionProps>;
3317
+ }
3318
+ /**
3319
+ * Default allowed non-declared props on component in TSX
3320
+ */
3321
+ interface AllowedComponentProps {
3322
+ class?: unknown;
3323
+ style?: unknown;
3324
+ }
3325
+ interface ComponentInternalOptions {
3326
+ /**
3327
+ * Compat build only, for bailing out of certain compatibility behavior
3328
+ */
3329
+ __isBuiltIn?: boolean;
3330
+ /**
3331
+ * This one should be exposed so that devtools can make use of it
3332
+ */
3333
+ __file?: string;
3334
+ /**
3335
+ * name inferred from filename
3336
+ */
3337
+ __name?: string;
3338
+ }
3339
+ interface FunctionalComponent<P = {}, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any, EE extends EmitsOptions = ShortEmitsToObject<E>> extends ComponentInternalOptions {
3340
+ (props: P & EmitsToProps<EE>, ctx: Omit<SetupContext<EE, IfAny<S, {}, SlotsType<S>>>, 'expose'>): any;
3341
+ props?: ComponentPropsOptions<P>;
3342
+ emits?: EE | (keyof EE)[];
3343
+ slots?: IfAny<S, Slots, SlotsType<S>>;
3344
+ inheritAttrs?: boolean;
3345
+ displayName?: string;
3346
+ compatConfig?: CompatConfig;
3347
+ }
3348
+ /**
3349
+ * Concrete component type matches its actual value: it's either an options
3350
+ * object, or a function. Use this where the code expects to work with actual
3351
+ * values, e.g. checking if its a function or not. This is mostly for internal
3352
+ * implementation code.
3353
+ */
3354
+ type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, E, S>;
3355
+ /**
3356
+ * A type used in public APIs where a component type is expected.
3357
+ * The constructor type is an artificial type returned by defineComponent().
3358
+ */
3359
+ type Component<Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any> = ConcreteComponent<Props, RawBindings, D, C, M, E, S> | ComponentPublicInstanceConstructor<Props>;
3360
+ type SetupContext<E = EmitsOptions, S extends SlotsType = {}> = E extends any ? {
3361
+ attrs: Data$2;
3362
+ slots: UnwrapSlotsType<S>;
3363
+ emit: EmitFn<E>;
3364
+ expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
3365
+ } : never;
3366
+ /**
3367
+ * We expose a subset of properties on the internal instance as they are
3368
+ * useful for advanced external libraries and tools.
3369
+ */
3370
+ interface ComponentInternalInstance {
3371
+ uid: number;
3372
+ type: ConcreteComponent;
3373
+ parent: ComponentInternalInstance | null;
3374
+ root: ComponentInternalInstance;
3375
+ appContext: AppContext;
3376
+ /**
3377
+ * Vnode representing this component in its parent's vdom tree
3378
+ */
3379
+ vnode: VNode;
3380
+ /**
3381
+ * Root vnode of this component's own vdom tree
3382
+ */
3383
+ subTree: VNode;
3384
+ /**
3385
+ * Render effect instance
3386
+ */
3387
+ effect: ReactiveEffect;
3388
+ /**
3389
+ * Force update render effect
3390
+ */
3391
+ update: () => void;
3392
+ /**
3393
+ * Render effect job to be passed to scheduler (checks if dirty)
3394
+ */
3395
+ job: SchedulerJob;
3396
+ proxy: ComponentPublicInstance | null;
3397
+ exposed: Record<string, any> | null;
3398
+ exposeProxy: Record<string, any> | null;
3399
+ data: Data$2;
3400
+ props: Data$2;
3401
+ attrs: Data$2;
3402
+ slots: InternalSlots;
3403
+ refs: Data$2;
3404
+ emit: EmitFn;
3405
+ isMounted: boolean;
3406
+ isUnmounted: boolean;
3407
+ isDeactivated: boolean;
3408
+ }
3409
+ interface WatchEffectOptions extends DebuggerOptions {
3410
+ flush?: 'pre' | 'post' | 'sync';
3411
+ }
3412
+ interface WatchOptions<Immediate = boolean> extends WatchEffectOptions {
3413
+ immediate?: Immediate;
3414
+ deep?: boolean | number;
3415
+ once?: boolean;
3416
+ }
3417
+ declare module '@vue/reactivity' {
3418
+ interface RefUnwrapBailTypes {
3419
+ runtimeCoreBailTypes: VNode | {
3420
+ $: ComponentInternalInstance;
3421
+ };
3422
+ }
3423
+ }
3424
+ // Note: this file is auto concatenated to the end of the bundled d.ts during
3425
+ // build.
3426
+ declare module '@vue/runtime-core' {
3427
+ export interface GlobalComponents {
3428
+ Teleport: DefineComponent<TeleportProps>;
3429
+ Suspense: DefineComponent<SuspenseProps>;
3430
+ KeepAlive: DefineComponent<KeepAliveProps>;
3431
+ BaseTransition: DefineComponent<BaseTransitionProps>;
3432
+ }
3433
+ } // Note: this file is auto concatenated to the end of the bundled d.ts during
3434
+ // build.
3435
+ type _defineProps = typeof defineProps;
3436
+ type _defineEmits = typeof defineEmits;
3437
+ type _defineExpose = typeof defineExpose;
3438
+ type _defineOptions = typeof defineOptions;
3439
+ type _defineSlots = typeof defineSlots;
3440
+ type _defineModel = typeof defineModel;
3441
+ type _withDefaults = typeof withDefaults;
3442
+ declare global {
3443
+ const defineProps: _defineProps;
3444
+ const defineEmits: _defineEmits;
3445
+ const defineExpose: _defineExpose;
3446
+ const defineOptions: _defineOptions;
3447
+ const defineSlots: _defineSlots;
3448
+ const defineModel: _defineModel;
3449
+ const withDefaults: _withDefaults;
3450
+ }
3451
+ //#endregion
3452
+ //#region ../../node_modules/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts
3453
+ declare const TRANSITION = "transition";
3454
+ declare const ANIMATION = "animation";
3455
+ type AnimationTypes = typeof TRANSITION | typeof ANIMATION;
3456
+ interface TransitionProps extends BaseTransitionProps<Element> {
3457
+ name?: string;
3458
+ type?: AnimationTypes;
3459
+ css?: boolean;
3460
+ duration?: number | {
3461
+ enter: number;
3462
+ leave: number;
3463
+ };
3464
+ enterFromClass?: string;
3465
+ enterActiveClass?: string;
3466
+ enterToClass?: string;
3467
+ appearFromClass?: string;
3468
+ appearActiveClass?: string;
3469
+ appearToClass?: string;
3470
+ leaveFromClass?: string;
3471
+ leaveActiveClass?: string;
3472
+ leaveToClass?: string;
3473
+ }
3474
+ type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
3475
+ tag?: string;
3476
+ moveClass?: string;
3477
+ };
3478
+ declare const vShowOriginalDisplay: unique symbol;
3479
+ declare const vShowHidden: unique symbol;
3480
+ interface VShowElement extends HTMLElement {
3481
+ [vShowOriginalDisplay]: string;
3482
+ [vShowHidden]: boolean;
3483
+ }
3484
+ declare const vShow: ObjectDirective<VShowElement> & {
3485
+ name?: 'show';
3486
+ };
3487
+ declare const systemModifiers: readonly ["ctrl", "shift", "alt", "meta"];
3488
+ type SystemModifiers = (typeof systemModifiers)[number];
3489
+ type CompatModifiers = keyof typeof keyNames;
3490
+ type VOnModifiers = SystemModifiers | ModifierGuards | CompatModifiers;
3491
+ type ModifierGuards = 'shift' | 'ctrl' | 'alt' | 'meta' | 'left' | 'right' | 'stop' | 'prevent' | 'self' | 'middle' | 'exact';
3492
+ /**
3493
+ * @private
3494
+ */
3495
+ declare const keyNames: Record<'esc' | 'space' | 'up' | 'left' | 'right' | 'down' | 'delete', string>;
3496
+ /**
3497
+ * @private
3498
+ */
3499
+ type VOnDirective = Directive<any, any, VOnModifiers>;
3500
+ type AssignerFn = (value: any) => void;
3501
+ declare const assignKey: unique symbol;
3502
+ type ModelDirective<T, Modifiers extends string = string> = ObjectDirective<T & {
3503
+ [assignKey]: AssignerFn;
3504
+ _assigning?: boolean;
3505
+ }, any, Modifiers>;
3506
+ declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement, 'trim' | 'number' | 'lazy'>;
3507
+ declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
3508
+ declare const vModelRadio: ModelDirective<HTMLInputElement>;
3509
+ declare const vModelSelect: ModelDirective<HTMLSelectElement, 'number'>;
3510
+ declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
3511
+ type VModelDirective = typeof vModelText | typeof vModelCheckbox | typeof vModelSelect | typeof vModelRadio | typeof vModelDynamic;
3512
+ /**
3513
+ * This is a stub implementation to prevent the need to use dom types.
3514
+ *
3515
+ * To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`.
3516
+ */
3517
+ type DomStub = {};
3518
+ type DomType<T> = typeof globalThis extends {
3519
+ window: unknown;
3520
+ } ? T : DomStub;
3521
+ declare module '@vue/reactivity' {
3522
+ interface RefUnwrapBailTypes {
3523
+ runtimeDOMBailTypes: DomType<Node | Window>;
3524
+ }
3525
+ }
3526
+ declare module '@vue/runtime-core' {
3527
+ interface GlobalComponents {
3528
+ Transition: DefineComponent<TransitionProps>;
3529
+ TransitionGroup: DefineComponent<TransitionGroupProps>;
3530
+ }
3531
+ interface GlobalDirectives {
3532
+ vShow: typeof vShow;
3533
+ vOn: VOnDirective;
3534
+ vBind: VModelDirective;
3535
+ vIf: Directive<any, boolean>;
3536
+ VOnce: Directive;
3537
+ VSlot: Directive;
3538
+ }
3539
+ }
3540
+ //#endregion
3541
+ //#region src/plugins.d.ts
3542
+ type Plugin = RendererPluginDefinition;
3543
+ declare const usePlugins: () => {
3544
+ load: () => void;
3545
+ registerPlugins: (newPlugins: Plugin[]) => void;
3546
+ plugins: ShallowRef<RendererPluginDefinition[], RendererPluginDefinition[]>;
3547
+ };
3548
+ //#endregion
3549
+ //#region src/subscription-errors.d.ts
3550
+ declare class SubscriptionRequiredError extends Error implements SubscriptionError {
3551
+ readonly code: "SUBSCRIPTION_REQUIRED";
3552
+ benefit: string;
3553
+ userMessage: string;
3554
+ constructor(benefit?: string);
3555
+ }
3556
+ declare class SubscriptionExpiredError extends Error implements SubscriptionError {
3557
+ readonly code: "SUBSCRIPTION_EXPIRED";
3558
+ benefit: string;
3559
+ userMessage: string;
3560
+ constructor(benefit?: string);
3561
+ }
3562
+ declare class BenefitNotFoundError extends Error implements SubscriptionError {
3563
+ readonly code: "BENEFIT_NOT_FOUND";
3564
+ benefit: string;
3565
+ userMessage: string;
3566
+ constructor(benefit: string);
3567
+ }
3568
+ declare class UnauthorizedError extends Error implements SubscriptionError {
3569
+ readonly code: "UNAUTHORIZED";
3570
+ benefit?: string;
3571
+ userMessage: string;
3572
+ constructor(message?: string, benefit?: string);
3573
+ }
3574
+ declare function createSubscriptionError(code: SubscriptionError["code"], benefit?: string, customMessage?: string): SubscriptionError;
3575
+ declare function isSubscriptionError(error: unknown): error is SubscriptionError;
3576
+ declare function getSubscriptionErrorMessage(error: unknown): string;
3577
+ //#endregion
3578
+ //#region src/supabase.d.ts
3579
+ declare const isSupabaseAvailable: () => boolean;
3580
+ declare const supabase: (options?: any) => _supabase_supabase_js0.SupabaseClient<Database, "public", "public", {
3581
+ Tables: { [_ in never]: never };
3582
+ Views: { [_ in never]: never };
3583
+ Functions: { [_ in never]: never };
3584
+ Enums: { [_ in never]: never };
3585
+ CompositeTypes: { [_ in never]: never };
3586
+ }, {
3587
+ PostgrestVersion: "12";
3588
+ }>;
3589
+ //#endregion
3590
+ //#region src/validation.d.ts
3591
+ declare const isRequired: (param: InputDefinition) => boolean;
3592
+ declare const isRenderer: () => boolean;
3593
+ //#endregion
3594
+ //#region src/index.d.ts
3595
+ declare const appSettingsMigrator: any;
3596
+ declare const defaultAppSettings: any;
3597
+ declare const fileRepoMigrations: any;
3598
+ declare const defaultFileRepo: any;
3599
+ declare const savedFileMigrator: any;
3600
+ declare const configRegistry: Record<string, Migrator<any>>;
3601
+ //#endregion
3602
+ export { Action, Agent, type AppConfig, type AppConfigV1, type AppConfigV2, type AppConfigV3, type AppConfigV4, type AppConfigV5, type AppConfigV6, type AppConfigV7, AppSettingsValidator, AppSettingsValidatorV1, AppSettingsValidatorV2, AppSettingsValidatorV3, AppSettingsValidatorV4, AppSettingsValidatorV5, AppSettingsValidatorV6, AppSettingsValidatorV7, AuthorizationCheck, AuthorizationContext, BaseNode, BenefitNotFoundError, Block, BlockAction, BlockComment, BlockCondition, BlockEvent, BlockLoop, BuildHistoryConfig, BuildHistoryEntry, BuildHistoryQuery, BuildHistoryResponse, Channels, Condition, Context, ControlType, ControlTypeArray, ControlTypeBase, ControlTypeBoolean, ControlTypeCheckbox, ControlTypeColor, ControlTypeElectronConfigureV2, ControlTypeExpression, ControlTypeInput, ControlTypeJSON, ControlTypeMultiSelect, ControlTypeNetlifySite, ControlTypePath, ControlTypeSelect, CreateQuickJSFn, Data$1 as Data, DataResult, Database, EditorParam, EditorParamValidatorV3, End, EndEvent, EnhancedFile, Enums, Event$1 as Event, Events, ExecutionError, ExecutionStep, Expression, ExtractInputsFromAction, ExtractInputsFromCondition, ExtractInputsFromEvent, ExtractInputsFromExpression, ExtractInputsFromLoop, GetDataEntries, GetDataKeys, GetFlowEntries, GetFlowKeys, HandleListenerRenderer, HandleListenerRendererSendFn, IBuildHistoryStorage, IconType, InputDefinition, InputOutputDefinition, InputsDefinition, InputsOutputsDefinition, IpcEvent, IpcMessage, Json, Locales, LogEntry, Loop, MainPluginDefinition, MessageSchema, Meta, type Migrator, Origin, OriginValidator, OutputDefinition, OutputsDefinition, ParamsToInput, PathOptions, PipelabNode, PipelabSelectOption, PluginDefinition, Position, Preset, PresetFn, PresetResult, Presets, PropType, RELEASE_SYNC, RendererChannels, RendererData, RendererEnd, RendererEvents, RendererMessage, RendererNodeDefinition, RendererPluginDefinition, RetentionPolicy, SaveLocation, SaveLocationExternal, SaveLocationExternalValidator, SaveLocationInternal, SaveLocationInternalValidator, SaveLocationPipelabCloud, SaveLocationPipelabCloudValidator, SaveLocationValidator, SavedFile, SavedFileDefault, SavedFileDefaultValidator, SavedFileSimple, SavedFileSimpleValidator, SavedFileV1, SavedFileV2, SavedFileV3, SavedFileV4, SavedFileValidator, SavedFileValidatorV1, SavedFileValidatorV2, SavedFileValidatorV3, SavedFileValidatorV4, SetOutputActionFn, SetOutputExpressionFn, SetOutputLoopFn, ShellChannels, Steps, SubscriptionBenefit, SubscriptionError, SubscriptionExpiredError, SubscriptionRequiredError, Tables, TablesInsert, TablesUpdate, UnauthorizedError, UpdateStatus, Variable, VariableBase, VariableValidatorV1, WebSocketAPI, WebSocketClientConfig, WebSocketClientEvents, WebSocketConnectionError, WebSocketConnectionInfo, WebSocketConnectionState, WebSocketError, WebSocketErrorMessage, WebSocketEvent, WebSocketHandler, WebSocketListener, WebSocketManager, WebSocketMessage, WebSocketMessageType, WebSocketRequestMessage, WebSocketResponseMessage, WebSocketResponseType, WebSocketSendFunction, WebSocketServerConfig, WebSocketServerEvents, WebSocketTimeoutError, WithId, appSettingsMigrator, configRegistry, createAction, createArray, createBooleanParam, createColorPicker, createCondition, createDefinition, createEvent, createExpression, createLoop, createNetlifySiteParam, createNodeDefinition, createNumberParam, createPasswordParam, createPathParam, createQuickJs, createQuickJsFromVariant, createRawParam, createStringParam, createSubscriptionError, createVersionSchema, __json_default_export as de_DE, defaultAppSettings, defaultFileRepo, __json_default_export$1 as en_US, __json_default_export$2 as es_ES, fileRepoMigrations, fmt, foo, __json_default_export$3 as fr_FR, getSubscriptionErrorMessage, isRenderer, isRequired, isSubscriptionError, isSupabaseAvailable, isWebSocketErrorMessage, isWebSocketRequestMessage, isWebSocketResponseMessage, makeResolvedParams, newVariant, processGraph, __json_default_export$4 as pt_BR, savedFileMigrator, supabase, useLogger, usePlugins, variableToFormattedVariable, __json_default_export$5 as zh_CN };
3603
+ //# sourceMappingURL=index.d.mts.map