1 | /**
|
2 | * Is an element of the given BPMN type?
|
3 | *
|
4 | * @param element
|
5 | * @param type
|
6 | *
|
7 | * @return
|
8 | */
|
9 | export function is(element: Element | ModdleElement, type: string): boolean;
|
10 |
|
11 | /**
|
12 | * Return true if element has any of the given types.
|
13 | *
|
14 | * @param element
|
15 | * @param types
|
16 | *
|
17 | * @return
|
18 | */
|
19 | export function isAny(element: Element | ModdleElement, types: string[]): boolean;
|
20 |
|
21 | /**
|
22 | * Return the business object for a given element.
|
23 | *
|
24 | * @param element
|
25 | *
|
26 | * @return
|
27 | */
|
28 | export function getBusinessObject(element: Element | ModdleElement): ModdleElement;
|
29 |
|
30 | /**
|
31 | * Return the di object for a given element.
|
32 | *
|
33 | * @param element
|
34 | *
|
35 | * @return
|
36 | */
|
37 | export function getDi(element: Element): ModdleElement;
|
38 |
|
39 | type Element = import('../model/Types').Element;
|
40 | type ModdleElement = import('../model/Types').ModdleElement;
|