import { Node } from "."; import { NODE_ACTION } from "../"; import { Item } from "../engine/Item"; declare class Event extends Node { hasMessage(): any; hasSignal(): any; hasTimer(): any; /** * * using token: check if fromEventBasedGateway; if yes cancel all other events * * @param item */ start(item: Item): Promise; end(item: Item, cancel?: Boolean): Promise; get canBeInvoked(): boolean; /** * is called by * - boundaryEvent (intrupting) * - Error,Cancel Event * - End event (abort) * * * @param item the curremt event item */ static terminate(item: any): Promise; } declare class CatchEvent extends Event { get isCatching(): boolean; get requiresWait(): boolean; get canBeInvoked(): boolean; start(item: Item): Promise; } declare class BoundaryEvent extends Event { get isCatching(): boolean; isCancelling: boolean; constructor(id: any, process: any, type: any, def: any); get requiresWait(): boolean; get canBeInvoked(): boolean; start(item: Item): Promise; run(item: Item): Promise; } declare class ThrowEvent extends Event { /** * * using token: check if fromEventBasedGateway; if yes cancel all other events */ get isCatching(): boolean; start(item: Item): Promise; run(item: Item): Promise; } declare class EndEvent extends Event { get isCatching(): boolean; end(item: Item, cancel: any): Promise; } declare class StartEvent extends Event { constructor(id: any, process: any, type: any, def: any); start(item: Item): Promise; get isCatching(): boolean; } export { Event, StartEvent, EndEvent, CatchEvent, ThrowEvent, BoundaryEvent };