type useRunAsyncOnceProps = { asyncFunction: () => Promise; context: string; runCondition?: boolean; retry?: number; }; /** * Custom react hook to run an asynchronous callback function only once. Optionally: based on a condition. * * @param {Function} params.asyncFunction - The asynchronous function to run. * @param {string} params.context - Additional context information for debugging and error reporting. * @param {boolean} params.runCondition - Optional condition to determine when to run the async call. * @param {number} params.retry - Optional number of times to retry the asyncFunction if it fails. Defaults to 0. * @since 2.12.0 * @example * useRunAsyncOnce({ * runCondition: true, * asyncFunction: async () => { * // Your async code here * }, * context: 'fetching data from task list', * retry: 3 * }); */ export declare function useRunAsyncOnce({ asyncFunction, runCondition, context, retry }: useRunAsyncOnceProps): void; export {};