import { LitElement } from 'lit'; /** * @element nve-format-relative-time * @description Formats a date/time value as localized relative text using the Intl.RelativeTimeFormat API. Renders inside a semantic time element. * Options mirror the Intl.RelativeTimeFormat API. When unit is 'auto', the component selects the best unit based on the time difference. * @since 0.0.0 * @entrypoint \@nvidia-elements/core/format-relative-time * @slot - Date string to format (such as 2023-07-28T04:20:17.434Z). Serves as fallback before hydration. */ export declare class FormatRelativeTime extends LitElement { #private; static styles: import('lit').CSSResult[]; static readonly metadata: { tag: string; version: string; }; /** * Optional date string for values supplied by JavaScript or bound data. * By default, the component formats the element's text content, which also serves as the SSR fallback. * When both are present, this property takes precedence. */ date?: string; /** * Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default. */ locale?: string; /** * Numeric formatting: 'always' | 'auto'. When 'auto', enables natural language forms such as 'yesterday' instead of '1 day ago'. */ numeric: 'always' | 'auto'; /** * Formatting length: 'long' | 'short' | 'narrow'. Controls verbosity (such as '3 days ago' vs '3d ago'). Maps to Intl.RelativeTimeFormat style option. */ formatStyle: 'long' | 'short' | 'narrow'; /** * Time unit: 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year' | 'auto'. Use 'auto' to let the component select the most appropriate unit based on the time difference. */ unit: 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year' | 'auto'; /** * When present, auto-updates the displayed relative time at appropriate intervals. */ sync: boolean; connectedCallback(): void; disconnectedCallback(): void; updated(changed: Map): void; render(): import('lit').TemplateResult<1>; }