@elyx-code/project-logic-tree 0.0.6680 → 0.0.6682

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/dist/index.cjs +242 -242
  2. package/dist/index.d.ts +357 -29
  3. package/dist/index.js +53545 -50938
  4. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -50,6 +50,7 @@ import { TableFactor } from 'sql-parser-cst';
50
50
  import { TablesampleExpr } from 'sql-parser-cst';
51
51
  import { UnpivotExpr } from 'sql-parser-cst';
52
52
  import { WhereClause } from 'sql-parser-cst';
53
+ import { YieldOptions } from '@elyx-code/common-ts-utils';
53
54
  import * as z from 'zod';
54
55
  import { z as z_2 } from 'zod';
55
56
 
@@ -169,7 +170,11 @@ export declare class ActionDescriptorState extends UserManagedVersionedState imp
169
170
  validate(): {
170
171
  success: boolean;
171
172
  };
173
+ validateAsync(options?: YieldOptions): Promise<{
174
+ success: boolean;
175
+ }>;
172
176
  getErrors(): EntityError[];
177
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
173
178
  getShallowErrors(): EntityError[];
174
179
  clone(changeSet?: ChangeSet | null, parent?: DefinitionEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState | null, newId?: string | null, subscribe?: boolean): ActionDescriptorState;
175
180
  addInput(argument: ValueDescriptorState, changeSet?: ChangeSet | null): ActionDescriptorState;
@@ -186,6 +191,7 @@ export declare type ActionDescriptorTypesUnion = IActionDescriptor | IActionDesc
186
191
 
187
192
  declare namespace actionDescriptorValidation {
188
193
  export {
194
+ validateAsync_8 as validateAsync,
189
195
  validate_8 as validate
190
196
  }
191
197
  }
@@ -403,7 +409,7 @@ export declare function applyNewScope(self: CallableEntityState, changeSet: Chan
403
409
  export declare function applyQueuedToCached(opts: {
404
410
  projectId: EntityId;
405
411
  projectRecord: Record<EntityId, UserManagedElementShallowTransfer>;
406
- chain: IRecordChangeSet<UserManagedElementShallowTransfer, UserManagedElementShallowTransfer>[];
412
+ chain: IRecordChangeSet<UserManagedElementShallowTransfer | null, UserManagedElementShallowTransfer>[];
407
413
  sort?: boolean;
408
414
  order?: boolean;
409
415
  }): {
@@ -599,7 +605,11 @@ export declare class ArgumentDeclarationState extends UserManagedVersionedState
599
605
  validate(): {
600
606
  success: boolean;
601
607
  };
608
+ validateAsync(options?: YieldOptions): Promise<{
609
+ success: boolean;
610
+ }>;
602
611
  getErrors(): EntityError[];
612
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
603
613
  getShallowErrors(): EntityError[];
604
614
  getDefaultValue(): LiteralValueState | null;
605
615
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): ArgumentDeclarationState;
@@ -614,6 +624,7 @@ export declare type ArgumentDeclarationTypesUnion = IArgumentDeclaration | IArgu
614
624
 
615
625
  declare namespace argumentDeclarationValidation {
616
626
  export {
627
+ validateAsync_7 as validateAsync,
617
628
  validate_7 as validate
618
629
  }
619
630
  }
@@ -864,7 +875,11 @@ export declare class BreakStatementState extends UserManagedVersionedState imple
864
875
  validate(): {
865
876
  success: boolean;
866
877
  };
878
+ validateAsync(options?: YieldOptions): Promise<{
879
+ success: boolean;
880
+ }>;
867
881
  getErrors(): EntityError[];
882
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
868
883
  getShallowErrors(): EntityError[];
869
884
  getDefaultValue(): LiteralValueState | null;
870
885
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): BreakStatementState;
@@ -880,6 +895,7 @@ export declare type BreakStatementTypesUnion = IBreakStatement | IBreakStatement
880
895
 
881
896
  declare namespace breakStatementValidation {
882
897
  export {
898
+ validateAsync_15 as validateAsync,
883
899
  validate_15 as validate
884
900
  }
885
901
  }
@@ -9229,7 +9245,11 @@ export declare class BuiltInBaseEntityState extends VersionedState implements Ba
9229
9245
  validate(): {
9230
9246
  success: boolean;
9231
9247
  };
9248
+ validateAsync(options?: YieldOptions): Promise<{
9249
+ success: boolean;
9250
+ }>;
9232
9251
  getErrors(): EntityError[];
9252
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
9233
9253
  getShallowErrors(): EntityError[];
9234
9254
  implement(newEntityName: string, changeSet?: ChangeSet | null, newId?: string): DefinitionEntityState;
9235
9255
  getAllPropertiesImplements(): PropertyState[];
@@ -9501,22 +9521,27 @@ export declare class ChangeSet extends Events {
9501
9521
  get affectedIds(): EntityId[];
9502
9522
  event(payload: IChangeSetEventCreationPayload): void;
9503
9523
  discardOrphans(): void;
9524
+ discardOrphansAsync(options?: YieldOptions): Promise<void>;
9504
9525
  captureAllChangesInVersionInstances(): void;
9526
+ captureAllChangesInVersionInstancesAsync(options?: YieldOptions): Promise<void>;
9505
9527
  attemptAutocloseAsync(knownAutoCloseActionName: string, closingEntityId: EntityId): Promise<ChangeSet>;
9506
9528
  closeAsync(options?: {
9507
9529
  awaitBeforeClose?: boolean;
9508
9530
  awaitExternalPersist?: boolean;
9509
9531
  persistType?: 'sequential' | 'parallel';
9510
- }): Promise<ChangeSet>;
9532
+ } & YieldOptions): Promise<ChangeSet>;
9511
9533
  attemptAutoclose(knownAutoCloseActionName: string, closingEntityId: EntityId): ChangeSet;
9512
9534
  recursiveCaptureUpstreamVersions(): void;
9535
+ recursiveCaptureUpstreamVersionsAsync(options?: YieldOptions): Promise<void>;
9513
9536
  sanitize(): void;
9537
+ sanitizeAsync(options?: YieldOptions): Promise<void>;
9514
9538
  syncDependents(): ChangeSet;
9515
- beforeCloseAsync(): Promise<void>;
9539
+ syncDependentsAsync(options?: YieldOptions): Promise<ChangeSet>;
9540
+ beforeCloseAsync(options?: YieldOptions): Promise<void>;
9516
9541
  beforeClose(): void;
9517
9542
  teardown(): void;
9518
9543
  emitProjectSideEffects(): ChangeSet;
9519
- emitAsyncProjectSideEffects(): Promise<ChangeSet>;
9544
+ emitAsyncProjectSideEffects(options?: YieldOptions): Promise<ChangeSet>;
9520
9545
  close(options?: {
9521
9546
  persistType?: 'sequential' | 'parallel';
9522
9547
  }): ChangeSet;
@@ -9990,7 +10015,11 @@ export declare class ConditionState extends UserManagedVersionedState implements
9990
10015
  validate(): {
9991
10016
  success: boolean;
9992
10017
  };
10018
+ validateAsync(options?: YieldOptions): Promise<{
10019
+ success: boolean;
10020
+ }>;
9993
10021
  getErrors(): EntityError[];
10022
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
9994
10023
  getShallowErrors(): EntityError[];
9995
10024
  clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | ProjectState | ConditionState | null, newId?: string | null, subscribe?: boolean): ConditionState;
9996
10025
  addToAndGroup(child: ConditionState, changeSet?: ChangeSet | null): ConditionState;
