import type { UseIntervalFnInterval, UseIntervalFnOptions } from "../use-interval-fn/index.js"; import type { Pausable } from "../use-pausable/index.js"; export interface UseNowOptions extends UseIntervalFnOptions { /** * Expose more controls * * @defaultValue false */ controls?: Controls; /** * Update interval in milliseconds, or use requestAnimationFrame * * @defaultValue requestAnimationFrame */ interval?: UseIntervalFnInterval; /** * Callback on each update */ callback?: (now: Date) => void; } export type UseNowReturns = Controls extends true ? { now: Date; } & Pausable : Date; /** * A React Hook that tracks the current date. */ export declare function useNow(options?: UseNowOptions): UseNowReturns; export declare function useNow(options: UseNowOptions): UseNowReturns;