export interface PollingState { data: T | null; error: any; running: boolean; start: () => void; stop: () => void; } export interface PollingOptions { immediate?: boolean; pause?: boolean; } /** * A hook that periodically executes an async function. * @param fn The async function to execute periodically * @param intervalMs The interval between executions in milliseconds * @param opts Configuration options for polling behavior * @returns PollingState object containing data, error, running state, and control functions */ export declare function usePolling(fn: () => Promise, intervalMs: number, opts?: PollingOptions): PollingState;