@@ -10008,6 +10037,7 @@ export declare type ConditionTypesUnion = ICondition | IConditionTransfer | ICon
10008
10037
 
10009
10038
  declare namespace conditionValidation {
10010
10039
  export {
10040
+ validateAsync_12 as validateAsync,
10011
10041
  validate_12 as validate
10012
10042
  }
10013
10043
  }
@@ -10143,7 +10173,11 @@ export declare class ContinueStatementState extends UserManagedVersionedState im
10143
10173
  validate(): {
10144
10174
  success: boolean;
10145
10175
  };
10176
+ validateAsync(options?: YieldOptions): Promise<{
10177
+ success: boolean;
10178
+ }>;
10146
10179
  getErrors(): EntityError[];
10180
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
10147
10181
  getShallowErrors(): EntityError[];
10148
10182
  getDefaultValue(): LiteralValueState | null;
10149
10183
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): ContinueStatementState;
@@ -10159,6 +10193,7 @@ export declare type ContinueStatementTypesUnion = IContinueStatement | IContinue
10159
10193
 
10160
10194
  declare namespace continueStatementValidation {
10161
10195
  export {
10196
+ validateAsync_14 as validateAsync,
10162
10197
  validate_14 as validate
10163
10198
  }
10164
10199
  }
@@ -10728,7 +10763,11 @@ export declare class DataTypeState extends UserManagedVersionedState implements
10728
10763
  validate(): {
10729
10764
  success: boolean;
10730
10765
  };
10766
+ validateAsync(options?: YieldOptions): Promise<{
10767
+ success: boolean;
10768
+ }>;
10731
10769
  getErrors(): EntityError[];
10770
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
10732
10771
  getShallowErrors(): EntityError[];
10733
10772
  clone(changeSet?: ChangeSet | null, parent?: DataTypeParentEntityState | null, newId?: string | null, subscribe?: boolean): DataTypeState;
10734
10773
  merge(sourceEntity: DataTypeState | null, changeSet?: ChangeSet | null): IChangeSet<DataTypeState>;
@@ -10791,6 +10830,7 @@ export declare type DataTypeTypesUnion = IDataTypeTransfer | IDataTypeShallowTra
10791
10830
 
10792
10831
  declare namespace dataTypeValidation {
10793
10832
  export {
10833
+ validateAsync_3 as validateAsync,
10794
10834
  validate_3 as validate
10795
10835
  }
10796
10836
  }
@@ -11690,7 +11730,11 @@ export declare class DefinitionEntityState extends UserManagedVersionedState imp
11690
11730
  validate(): {
11691
11731
  success: boolean;
11692
11732
  };
11733
+ validateAsync(options?: YieldOptions): Promise<{
11734
+ success: boolean;
11735
+ }>;
11693
11736
  getErrors(): EntityError[];
11737
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
11694
11738
  getShallowErrors(): EntityError[];
