import * as React from 'react'; import { Text } from 'react-native'; import type { ZestUIComponentProps } from '../../types'; /** * Announces how the list changed as the query narrows it. * Renders a `` as a polite live region. * * Filtering happens without moving focus, so a screen reader is never told that * the list behind the input just changed. This part is what tells it. Give it * your own wording through `children` or a render function — the default is * English: * * ```tsx * * {(state) => (state.count === 0 ? 'Sonuç yok' : `${state.count} sonuç`)} * * ``` * * It renders nothing while the list is closed, so a closed combobox announces * nothing. * * `accessibilityLiveRegion` is Android-only, so on iOS the same text is spoken * through `AccessibilityInfo.announceForAccessibility` instead — announcing on * both would say it twice on Android. */ export declare function ComboboxStatus(componentProps: ComboboxStatus.Props): React.ReactElement> | null; export interface ComboboxStatusState { /** * How many selectable items survived filtering, with groups flattened away. */ count: number; /** * Whether the list is currently open. */ open: boolean; } export interface ComboboxStatusProps extends Omit, 'children'> { /** * The announcement. A function receives the state, which is how you localize * it. Defaults to an English result count. */ children?: React.ReactNode | ((state: ComboboxStatusState) => React.ReactNode); } export declare namespace ComboboxStatus { type State = ComboboxStatusState; type Props = ComboboxStatusProps; } //# sourceMappingURL=ComboboxStatus.d.ts.map