1 | import * as React from 'react';
|
2 | import type { DrawerProps as RcDrawerProps } from 'rc-drawer';
|
3 | import type { Placement } from 'rc-drawer/lib/Drawer';
|
4 | import type { DrawerClassNames, DrawerPanelProps, DrawerStyles } from './DrawerPanel';
|
5 | declare const SizeTypes: readonly ["default", "large"];
|
6 | type sizeType = (typeof SizeTypes)[number];
|
7 | export interface PushState {
|
8 | distance: string | number;
|
9 | }
|
10 | export interface DrawerProps extends Omit<RcDrawerProps, 'maskStyle'>, Omit<DrawerPanelProps, 'prefixCls'> {
|
11 | size?: sizeType;
|
12 | open?: boolean;
|
13 | afterOpenChange?: (open: boolean) => void;
|
14 |
|
15 | visible?: boolean;
|
16 |
|
17 | afterVisibleChange?: (open: boolean) => void;
|
18 | classNames?: DrawerClassNames;
|
19 | styles?: DrawerStyles;
|
20 | }
|
21 | declare const Drawer: React.FC<DrawerProps> & {
|
22 | _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
23 | };
|
24 | interface PurePanelInterface {
|
25 | prefixCls?: string;
|
26 | style?: React.CSSProperties;
|
27 | className?: string;
|
28 | placement?: Placement;
|
29 | }
|
30 |
|
31 | declare const PurePanel: React.FC<Omit<DrawerPanelProps, 'prefixCls'> & PurePanelInterface>;
|
32 | export default Drawer;
|