/// import PluginInstance from '../pluginInstance'; import { MainHooksType, noop, RenderPropsCore } from '../type'; declare type TabPanelUniqueKey = string; export interface AddPanelOpts { key: TabPanelUniqueKey; ComponentElement: React.ComponentClass | React.FunctionComponent; props?: (opts: RenderPropsCore) => Record; } declare class PageBasePlugin extends PluginInstance { panels: any[]; /** * 设置面板的hooks函数 * @param callback */ setHooks(type: MainHooksType, callback: noop, key?: string): void; /** * 当前索引 */ protected currentIndex: number; protected hooksFn: Record>; get activeIndex(): number; get callSaveBefore(): any[]; get callSaveAfter(): any[]; callCloseWindowBefore: () => any[]; callCloseWindowAfter: () => any[]; get callNextPanelBefore(): any; get callNextPanelAfter(): any; get callPrePanelBefore(): any; get callPrePanelAfter(): any; get callEditPageZoneCanRemoveCompBefore(): any[]; get callEditPropsParseBefore(): any[]; } export default PageBasePlugin;