import { type AnimationEvent, type CSSProperties, type RefObject } from "react"; interface UseLayoutParams { containerRef: RefObject; items: readonly ITEM[]; getItemKey: (item: ITEM) => string; } export declare function useLayout(params: UseLayoutParams): { itemStates: State[]; onAnimationEnd: (evt: AnimationEvent) => void; }; export interface State { state: "hidden" | "entering" | "present" | "exiting"; index: number; item: ITEM; key: string; animationDelay?: boolean; offset?: { top: number; left: number; }; style?: CSSProperties; } export declare function getMainElement(from: Element): HTMLElement | undefined; export declare function getKey(element: Element): string | undefined; export declare function getMainDataProps(itemState: State): { "data-animatedlist-key": string; }; export {};