export type useTimeDurationReturn = { /** Formatted start date (hydration-safe) */ started: string; /** Formatted end date (hydration-safe) */ ended: string; /** Whether the time duration has finished */ isFinished?: boolean; /** Formatted duration (hydration-safe) */ duration: string; /** Whether client hydration has completed */ hydrated: boolean; }; type useTimeDurationArgs = { start?: Date; end?: Date; /** Intl options for started/ended formatting */ dateFormat?: Intl.DateTimeFormatOptions; /** Placeholder shown before hydration or when date is missing */ fallback?: string; /** Whether to update the duration in real time (every second) */ liveUpdate?: boolean; /** Custom duration formatter if you don’t want the default "1t 2m 3s" */ formatDuration?: (ms: number) => string; }; export declare function useTimeDuration({ start, end, dateFormat, fallback, liveUpdate, formatDuration, }: useTimeDurationArgs): useTimeDurationReturn; export {};