import React from "react"; import { Variants } from "motion/react"; export interface AnimatedListItem { id: string | number; content: React.ReactNode; data?: any; virtualIndex?: number; style?: React.CSSProperties; } export interface AnimatedListProps { /** * List items to render */ items: AnimatedListItem[]; /** * Animation type for list items */ animation?: "slide" | "fade" | "scale" | "slideUp" | "slideDown" | "slideLeft" | "slideRight"; /** * Stagger delay between items in milliseconds */ staggerDelay?: number; /** * Animation duration for each item in milliseconds */ duration?: number; /** * Whether list items are reorderable */ reorderable?: boolean; /** * Whether to enable add/remove animations */ enableAddRemove?: boolean; /** * Layout type */ layout?: "vertical" | "horizontal" | "grid"; /** * Grid columns (for grid layout) */ gridColumns?: number; /** * Custom CSS class */ className?: string; /** * Custom item CSS class */ itemClassName?: string; /** * Custom styling */ style?: React.CSSProperties; /** * Callback when items are reordered */ onReorder?: (items: AnimatedListItem[]) => void; /** * Callback when item is clicked */ onItemClick?: (item: AnimatedListItem, index: number) => void; /** * Whether to show hover effects */ showHoverEffects?: boolean; /** * Custom variants for animations */ customVariants?: Variants; /** * Whether list is virtualized (for performance) */ virtualized?: boolean; /** * Item height for virtualization */ itemHeight?: number; /** * Container height for virtualization */ containerHeight?: number; /** * Whether to auto-start animations */ autoStart?: boolean; /** * Callback when all animations complete */ onAnimationComplete?: () => void; } /** * Animated list component with stagger animations and reordering */ export declare function AnimatedList({ items, animation, staggerDelay, duration, reorderable, enableAddRemove, layout, gridColumns, className, itemClassName, style, onReorder, onItemClick, showHoverEffects, customVariants, virtualized, itemHeight, containerHeight, autoStart, onAnimationComplete, }: AnimatedListProps): React.JSX.Element; /** * Preset animated list variations */ export declare const AnimatedListPresets: { /** * Simple fade in list */ FadeList: (props: Omit) => React.JSX.Element; /** * Scale up from center */ ScaleList: (props: Omit) => React.JSX.Element; /** * Slide up from bottom */ SlideUpList: (props: Omit) => React.JSX.Element; /** * Horizontal carousel-style list */ CarouselList: (props: Omit) => React.JSX.Element; /** * Grid with scale animation */ GridList: (props: Omit) => React.JSX.Element; /** * Reorderable task list */ TaskList: (props: Omit) => React.JSX.Element; }; export default AnimatedList; //# sourceMappingURL=animated-list.d.ts.map