import TinyHtmlInput from '../../TinyHtmlInput.mjs'; /** * TinyHtmlUrlInput is a helper class for managing `` elements. * It provides strongly-typed getters and setters for common attributes, * with validation and error handling. * * @example * const urlInput = new TinyHtmlUrlInput({ * name: 'website', * placeholder: 'https://example.com', * required: true, * maxLength: 200, * }); */ declare class TinyHtmlUrlInput extends TinyHtmlInput { /** * Creates a new TinyHtmlUrlInput instance. * @param {Object} config - Configuration object. * @param {string} [config.value] - Initial value of the input. * @param {number} [config.minLength] - Minimum number of characters. * @param {number} [config.maxLength] - Maximum number of characters. * @param {string} [config.name] - The name of the control. * @param {string} [config.pattern] - Regex pattern for validation. * @param {string} [config.autocomplete] - Autocomplete hint (e.g., "on", "off", "email"). * @param {string} [config.dirname] - Name for the directionality field (text-based inputs). * @param {number} [config.size] - Width of the input in characters. * @param {string} [config.list] - ID of an associated . * @param {boolean} [config.readonly=false] - Whether the input is read-only. * @param {boolean} [config.required=false] - Whether the input is required. * @param {string} [config.placeholder] - Placeholder text. * @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, list, placeholder, autocomplete, minLength, maxLength, readonly, required, dirname, size, pattern, name, tags, mainClass, }?: { value?: string; minLength?: number; maxLength?: number; name?: string; pattern?: string; autocomplete?: string; dirname?: string; size?: number; list?: string; readonly?: boolean; required?: boolean; placeholder?: string; tags?: string | string[] | Set; mainClass?: string; }); /** @param {string} value */ set value(value: string); /** @returns {string} */ get value(): string; /** @param {number} minLength */ set minLength(minLength: number); /** @returns {number|null} */ get minLength(): number | null; /** @param {number} maxLength */ set maxLength(maxLength: number); /** @returns {number|null} */ get maxLength(): number | null; /** @param {string} name */ set name(name: string); /** @returns {string|null} */ get name(): string | null; /** @param {string} pattern */ set pattern(pattern: string); /** @returns {string|null} */ get pattern(): string | null; /** @param {string} autocomplete */ set autocomplete(autocomplete: string); /** @returns {string|null} */ get autocomplete(): string | null; /** @param {string} dirname */ set dirname(dirname: string); /** @returns {string|null} */ get dirname(): string | null; /** @param {string} list */ set list(list: string); /** @returns {string|null} */ get list(): string | null; } export default TinyHtmlUrlInput; //# sourceMappingURL=TinyHtmlUrlInput.d.mts.map