import type { MaybeRef } from './_shared'; import type { Ref } from '@stacksjs/stx'; /** * Virtual list for efficiently rendering large lists. */ export declare function useVirtualList(source: MaybeRef, options: UseVirtualListOptions): UseVirtualListReturn; export declare interface UseVirtualListOptions { itemHeight: number overscan?: number } export declare interface UseVirtualListItem { data: T index: number } export declare interface UseVirtualListReturn { list: Ref[]> containerProps: { onScroll: (e: Event) => void style: { overflow: string, position: string } } wrapperProps: Ref<{ style: { width: string, height: string, marginTop: string } }> scrollTo: (index: number) => void }