import React from 'react'; import { Drawer as AntDrawer } from 'antd'; import type { DrawerProps as AntDrawerProps } from 'antd/es/drawer'; import type { ButtonProps } from '../button'; export * from 'antd/es/drawer'; export interface DrawerLocale { okText?: string; cancelText?: string; } export interface DrawerProps extends AntDrawerProps { onOk?: (e: React.MouseEvent) => void; onCancel?: (e: React.MouseEvent | React.KeyboardEvent) => void; confirmLoading?: boolean; footer?: React.ReactNode | boolean; footerExtra?: React.ReactNode; cancelText?: string; okText?: string; okButtonProps?: ButtonProps; locale?: DrawerLocale; } type CompoundedComponent = React.FC & { _InternalPanelDoNotUseOrYouWillBeFired: typeof AntDrawer._InternalPanelDoNotUseOrYouWillBeFired; }; declare const Drawer: CompoundedComponent; export default Drawer;