import { ForwardRefExoticComponent, PropsWithoutRef, ReactNode, RefAttributes } from 'react'; import { PopupProps } from '../popup'; import { ActionSheetItem, ActionSheetItemProps } from './Item'; import { BaseProps } from '../base'; export type { ActionSheetItemProps } from './Item'; export interface ActionSheetProps extends BaseProps, PopupProps { description?: ReactNode; itemList?: (string | ActionSheetItemProps)[]; cancel?: ReactNode; onSelect?: (index: number, item: string | ActionSheetItemProps) => void | Promise; onCancel?: () => void | Promise; onClose?: () => void | Promise; visible?: boolean; defaultVisible?: boolean; onVisible?: (visible: boolean) => void; maskClosable?: boolean; } export interface ActionSheetRef { } export interface ActionSheetFC extends ForwardRefExoticComponent & RefAttributes> { Item: typeof ActionSheetItem; } export declare const ActionSheet: ActionSheetFC; export default ActionSheet;