import PropTypes from 'prop-types'; import React, { Component, type ComponentRef } from 'react'; import type { DrawerProps, InnerProps } from './types'; declare const Popup: import("../config-provider/types").ConfiguredComponentClass void; } | null; _containerNode: HTMLElement | undefined; _hasFocused: boolean; contentRef: React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }; gatewayRef: { child: Element | null | undefined; componentDidMount(): void; componentDidUpdate(): void; updateContainer: () => void; getChildNode(): Element | Text | null; saveChildRef: (ref: HTMLDivElement) => void; render(): React.ReactPortal | null; context: any; setState(state: import("../overlay/types").GatewayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").GatewayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null; _keydownEvents: { off: () => void; } | null; _clickEvents: { off: () => void; } | null; _touchEvents: { off: () => void; } | null; overlay: any | null; componentDidMount(): void; componentDidUpdate(prevProps: import("../overlay/types").OverlayV1Props): void; componentWillUnmount(): void; doAnimation(open: boolean, close: boolean): void; getAnimation(props: import("../overlay/types").OverlayV1Props): string | boolean | import("../overlay/types").AnimationObjectType; getAnimationByAlign(align: string | boolean | string[] | undefined): { in: string; out: string; }; addAnimationEvents(): void; handlePosition(config: { align: string[]; }): void; handleAnimateEnd(id: string): void; onEntering(): void; onLeaving(): void; onEntered(): void; onLeaved(): void; beforeOpen(): void; beforeClose(): void; setFocusNode(): void; getContent(): React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }; getContentNode(): HTMLElement | null; getWrapperNode(): Element | null; addDocumentEvents(): void; removeDocumentEvents(): void; handleDocumentKeyDown(e: KeyboardEvent): void; isInShadowDOM(node: Element | Text): boolean; getEventPath(event: Event | { path: string; }): string | EventTarget[] | undefined; composedPath(el: HTMLElement | null): (Document | Window | HTMLElement)[] | undefined; matchInShadowDOM(node: Element | Text, e: Event): boolean; handleDocumentClick(e: Event): void; handleMaskClick(e: React.MouseEvent): void; saveContentRef: (ref: React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }) => void; saveGatewayRef: (ref: { child: Element | null | undefined; componentDidMount(): void; componentDidUpdate(): void; updateContainer: () => void; getChildNode(): Element | Text | null; saveChildRef: (ref: HTMLDivElement) => void; render(): React.ReactPortal | null; context: any; setState(state: import("../overlay/types").GatewayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").GatewayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null) => void; getInstance(): any; render(): React.JSX.Element; context: any; setState(state: import("../overlay/types").OverlayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").OverlayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null; saveRef(ref: { _mouseNotFirstOnMask: boolean; _isForwardContent: boolean | null; overlay: { lastAlign: string | boolean | undefined; timeoutMap: { [key: string]: number; }; _isMounted: boolean; _isDestroyed: boolean; focusTimeout: number; _animation: { off: () => void; } | null; _containerNode: HTMLElement | undefined; _hasFocused: boolean; contentRef: React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }; gatewayRef: { child: Element | null | undefined; componentDidMount(): void; componentDidUpdate(): void; updateContainer: () => void; getChildNode(): Element | Text | null; saveChildRef: (ref: HTMLDivElement) => void; render(): React.ReactPortal | null; context: any; setState(state: import("../overlay/types").GatewayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").GatewayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null; _keydownEvents: { off: () => void; } | null; _clickEvents: { off: () => void; } | null; _touchEvents: { off: () => void; } | null; overlay: any | null; componentDidMount(): void; componentDidUpdate(prevProps: import("../overlay/types").OverlayV1Props): void; componentWillUnmount(): void; doAnimation(open: boolean, close: boolean): void; getAnimation(props: import("../overlay/types").OverlayV1Props): string | boolean | import("../overlay/types").AnimationObjectType; getAnimationByAlign(align: string | boolean | string[] | undefined): { in: string; out: string; }; addAnimationEvents(): void; handlePosition(config: { align: string[]; }): void; handleAnimateEnd(id: string): void; onEntering(): void; onLeaving(): void; onEntered(): void; onLeaved(): void; beforeOpen(): void; beforeClose(): void; setFocusNode(): void; getContent(): React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }; getContentNode(): HTMLElement | null; getWrapperNode(): Element | null; addDocumentEvents(): void; removeDocumentEvents(): void; handleDocumentKeyDown(e: KeyboardEvent): void; isInShadowDOM(node: Element | Text): boolean; getEventPath(event: Event | { path: string; }): string | EventTarget[] | undefined; composedPath(el: HTMLElement | null): (Document | Window | HTMLElement)[] | undefined; matchInShadowDOM(node: Element | Text, e: Event): boolean; handleDocumentClick(e: Event): void; handleMaskClick(e: React.MouseEvent): void; saveContentRef: (ref: React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }) => void; saveGatewayRef: (ref: { child: Element | null | undefined; componentDidMount(): void; componentDidUpdate(): void; updateContainer: () => void; getChildNode(): Element | Text | null; saveChildRef: (ref: HTMLDivElement) => void; render(): React.ReactPortal | null; context: any; setState(state: import("../overlay/types").GatewayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").GatewayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null) => void; getInstance(): any; render(): React.JSX.Element; context: any; setState(state: import("../overlay/types").OverlayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").OverlayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null; _timer: number | null; _hideTimer: number | null; _showTimer: number | null; componentWillUnmount(): void; handleVisibleChange(visible: boolean, type: string | object, e?: KeyboardEvent | MouseEvent | undefined): void; handleTriggerClick(e: KeyboardEvent | MouseEvent): void; handleTriggerKeyDown(e: KeyboardEvent): void; handleTriggerMouseEnter(e: MouseEvent): void; handleTriggerMouseLeave(e: MouseEvent, type: string | object): void; handleTriggerFocus(e: MouseEvent): void; handleTriggerBlur(e: MouseEvent): void; handleContentMouseDown(): void; handleContentMouseEnter(): void; handleContentMouseLeave(e: MouseEvent): void; handleMaskMouseEnter(): void; handleMaskMouseLeave(): void; handleRequestClose(type: string | object, e: MouseEvent): void; renderTrigger(): React.ReactElement> | undefined; renderContent(): React.ReactElement>; renderPortal(): React.JSX.Element; render(): (React.JSX.Element | undefined)[]; context: any; setState(state: import("../overlay/types").PopupState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").PopupState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null): void; render(): React.JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K_3> | null) | Pick<{}, K_3> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; }, Pick<{ overlay: { lastAlign: string | boolean | undefined; timeoutMap: { [key: string]: number; }; _isMounted: boolean; _isDestroyed: boolean; focusTimeout: number; _animation: { off: () => void; } | null; _containerNode: HTMLElement | undefined; _hasFocused: boolean; contentRef: React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }; gatewayRef: { child: Element | null | undefined; componentDidMount(): void; componentDidUpdate(): void; updateContainer: () => void; getChildNode(): Element | Text | null; saveChildRef: (ref: HTMLDivElement) => void; render(): React.ReactPortal | null; context: any; setState(state: import("../overlay/types").GatewayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").GatewayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null; _keydownEvents: { off: () => void; } | null; _clickEvents: { off: () => void; } | null; _touchEvents: { off: () => void; } | null; overlay: any | null; componentDidMount(): void; componentDidUpdate(prevProps: import("../overlay/types").OverlayV1Props): void; componentWillUnmount(): void; doAnimation(open: boolean, close: boolean): void; getAnimation(props: import("../overlay/types").OverlayV1Props): string | boolean | import("../overlay/types").AnimationObjectType; getAnimationByAlign(align: string | boolean | string[] | undefined): { in: string; out: string; }; addAnimationEvents(): void; handlePosition(config: { align: string[]; }): void; handleAnimateEnd(id: string): void; onEntering(): void; onLeaving(): void; onEntered(): void; onLeaved(): void; beforeOpen(): void; beforeClose(): void; setFocusNode(): void; getContent(): React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }; getContentNode(): HTMLElement | null; getWrapperNode(): Element | null; addDocumentEvents(): void; removeDocumentEvents(): void; handleDocumentKeyDown(e: KeyboardEvent): void; isInShadowDOM(node: Element | Text): boolean; getEventPath(event: Event | { path: string; }): string | EventTarget[] | undefined; composedPath(el: HTMLElement | null): (Document | Window | HTMLElement)[] | undefined; matchInShadowDOM(node: Element | Text, e: Event): boolean; handleDocumentClick(e: Event): void; handleMaskClick(e: React.MouseEvent): void; saveContentRef: (ref: React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }) => void; saveGatewayRef: (ref: { child: Element | null | undefined; componentDidMount(): void; componentDidUpdate(): void; updateContainer: () => void; getChildNode(): Element | Text | null; saveChildRef: (ref: HTMLDivElement) => void; render(): React.ReactPortal | null; context: any; setState(state: import("../overlay/types").GatewayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").GatewayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null) => void; getInstance(): any; render(): React.JSX.Element; context: any; setState(state: import("../overlay/types").OverlayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").OverlayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null; saveRef(ref: { _mouseNotFirstOnMask: boolean; _isForwardContent: boolean | null; overlay: { lastAlign: string | boolean | undefined; timeoutMap: { [key: string]: number; }; _isMounted: boolean; _isDestroyed: boolean; focusTimeout: number; _animation: { off: () => void; } | null; _containerNode: HTMLElement | undefined; _hasFocused: boolean; contentRef: React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }; gatewayRef: { child: Element | null | undefined; componentDidMount(): void; componentDidUpdate(): void; updateContainer: () => void; getChildNode(): Element | Text | null; saveChildRef: (ref: HTMLDivElement) => void; render(): React.ReactPortal | null; context: any; setState(state: import("../overlay/types").GatewayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").GatewayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null; _keydownEvents: { off: () => void; } | null; _clickEvents: { off: () => void; } | null; _touchEvents: { off: () => void; } | null; overlay: any | null; componentDidMount(): void; componentDidUpdate(prevProps: import("../overlay/types").OverlayV1Props): void; componentWillUnmount(): void; doAnimation(open: boolean, close: boolean): void; getAnimation(props: import("../overlay/types").OverlayV1Props): string | boolean | import("../overlay/types").AnimationObjectType; getAnimationByAlign(align: string | boolean | string[] | undefined): { in: string; out: string; }; addAnimationEvents(): void; handlePosition(config: { align: string[]; }): void; handleAnimateEnd(id: string): void; onEntering(): void; onLeaving(): void; onEntered(): void; onLeaved(): void; beforeOpen(): void; beforeClose(): void; setFocusNode(): void; getContent(): React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }; getContentNode(): HTMLElement | null; getWrapperNode(): Element | null; addDocumentEvents(): void; removeDocumentEvents(): void; handleDocumentKeyDown(e: KeyboardEvent): void; isInShadowDOM(node: Element | Text): boolean; getEventPath(event: Event | { path: string; }): string | EventTarget[] | undefined; composedPath(el: HTMLElement | null): (Document | Window | HTMLElement)[] | undefined; matchInShadowDOM(node: Element | Text, e: Event): boolean; handleDocumentClick(e: Event): void; handleMaskClick(e: React.MouseEvent): void; saveContentRef: (ref: React.ReactInstance & { headerNode: HTMLElement; bodyNode: HTMLElement; footerNode: HTMLDivElement; }) => void; saveGatewayRef: (ref: { child: Element | null | undefined; componentDidMount(): void; componentDidUpdate(): void; updateContainer: () => void; getChildNode(): Element | Text | null; saveChildRef: (ref: HTMLDivElement) => void; render(): React.ReactPortal | null; context: any; setState(state: import("../overlay/types").GatewayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").GatewayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null) => void; getInstance(): any; render(): React.JSX.Element; context: any; setState(state: import("../overlay/types").OverlayState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").OverlayState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null; _timer: number | null; _hideTimer: number | null; _showTimer: number | null; componentWillUnmount(): void; handleVisibleChange(visible: boolean, type: string | object, e?: KeyboardEvent | MouseEvent | undefined): void; handleTriggerClick(e: KeyboardEvent | MouseEvent): void; handleTriggerKeyDown(e: KeyboardEvent): void; handleTriggerMouseEnter(e: MouseEvent): void; handleTriggerMouseLeave(e: MouseEvent, type: string | object): void; handleTriggerFocus(e: MouseEvent): void; handleTriggerBlur(e: MouseEvent): void; handleContentMouseDown(): void; handleContentMouseEnter(): void; handleContentMouseLeave(e: MouseEvent): void; handleMaskMouseEnter(): void; handleMaskMouseLeave(): void; handleRequestClose(type: string | object, e: MouseEvent): void; renderTrigger(): React.ReactElement> | undefined; renderContent(): React.ReactElement>; renderPortal(): React.JSX.Element; render(): (React.JSX.Element | undefined)[]; context: any; setState(state: import("../overlay/types").PopupState | ((prevState: Readonly, props: Readonly) => import("../overlay/types").PopupState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; } | null): void; render(): React.JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K_3> | null) | Pick<{}, K_3> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; }, "overlay">>; interface CloseConfig { canCloseByEsc?: boolean; canCloseByCloseClick?: boolean; canCloseByMask?: boolean; } /** * Drawer * 继承 Overlay.Popup 的 API,除非特别说明 * */ export default class Drawer extends Component { static displayName: string; static propTypes: { prefix: PropTypes.Requireable; pure: PropTypes.Requireable; rtl: PropTypes.Requireable; trigger: PropTypes.Requireable; triggerType: PropTypes.Requireable>; width: PropTypes.Requireable>; height: PropTypes.Requireable>; closeable: PropTypes.Requireable>; cache: PropTypes.Requireable; closeMode: PropTypes.Requireable>; onClose: PropTypes.Requireable<(...args: any[]) => any>; afterOpen: PropTypes.Requireable<(...args: any[]) => any>; placement: PropTypes.Requireable; title: PropTypes.Requireable; headerStyle: PropTypes.Requireable; bodyStyle: PropTypes.Requireable; visible: PropTypes.Requireable; hasMask: PropTypes.Requireable; onVisibleChange: PropTypes.Requireable<(...args: any[]) => any>; animation: PropTypes.Requireable>; locale: PropTypes.Requireable; popupContainer: PropTypes.Requireable; v2: PropTypes.Requireable; afterClose: PropTypes.Requireable<(...args: any[]) => any>; }; static defaultProps: { prefix: string; triggerType: string; trigger: null; closeable: boolean; onClose: ((e: React.MouseEvent) => void) | undefined; hasMask: boolean; placement: string; locale: Partial<{ close: string; }> & { momentLocale?: string | undefined; }; }; private overlay; getAlign: (placement: string | undefined) => string; getAnimation: (placement: string | undefined) => false | { in: string; out: string; } | undefined; getOverlayRef: (ref: ComponentRef | null) => void; mapcloseableToConfig: (closeable: boolean | string) => CloseConfig; handleVisibleChange: (visible: boolean, reason: string, e: React.MouseEvent) => void; renderInner(closeable: InnerProps['closeable']): React.JSX.Element; render(): React.JSX.Element; } export {};