/** * Copyright Aquera Inc 2023 * * This source code is licensed under the BSD-3-Clause license found in the * LICENSE file in the root directory of this source tree. */ import { CSSResultArray, TemplateResult } from 'lit'; import NileElement from '../internal/nile-element'; /** * Nile format-date component. * * @tag nile-format-date * */ export declare class NileFormatDate extends NileElement { /** * The styles for nile-format-date * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]` */ static get styles(): CSSResultArray; /** * The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly * recommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format * in JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString). */ date: Date | string; /** The format for displaying the weekday. */ weekday: 'narrow' | 'short' | 'long'; /** The format for displaying the era. */ era: 'narrow' | 'short' | 'long'; /** The format for displaying the year. */ year: 'numeric' | '2-digit'; /** The format for displaying the month. */ month: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long'; /** The format for displaying the day. */ day: 'numeric' | '2-digit'; /** The format for displaying the hour. */ hour: 'numeric' | '2-digit'; /** The format for displaying the minute. */ minute: 'numeric' | '2-digit'; /** The format for displaying the second. */ second: 'numeric' | '2-digit'; /** The format for displaying the time. */ timeZoneName: 'short' | 'long'; /** The time zone to express the time in. */ timeZone: string; /** The format for displaying the hour. */ hourFormat: 'auto' | '12' | '24'; /** The separator for the date format. */ dateSeparator: '-' | '/'; formatDate(dateToFormat: Date | string, options?: Intl.DateTimeFormatOptions): string; render(): TemplateResult<1> | undefined; } export default NileFormatDate; declare global { interface HTMLElementTagNameMap { 'nile-format-date': NileFormatDate; } }