import { ConfigType } from 'dayjs'; /** * Number formatter instance configured for US locale with no minimum fraction digits */ export declare const NUMBER_FORMAT: Intl.NumberFormat; /** * Formats a number using US locale formatting * @param n - Number to format * @returns Formatted number string * @example * ```ts * formatNumber(1234567.89); // "1,234,568" * ``` */ export declare const formatNumber: (n: number) => string; /** * Returns local date string as `YYYY-MM-DD HH:mm` * 24-hour format, hours and mins only * * @param d * @returns */ export declare const formatDateTimeSimple: (d?: Date) => string; /** * Formats a date into a human-readable datetime string * @param d - Date to format (can be Date object, timestamp number, or bigint) * @returns Formatted string in "Day YYYY-MM-DD HH:MM AM/PM" format * @example * ```ts * formatDateTime(new Date()); // e.g., "Wed 2024-03-13 02:30 PM" * ``` */ export declare const formatDateTime: (d: Date | number | bigint) => string; /** * Formats a date into YYYY-MM-DD format * @param d - Date to format (can be Date object, timestamp number, or bigint) * @returns Formatted date string * @example * ```ts * formatDate(new Date()); // e.g., "2024-03-13" * ``` */ export declare const formatDate: (d: Date | number | bigint) => string; /** * Formats a date into time of day (HH:MM AM/PM) * @param d - Date to format (can be Date object, timestamp number, or bigint) * @returns Formatted time string * @example * ```ts * formatTimeOfDay(new Date()); // e.g., "02:30 PM" * ``` */ export declare const formatTimeOfDay: (d: Date | number | bigint) => string; /** * Formats a date relative to the current time (e.g., "2 hours ago", "in 3 days") * @param d - Date to format (accepts any dayjs ConfigType) * @returns Human-readable relative time string * @example * ```ts * formatTimeRelative(new Date(Date.now() - 3600000)); // "1 hour ago" * ``` */ export declare const formatTimeRelative: (d: ConfigType) => string; /** * Formats the current timestamp for use in filenames (filesystem-safe) * @returns Timestamp string in YYYY-MM-DDTHH-mm-ss format * @example * ```ts * formatTimestampForFilename(); // "2024-03-13T14-30-25" * ``` */ export declare const formatTimestampForFilename: () => string; /** * Formats a duration in milliseconds into a compact human-readable string. * @param ms - Duration in milliseconds * @returns Compact duration string like "3s", "14m 49s", "1h 2m 3s" * @example * ```ts * formatShortDuration(889000); // "14m 49s" * formatShortDuration(3000); // "3s" * formatShortDuration(3723000); // "1h 2m 3s" * ``` */ export declare function formatShortDuration(ms: number): string; //# sourceMappingURL=time.d.ts.map