import { VNode } from 'vue'; import { DefaultSlots, ScopedSlot } from '../../utils/types'; import { PopupMixinProps } from '../../mixins/popup/type'; export interface ActionSheetItem { /** * The title of item. */ name: string; /** * The subtitle of item. */ subname?: string; /** * If in loading status or not. */ loading?: boolean; /** * Disabled the item */ disabled?: boolean; /** * Apply custom CSS class name to item. */ className?: string; /** * Optional callback when item is clicked. */ callback?: (item: ActionSheetItem) => void; /** * Customize extra content of item, can overwrite the `$scopedSlot.extra`. */ extra?: (props: ActionSheetExtraSlotProps) => VNode; } export declare type ActionSheetAlign = 'center' | 'left'; export declare type ActionSheetProps = PopupMixinProps & { title?: string; actions?: ActionSheetItem[]; cancelText?: string; showClose?: boolean; align?: ActionSheetAlign; divider?: boolean; closeOnClickAction?: boolean; safeAreaInsetBottom?: boolean; duration: number; }; export interface ActionSheetExtraSlotProps { item: ActionSheetItem; index: number; } export declare type ActionSheetScopedSlots = DefaultSlots & { extra?: ScopedSlot; }; declare const _default: import("../../utils/create/component").TsxComponent; export default _default;