declare global { interface Window { $svgEventCallBack: (type: string, svg_item_id: string, ...args: any[]) => void; $setItemAttrByID: (id: string, key: string, val: any) => Promise; $getItemAttrByID: (id: string, key: string, val: any) => any; $previewCompareVal: (val1: any, operator: '>' | '<' | '=' | '!=', val2: any) => boolean; globalData: Map; } // 添加 Rec 服务的类型定义 interface RecService { service: { node: { runtimes: Record; }; }; } interface ParentWindow extends Window { Rec?: RecService; } } export {};