/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import React, { FC, ReactNode } from 'react'; import { ButtonProps, ButtonType } from '../button'; import { DrawerProps as OriginDrawerProps } from './component'; import { WrapThrottleOptions } from '../_util/wrapThrottle'; export * from './component'; declare type EventType = React.KeyboardEvent | React.MouseEvent; export interface DrawerProps extends OriginDrawerProps { visible: boolean; title?: string | ReactNode; width?: number; onClose?(e: EventType): void; size?: 'small' | 'default' | 'large' | 'super'; footer?: string | ReactNode; leftWrappedFooter?: string | ReactNode; okText?: string | ReactNode; okType?: ButtonType; okButtonProps?: ButtonProps; onOk?(event: React.MouseEvent): void; confirmLoading?: boolean; cancelText?: string | ReactNode; cancelButtonProps?: ButtonProps; onCancel?(event: React.MouseEvent): void; bodySpacingNone?: boolean; loading?: boolean; isSubDrawer?: boolean; onBack?(e: EventType): void; showCancel?: boolean; okDebounce?: WrapThrottleOptions; okThrottle?: WrapThrottleOptions; } export declare const Drawer: FC; export default Drawer;