import React from 'react'; import { TouchableWithoutFeedback } from 'react-native'; import type { SharedInputProps } from '@coinbase/cds-common/types/InputBaseProps'; import type { SharedAccessibilityProps } from '@coinbase/cds-common/types/SharedAccessibilityProps'; import type { SharedProps } from '@coinbase/cds-common/types/SharedProps'; import { type InputStackBaseProps } from './InputStack'; export type SelectBaseProps = SharedProps & Omit & Pick< InputStackBaseProps, 'width' | 'disabled' | 'variant' | 'focused' | 'startNode' | 'labelVariant' > & Pick< SharedAccessibilityProps, 'accessibilityLabel' | 'accessibilityLabelledBy' | 'accessibilityHint' > & { children?: React.ReactNode; /** Pass a value that will prepopulate the select input. This will replace the placeholder text. */ value?: string; /** Optional label for selected value when using a value/label object model */ valueLabel?: string; /** Event handler for when the Select Input trigger is pressed */ onPress?: () => void; /** Optional string placed above the input (or within if compact is enabled) to indicate purpose of the input */ label?: string; /** Callback that is fired whenever a select option is selected */ onChange?: ((newValue: string) => void) | React.Dispatch>; }; export type SelectProps = SelectBaseProps; /** * @deprecated Please use the new Select alpha component instead. This will be removed in a future major release. * @deprecationExpectedRemoval v9 */ export declare const Select: React.MemoExoticComponent< ({ ref, children, placeholder, label, helperText, variant, value: defaultValue, valueLabel, disabled, testID, width, accessibilityLabel, accessibilityHint, compact, onPress, startNode, onChange, labelVariant, }: SelectProps & { ref?: React.Ref; }) => import('react/jsx-runtime').JSX.Element >; //# sourceMappingURL=Select.d.ts.map