import type { Instance, RenderProps } from "../../ui/Instance"; import type { RenderingContext } from "../../ui/RenderingContext"; import { BooleanProp, StringProp } from "../../ui/Prop"; import { HtmlElement, HtmlElementConfig, HtmlElementInstance } from "../HtmlElement"; import type { FormRenderingContext } from "./ValidationGroup"; export interface LabelConfig extends HtmlElementConfig { /** Used in combination with `asterisk` to indicate required fields. */ required?: BooleanProp; /** Set to true to disable the label. */ disabled?: BooleanProp; /** Id of the field. */ htmlFor?: StringProp; /** Set to `true` to add red asterisk for required fields. */ asterisk?: BooleanProp; } export declare class Label extends HtmlElement { required?: BooleanProp; disabled?: BooleanProp; htmlFor?: StringProp; asterisk?: BooleanProp; constructor(config?: LabelConfig); declareData(...args: Record[]): void; prepareData(context: RenderingContext, instance: HtmlElementInstance): void; explore(context: FormRenderingContext, instance: Instance): void; isValidHtmlAttribute(attrName: string): string | false; attachProps(context: RenderingContext, instance: HtmlElementInstance, props: RenderProps): void; } //# sourceMappingURL=Label.d.ts.map