11695
11739
  clone(changeSet?: ChangeSet | null, parent?: ProjectState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DefinitionEntityState;
11696
11740
  getFunctionDeclaration(id: EntityId): FunctionDeclarationState | undefined;
@@ -11716,6 +11760,7 @@ export declare type DefinitionEntityTypesUnion = IDefinitionEntity | IDefinition
11716
11760
 
11717
11761
  declare namespace definitionEntityValidation {
11718
11762
  export {
11763
+ validateAsync_2 as validateAsync,
11719
11764
  validate_2 as validate,
11720
11765
  getBasePropertiesNotImplemented,
11721
11766
  getBaseMethodsNotImplemented,
@@ -11966,7 +12011,7 @@ export declare type ElementTransfer = IProjectTransfer | IInstalledProjectTransf
11966
12011
 
11967
12012
  export declare type ElementTypesUnion = ProjectTypesUnion | InstalledProjectTypesUnion | DefinitionEntityTypesUnion | GlobalEventTypesUnion | FunctionDeclarationTypesUnion | FunctionCallTypesUnion | PropertyTypesUnion | VariableDeclarationTypesUnion | VariableInstanceTypesUnion | OperationTypesUnion | ConditionTypesUnion | ArgumentDeclarationTypesUnion | InputMapTypesUnion | OutputMapTypesUnion | DataTypeTypesUnion | ReturnStatementTypesUnion | BreakStatementTypesUnion | ContinueStatementTypesUnion | LoopTypesUnion | ActionDescriptorTypesUnion | SearchTypesUnion | PrimitiveEntityTypesUnion | LiteralValueTypesUnion | ValueDescriptorTypesUnion | BuiltInBaseEntityTypesUnion | InternalCallTypesUnion;
11968
12013
 
11969
- export declare function emitAsyncProjectSideEffects(changeSet: ChangeSet): Promise<ChangeSet>;
12014
+ export declare function emitAsyncProjectSideEffects(changeSet: ChangeSet, options?: YieldOptions): Promise<ChangeSet>;
11970
12015
 
11971
12016
  export declare function emitProjectSideEffects(changeSet: ChangeSet): ChangeSet;
11972
12017
 
@@ -13767,6 +13812,8 @@ export declare function filterOutDependentCallers(callers: CallerEntityState[]):
13767
13812
 
13768
13813
  export declare function filterOutDuplicateEntities(entities: (EntityState | Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget)[]): (Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget | EntityState)[];
13769
13814
 
13815
+ export declare function filterOutDuplicateEntitiesAsync(entities: (EntityState | Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget)[], options?: YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget | EntityState)[]>;
13816
+
13770
13817
  export declare function filterOutDuplicateErrors(errors: (EntityGenerationError | EntityError)[]): EntityGenerationError[] | EntityError[];
13771
13818
 
13772
13819
  export declare function findEntityFromKeys(keys: string[], project: ProjectState): DefinitionEntityState | null;
@@ -13791,10 +13838,18 @@ export declare function flattenActionDescriptor(entity: IActionDescriptor | IAct
13791
13838
  ignoreBuiltInBaseEntities?: boolean;
13792
13839
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13793
13840
 
13841
+ export declare function flattenActionDescriptorAsync(entity: IActionDescriptor | IActionDescriptorTransfer | IActionDescriptorShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13842
+ ignoreBuiltInBaseEntities?: boolean;
13843
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13844
+
13794
13845
  export declare function flattenArgumentDeclaration(entity: IArgumentDeclaration | IArgumentDeclarationTransfer | IArgumentDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13795
13846
  ignoreBuiltInBaseEntities?: boolean;
13796
13847
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13797
13848
 
13849
+ export declare function flattenArgumentDeclarationAsync(entity: IArgumentDeclaration | IArgumentDeclarationTransfer | IArgumentDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13850
+ ignoreBuiltInBaseEntities?: boolean;
13851
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13852
+
13798
13853
  declare function flattenBinaryExprComparisonsToWhereStatements(whereExpr: BinaryExpr, parent: WhereStatement, scopeColumns: ColumnRef[], state: SearchStatementState, project: ProjectState, debug?: boolean): {
13799
13854
  ands: WhereStatement[];
13800
13855
  ors: WhereStatement[];
@@ -13804,10 +13859,18 @@ export declare function flattenBreakStatement(entity: IBreakStatement | IBreakSt
13804
13859
  ignoreBuiltInBaseEntities?: boolean;
13805
13860
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13806
13861
 
13862
+ export declare function flattenBreakStatementAsync(entity: IBreakStatement | IBreakStatementTransfer | IBreakStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13863
+ ignoreBuiltInBaseEntities?: boolean;
13864
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13865
+
13807
13866
  export declare function flattenBuiltInBaseEntity(entity: IBuiltInBaseEntity | IBuiltInBaseEntityTransfer | IBuiltInBaseEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13808
13867
  ignoreBuiltInBaseEntities?: boolean;
13809
13868
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13810
13869
 
13870
+ export declare function flattenBuiltInBaseEntityAsync(entity: IBuiltInBaseEntity | IBuiltInBaseEntityTransfer | IBuiltInBaseEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13871
+ ignoreBuiltInBaseEntities?: boolean;
13872
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13873
+
13811
13874
  /**
13812
13875
  * Returns a flat list of caller entities that are ancestors in the call chain of the given entity
13813
13876
  * Recursively checks until we have found the 'until' entity, as an ancestor or reached the root project entity
@@ -13835,18 +13898,34 @@ export declare function flattenCondition(entity: ICondition | IConditionTransfer
13835
13898
  ignoreBuiltInBaseEntities?: boolean;
13836
13899
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13837
13900
 
13901
+ export declare function flattenConditionAsync(entity: ICondition | IConditionTransfer | IConditionShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13902
+ ignoreBuiltInBaseEntities?: boolean;
13903
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13904
+
13838
13905
  export declare function flattenContinueStatement(entity: IContinueStatement | IContinueStatementTransfer | IContinueStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13839
13906
  ignoreBuiltInBaseEntities?: boolean;
13840
13907
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13841
13908
 
13909
+ export declare function flattenContinueStatementAsync(entity: IContinueStatement | IContinueStatementTransfer | IContinueStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13910
+ ignoreBuiltInBaseEntities?: boolean;
13911
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13912
+
13842
13913
  export declare function flattenDataType(entity: IDataType | IDataTypeTransfer | IDataTypeShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13843
13914
  ignoreBuiltInBaseEntities?: boolean;
13844
13915
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13845
13916
 
13917
+ export declare function flattenDataTypeAsync(entity: IDataType | IDataTypeTransfer | IDataTypeShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13918
+ ignoreBuiltInBaseEntities?: boolean;
13919
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13920
+
13846
13921
  export declare function flattenDefinitionEntity(entity: IDefinitionEntity | IDefinitionEntityTransfer | IDefinitionEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13847
13922
  ignoreBuiltInBaseEntities?: boolean;
13848
13923
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13849
13924
 
13925
+ export declare function flattenDefinitionEntityAsync(entity: IDefinitionEntity | IDefinitionEntityTransfer | IDefinitionEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13926
+ ignoreBuiltInBaseEntities?: boolean;
13927
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13928
+
13850
13929
  export declare function flattenDefinitionEntityExtensionAndImplementationTypes(entity: DefinitionEntityState): (BaseEntityNames | EntityType.DefinitionEntity)[];
13851
13930
 
13852
13931
  export declare function flattenDefinitionEntityExtensions(entity: DefinitionEntityState | BuiltInBaseEntityState): (BuiltInBaseEntityState | DefinitionEntityState)[];
@@ -13868,6 +13947,17 @@ export declare function flattenDefinitionEntityImplementionTypes(entity: Definit
13868
13947
  */
13869
13948
  export declare function flattenDerivedCanvasEntities(entity: CanvasEntityState, seenEntities?: Set<EntityId>): CanvasEntityState[];
13870
13949
 
13950
+ /**
13951
+ * Given an entity from the canvas, it returns a flat list of entities
13952
+ * representing the chain of entities on the right of the given one, that are related to it
13953
+ * Including relations of its relations, recursively
13954
+ *
13955
+ * @param entity The entity to flatten
13956
+ * @param seenEntities A set of already seen entities to avoid infinite loops
13957
+ * @returns {CanvasEntityState[]} A flat list of derived canvas entities
13958
+ */
13959
+ export declare function flattenDerivedCanvasEntitiesAsync(entity: CanvasEntityState, seenEntities?: Set<EntityId>, options?: YieldOptions): Promise<CanvasEntityState[]>;
13960
+
13871
13961
  export declare function flattenDetachedBranch(entity: CanvasEntityState): CanvasEntityState[];
13872
13962
 
13873
13963
  export declare function flattenElementCalls(element: CallerEntityState): CallableEntityState[];
@@ -13881,37 +13971,62 @@ export declare function flattenElementCallsWithCallType(element: CallerEntitySta
13881
13971
 
13882
13972
  export declare function flattenEntity(entity: Element_2 | ElementTransfer | ElementShallowTransfer | Reference, seenEntities?: Set<EntityId>, options?: {
13883
13973
  ignoreBuiltInBaseEntities?: boolean;
13974
+ diggestedBuiltInBaseEntitiesIds?: Set<EntityId>;
13884
13975
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13885
13976
 
13886
13977
  export declare function flattenEntityAsync(entity: Element_2 | ElementTransfer | ElementShallowTransfer | Reference, seenEntities?: Set<EntityId>, options?: {
13887
13978
  ignoreBuiltInBaseEntities?: boolean;
13888
- yieldEvery?: number;
13889
- }): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13979
+ diggestedBuiltInBaseEntitiesIds?: Set<EntityId>;
13980
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13890
13981
 
13891
13982
  export declare function flattenFunctionCall(entity: IFunctionCall | IFunctionCallTransfer | IFunctionCallShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13892
13983
  ignoreBuiltInBaseEntities?: boolean;
13893
13984
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13894
13985
 
13986
+ export declare function flattenFunctionCallAsync(entity: IFunctionCall | IFunctionCallTransfer | IFunctionCallShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13987
+ ignoreBuiltInBaseEntities?: boolean;
13988
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13989
+
13895
13990
  export declare function flattenFunctionDeclaration(entity: IFunctionDeclaration | IFunctionDeclarationTransfer | IFunctionDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13896
13991
  ignoreBuiltInBaseEntities?: boolean;
13897
13992
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13898
13993
 
13994
+ export declare function flattenFunctionDeclarationAsync(entity: IFunctionDeclaration | IFunctionDeclarationTransfer | IFunctionDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13995
+ ignoreBuiltInBaseEntities?: boolean;
13996
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13997
+
13899
13998
  export declare function flattenGlobalEvent(entity: IGlobalEvent | IGlobalEventTransfer | IGlobalEventShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13900
13999
  ignoreBuiltInBaseEntities?: boolean;
13901
14000
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13902
14001
 
14002
+ export declare function flattenGlobalEventAsync(entity: IGlobalEvent | IGlobalEventTransfer | IGlobalEventShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14003
+ ignoreBuiltInBaseEntities?: boolean;
14004
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14005
+
13903
14006
  export declare function flattenInputMap(entity: IInputMap | IInputMapTransfer | IInputMapShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13904
14007
  ignoreBuiltInBaseEntities?: boolean;
13905
14008
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13906
14009
 
14010
+ export declare function flattenInputMapAsync(entity: IInputMap | IInputMapTransfer | IInputMapShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14011
+ ignoreBuiltInBaseEntities?: boolean;
14012
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14013
+
13907
14014
  export declare function flattenInstalledProject(entity: IInstalledProject | IInstalledProjectTransfer | IInstalledProjectShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13908
14015
  ignoreBuiltInBaseEntities?: boolean;
13909
14016
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13910
14017
 
14018
+ export declare function flattenInstalledProjectAsync(entity: IInstalledProject | IInstalledProjectTransfer | IInstalledProjectShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14019
+ ignoreBuiltInBaseEntities?: boolean;
14020
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14021
+
13911
14022
  export declare function flattenInternalCall(entity: IInternalCall | IInternalCallTransfer | IInternalCallShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13912
14023
  ignoreBuiltInBaseEntities?: boolean;
13913
14024
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13914
14025
 
14026
+ export declare function flattenInternalCallAsync(entity: IInternalCall | IInternalCallTransfer | IInternalCallShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14027
+ ignoreBuiltInBaseEntities?: boolean;
14028
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14029
+
13915
14030
  declare function flattenJoinExprIntoAggregationStatementsSync(joinExpr: JoinExpr, parentQuery: SelectStmt, scopeColumns: ColumnRef[], state: SearchStatementState, project: ProjectState, helpers?: {
13916
14031
  onDescribeTable?: (tableName: string) => ITable | null;
13917
14032
  }, debug?: boolean): {
@@ -13928,34 +14043,62 @@ export declare function flattenLiteralValue(entity: ILiteralValue | ILiteralValu
13928
14043
  ignoreBuiltInBaseEntities?: boolean;
13929
14044
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13930
14045
 
14046
+ export declare function flattenLiteralValueAsync(entity: ILiteralValue | ILiteralValueTransfer | ILiteralValueShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14047
+ ignoreBuiltInBaseEntities?: boolean;
14048
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14049
+
13931
14050
  export declare function flattenLoop(entity: ILoop | ILoopTransfer | ILoopShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13932
14051
  ignoreBuiltInBaseEntities?: boolean;
13933
14052
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13934
14053
 
14054
+ export declare function flattenLoopAsync(entity: ILoop | ILoopTransfer | ILoopShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14055
+ ignoreBuiltInBaseEntities?: boolean;
14056
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14057
+
13935
14058
  export declare function flattenOneLevel(list: unknown): any[];
13936
14059
 
13937
14060
  export declare function flattenOperation(entity: IOperation | IOperationTransfer | IOperationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13938
14061
  ignoreBuiltInBaseEntities?: boolean;
13939
14062
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13940
14063
 
14064
+ export declare function flattenOperationAsync(entity: IOperation | IOperationTransfer | IOperationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14065
+ ignoreBuiltInBaseEntities?: boolean;
14066
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14067
+
13941
14068
  export declare function flattenOutputMap(entity: IOutputMap | IOutputMapTransfer | IOutputMapShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13942
14069
  ignoreBuiltInBaseEntities?: boolean;
13943
14070
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13944
14071
 
14072
+ export declare function flattenOutputMapAsync(entity: IOutputMap | IOutputMapTransfer | IOutputMapShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14073
+ ignoreBuiltInBaseEntities?: boolean;
14074
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14075
+
13945
14076
  export declare function flattenPrimitiveEntity(entity: IPrimitiveEntity | IPrimitiveEntityTransfer | IPrimitiveEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13946
14077
  ignoreBuiltInBaseEntities?: boolean;
13947
14078
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13948
14079
 
14080
+ export declare function flattenPrimitiveEntityAsync(entity: IPrimitiveEntity | IPrimitiveEntityTransfer | IPrimitiveEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14081
+ ignoreBuiltInBaseEntities?: boolean;
14082
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14083
+
13949
14084
  export declare function flattenProject(entity: IProject | IProjectTransfer | IProjectShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13950
14085
  ignoreBuiltInBaseEntities?: boolean;
13951
14086
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13952
14087
 
14088
+ export declare function flattenProjectAsync(entity: IProject | IProjectTransfer | IProjectShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14089
+ ignoreBuiltInBaseEntities?: boolean;
14090
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14091
+
13953
14092
  export declare function flattenProjectElements(project: ProjectState): EntityState[];
13954
14093
 
13955
14094
  export declare function flattenProperty(entity: IProperty | IPropertyTransfer | IPropertyShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13956
14095
  ignoreBuiltInBaseEntities?: boolean;
13957
14096
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13958
14097
 
14098
+ export declare function flattenPropertyAsync(entity: IProperty | IPropertyTransfer | IPropertyShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14099
+ ignoreBuiltInBaseEntities?: boolean;
14100
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14101
+
13959
14102
  export declare function flattenRelatedCallableElementsOnTheRight(entity: CanvasEntityState | ProjectState | InternalCallState, respectCollapse?: boolean): CallableEntityState[];
13960
14103
 
13961
14104
  export declare function flattenRelatedCanvasElementsOnTheLeft(entity: CanvasEntityState): CanvasEntityState[];
@@ -13966,22 +14109,42 @@ export declare function flattenReturnStatement(entity: IReturnStatement | IRetur
13966
14109
  ignoreBuiltInBaseEntities?: boolean;
13967
14110
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13968
14111
 
14112
+ export declare function flattenReturnStatementAsync(entity: IReturnStatement | IReturnStatementTransfer | IReturnStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14113
+ ignoreBuiltInBaseEntities?: boolean;
14114
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14115
+
13969
14116
  export declare function flattenSearch(entity: ISearch | ISearchTransfer | ISearchShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13970
14117
  ignoreBuiltInBaseEntities?: boolean;
13971
14118
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13972
14119
 
14120
+ export declare function flattenSearchAsync(entity: ISearch | ISearchTransfer | ISearchShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14121
+ ignoreBuiltInBaseEntities?: boolean;
14122
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14123
+
13973
14124
  export declare function flattenValueDescriptor(entity: IValueDescriptor | IValueDescriptorTransfer | IValueDescriptorShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13974
14125
  ignoreBuiltInBaseEntities?: boolean;
13975
14126
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13976
14127
 
14128
+ export declare function flattenValueDescriptorAsync(entity: IValueDescriptor | IValueDescriptorTransfer | IValueDescriptorShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14129
+ ignoreBuiltInBaseEntities?: boolean;
14130
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14131
+
13977
14132
  export declare function flattenVariableDeclaration(entity: IVariableDeclaration | IVariableDeclarationTransfer | IVariableDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13978
14133
  ignoreBuiltInBaseEntities?: boolean;
13979
14134
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13980
14135
 
14136
+ export declare function flattenVariableDeclarationAsync(entity: IVariableDeclaration | IVariableDeclarationTransfer | IVariableDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14137
+ ignoreBuiltInBaseEntities?: boolean;
14138
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14139
+
13981
14140
  export declare function flattenVariableInstance(entity: IVariableInstance | IVariableInstanceTransfer | IVariableInstanceShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13982
14141
  ignoreBuiltInBaseEntities?: boolean;
13983
14142
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13984
14143
 
14144
+ export declare function flattenVariableInstanceAsync(entity: IVariableInstance | IVariableInstanceTransfer | IVariableInstanceShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14145
+ ignoreBuiltInBaseEntities?: boolean;
14146
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14147
+
13985
14148
  export declare function flattenVariableReads(variable: VariableState, seenVariables?: Set<string>): VariableState[];
13986
14149
 
13987
14150
  export declare function flattenVariables(element: CanvasEntityState, seenVariables?: Set<string>): VariableState[];
@@ -14015,7 +14178,7 @@ export declare const formatDateOperation: IActionDescriptorTransfer;
14015
14178
 
14016
14179
  export declare const formatDateResponseDT: IDataTypeTransfer;
14017
14180
 
14018
- export declare function freezeDownstreamEntitiesFromGiven(entity: UserManagedEntityState, changeSet: ChangeSet, seenEntities?: Set<string>, allBuiltInEntityIds?: string[]): void;
14181
+ export declare function freezeDownstreamEntitiesFromGiven(entity: UserManagedEntityState, changeSet: ChangeSet, seenEntities?: Set<string>): void;
14019
14182
 
14020
14183
  /** Converts bytes into string using the given encoding. */
14021
14184
  export declare function fromBytes(bytes: Bytes, encoding?: AnyEncoding): string;
@@ -14217,7 +14380,11 @@ export declare class FunctionCallState extends UserManagedVersionedState impleme
14217
14380
  validate(): {
14218
14381
  success: boolean;
14219
14382
  };
14383
+ validateAsync(options?: YieldOptions): Promise<{
14384
+ success: boolean;
14385
+ }>;
14220
14386
  getErrors(): EntityError[];
14387
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
14221
14388
  getShallowErrors(): EntityError[];
14222
14389
  clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): FunctionCallState;
14223
14390
  removeUnrecognizedInputs(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
@@ -14235,6 +14402,7 @@ export declare type FunctionCallTypesUnion = IFunctionCall | IFunctionCallTransf
14235
14402
 
14236
14403
  declare namespace functionCallValidation {
14237
14404
  export {
14405
+ validateAsync_11 as validateAsync,
14238
14406
  validate_11 as validate
14239
14407
  }
14240
14408
  }
@@ -14369,7 +14537,11 @@ export declare class FunctionDeclarationState extends UserManagedVersionedState
14369
14537
  validate(): {
14370
14538
  success: boolean;
14371
14539
  };
14540
+ validateAsync(options?: YieldOptions): Promise<{
14541
+ success: boolean;
14542
+ }>;
14372
14543
  getErrors(): EntityError[];
14544
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
14373
14545
  getShallowErrors(): EntityError[];
14374
14546
  clone(changeSet?: ChangeSet | null, parent?: InstalledProjectState | ProjectState | DefinitionEntityState | LoopState | null, newId?: string | null, subscribe?: boolean, cloneBody?: boolean): FunctionDeclarationState;
14375
14547
  getVariableInstances(): VariableInstanceState[];
@@ -14393,6 +14565,7 @@ export declare type FunctionDeclarationTypesUnion = IFunctionDeclaration | IFunc
14393
14565
 
14394
14566
  declare namespace functionDeclarationValidation {
14395
14567
  export {
14568
+ validateAsync_9 as validateAsync,
14396
14569
  validate_9 as validate,
14397
14570
  validateFunctionDeclarationName_2 as validateFunctionDeclarationName
14398
14571
  }
@@ -14615,7 +14788,9 @@ export declare function getAllActionDescriptorsForLoops(project: ProjectState):
14615
14788
 
14616
14789
  export declare function getAllActionDescriptorsForOperations(project: ProjectState): string;
14617
14790
 
14618
- export declare function getAllBuiltInEntityIds(): EntityId[];
14791
+ export declare function getAllBuiltInEntityIds(): Set<EntityId>;
14792
+
14793
+ export declare function getAllBuiltInEntityIdsAsync(options?: YieldOptions): Promise<Set<EntityId>>;
14619
14794
 
14620
14795
  export declare function getAllGloballyDeclaredFunctionDeclarationsExplanation(project: ProjectState): string;
14621
14796
 
@@ -18385,7 +18560,13 @@ declare function getRawLimitFromLimitClause(limitClause: LimitClause | null): nu
18385
18560
 
18386
18561
  declare function getRawOffetFromLimitClause(limitClause: LimitClause | null): number;
18387
18562
 
18388
- export declare function getRecordOrderForTraversal(entities: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>): EntityId[];
18563
+ export declare function getRecordOrderForTraversal(entities: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>, options: {
18564
+ allBuiltInEntityIds?: Set<EntityId>;
18565
+ }): EntityId[];
18566
+
18567
+ export declare function getRecordOrderForTraversalAsync(entities: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>, options: {
18568
+ allBuiltInEntityIds?: Set<EntityId>;
18569
+ } & YieldOptions): Promise<EntityId[]>;
18389
18570
 
18390
18571
  export declare function getRecusriveParentsIds(entity: Element_2 | ElementTransfer | ElementShallowTransfer | EntityState, allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer | EntityState>): EntityId[];
18391
18572
 
@@ -18417,7 +18598,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
18417
18598
  */
18418
18599
  export declare function getReferencedIds(entity: ElementTransfer | Element_2 | ElementShallowTransfer | EntityState, allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>, options?: {
18419
18600
  ignoreBuiltInBaseEntities?: boolean;
18420
- allBuiltInEntityIds?: EntityId[];
18601
+ allBuiltInEntityIds?: Set<EntityId>;
18421
18602
  entityMaps?: Map<string, string>;
18422
18603
  }): {
18423
18604
  upstream: Record<EntityId, EntityVersion>;
@@ -18432,8 +18613,24 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
18432
18613
 
18433
18614
  export declare function getRelatedCanvasElementsOnTheLeftFromTransfer(entity: DraggableElement | DraggableElementTransfer | DraggableElementShallowTransfer, allKnownEntities: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>): (DraggableElement | DraggableElementTransfer | DraggableElementShallowTransfer)[];
18434
18615
 
18616
+ /**
18617
+ * Get all the entities that are related to the given entity on the right
18618
+ * This includes:
18619
+ * - entities called by the given entity
18620
+ * - entities that read from the given entity,
18621
+ * both variables and other canvas entities that are the parent of the value reading entity
18622
+ */
18435
18623
  export declare function getRelatedCanvasElementsOnTheRight(entity: CanvasEntityState | ProjectState | InternalCallState, respectCollapse?: boolean): CanvasEntityState[];
18436
18624
 
18625
+ /**
18626
+ * (ASYNC) Get all the entities that are related to the given entity on the right
18627
+ * This includes:
18628
+ * - entities called by the given entity
18629
+ * - entities that read from the given entity,
18630
+ * both variables and other canvas entities that are the parent of the value reading entity
18631
+ */
18632
+ export declare function getRelatedCanvasElementsOnTheRightAsync(entity: CanvasEntityState | ProjectState | InternalCallState, respectCollapse?: boolean, options?: YieldOptions): Promise<CanvasEntityState[]>;
18633
+
18437
18634
  export declare function getRelationalDBInstanceNameFromEntityId(entityId: string): string;
18438
18635
 
18439
18636
  export declare function getRootEntryPointScopeOwner(entity: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | null;
@@ -19081,7 +19278,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
19081
19278
  validate(): {
19082
19279
  success: boolean;
19083
19280
  };
19281
+ validateAsync(options?: YieldOptions): Promise<{
19282
+ success: boolean;
19283
+ }>;
19084
19284
  getErrors(): EntityError[];
19285
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
19085
19286
  getShallowErrors(): EntityError[];
19086
19287
  clone(changeSet?: ChangeSet | null, parent?: InstalledProjectState | ProjectState | null, newId?: string | null, subscribe?: boolean, cloneBody?: boolean): GlobalEventState;
19087
19288
  getVariableInstances(): VariableInstanceState[];
@@ -19095,6 +19296,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
19095
19296
 
19096
19297
  declare namespace globalEventValidation {
19097
19298
  export {
19299
+ validateAsync_16 as validateAsync,
19098
19300
  validate_16 as validate
19099
19301
  }
19100
19302
  }
@@ -21294,11 +21496,13 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21294
21496
 
21295
21497
  export declare function initBaseProjectEntity(data: IProjectTransfer, options?: {
21296
21498
  shallowErrors?: boolean;
21499
+ allBuiltInIds?: Set<EntityId>;
21297
21500
  }, parentContext?: IProjectInstanceParentContext): ProjectState;
21298
21501
 
21299
21502
  export declare function initBaseProjectEntityAsync(data: IProjectTransfer, options?: {
21300
21503
  shallowErrors?: boolean;
21301
21504
  yieldEvery?: number;
21505
+ allBuiltInIds?: Set<EntityId>;
21302
21506
  }, parentContext?: IProjectInstanceParentContext): Promise<ProjectState>;
21303
21507
 
21304
21508
  export declare function initProject(data: IProjectTransfer, { enrich, shallowErrors, }?: {
@@ -21445,7 +21649,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21445
21649
  validate(): {
21446
21650
  success: boolean;
21447
21651
  };
21652
+ validateAsync(options?: YieldOptions): Promise<{
21653
+ success: boolean;
21654
+ }>;
21448
21655
  getErrors(): EntityError[];
21656
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
21449
21657
  getShallowErrors(): EntityError[];
21450
21658
  getDefaultValue(): LiteralValueState | null;
21451
21659
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): InputMapState;
@@ -21458,6 +21666,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21458
21666
 
21459
21667
  declare namespace inputMapValidation {
21460
21668
  export {
21669
+ validateAsync_17 as validateAsync,
21461
21670
  validate_17 as validate
21462
21671
  }
21463
21672
  }
@@ -21573,7 +21782,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21573
21782
  validate(): {
21574
21783
  success: boolean;
21575
21784
  };
21785
+ validateAsync(options?: YieldOptions): Promise<{
21786
+ success: boolean;
21787
+ }>;
21576
21788
  getErrors(): EntityError[];
21789
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
21577
21790
  getShallowErrors(): EntityError[];
21578
21791
  clone(changeSet?: ChangeSet | null, parent?: ProjectState | null, newId?: string | null, subscribe?: boolean): InstalledProjectState;
21579
21792
  }
@@ -21582,6 +21795,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21582
21795
 
21583
21796
  declare namespace installedProjectValidation {
21584
21797
  export {
21798
+ validateAsync_18 as validateAsync,
21585
21799
  validate_18 as validate
21586
21800
  }
21587
21801
  }
@@ -21716,7 +21930,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21716
21930
  validate(): {
21717
21931
  success: boolean;
21718
21932
  };
21933
+ validateAsync(options?: YieldOptions): Promise<{
21934
+ success: boolean;
21935
+ }>;
21719
21936
  getErrors(): EntityError[];
21937
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
21720
21938
  getShallowErrors(): EntityError[];
21721
21939
  clone(changeSet?: ChangeSet | null, parent?: VariableState | null, newId?: string | null, subscribe?: boolean): InternalCallState;
21722
21940
  removeUnrecognizedInputs(changeSet?: ChangeSet | null): IChangeSet<InternalCallState>;
@@ -21734,6 +21952,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21734
21952
 
21735
21953
  declare namespace internalCallValidation {
21736
21954
  export {
21955
+ validateAsync_19 as validateAsync,
21737
21956
  validate_19 as validate,
21738
21957
  validateParentRelation
21739
21958
  }
@@ -24020,7 +24239,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24020
24239
  validate(): {
24021
24240
  success: boolean;
24022
24241
  };
24242
+ validateAsync(options?: YieldOptions): Promise<{
24243
+ success: boolean;
24244
+ }>;
24023
24245
  getErrors(): EntityError[];
24246
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
24024
24247
  getShallowErrors(): EntityError[];
24025
24248
  clone(changeSet?: ChangeSet | null, parent?: DataTypeState | InputMapState | PropertyState | ArgumentDeclarationState | ReturnStatementState | BreakStatementState | ContinueStatementState | VariableDeclarationState | VariableInstanceState | ValueDescriptorState | null, newId?: string | null, subscribe?: boolean): LiteralValueState;
24026
24249
  merge(sourceEntity: LiteralValueState, changeSet?: ChangeSet | null): IChangeSet<LiteralValueState>;
@@ -24032,6 +24255,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24032
24255
 
24033
24256
  declare namespace literalValueValidation {
24034
24257
  export {
24258
+ validateAsync_23 as validateAsync,
24035
24259
  validate_23 as validate
24036
24260
  }
24037
24261
  }
@@ -24184,7 +24408,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24184
24408
  validate(): {
24185
24409
  success: boolean;
24186
24410
  };
24411
+ validateAsync(options?: YieldOptions): Promise<{
24412
+ success: boolean;
24413
+ }>;
24187
24414
  getErrors(): EntityError[];
24415
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
24188
24416
  getShallowErrors(): EntityError[];
24189
24417
  clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): LoopState;
24190
24418
  getVariableInstances(): VariableInstanceState[];
@@ -24237,6 +24465,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24237
24465
 
24238
24466
  declare namespace loopValidation {
24239
24467
  export {
24468
+ validateAsync_21 as validateAsync,
24240
24469
  validate_21 as validate,
24241
24470
  validateListLoop
24242
24471
  }
@@ -24473,7 +24702,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24473
24702
 
24474
24703
  export declare const mockClientProject: IProjectTransfer;
24475
24704
 
24476
- export declare function modifyEditableAndDeletableDownstreamEntitiesFromGiven(entity: UserManagedEntityState, changeSet: ChangeSet, newValue: boolean, seenEntities?: Set<string>, allBuiltInEntityIds?: string[]): void;
24705
+ export declare function modifyEditableAndDeletableDownstreamEntitiesFromGiven(entity: UserManagedEntityState, changeSet: ChangeSet, newValue: boolean, seenEntities?: Set<string>): void;
24477
24706
 
24478
24707
  export declare const NESTED_PROPERTY_HEIGHT = 26;
24479
24708
 
@@ -28439,7 +28668,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28439
28668
  validate(): {
28440
28669
  success: boolean;
28441
28670
  };
28671
+ validateAsync(options?: YieldOptions): Promise<{
28672
+ success: boolean;
28673
+ }>;
28442
28674
  getErrors(): EntityError[];
28675
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
28443
28676
  getShallowErrors(): EntityError[];
28444
28677
  clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): OperationState;
28445
28678
  removeUnrecognizedInputs(changeSet?: ChangeSet | null): IChangeSet<OperationState>;
@@ -28459,6 +28692,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28459
28692
 
28460
28693
  declare namespace operationValidation {
28461
28694
  export {
28695
+ validateAsync_10 as validateAsync,
28462
28696
  validate_10 as validate
28463
28697
  }
28464
28698
  }
@@ -28474,7 +28708,13 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28474
28708
 
28475
28709
  export declare const orConditionResultVoidDataTypeParentRef: IActionDescriptorReference;
28476
28710
 
28477
- export declare function orderEntitiesForTraversal(entities: (Element_2 | ElementTransfer | EntityState | ElementShallowTransfer)[]): (Element_2 | ElementTransfer | EntityState | ElementShallowTransfer)[];
28711
+ export declare function orderEntitiesForTraversal(entities: (Element_2 | ElementTransfer | EntityState | ElementShallowTransfer)[], options: {
28712
+ allBuiltInEntityIds?: Set<EntityId>;
28713
+ }): (Element_2 | ElementTransfer | EntityState | ElementShallowTransfer)[];
28714
+
28715
+ export declare function orderEntitiesForTraversalAsync(entities: (Element_2 | ElementTransfer | EntityState | ElementShallowTransfer)[], options: {
28716
+ allBuiltInEntityIds?: Set<EntityId>;
28717
+ } & YieldOptions): Promise<(Element_2 | ElementTransfer | EntityState | ElementShallowTransfer)[]>;
28478
28718
 
28479
28719
  export declare const outEncDefault: ILiteralValueTransfer;
28480
28720
 
@@ -28599,7 +28839,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28599
28839
  validate(): {
28600
28840
  success: boolean;
28601
28841
  };
28842
+ validateAsync(options?: YieldOptions): Promise<{
28843
+ success: boolean;
28844
+ }>;
28602
28845
  getErrors(): EntityError[];
28846
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
28603
28847
  getShallowErrors(): EntityError[];
28604
28848
  clone(changeSet?: ChangeSet | null, parent?: PassThroughCallableEntityWithOutputsState | null, newId?: string | null, subscribe?: boolean): OutputMapState;
28605
28849
  getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
@@ -28609,6 +28853,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28609
28853
 
28610
28854
  declare namespace outputMapValidation {
28611
28855
  export {
28856
+ validateAsync,
28612
28857
  validate
28613
28858
  }
28614
28859
  }
@@ -28781,7 +29026,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28781
29026
 
28782
29027
  export declare function percentageChange(oldRaw: unknown, newRaw: unknown): number;
28783
29028
 
28784
- export declare type PersistChangeSetEntityActionPayload = IRecordChangeSet<UserManagedElementShallowTransfer, UserManagedElementShallowTransfer> & {
29029
+ export declare type PersistChangeSetEntityActionPayload = IRecordChangeSet<UserManagedElementShallowTransfer | null, UserManagedElementShallowTransfer> & {
28785
29030
  isNewBranchHead: boolean;
28786
29031
  branch: string;
28787
29032
  };
@@ -28954,7 +29199,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28954
29199
  validate(): {
28955
29200
  success: boolean;
28956
29201
  };
29202
+ validateAsync(options?: YieldOptions): Promise<{
29203
+ success: boolean;
29204
+ }>;
28957
29205
  getErrors(): EntityError[];
29206
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
28958
29207
  getShallowErrors(): EntityError[];
28959
29208
  getAllInteractiveMethods(): ActionDescriptorState[];
28960
29209
  }
@@ -29043,6 +29292,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29043
29292
  activeVersion: boolean;
29044
29293
  initialized: boolean;
29045
29294
  startedInitialization: boolean;
29295
+ diggestedBuiltInBaseEntitiesIds: Set<EntityId>;
29046
29296
  onPersistChangeSetSequentiallyCallback: ((changeSet: ChangeSet) => Promise<{
29047
29297
  success: boolean;
29048
29298
  }>) | null;
@@ -29189,8 +29439,13 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29189
29439
  validate(): {
29190
29440
  success: boolean;
29191
29441
  };
29442
+ validateAsync(options?: YieldOptions): Promise<{
29443
+ success: boolean;
29444
+ }>;
29192
29445
  validateChildren(): void;
29446
+ validateChildrenAsync(options?: YieldOptions): Promise<void>;
29193
29447
  getErrors(): EntityError[];
29448
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
29194
29449
  getShallowErrors(): EntityError[];
29195
29450
  clone(): ProjectState;
29196
29451
  getDefinitionEntity(id: EntityId): DefinitionEntityState | null;
@@ -29410,7 +29665,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29410
29665
  validate(): {
29411
29666
  success: boolean;
29412
29667
  };
29668
+ validateAsync(options?: YieldOptions): Promise<{
29669
+ success: boolean;
29670
+ }>;
29413
29671
  getErrors(): EntityError[];
29672
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
29414
29673
  getShallowErrors(): EntityError[];
29415
29674
  implement(parent: DefinitionEntityState, changeSet?: ChangeSet | null, newId?: string | null): PropertyState;
29416
29675
  clone(changeSet?: ChangeSet | null, parent?: DefinitionEntityState | null, newId?: string | null, subscribe?: boolean): PropertyState;
@@ -29429,6 +29688,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29429
29688
 
29430
29689
  declare namespace propertyValidation {
29431
29690
  export {
29691
+ validateAsync_4 as validateAsync,
29432
29692
  validate_4 as validate,
29433
29693
  validateImplementation,
29434
29694
  validatePropertyEntityName
@@ -30146,7 +30406,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30146
30406
  validate(): {
30147
30407
  success: boolean;
30148
30408
  };
30409
+ validateAsync(options?: YieldOptions): Promise<{
30410
+ success: boolean;
30411
+ }>;
30149
30412
  getErrors(): EntityError[];
30413
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
30150
30414
  getShallowErrors(): EntityError[];
30151
30415
  getDefaultValue(): LiteralValueState | null;
30152
30416
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): ReturnStatementState;
@@ -30161,6 +30425,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30161
30425
 
30162
30426
  declare namespace returnStatementValidation {
30163
30427
  export {
30428
+ validateAsync_13 as validateAsync,
30164
30429
  validate_13 as validate
30165
30430
  }
30166
30431
  }
@@ -30381,7 +30646,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30381
30646
  validate(): {
30382
30647
  success: boolean;
30383
30648
  };
30649
+ validateAsync(options?: YieldOptions): Promise<{
30650
+ success: boolean;
30651
+ }>;
30384
30652
  getErrors(): EntityError[];
30653
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
30385
30654
  getShallowErrors(): EntityError[];
30386
30655
  clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): SearchState;
30387
30656
  syncInputMaps(changeSet?: ChangeSet | null): IChangeSet<SearchState>;
@@ -30550,6 +30819,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30550
30819
 
30551
30820
  declare namespace searchValidation {
30552
30821
  export {
30822
+ validateAsync_20 as validateAsync,
30553
30823
  validate_20 as validate
30554
30824
  }
30555
30825
  }
@@ -32389,41 +32659,38 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
32389
32659
  export declare class Traverser {
32390
32660
  order: EntityId[];
32391
32661
  flatRecord: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>;
32392
- allBuiltInEntityIds: string[];
32662
+ allBuiltInEntityIds: Set<EntityId>;
32393
32663
  private onGoingVisits;
32664
+ cachedReferences: Record<EntityId, {
32665
+ upstream: Record<EntityId, true>;
32666
+ downstream: Record<EntityId, true>;
32667
+ }>;
32394
32668
  constructor(root?: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer, options?: {
32395
32669
  asyncInitial?: boolean;
32396
- yieldEvery?: number;
32397
32670
  onOrdered?: () => void;
32398
- });
32671
+ allBuiltInEntityIds?: Set<EntityId>;
32672
+ } & YieldOptions);
32399
32673
  flatten(entity: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer): void;
32400
- flattenAsync(entity: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer, options?: {
32401
- yieldEvery?: number;
32402
- }): Promise<void>;
32674
+ flattenAsync(entity: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer, options?: YieldOptions): Promise<void>;
32403
32675
  private moveEntityAfterDependencies;
32404
32676
  orderEntities(): void;
32405
- orderEntitiesAsync(options?: {
32406
- yieldEvery?: number;
32407
- recursiveIndex?: number;
32408
- }): Promise<void>;
32677
+ orderEntitiesAsync(options?: YieldOptions): Promise<void>;
32409
32678
  getUpstreamOngoingDependenciesVisits(entityId: EntityId, taskId: string): Record<EntityId, Promise<any>>;
32410
32679
  getDownstreamOngoingDependenciesVisits(entityId: EntityId, taskId: string): Record<EntityId, Promise<any>>;
32411
32680
  settlePromises(promises: Record<EntityId, Promise<any>>, taskId: string): Promise<void>;
32412
32681
  visit(callback: (entity: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer, knownEntitiesRecord: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>) => any): Traverser;
32413
32682
  reverseVisit(callback: (entity: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer, knownEntitiesRecord: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>) => any): Traverser;
32414
32683
  visitAsync(callback: (entity: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer, knownEntitiesRecord: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>) => any, options?: {
32415
- yieldEvery?: number;
32416
32684
  parallelise?: boolean;
32417
- }): Promise<Traverser>;
32685
+ } & YieldOptions): Promise<Traverser>;
32418
32686
  reverseVisitAsync(callback: (entity: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer, knownEntitiesRecord: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>) => any, options?: {
32419
- yieldEvery?: number;
32420
32687
  parallelise?: boolean;
32421
- }): Promise<Traverser>;
32688
+ } & YieldOptions): Promise<Traverser>;
32422
32689
  }
32423
32690
 
32424
32691
  declare type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | BigUint64Array | BigInt64Array | Float32Array | Float64Array;
32425
32692
 
32426
- export declare function unfreezeDownstreamEntitiesFromGiven(entity: UserManagedEntityState, changeSet: ChangeSet, seenEntities?: Set<string>, allBuiltInEntityIds?: string[]): void;
32693
+ export declare function unfreezeDownstreamEntitiesFromGiven(entity: UserManagedEntityState, changeSet: ChangeSet, seenEntities?: Set<string>): void;
32427
32694
 
32428
32695
  export declare function uniqueList(list: unknown): any[];
32429
32696
 
@@ -32719,6 +32986,52 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
32719
32986
 
32720
32987
  export declare function validateArgumentDeclarationName(entity: ArgumentDeclarationState | IArgumentDeclarationGenerationTarget | IArgumentDeclarationShallowTransfer | IArgumentDeclarationTransfer, project: ProjectState): EntityGenerationError[];
32721
32988
 
32989
+ declare function validateAsync(self: OutputMapState, options?: YieldOptions): Promise<EntityError[]>;
32990
+
32991
+ declare function validateAsync_10(self: OperationState, options?: YieldOptions): Promise<EntityError[]>;
32992
+
32993
+ declare function validateAsync_11(self: FunctionCallState, options?: YieldOptions): Promise<EntityError[]>;
32994
+
32995
+ declare function validateAsync_12(self: ConditionState, options?: YieldOptions): Promise<EntityError[]>;
32996
+
32997
+ declare function validateAsync_13(self: ReturnStatementState, options?: YieldOptions): Promise<EntityError[]>;
32998
+
32999
+ declare function validateAsync_14(self: ContinueStatementState, options?: YieldOptions): Promise<EntityError[]>;
33000
+
33001
+ declare function validateAsync_15(self: BreakStatementState, options?: YieldOptions): Promise<EntityError[]>;
33002
+
33003
+ declare function validateAsync_16(self: GlobalEventState, options?: YieldOptions): Promise<EntityError[]>;
33004
+
33005
+ declare function validateAsync_17(self: InputMapState, options?: YieldOptions): Promise<EntityError[]>;
33006
+
33007
+ declare function validateAsync_18(self: InstalledProjectState, options?: YieldOptions): Promise<EntityError[]>;
33008
+
33009
+ declare function validateAsync_19(self: InternalCallState, options?: YieldOptions): Promise<EntityError[]>;
33010
+
33011
+ declare function validateAsync_2(self: DefinitionEntityState, options?: YieldOptions): Promise<EntityError[]>;
33012
+
33013
+ declare function validateAsync_20(self: SearchState, options?: YieldOptions): Promise<EntityError[]>;
33014
+
33015
+ declare function validateAsync_21(self: LoopState, options?: YieldOptions): Promise<EntityError[]>;
33016
+
33017
+ declare function validateAsync_22(self: ValueDescriptorState, options?: YieldOptions): Promise<EntityError[]>;
33018
+
33019
+ declare function validateAsync_23(self: LiteralValueState, options?: YieldOptions): Promise<EntityError[]>;
33020
+
33021
+ declare function validateAsync_3(self: DataTypeState, options?: YieldOptions): Promise<EntityError[]>;
33022
+
33023
+ declare function validateAsync_4(self: PropertyState, options?: YieldOptions): Promise<EntityError[]>;
33024
+
33025
+ declare function validateAsync_5(self: VariableDeclarationState, options?: YieldOptions): Promise<EntityError[]>;
33026
+
33027
+ declare function validateAsync_6(self: VariableInstanceState, options?: YieldOptions): Promise<EntityError[]>;
33028
+
33029
+ declare function validateAsync_7(self: ArgumentDeclarationState, options?: YieldOptions): Promise<EntityError[]>;
33030
+
33031
+ declare function validateAsync_8(self: ActionDescriptorState, options?: YieldOptions): Promise<EntityError[]>;
33032
+
33033
+ declare function validateAsync_9(self: FunctionDeclarationState, options?: YieldOptions): Promise<EntityError[]>;
33034
+
32722
33035
  export declare function validateCallableEntityShouldCallReturnStatement(self: CallableEntityState): EntityError[];
32723
33036
 
32724
33037
  export declare function validateCalledByErrorIdInAction(calledByErrorId: EntityId, project: ProjectState, propertyName?: string): EntityGenerationError[];
@@ -33426,7 +33739,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33426
33739
  validate(): {
33427
33740
  success: boolean;
33428
33741
  };
33742
+ validateAsync(options?: YieldOptions): Promise<{
33743
+ success: boolean;
33744
+ }>;
33429
33745
  getErrors(): EntityError[];
33746
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
33430
33747
  getShallowErrors(): EntityError[];
33431
33748
  clone(changeSet?: ChangeSet | null, parent?: ActionDescriptorState | SearchState | null, newId?: string | null, subscribe?: boolean): ValueDescriptorState;
33432
33749
  getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
@@ -33442,6 +33759,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33442
33759
 
33443
33760
  declare namespace valueDescriptorValidation {
33444
33761
  export {
33762
+ validateAsync_22 as validateAsync,
33445
33763
  validate_22 as validate
33446
33764
  }
33447
33765
  }
@@ -33663,7 +33981,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33663
33981
  validate(): {
33664
33982
  success: boolean;
33665
33983
  };
33984
+ validateAsync(options?: YieldOptions): Promise<{
33985
+ success: boolean;
33986
+ }>;
33666
33987
  getErrors(): EntityError[];
33988
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
33667
33989
  getShallowErrors(): EntityError[];
33668
33990
  getDefaultValue(): LiteralValueState | null;
33669
33991
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): VariableDeclarationState;
@@ -33689,6 +34011,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33689
34011
 
33690
34012
  declare namespace variableDeclarationValidation {
33691
34013
  export {
34014
+ validateAsync_5 as validateAsync,
33692
34015
  validate_5 as validate,
33693
34016
  validateVariableDeclarationName_2 as validateVariableDeclarationName,
33694
34017
  validateGlobalVariableDeclaration
@@ -33865,7 +34188,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33865
34188
  validate(): {
33866
34189
  success: boolean;
33867
34190
  };
34191
+ validateAsync(options?: YieldOptions): Promise<{
34192
+ success: boolean;
34193
+ }>;
33868
34194
  getErrors(): EntityError[];
34195
+ getErrorsAsync(options?: YieldOptions): Promise<EntityError[]>;
33869
34196
  getShallowErrors(): EntityError[];
33870
34197
  getDefaultValue(): LiteralValueState | null;
33871
34198
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): VariableInstanceState;
@@ -33889,6 +34216,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33889
34216
 
33890
34217
  declare namespace variableInstanceValidation {
33891
34218
  export {
34219
+ validateAsync_6 as validateAsync,
33892
34220
  validate_6 as validate
33893
34221
  }
33894
34222
  }