import { Timestamp } from 'firebase/firestore'; /** * Safely converts a value into a native JavaScript `Date` instance. * * Supports Firestore `Timestamp` instances, existing `Date` objects, ISO date strings, * and unix millisecond timestamps. * * @param value The value to convert. * @returns A valid `Date` instance, or `undefined` if the value is null/undefined or invalid. * * @example * ```typescript * toDate(doc.get('startOn')); // Date from Timestamp * toDate('2026-06-15T09:00:00Z'); // Date from ISO string * toDate(null); // undefined * ``` */ export declare function toDate(value: Timestamp | Date | string | number | null | undefined): Date | undefined; /** * Safely converts a value into a Firestore `Timestamp` instance. * * Supports native JavaScript `Date` instances, existing `Timestamp` instances, * ISO date strings, and unix millisecond timestamps. * * @param value The value to convert. * @returns A Firestore `Timestamp` instance, or `null` if the value is null/undefined or invalid. * * @example * ```typescript * toTimestamp(new Date()); // Timestamp * toTimestamp('2026-06-15'); // Timestamp * toTimestamp(null); // null * ``` */ export declare function toTimestamp(value: Date | Timestamp | string | number | null | undefined): Timestamp | null; //# sourceMappingURL=date.d.ts.map