import * as React from 'react'; import { Pressable } from 'react-native'; import type { ZestUIComponentProps } from '../../types'; /** * A button that clears the selection and the input text. * Renders a ``. * * It renders nothing while there is nothing to clear, unless `keepMounted` is * set. It has no label of its own — pass `accessibilityLabel`. * * Unlike the web version it does **not** return focus to the input: with * `openOnFocus` that would reopen the list. */ export declare function ComboboxClear(componentProps: ComboboxClear.Props): React.ReactElement> | null; export interface ComboboxClearState { /** * Whether the component should ignore user interaction. */ disabled: boolean; /** * Whether the button is currently pressed. */ pressed: boolean; /** * Whether there is anything to clear. */ visible: boolean; } export interface ComboboxClearProps extends Omit, 'onPress'> { /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; /** * Whether to keep the button mounted while there is nothing to clear, so it * can be hidden with a style instead. Required to animate it out — nothing in * React Native can report that an exit animation finished. * @default false */ keepMounted?: boolean | undefined; } export declare namespace ComboboxClear { type State = ComboboxClearState; type Props = ComboboxClearProps; } //# sourceMappingURL=ComboboxClear.d.ts.map