import { TaroPlatformBase } from '@tarojs/service'; import { Template } from './template'; import type { IPluginContext } from '@tarojs/service'; import type { IOptions } from './index'; export default class Swan extends TaroPlatformBase { platform: string; globalObject: string; runtimePath: string; taroComponentsPath: string; fileType: { templ: string; style: string; config: string; script: string; xs: string; }; template: Template; /** * 1. setupTransaction - init * 2. setup * 3. setupTransaction - close * 4. buildTransaction - init * 5. build * 6. buildTransaction - close */ constructor(ctx: IPluginContext, config: any, options?: IOptions); /** * 增加组件或修改组件属性 */ modifyComponents(): void; }