import { type CSSResultGroup, type TemplateResult } from "lit"; import BaseInput from "../base-input/index.ts"; import { createValidator, getFormState, getFormValue, onReportValidity } from "../utils/index.ts"; import CheckboxValidator from "./Validator.ts"; /** * @summary Checkboxes allow the user to select one or more items from a set. * * @tag "tapsi-checkbox" */ export declare class Checkbox extends BaseInput { /** @internal */ static readonly styles: CSSResultGroup; /** * Whether or not the checkbox is selected. * * @prop {boolean} checked * @attr {string} checked * @default false */ checked: boolean; /** * Whether or not the checkbox is indeterminate. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes * * @prop {boolean} indeterminate * @attr {string} indeterminate * @default false */ indeterminate: boolean; /** * The value of the checkbox 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; /** * Whether the checkbox has error. * * @prop {boolean} error * @attr {string} error * @default false */ error: boolean; private _nativeError; private _handleInput; private _handleChange; protected getInputElement(): HTMLInputElement | null; private _hasError; /** @internal */ [getFormValue](): string | null; /** @internal */ [getFormState](): string; /** @internal */ formResetCallback(): void; /** @internal */ formStateRestoreCallback(state: string): void; /** @internal */ [createValidator](): CheckboxValidator; /** @internal */ [onReportValidity](invalidEvent: Event | null): void; private _renderIndeterminateIcon; private _renderCheckIcon; protected renderTrailingContent(): null; protected renderLeadingContent(): null; protected renderControl(): TemplateResult; }