import React from 'react'; import './index.less'; export interface DrawerProps { open?: boolean; onSuccess?: (result?: any) => void; onCancel?: () => void; } export interface DrawerOption { className?: string; prefixCls?: string; title?: string; width?: number; maskClosable?: boolean; cancelWithSuccess?: boolean; foot?: boolean; okText?: string; cancelText?: string; payload?: any; mask?: boolean; acudProps?: any; customCancelHandler?: () => Promise; } declare const createDrawer: (options: DrawerOption, dialogOptionText: any) => (WrappedComponent?: any) => React.ComponentClass; export default createDrawer;