import { LitElement } from "lit"; export type DateInputType = `date` | `datetime-local`; export type DateInputChangeDetail = { /** The text value: `YYYY-MM-DD` or `YYYY-MM-DDTHH:mm`. Empty when cleared or incomplete. */ readonly value: string; /** The value as a local-time `Date`, or `null` when empty. */ readonly date: Date | null; }; export type DateInputChangeEvent = CustomEvent; /** * Parse a `date` / `datetime-local` string into a local-time `Date`. * Returns `null` for an empty or malformed value. */ export declare function parseDateInput(value: string): Date | null; /** Format a local-time `Date` for a `date` / `datetime-local` input. */ export declare function formatDateInput(date: Date, type: DateInputType): string; /** * Date or date-time input that follows the theme. * * Wraps the native picker (so keyboard entry, the calendar popup and * localisation come from the browser) and styles it like the other inputs. * * @fires {DateInputChangeEvent} change — when the user changes the value * * @example * ```html * * ``` */ export declare class DateInputElement extends LitElement { #private; /** `date` or `datetime-local`. */ type: DateInputType; /** `YYYY-MM-DD` or `YYYY-MM-DDTHH:mm`, matching `type`. Empty for none. */ value: string; min: string; max: string; disabled: boolean; name: string; /** The value as a local-time `Date`, or `null` when empty. */ get date(): Date | null; set date(date: Date | null); focus(options?: FocusOptions): void; protected render(): import("lit").TemplateResult<1>; static styles: import("lit").CSSResult[]; } declare global { interface HTMLElementTagNameMap { 'ixfx-date-input': DateInputElement; } } export interface DateInputElementEventMap { change: DateInputChangeEvent; } export interface DateInputElement { addEventListener: ((type: K, listener: (this: DateInputElement, event: DateInputElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions) => void) & ((type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void); }