/** * Custom hook to call a function within a given interval. * * @param fn Callback function to be executed at each interval * @param interval Interval time in milliseconds * @returns An object containing start, stop, and active state * * @example * const { start, stop, active } = useInterval(() => { * console.log("Interval executed"); * }, 1000); * start(); // To start the interval * stop(); // To stop the interval * console.log(active); // To check if the interval is active * */ export declare function useInterval(fn: () => void, interval: number): { start: () => void; stop: () => void; active: boolean; };