import { UiElement } from '../shared/element.js'; export type ToggleSize = 'sm' | 'md'; /** * Carbon-style toggle (`Toggle`): an on / off switch with a label above and a state text beside it. * * Structure follows Carbon: a `role="switch"` button (visually hidden) drives a 48×24 track with an * 18px handle (`size="sm"`: 32×16, 10px handle with a check mark when on). Off = `--ui-toggle-off`, * on = `--ui-success`. `label-a` / `label-b` ("Off" / "On") are the side text; with `hide-label` the * label itself moves beside the switch and the state text is dropped, as in Carbon. * * Form-associated: submits `value` (default "on") under `name` while checked, resets with the form. * * @slot label - Label content with markup; the `label` attribute is the plain-text fallback * @fires change - After the user toggles it (`checked` already updated) * @csspart base - The row holding the switch and the side text * @csspart label - The label above the switch * @csspart switch - The track * @csspart handle - The knob * @csspart text - The On / Off text beside the switch * @cssprop --ui-toggle-on - Track colour when on (default `--ui-success`; Kanok: `--ui-primary`) */ export declare class UiToggle extends UiElement { static readonly formAssociated = true; static readonly shadowRootOptions: ShadowRootInit; static readonly styles: import("lit").CSSResult[]; /** Label above the switch; the `label` slot replaces it when markup is needed. */ label: string; private readonly localize; /** Hide the label above; it then replaces the On / Off text beside the switch (Carbon `hideLabel`). */ hideLabel: boolean; /** Side text while off (Carbon `labelA`). */ labelA: string; /** Side text while on (Carbon `labelB`). */ labelB: string; checked: boolean; /** Submitted under `name` while checked. */ value: string; /** Reflected: form-associated elements submit under the `name` attribute. */ name: string; /** md: 48×24 track (default) · sm: 32×16 with a check mark in the knob. */ size: ToggleSize; /** Disables the control; a disabled `
` ancestor does the same. */ disabled: boolean; /** Shows and submits the state but blocks toggling. */ readonly: boolean; /** Disabled, reset defaults, validation on submit and the name given from outside (shared by the form fields). */ private readonly formControl; private readonly ids; private readonly slots; private defaultChecked; constructor(); /** `