import { Base, Shape, Connection, Label } from 'diagram-js/lib/model' import { MessageApiInjection } from 'naive-ui/lib/message/playground/MessageProvider' declare global { interface Window { bpmnInstances: any __messageBox: MessageApiInjection } interface Object { [key: string | number]: string | number | boolean | undefined | null | Object | Function } type BpmnElement = Base | Shape | Connection | Label } declare interface Window { bpmnInstances: any }