import { ComponentType, PropsWithChildren, Ref, RefAttributes } from 'react'; import { ItemComponentType } from './ItemComponentType'; import { PlaceholderComponentType } from './PlaceholderComponentType'; import { Frame } from './useVisibleFrame'; import { AnimationParameters } from '../internal/smoothScrollToCenter'; import type { KeysOfType } from '../internal/KeysOfType'; export type ContainerComponentProps = PropsWithChildren>; export type ItemKey = KeysOfType | ((value: T) => string); export type EndlessListProps = { ItemComponent: ItemComponentType; PlaceholderComponent: PlaceholderComponentType; ContainerComponent: ComponentType; initialItems: TItemType[]; items: TItemType[]; itemKey: ItemKey; triggerDistance: number; onTopReached?: () => void; onBottomReached?: () => void; compareItems: (first: TItemType, second: TItemType) => number; focusedItem?: TItemType; jumpAnimation?: AnimationParameters; canStickToBottom?: boolean; onVisibleFrameChange?: (frame: Frame) => void; containerReference?: Ref; }; export declare const EndlessList: ({ ItemComponent, initialItems, items, itemKey, triggerDistance, onTopReached, onBottomReached, compareItems, PlaceholderComponent, jumpAnimation, focusedItem, ContainerComponent, canStickToBottom, onVisibleFrameChange, containerReference: propsContainerReference, }: EndlessListProps) => import("react/jsx-runtime").JSX.Element;