import type { BasicComponentProps } from "../../../types";
import type { CnActionSheetOptionProps } from './cn-action-sheet-option-props';
export interface CnActionSheetProps<T = CnActionSheetOptionProps> extends Omit<BasicComponentProps, 'onClick'> {
    /**
     * 是否展示
     */
    visible: boolean;
    /**
     * 提示信息
     */
    message?: string;
    /**
     * 选项列表
     */
    options: T[];
    /**
     * 选项文本对齐方式
     */
    align?: 'left' | 'center' | 'right';
    /**
     * 点击选项时的回调
     */
    onClick?: (option: T, index: number, e?: any) => void;
    /**
     * 关闭时的回调，点击选项时，reason为选项序号，点击蒙层关闭时，reason为"mask"，点击取消按钮关闭时，reason为"cancel"
     */
    onClose?: (reason?: string | number, e?: any) => void;
    /**
     * 是否展示底部取消按钮
     */
    showCancel?: boolean;
    /**
     * 自定义取消按钮文案
     */
    cancelText?: string;
    /**
     * 遮罩是否可关闭
     */
    maskClosable?: boolean;
    /**
     * 危险操作的 index 标记
     */
    destructiveIndex?: number;
    /**
     * 禁用操作的 index 标记数组
     */
    disabledIndexes?: number[];
}
