import { nothing } from 'lit'; import { type FieldMessage, type MessageKind } from '../../core/field.js'; /** Unique id for wiring label / aria-describedby inside one shadow root. */ export declare const uid: (prefix: string) => string; /** * Inside a disabled ``: its slotted fields are light-DOM children, not descendants of * the group's shadow `
`, so the browser doesn't disable them — each field asks instead. */ export declare const inDisabledGroup: (host: Element) => boolean; /** Inside a `
`, as natively: not within that fieldset's first ``. */ export declare function inDisabledFieldset(host: Element): boolean; /** * The forced error of a field: `invalid` with its `invalid-text`, else a `setCustomValidity()` message. * '' when there is none (the field's own checks decide). */ export declare function customErrorMessage(invalid: boolean, invalidText: string, custom: string): string; /** A native control's validation message, with "value missing" in the page language (`required`) instead of the browser's. */ export declare const nativeValidationMessage: (control: { validity: ValidityState; validationMessage: string; }, required: string) => string; /** Text of the error line: a `setCustomValidity()` message, unless `invalid` forces the author's `invalid-text`; else the field's own. */ export declare const pickErrorText: (invalid: boolean, custom: string, own: string) => string; /** * A disabled control (own `disabled`, a disabled `
` or ``) is not submitted * and is barred from constraint validation, as natively. Returns true when it applied that state. */ export declare function barWhenDisabled(internals: ElementInternals, disabled: boolean): boolean; /** Value of the `