import React from 'react'; import { SheetProps } from '../sheet'; export declare const Options: ({}: ShowOptions) => void; export interface ShowOptions extends Pick { /** * 确认标题 * @default 提示 */ title?: React.ReactNode; /** * 确定文字 * @default 确定 */ okText?: React.ReactNode; /** * 确认事件,传入promise方法,可以阻止点击确认后弹窗关闭 */ onOk?: () => Promise; /** * 确定按钮颜色 */ okTextColor?: string; /** * 取消文字 * @default 取消 */ cancelText?: React.ReactNode; /** * 弹窗内容 */ content: React.ReactNode; /** * 显示取消 */ showCancel?: boolean; /** * 自定义footer */ footer?: React.ReactNode; /** * 标题类名 */ titleCls?: string; /** * 弹窗底部类名 */ footerCls?: string; /** * 内容类名 */ contentCls?: string; /** * 确定按钮类名 */ okCls?: string; /** * 按钮类名 */ btnCls?: string; /** * 类名 */ className?: string; /** * 弹窗主体类名 */ bodyCls?: string; /** * 弹窗样式 */ wrapStyle?: React.CSSProperties; /** * 主体样式 */ bodyStyle?: React.CSSProperties; /** * 默认转为单位rpx * @default 80vw */ width?: number; } declare const Modal: { (): React.JSX.Element; show(options: ShowOptions): Promise; hide(): void | undefined; }; export default Modal;