import { LitElement, type PropertyValues, type TemplateResult } from "lit"; import { type ClassInfo } from "lit/directives/class-map.js"; import { getValidityAnchor } from "../utils/index.ts"; declare const BaseClass: import("../utils/index.ts").MixinReturn import("../utils/index.ts").WithElementInternals) & typeof LitElement & import("../utils/mixins/with-form-associated.ts").FormAssociatedConstructor, import("../utils/index.ts").FormAssociated>, import("../utils/index.ts").ConstraintValidation>, import("../utils/index.ts").OnReportValidity>; /** * @fires {Event} change - * Fires when the user modifies the element's value. * Unlike the `input` event, the change event is not necessarily fired for each * alteration to an element's `value`. (bubbles) * @fires {Event} input - * Fires when the value of an input element has been changed as a direct result * of a user action. (bubbles) */ export declare abstract class BaseInput extends BaseClass { /** @internal */ static shadowRootOptions: ShadowRootInit; /** * The current value of the input. It is always a string. * * @prop {string} value * @attr {string} value * @default "" */ value: string; /** * Indicates that the user must specify a value for the input before the * owning form can be submitted and will render an error state when * `reportValidity()` is invoked when value is empty. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required * * @prop {boolean} required * @attr {boolean} required * @default false */ required: boolean; /** * Defines a string value that can be used to name input. * * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label * * @prop {string} label * @attr {string} label * @default "" */ label: string; /** * Identifies the element (or elements) that labels the input. * * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby * * @prop {string} labelledBy * @attr {string} labelledby * @default "" */ labelledBy: string; /** * Indicates that the element should be focused on page load. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus * * @prop {boolean} autofocus * @attr {string} autofocus * @default false */ autofocus: boolean; constructor(); protected hasValidLabel(): boolean; protected abstract renderTrailingContent(): TemplateResult | null; protected abstract renderLeadingContent(): TemplateResult | null; protected abstract renderControl(): TemplateResult | null; protected abstract getInputElement(): HTMLInputElement | HTMLTextAreaElement | null; /** @internal */ [getValidityAnchor](): HTMLInputElement | HTMLTextAreaElement | null; /** @internal */ focus(options?: FocusOptions): void; /** @internal */ blur(): void; /** @internal */ click(): void; protected firstUpdated(changed: PropertyValues): void; /** @internal */ formDisabledCallback(disabled: boolean): void; /** @internal */ protected handleFormSubmitWithEnter(event: KeyboardEvent): Promise; protected getRootClasses(): ClassInfo; protected render(): TemplateResult; } export {};