import type { Ref } from '@stacksjs/stx'; /** * Call a function on a regular interval. * Provides pause/resume controls and auto-cleanup on unmount. * * @param cb - The callback to invoke on each interval tick * @param interval - Interval duration in milliseconds (default 1000) * @param options - Configuration options * @returns Controls to pause, resume, and check active state */ export declare function useIntervalFn(cb: () => void, interval?: number, options?: { immediate?: boolean }): UseIntervalFnReturn; declare interface UseIntervalFnReturn { pause: () => void resume: () => void isActive: Ref }