import TinyHtmlInput from '../../TinyHtmlInput.mjs'; /** * TinyHtmlDateInput is a helper class for managing `` elements. * It provides validation and safe access to standard attributes such as `value`, `min`, `max`, `step`, * as well as common attributes like `name`, `placeholder`, `readonly`, `required`, etc. * * @example * const dateInput = new TinyHtmlDateInput({ * value: '2025-09-25', * min: '2025-01-01', * max: '2025-12-31', * step: 1, * required: true * }); */ declare class TinyHtmlDateInput extends TinyHtmlInput { /** * Convert a Date to Date String. * @param {Date} value * @returns {string} */ static dateToString(value: Date): string; /** * Creates a new TinyHtmlDateInput instance. * @param {Object} config - Configuration object. * @param {string} [config.value] - Initial date value in `YYYY-MM-DD` format. * @param {string} [config.min] - Minimum allowed date (in `YYYY-MM-DD` format). * @param {string} [config.max] - Maximum allowed date (in `YYYY-MM-DD` format). * @param {number|'any'} [config.step] - Step value in days (number) or "any". * @param {string} [config.name] - The name of the input. * @param {string} [config.placeholder] - Placeholder text. * @param {string} [config.autocomplete] - Autocomplete hint (e.g., "on", "off", "bday"). * @param {string} [config.list] - ID of a `` element for suggestions. * @param {boolean} [config.readonly=false] - Whether the input is read-only. * @param {boolean} [config.required=false] - Whether the input is required. * @param {string|string[]|Set} [config.tags=[]] - Initial CSS classes. * @param {string} [config.mainClass=''] - Main CSS class. * @throws {TypeError} If any attribute is of the wrong type. */ constructor({ value, min, max, step, name, placeholder, autocomplete, list, readonly, required, tags, mainClass, }?: { value?: string; min?: string; max?: string; step?: number | 'any'; name?: string; placeholder?: string; autocomplete?: string; list?: string; readonly?: boolean; required?: boolean; tags?: string | string[] | Set; mainClass?: string; }); /** @param {string} value */ set value(value: string); /** @returns {string|null} */ get value(): string | null; /** @param {string} min */ set min(min: string); /** @returns {string|null} */ get min(): string | null; /** @param {string} max */ set max(max: string); /** @returns {string|null} */ get max(): string | null; /** @param {number|'any'} step */ set step(step: number | 'any'); /** @returns {number|'any'|null} */ get step(): number | 'any' | null; /** @param {string} name */ set name(name: string); /** @returns {string|null} */ get name(): string | null; /** @param {string} placeholder */ set placeholder(placeholder: string); /** @returns {string|null} */ get placeholder(): string | null; /** @param {string} autocomplete */ set autocomplete(autocomplete: string); /** @returns {string|null} */ get autocomplete(): string | null; /** @param {string} list */ set list(list: string); /** @returns {string|null} */ get list(): string | null; } export default TinyHtmlDateInput; //# sourceMappingURL=TinyHtmlDateInput.d.mts.map