import { relativeTime } from "@intlayer/core/formatters"; /** * Client-side React hook for accessing a localized relative time formatter. * * This hook: * - Reads the current locale from {@link useLocaleBase}. * - Creates a new relative time formatter with {@link createRelativeTime}. * - Returns a function that can format time differences into localized strings. * * Example: * ```tsx * const relativeTime = useRelativeTime(); * const formatted = relativeTime(new Date("2024-08-01"), new Date()); * // e.g., "2 weeks ago" * ``` * * @returns {ReturnType} A relative time formatting function * bound to the current client locale. */ export declare const useRelativeTime: () => (...args: Parameters) => string; //# sourceMappingURL=useRelativeTime.d.ts.map