index.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. declare const BpmnAdapter: {
  2. pluginName: string;
  3. install(lf: any): void;
  4. shapeConfigMap: Map<any, any>;
  5. setCustomShape(key: any, val: any): void;
  6. adapterOut(data: any): {
  7. 'bpmn:definitions': {
  8. '-id': string;
  9. '-xmlns:xsi': string;
  10. '-xmlns:bpmn': string;
  11. '-xmlns:bpmndi': string;
  12. '-xmlns:dc': string;
  13. '-xmlns:di': string;
  14. '-targetNamespace': string;
  15. '-exporter': string;
  16. '-exporterVersion': string;
  17. 'bpmn:process': {
  18. '-id': string;
  19. '-isExecutable': string;
  20. };
  21. 'bpmndi:BPMNDiagram': {
  22. '-id': string;
  23. 'bpmndi:BPMNPlane': {
  24. '-id': string;
  25. '-bpmnElement': string;
  26. };
  27. };
  28. };
  29. };
  30. adapterIn(bpmnData: any): {
  31. nodes: any[];
  32. edges: any[];
  33. };
  34. };
  35. declare const BpmnXmlAdapter: {
  36. pluginName: string;
  37. install(lf: any): void;
  38. adapterXmlIn(bpmnData: any): {
  39. nodes: any[];
  40. edges: any[];
  41. };
  42. adapterXmlOut(data: any): string;
  43. };
  44. export { BpmnAdapter, BpmnXmlAdapter, };
  45. export default BpmnAdapter;