// 这里包含所有插件导出的函数及变量声明,声明的函数会在类型标注中标注到core上 type CanParseCss = keyof { [P in keyof CSSStyleDeclaration as CSSStyleDeclaration[P] extends string ? P extends string ? P : never : never]: CSSStyleDeclaration[P]; }; interface PluginDeclaration { init(): void; _afterLoadResouce(): void; } type Forward = { [K in keyof T as T[K] extends Function ? K extends `_${string}` ? never : K : never]: T[K]; }; type ForwardKeys = keyof Forward; declare const Mota: import('../game/system').IMota; interface Window { Mota: import('../game/system').IMota; }