import React from 'react';
import { BaseComponent } from '../component';
import { Observer } 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>;
paramMD5: string;
observer: Observer;
buttonRightName: string;
buttonRightCahce: Map;
unSub: Function[];
_appTitle: string;
appTitle: string;
readonly busState: any;
readonly formType: "custom_app" | "custom_pc" | "sys_app" | "sys_pc";
readonly isApp: boolean;
readonly isCustomForm: boolean;
readonly busType: any;
getDvaState(): any;
getLang(key?: any, dv?: any): any;
subscribeButtonRights: (callback: any, type: string, condition?: Function) => () => void;
setButtonRights: (params: {
disableBtn?: string[];
hideBtn?: string[];
replace?: boolean;
}, type?: string, data?: any) => void;
/**
* 页面定义的按钮权限
*/
getPageButtonRightKey: ({ rightName, funcName }?: {
rightName?: string | undefined;
funcName?: string | undefined;
}) => {
rightName: string;
funcName: string;
};
/**
* 刷新按钮权限
*/
refreshButtonRights({ orgId, pageName, funcName, projectId, forceUpdate }?: {
orgId?: string | undefined;
pageName?: string | undefined;
projectId?: string | undefined;
funcName?: string | undefined;
forceUpdate?: boolean | undefined;
}): Promise;
/**
* 初始化页面的layout信息(自定义界面元数据信息)
* 保证页面组件加载时页面布局文件已经加载完成
*/
componentDidMount(): Promise;
destroyPage(): void;
componentWillUnmount(): void;
render(): import("react/jsx-runtime").JSX.Element;
context: unknown;
setState(state: any, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly;
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;
};