import { CustomPathProps } from '../type'; import FlowPathAni from './FlowPathAni'; type initSvgObj = { html: string; svgNode: SVGSVGElement; }; interface MLightFlowPathProps { wrapper: HTMLDivElement; refSvgNode: SVGSVGElement; customPathProps: CustomPathProps; gradientColorId: string; } type Point = { x: number; y: number; rotate: number; }; export default class CustomPath { customPathConfig: MLightFlowPathProps; points: Point[]; flowPathAni: FlowPathAni | null; initSvgObj?: initSvgObj; svgPathNode?: SVGPathElement; bodyObj?: any; constructor(comProps: MLightFlowPathProps); init(sizeChange?: boolean): Promise; update(customPathProps: CustomPathProps): Promise; drawPath(node: SVGPathElement): void; drawBody(): void; clearBody(): void; setSvgObj(): Promise; getSvgPoint(): false | undefined; machinPoints(): false | undefined; renderFlowPathAndAni(): void; destory(): void; } export {};