import { ThemeIcon } from "../../../common/themables.js"; export declare enum ClickAnimation { Confetti = 1, FloatingIcons = 2, PulseWave = 3, RadiantLines = 4 } export interface IAnimationTarget { readonly element: HTMLElement; readonly rect: DOMRectReadOnly; readonly container: HTMLElement; } /** Captures the animation's position and container before the element can move or be removed. */ export declare function captureAnimationTarget(element: HTMLElement): IAnimationTarget; /** * Defines a range used to vary a confetti animation value. */ export interface IConfettiAnimationRange { readonly min: number; readonly max: number; } /** * Controls the timing and vertical travel of a confetti burst. */ export interface IConfettiAnimationOptions { /** Time particles take to reach their apex, in milliseconds. */ readonly launchDuration?: IConfettiAnimationRange; /** Time particles take to fall from their apex, in milliseconds. */ readonly fallDuration?: IConfettiAnimationRange; /** Final downward travel range in pixels. */ readonly fallDistance?: IConfettiAnimationRange; } /** * Bounce the element with a given scale and optional rotation. */ export declare function bounceElement(element: HTMLElement, opts: { scale?: number[]; rotate?: number[]; translateY?: number[]; duration?: number; }): void; /** * Confetti: independent pixel squares arc upward, drift, and fall. */ export declare function triggerConfettiAnimation(target: HTMLElement | IAnimationTarget, options?: IConfettiAnimationOptions): void; /** * Floating Icons: small icons float upward from the element. */ export declare function triggerFloatingIconsAnimation(target: HTMLElement | IAnimationTarget, icon: ThemeIcon): void; /** * Pulse Wave: expanding rings and sparkle dots radiate from the element center. */ export declare function triggerPulseWaveAnimation(target: HTMLElement | IAnimationTarget): void; /** * Radiant Lines: lines and dots emanate outward from the element center. */ export declare function triggerRadiantLinesAnimation(target: HTMLElement | IAnimationTarget): void; /** * Triggers the specified click animation on a live element or a captured target. */ export declare function triggerClickAnimation(target: HTMLElement | IAnimationTarget, animation: ClickAnimation, icon?: ThemeIcon): void;