/** * @description save 保存 * @description back 返回 * @description next 下一页 * @description pre 上一页 */ export declare type EventType = 'save' | 'back' | 'next' | 'pre'; export declare const stopRejectType = "__stopDefaultExecution__"; export interface StartExecutionOptions { methodFn: Function; props?: any; methodFnBefore: Function | Function[]; methodFnAfter: Function | Function[]; } /** * 用来保存事件管理 */ declare class PluginEvent { private recordStop; private config; get stop(): boolean; set stop(val: boolean); buildConfig(config: { startLoading: () => void; stopLoading: () => void; }): void; /** * 阻止报错原因 */ stopReject: { type: string; }; get stopExecution(): { stopDefaultExecution: () => void; }; private excMethod; startExecution({ methodFn, methodFnBefore, methodFnAfter }: StartExecutionOptions): Promise; /** * 开启表达式执行 * @param methodFn * @param props */ start({ methodFn, methodFnBefore, methodFnAfter }: StartExecutionOptions): Promise; } export default PluginEvent;