import { Token } from './Token'; import { Node, LoopBehaviour } from '../elements/'; declare class Loop { id: any; node: any; ownerToken: any; definition: LoopBehaviour; sequence: any; dataPath: any; _items: any[]; completed: number; isSequential(): any; isStandard(): boolean; constructor(node: Node, token: Token, dataObject?: any); save(): { id: any; nodeId: any; ownerTokenId: any; dataPath: any; items: any[]; endFlag: boolean; completed: number; sequence: any; }; endFlag: boolean; end(): void; static load(execution: any, dataObject: any): Loop; getKeyName(): string; getItems(): Promise; isDone(): Promise; getNext(): Promise; /** * * @param token * * is called before Node execute and before an item is created * */ static checkStart(token: any): Promise; static cancel(fromItem: any): Promise; /** * * is called just before moving to next item in the flow * * checks if there is more items to be executed in the loop * if more items are needed: * execute * return false * returns true only if no loop for the token * * @param token * @returns */ static checkNext(token: Token): Promise; } export { Loop };