/** * useActiveExecute Hook * 返回一个函数,该函数接收一个回调函数,并返回一个包装后的函数 * 包装后的函数只在 isActive 为 true 时执行原始回调 * * @example * ```tsx * const { executeIfActive } = useActiveExecute(); * * // 创建一个包装函数用于事件监听 * const handleChange = (data) => { * console.log('data:', data); * }; * * // 返回的函数会在被调用时检查 isActive * pisellos.effects.on('event', executeIfActive(handleChange)); * ``` */ export declare const useActiveExecute: () => { executeIfActive: (this: unknown, fn: (...args: any[]) => any) => (...args: any[]) => any; };