import { UiElement } from '../shared/element.js'; /** * A labelled group of `` or `` (Carbon checkbox group), exposed as role="group" * with the label as its name and the helper / warning / error text as its description. * * - `required` means "at least one": the form won't submit until one box is checked. * - `disabled` / `readonly` apply to every box without overwriting each box's own setting. * - Each checkbox still submits its own `name` / `value`. * * State on the host for styling: `data-show-error` while the error shows, `data-show-warn` while the * warning shows. * * @cssstate show-error - While its error message shows (also `[data-show-error]`) * @cssstate show-warn - While its warning message shows (also `[data-show-warn]`) * @slot - `` or `` elements * @slot label - Label content with markup; the `label` attribute is the plain-text fallback * @slot helper-text - Helper text with markup (links, bold); overrides `helper-text` * @slot warn-text - Warning text shown while `warn`; overrides `warn-text` * @slot invalid-text - Error text shown while invalid; overrides `invalid-text` * @csspart base - The group box holding the checkboxes * @csspart label - The group label * @csspart status-icon - The error / warning icon * @csspart helper-text - The helper line * @csspart warning-text - The warning line * @csspart warn-text - Same line as `warning-text` (named after the `warn-text` attribute / slot) * @csspart error-text - The error line * @csspart invalid-text - Same line as `error-text` (named after the `invalid-text` attribute / slot) */ export declare class UiCheckboxGroup extends UiElement { static hostStates: readonly string[]; static readonly formAssociated = true; static readonly styles: import("lit").CSSResult[]; /** Visible label text; the `label` slot replaces it when markup is needed. */ label: string; private readonly localize; /** Keep the group label for screen readers but don't show it. */ hideLabel: boolean; /** Helper text under the field, shown while there is no error or warning. */ helperText: string; /** Blocks form submission while the field is empty. */ required: boolean; /** Error for an empty required group. */ requiredText: string; /** Forces the error state, e.g. after server-side validation. */ invalid: boolean; /** Error text shown while `invalid` or while the field fails validation. */ invalidText: string; /** Non-blocking warning; shown when there is no error. */ warn: boolean; /** Text of the warning shown while `warn`. */ warnText: string; /** Disables the control; a disabled `
` ancestor does the same. */ disabled: boolean; /** Shows and submits the value but blocks changes. */ readonly: boolean; orientation: 'vertical' | 'horizontal'; private touched; private checkedCount; /** Disabled, reset defaults, validation on submit and the name given from outside (shared by the form fields). */ private readonly formControl; /** `ui-selectable-tile` is a `ui-checkbox` too, so tiles are members like boxes. */ private readonly boxes; /** Message from `setCustomValidity()`; '' = none. */ private customValidityMessage; /** Like `.setCustomValidity()`: a non-empty message makes the field invalid (and is shown as its error once touched) until cleared with ''. */ setCustomValidity(message: string): void; private readonly groupId; connectedCallback(): void; disconnectedCallback(): void; get form(): HTMLFormElement | null; get validationMessage(): string; /** Whether the field takes part in constraint validation (not while disabled), as natively. */ get willValidate(): boolean; /** The `