import React from 'react'; import { DialogProps } from '../../../../build/Dialog/type'; import { ModalProps } from '../../../../build/Modal/type'; import { ToasterProps } from '../../../../build/Toaster/type'; export interface HocProps extends ModalProps, DialogProps, ToasterProps { display?: boolean; onClose?: React.MouseEventHandler; zIndex?: number; } export interface HocState { isDisplay?: boolean; } declare const wrapperComponent: (WrappedComponent: any, args?: { show: boolean; }) => { new (props: HocProps | Readonly): { state: { isDisplay: boolean | undefined; show: boolean; }; unmountAnimationDelay: number; componentDidUpdate: (prevProps: any) => void; componentWillUnmount(): void; throttled(delay: any, fn: any): (...otherArg: any[]) => any; unmountComponent: (e: any) => void; render(): JSX.Element; context: any; setState(state: HocState | ((prevState: Readonly, props: Readonly) => HocState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; 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; 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; }; new (props: HocProps, context: any): { state: { isDisplay: boolean | undefined; show: boolean; }; unmountAnimationDelay: number; componentDidUpdate: (prevProps: any) => void; componentWillUnmount(): void; throttled(delay: any, fn: any): (...otherArg: any[]) => any; unmountComponent: (e: any) => void; render(): JSX.Element; context: any; setState(state: HocState | ((prevState: Readonly, props: Readonly) => HocState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; 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; 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; }; defaultProps: Partial; propTypes: { className: import("prop-types").Requireable; display: import("prop-types").Requireable; zIndex: import("prop-types").Requireable; onClose: import("prop-types").Requireable<(...args: any[]) => any>; }; contextType?: React.Context | undefined; }; export default wrapperComponent;