/// import { DSLQuery } from '@lingxiteam/dsl'; import { PluginManager } from './pluginManager'; import { noop } from './type'; declare const usePluginHooks: ({ plugins, onSave, goBack, setSaveLoading, type, panelKey, }: { plugins: PluginManager; onSave: any; goBack?: (() => void) | undefined; setSaveLoading: (v: boolean) => void; type?: "mainPanel" | "leftSidePanel" | "injectComponent" | undefined; panelKey: string; }) => { customDSLCore: any; meta: { createCompWithDSLNode: (attr: { type: string; platform: "h5" | "pc"; props?: Record | undefined; style?: import("react").CSSProperties | Record | undefined; customStyle?: import("react").CSSProperties | Record | undefined; events?: any[] | undefined; attribute?: Record | undefined; id?: string | undefined; }, context: { parentNode: import("@lingxiteam/dsl/lib/core/node/Node").default | import("@lingxiteam/dsl/lib/core/node/RootNode").default; dslQuery: DSLQuery; }) => import("@lingxiteam/dsl/lib/core/node/Node").default | null | undefined; createActionData: (options: import("../PageZone/hooks/useCreateActionData").ActionDataOptionsType, currData?: any) => any; api: {} | undefined; customComponent: {} | undefined; condition: {} | undefined; config: any; }; privateProps: { next: (props?: any) => any; pre: () => any; }; navBar: { goBackHandle: () => Promise; onSaveHandle: () => Promise; goNextHandle: () => Promise; goPreHandle: () => Promise; isFirstPanel: boolean; isLastPanel: boolean; activeIndex: number; navBarState: any; setNavBarState: any; }; setCustomDSLCore: (DSLCore: DSLQuery) => void; subscription: { saveBefore: (callback: noop) => void; saveAfter: (callback: noop) => void; closeWindowBefore: (callback: noop) => void; closeWindowAfter: (callback: noop) => void; prePanelBefore: (callback: noop) => void; prePanelAfter: (callback: noop) => void; nextPanelBefore: (callback: noop) => void; nextPanelAfter: (callback: noop) => void; editPageZoneCanRemoveCompBefore: (callback: noop) => void; editPropsParseBefore: (callback: noop) => void; }; }; declare type FunctionInfer = T extends (...args: any[]) => infer P ? P : never; export declare type usePluginHooksReturnType = FunctionInfer; export default usePluginHooks;