import type { Ref } from '@stacksjs/stx'; /** * Poll a function with setTimeout. Waits for the function to complete before scheduling the next. */ export declare function useTimeoutPoll(fn: () => Promise | void, interval: number, options?: { immediate?: boolean }): UseTimeoutPollReturn; export declare interface UseTimeoutPollReturn { isActive: Ref pause: () => void resume: () => void }