import TinyHtmlInput from '../../TinyHtmlInput.mjs'; /** * TinyHtmlDateTimeInput is a helper class for managing * `` elements with validation. * * It supports attributes such as `value`, `min`, `max`, `step`, * `placeholder`, `autocomplete`, and more. * * @example * const dateTimeInput = new TinyHtmlDateTimeInput({ * value: '2025-09-25T14:30', * min: '2025-01-01T00:00', * max: '2025-12-31T23:59', * step: 60, * required: true, * name: 'meetingTime' * }); */ declare class TinyHtmlDateTimeInput extends TinyHtmlInput { /** * Creates a new TinyHtmlDateTimeInput instance. * @param {Object} config - Configuration object. * @param {string} [config.value] - Initial datetime value (`YYYY-MM-DDTHH:MM`). * @param {string} [config.min] - Minimum allowed datetime. * @param {string} [config.max] - Maximum allowed datetime. * @param {number} [config.step] - Granularity in seconds (or multiples). * @param {string} [config.name] - The name of the control. * @param {string} [config.placeholder] - Placeholder text. * @param {string} [config.autocomplete] - Autocomplete hint (e.g., "on", "off"). * @param {string} [config.list] - The id of a element. * @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; name?: string; placeholder?: string; autocomplete?: string; list?: string; readonly?: boolean; required?: boolean; tags?: string | string[] | Set; mainClass?: string; }); /** @param {string|number|Date} value */ set value(value: string | number | Date); /** @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} step */ set step(step: number); /** @returns {number|null} */ get step(): number | null; /** @param {string} list */ set list(list: string); /** @returns {string|null} */ get list(): string | null; /** @param {string} autocomplete */ set autocomplete(autocomplete: string); /** @returns {string|null} */ get autocomplete(): string | null; } export default TinyHtmlDateTimeInput; //# sourceMappingURL=TinyHtmlDateTimeInput.d.mts.map