import { type CSSResultGroup, type TemplateResult } from "lit"; import BaseInput from "../base-input/index.ts"; import CheckboxValidator from "../checkbox/Validator.ts"; import { createValidator, getFormState, getFormValue, onReportValidity } from "../utils/index.ts"; export declare class Switch extends BaseInput { /** @internal */ static readonly styles: CSSResultGroup; /** * Whether or not the switch is selected. * * @prop {boolean} selected * @attr {string} selected * @default false */ selected: boolean; /** * The value of the switch that is submitted with a form when selected. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#value * * @prop {string} value * @attr {string} value * @default "on" */ value: string; private _handleInput; private _handleChange; private _handleKeyDown; /** @internal */ [getFormValue](): string | null; /** @internal */ [getFormState](): string; /** @internal */ formResetCallback(): void; /** @internal */ formStateRestoreCallback(state: string): void; /** @internal */ [createValidator](): CheckboxValidator; /** @internal */ [onReportValidity](): void; protected getInputElement(): HTMLInputElement | null; private _renderCheckIcon; protected renderTrailingContent(): null; protected renderLeadingContent(): null; protected renderControl(): TemplateResult; }