import React from 'react'; declare type Position = 'top' | 'right' | 'bottom' | 'left'; export interface DrawerProps { id?: string; visible?: boolean; defaultVisible?: boolean; position?: Position; mask?: boolean; maskClosable?: boolean; disabled?: boolean; root?: Element | null; onVisibleChange?: (visible: boolean) => void; className?: string; style?: React.CSSProperties; } export interface DrawerState { visible: boolean; } export declare class Drawer extends React.Component { static defaultProps: Partial; static getDerivedStateFromProps(props: DrawerProps): { visible: boolean | undefined; } | null; static toggle(id: string, visible?: boolean): void; state: DrawerState; constructor(props: DrawerProps); changeVisible: (visible: boolean) => void; handleMaskClick: () => void; render(): React.ReactPortal | null; } export default Drawer;