import * as React from 'react'; import { View } from 'react-native'; import type { ComboboxEntry } from '../store/ComboboxStore'; import type { ZestUIComponentProps } from '../../types'; /** * Renders the filtered items through a render function. * Renders a ``. * * ```tsx * {(item) => } * ``` * * When `items` holds groups, the render function receives each group instead — * wrap it in `Combobox.Group` and render its items with `Combobox.Collection`. * * The filtered entries are also on `state.items`, which is what lets a `render` * function hand them to a virtualized list instead. */ export declare function ComboboxList(componentProps: ComboboxList.Props): React.ReactElement>; export interface ComboboxListState { open: boolean; /** * Whether no selectable item survived filtering. Groups do not count — an * empty group is not content. */ empty: boolean; /** * The entries left after filtering, in order — the same ones `children` * receives. A `render` function needs them to feed a virtualized list, which * takes its rows from `data` rather than from children. */ items: ComboboxEntry[]; } export interface ComboboxListProps extends Omit, 'children'> { /** * Renders one entry. Omit it when a `render` function draws the rows itself — * a `FlatList`, say, which takes them from `data`. */ children?: ((entry: ComboboxEntry, index: number) => React.ReactNode) | undefined; } export declare namespace ComboboxList { type State = ComboboxListState; type Props = ComboboxListProps; } //# sourceMappingURL=ComboboxList.d.ts.map