import { Ref } from "react"; import { GestureResponderEvent, TextInputProps } from "react-native"; import { WithTestID } from "src/utils/types"; type SearchInputPressableProps = { onPress: (event: GestureResponderEvent) => void; }; type SearchInputActionProps = { pressable: SearchInputPressableProps; keepCancelVisible?: never; onCancel?: never; onChangeText?: never; value?: never; } | { pressable?: never; keepCancelVisible?: boolean; onCancel: (event: GestureResponderEvent) => void; onChangeText: (value: string) => void; value: string; }; type SearchInputProps = WithTestID<{ ref?: Ref; accessibilityLabel: TextInputProps["accessibilityLabel"]; cancelButtonLabel: string; clearAccessibilityLabel: string; placeholder: TextInputProps["placeholder"]; autoFocus?: TextInputProps["autoFocus"]; }> & SearchInputActionProps; export type SearchInputRef = { focus: () => void; }; export declare const SearchInput: ({ accessibilityLabel, cancelButtonLabel, clearAccessibilityLabel, placeholder, autoFocus, keepCancelVisible, onCancel, onChangeText, pressable, testID, value, ref }: SearchInputProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=SearchInput.d.ts.map