/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import type { VariantLabels } from '../../motion/types'; import type { Target, TargetAndTransition, TargetResolver, TargetWithKeyframes, Transition } from '../../types'; import type { VisualElement } from '../types'; import type { AnimationType } from './types'; export type AnimationDefinition = VariantLabels | TargetAndTransition | TargetResolver; export type AnimationOptions = { delay?: number; transitionOverride?: Transition; custom?: any; type?: AnimationType; }; export type MakeTargetAnimatable = (visualElement: VisualElement, target: TargetWithKeyframes, origin?: Target, transitionEnd?: Target) => { target: TargetWithKeyframes; transitionEnd?: Target; }; /** * @internal */ declare function animateVisualElement(visualElement: VisualElement, definition: AnimationDefinition, options?: AnimationOptions): Promise; declare function stopAnimation(visualElement: VisualElement): void; declare function sortByTreeOrder(a: VisualElement, b: VisualElement): number; export { animateVisualElement, sortByTreeOrder, stopAnimation }; //# sourceMappingURL=animation.d.ts.map