import * as React from 'react'; import type { ElementProps, FloatingContext } from '../types'; export interface Props { listRef: React.MutableRefObject>; activeIndex: number | null; onMatch?: (index: number) => void; enabled?: boolean; findMatch?: null | ((list: Array, typedString: string) => string | null | undefined); resetMs?: number; ignoreKeys?: Array; selectedIndex?: number | null; } /** * Provides a matching callback that can be used to focus an item as the user * types, often used in tandem with `useListNavigation()`. * @see https://floating-ui.com/docs/useTypeahead */ export declare const useTypeahead: ({ open, dataRef }: FloatingContext, { listRef, activeIndex, onMatch: unstable_onMatch, enabled, findMatch, resetMs, ignoreKeys, selectedIndex, }?: Props) => ElementProps;