import { Base } from '../base'; import { IAnimateService } from '../../interface/animate'; import { PageGrow, IOptions, IEffectConfig, EnhanceGSAP } from '@anov/animate-engine'; import { GSDevToolsInstance } from './type'; import { CreateTlOption } from '../../types/animate'; import { DevConfig } from '../../types'; export declare class Animate extends Base implements IAnimateService { devTool: GSDevToolsInstance | null; animateDebug: boolean; tlArr: Array; pageGrowInstance: PageGrow | null; defaultOptions: any; currentPath: string; private gsapInstance; constructor(); getGsapInstance(): EnhanceGSAP; addAnimateError(): void; init(config: DevConfig): void; setAnimateDebug(v?: boolean): void; createDevTool(id?: string): void; killDevTool(): void; getCurrentRouteTl(type?: string): any; restart(): void; getById(id?: string, type?: string): any; createTl(opt: IOptions): gsap.core.Timeline | undefined; /** * 注册规则 * @param {*} direction * @param {*} parseFunc */ registerRule(direction: string, parseFunc: any): void; /** * 注册动画效果 * @param {*} effectName * @param {*} config */ registerEffect(effectName: string, config: IEffectConfig): void; /** * 注册页面动画线 * @param opt * @returns */ registerTl(opt: CreateTlOption): gsap.core.Timeline; setInitialStyle(target: string | Element): void; } declare const animate: Animate; export default animate;