@pipelab/shared 1.0.0-beta.22 → 1.0.0-beta.25

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