import { CSSProperties } from 'react'; export type LottieVariant = 'progress' | 'upload' | 'success'; /** Frame range `[start, end]`. */ export type LottieSegment = [number, number]; /** Named animations bundled with the library — pass `src` to play a custom one instead. */ export declare const LOTTIE_ANIMATIONS: Record; export interface LottieAnimationProps { /** Bundled animation to play. */ variant?: LottieVariant; /** A custom `.lottie` URL, played instead of the `variant` one. */ src?: string; /** Defaults to the variant's own setting. */ loop?: boolean; autoplay?: boolean; /** Frames to play; a non-looping animation then holds the last one. */ segment?: LottieSegment; speed?: number; /** A number is px; a string any CSS length. */ size?: number | string; style?: CSSProperties; className?: string; } /** * Bare, embeddable Lottie player — no modal chrome, just the animation. * SuccessModal uses this internally for its full-screen variant; use it * directly to play the same bundled animations inline anywhere else * (e.g. a waiting-for-payment indicator next to a payment card). * * Hold-at-end: when a `segment` is set, the animation plays once and freezes * on the segment's end frame. This is deliberate and defensive — the bundled * dotlottie-web build ignores `loop: false` for segmented playback (it keeps * replaying) and its `complete`/`frame` events don't fire reliably, so we time * the freeze off the animation's own `duration` and pin the final frame. The * success checkmark, for instance, draws in and then STAYS instead of * flickering back to an empty first frame. Segment-less variants (spinners) * are intentionally left running. */ export declare const LottieAnimation: ({ variant, src, loop, autoplay, segment, speed, size, style, className, }: LottieAnimationProps) => import("react/jsx-runtime").JSX.Element; export default LottieAnimation;