import { type ReactNode } from "react"; import { type ThemeKeys } from "../../theme"; import { type RenderDragPreview, type RenderDropIndicator } from "./dnd"; import { type State } from "./layout"; export interface AnimatedListProps { ariaLabel: string; gap?: Gap; direction?: "horizontal" | "vertical"; items: ITEM[]; getItemKey: (item: ITEM) => string; /** A pure function used to render each item. */ children: ChildrenFunction; animationDuration?: AnimationDuration; stacked?: { /** Offset between stacked items */ offset: number; /** Scaling factor between items */ scaleFactor: number; /** Maximum number of items to stack, others will be hidden */ maxDepth: number; }; /** * When provided, enables drag & drop. * The bare minimum is to provide "onReorder" so you can actually re-order your data once the dnd has finished. * Drag & Drop can only be initiated from row zones that have the "draggable" attribute. */ dnd?: { scrollOffsetTop?: number; onReorder?: (items: ITEM[]) => void; onDragChange?: (isDragging: boolean) => void; renderDropIndicator?: RenderDropIndicator; renderDragPreview?: RenderDragPreview; }; } export declare function AnimatedList(props: AnimatedListProps): JSX.Element; type Gap = ThemeKeys<"space">; type AnimationDuration = ThemeKeys<"transitionDuration">; type ChildrenFunction = (item: ITEM, index: number, state: State["state"]) => ReactNode; export {};