import { AMap } from './AMap'; export class MoveAnimation { moveTo(targetPosition: number[] | AMap.LngLat, opts?: MoveToOptions): void moveAlong(path: number[] | AMap.LngLat[], opts?: MoveAlongOptions): void startMove(): void stopMove(): void resumeMove(): void } type AnimationCallback = (index: number, data: AMap.LngLat) => number type EasingCallback = (passedTime: number) => number interface MoveAlongOptions { duration: number | AnimationCallback, speed: number | AnimationCallback, easing: EasingCallback, circlable: boolean, delay: number | AnimationCallback, aniInterval: number, autoRotation: boolean } interface MoveToOptions { duration?: number, speed?: number, easing?: EasingCallback, autoRotation?: boolean }