/**
 * Formats a timestamp as `YYYY-MM-DD HH:mm:ss` in the local time zone. An unparseable
 * string is returned as-is, so a bad value from the API doesn't fail the command. An
 * invalid `Date` or a non-finite number formats as an empty string.
 *
 * @param timestamp - An ISO 8601 timestamp, epoch milliseconds, or a `Date`
 * @internal
 */
declare function formatDateTime(timestamp: Date | number | string): string;
/**
 * Formats a duration in milliseconds as an approximate, human readable length of
 * time, eg `less than a minute`, `5 minutes` or `2 days`. Use {@link formatElapsed}
 * where the exact length matters.
 *
 * @param ms - The duration in milliseconds
 * @internal
 */
declare function formatDuration(ms: number): string;
/**
 * Formats an elapsed time in milliseconds precisely, eg `450ms`, `12s`, `1m 30s` or
 * `2h 5m`. Two adjacent units are shown once the time reaches a minute, so a column
 * of values lines up. Use this for how long an operation took, where a second of
 * difference is meaningful; use {@link formatDuration} for an approximate description.
 *
 * @param ms - The elapsed time in milliseconds
 * @internal
 */
declare function formatElapsed(ms: number): string;
/**
 * Formats a date relative to now, eg `2 days ago` or `in 3 hours`.
 *
 * @param date - The date to describe
 * @param now - The reference point to compare against, defaults to the current time
 * @internal
 */
declare function formatTimeAgo(date: Date, now?: number): string;
/**
 * Parses a `YYYY-MM-DD` date into a `Date` at local midnight. Returns `undefined`
 * for anything that isn't a real calendar date in that exact format.
 *
 * @param value - The date string to parse
 * @internal
 */
declare function parseDateOnly(value: string): Date | undefined;
export { formatDateTime, formatDuration, formatElapsed, formatTimeAgo, parseDateOnly };
//# sourceMappingURL=dates.d.ts.map