import { FormatBase } from "./format.base.js"; import { DateTimeFormatOptions } from "@odx/foundation"; declare global { interface HTMLElementTagNameMap { 'odx-format-date': OdxFormatDate; } } /** * @summary A component for formatting date values into human-readable strings using the Intl.DateTimeFormat API. * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat | `Intl.DateTimeFormat`} */ declare class OdxFormatDate extends FormatBase { static tagName: string; /** * The date value to format. * * Can be a `Date` object, a timestamp (number), or a date string. */ value?: number | string | Date | null; /** * The {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#datestyle | dateStyle} to use for formatting. * * Supports a custom `iso8601` value that formats the date as `YYYY-MM-DD` using the `sv-SE` locale, which produces an ISO 8601 compliant date string. */ dateStyle?: DateTimeFormatOptions['dateStyle'] | null; /** * The `value` property parsed as a `Date` object. */ get valueAsDate(): Date | null; protected transform(value: number | string | Date): string; } export { OdxFormatDate };