import { type DependencyList, type EffectCallback } from 'react'; /** * Custom useEffect hook that runs an effect function up to `n` times as long * as a given `condition` value is true. * * The effect will be evaluated whenever the dependency array, the value of `n`, * or the `condition` value changes. If the counter is < n and the condition is * true, the effectCallback will be run, and the counter will be incremented. * Note that the counter will never get reset even if parameters change. * @param effectCallback Effect function to run * @param effectCallbackDependencies Dependencies for the effect function * @param n Number of times to run when condition is met * @param condition Condition that must be true to run */ export declare function useEffectNTimesWhen(effectCallback: EffectCallback, effectCallbackDependencies: DependencyList, n: number, condition: boolean): void; export default useEffectNTimesWhen; //# sourceMappingURL=useEffectNTimesWhen.d.ts.map