import { DrawerProps } from './interface'; import React from 'react'; import './index.less'; declare function Drawer({ style, getContainer, onClose, className, onOk, cancelText, okText, children, ...props }: DrawerProps): JSX.Element; declare namespace Drawer { var defaultProps: { getContainer: boolean; className: string; cancelText: string; okText: string; }; var useDrawer: (prefixCls?: string) => { open: (options: IUseDrawerHookState) => void; close: () => void; }; var RefDrawer: React.ForwardRefExoticComponent & React.RefAttributes>; } export interface IUseDrawerHookState { content?: React.ReactNode; visible?: boolean; title?: React.ReactNode; onOk?: () => void; width?: number | string; className?: string; } export interface IUseDrawerHookState { content?: React.ReactNode; visible?: boolean; title?: React.ReactNode; onOk?: () => void; width?: number | string; className?: string; } export interface IRefDrawerMethodsProps { open: (options: IUseDrawerHookState) => void; close: () => void; } export default Drawer;