import React from 'react'; import { SvgProps } from 'react-native-svg'; import type { AccessibilityPropsType } from '../../../utils/accessibility-helper'; export interface SelectSubItemOption { value: string | number; title: string; trailingValue?: string; showNavigate?: boolean; disabled?: boolean; onPress?: () => void; } export interface SelectItemOption { value: string | number; title: string; subtitle?: string; leadingIcon?: React.ReactElement; disabled?: boolean; subItems?: SelectSubItemOption[]; } export interface SelectListProps extends AccessibilityPropsType { options: SelectItemOption[]; value?: string | number; onChange?: (value: string | number) => void; onSelect?: (item: SelectItemOption) => void; selectedAlign?: 'left' | 'right'; isGroup?: boolean; } interface SelectItemRightProps { item: SelectItemOption; selected: boolean; onPress: () => void; colorToken: any; } interface SelectItemLeftProps { item: SelectItemOption; selected: boolean; onPress: () => void; colorToken: any; } interface SelectSubItemProps { subItem: SelectSubItemOption; colorToken: any; } export type { SelectItemRightProps, SelectItemLeftProps, SelectSubItemProps };