import * as React from 'react';
import { type ClassValue } from 'clsx';
import { type FormatOptions } from 'date-fns';
export declare function cn(...inputs: ClassValue[]): string;
export declare function mergeRefs<T>(...refs: (React.Ref<T> | undefined)[]): React.RefCallback<T>;
/**
 * Formats a Date object into a localized string using date-fns.
 * Falls back to formatting the current date if the provided date is invalid.
 *
 * @param date - The Date object to format.
 * @param desiredFormat - A date-fns format string. Default: `'MMM d, yyyy h:mmaaa'`
 * @param options - date-fns `FormatOptions` for locale, week start day, etc.
 * @returns The formatted date string.
 *
 * @example
 * // Default English format
 * formatDate(new Date('2026-02-05T15:30:00'));
 * // => "Feb 5, 2026 3:30pm"
 *
 * @example
 * // Turkish locale
 * import { tr } from 'date-fns/locale';
 * formatDate(new Date('2026-02-05T15:30:00'), undefined, { locale: tr });
 * // => "Şub 5, 2026 3:30öö"
 *
 * @example
 * // Custom format
 * formatDate(new Date('2026-02-05'), 'dd/MM/yyyy');
 * // => "05/02/2026"
 */
export declare const formatDate: (date: Date, desiredFormat?: string, options?: FormatOptions) => string;
