export interface Item { id: string; element?: HTMLElement | null; value: string; } interface UseCollectionProps { wrap: boolean; } export declare function useCollection({ wrap }: UseCollectionProps): { registerItem: (item: Item) => () => import("react").MutableRefObject; item: (id?: string | null) => Item | null; getNext: (current: string) => Item | null; getPrevious: (current: string) => Item | null; getFirst: () => Item | null; getLast: () => Item | null; items: Item[]; }; export {};