import React from 'react';
import { BaseComponent } from '../component';
import { NGObserver } from '../util';
/**
* page页面高阶函数,返回page实例
* @param Comp 页面组件
*/
export declare function pageHoc
(Comp: any): {
new (props: P & {
id?: string;
}): {
script?: (() => void) | undefined;
destroyFloatMenu?: (() => void) | undefined;
unmount: boolean;
asyncEffectCount: number;
compRef: React.RefObject>;
_observer: NGObserver;
href: string;
readonly busState: any;
readonly customFormType: "app" | "pc";
readonly isApp: boolean;
readonly busType: any;
getDvaState(): any;
getLang(key?: any, dv?: any): any;
/**
* 初始化页面的layout信息(自定义界面元数据信息)
* 保证页面组件加载时页面布局文件已经加载完成
*/
componentDidMount(): Promise;
destroyPage(): void;
componentWillUnmount(): void;
render(): JSX.Element;
context: any;
setState(state: any, 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;
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;
};
contextType?: React.Context | undefined;
};