import React from 'react'; import { ImageSourcePropType } from 'react-native'; import { SvgProps } from 'react-native-svg'; import type { AccessibilityPropsType } from '../../../utils/accessibility-helper'; import { ColorType } from '../../styles/Styles'; import { ButtonProps } from '../button/interface'; import { SwitchProps } from '../switch/interface'; import { CircularButtonProps } from '../../IotComponents/circularButton/interface'; import { SubtitleGroupProps } from '../subtitleGroup'; export declare const ACTION_TYPES: readonly ["navigate", "select", "none", "custom"]; export declare type ActionType = (typeof ACTION_TYPES)[number]; export interface ListItemProps extends AccessibilityPropsType { title: string; subtitle?: string | React.ReactElement; value?: string; onPress: () => void; onLongPress?: () => void; delayLongPress?: number; disabled?: boolean; actionType?: ActionType; badge?: boolean; leadingIcon?: React.ReactElement | ImageSourcePropType; customRender?: React.ReactElement; accessibilitySubtitle?: AccessibilityPropsType; accessibilityTitle?: AccessibilityPropsType; accessibilityText?: AccessibilityPropsType; } export declare const WIDGET_TYPES: readonly ["switch", "button", "circularButton", "custom"]; export declare type WidgetType = (typeof WIDGET_TYPES)[number]; export interface ListItemWithWidgetProps { widgetType?: WidgetType; title: string; subtitle?: string | React.ReactElement; checked?: boolean; disabled?: boolean; onPress?: () => void; onChange: (val: boolean) => void; colorType?: ColorType; accessibilitySubtitle?: AccessibilityPropsType; accessibilityTitle?: AccessibilityPropsType; buttonOption?: ButtonProps; switchOption?: SwitchProps; circularButtonOption?: CircularButtonProps; leadingIcon?: React.ReactElement; customRender?: React.ReactElement; } export interface ActionListItemProps extends AccessibilityPropsType { title: string; status?: 'normal' | 'warning'; colorType?: ColorType; onPress?: () => void; disabled?: boolean; }