import type { PropertyValues } from 'lit'; import { FormComponent } from '../component'; import type { FormComponentProps } from '../component'; import '../icon'; export interface CheckboxProps extends FormComponentProps { checked?: boolean; initialChecked?: boolean; indeterminate?: boolean; value?: string; onchange?: GlobalEventHandlers['onchange']; } export declare class Checkbox extends FormComponent implements CheckboxProps { #private; static shadowRootOptions: { delegatesFocus: boolean; clonable?: boolean; customElementRegistry?: CustomElementRegistry; mode: ShadowRootMode; serializable?: boolean; slotAssignment?: SlotAssignmentMode; }; static styles: import("lit").CSSResult[]; static get properties(): { initialChecked: { type: BooleanConstructor; attribute: string; }; providedChecked: { type: BooleanConstructor; reflect: boolean; attribute: string; }; providedIndeterminate: { type: BooleanConstructor; reflect: boolean; attribute: string; }; value: { type: StringConstructor; }; }; /** * Value the checkbox should report to the form it is in. */ value: CheckboxProps['value']; /** * Should the checkbox be checked initialluy or when the form it is in is reset. */ initialChecked: CheckboxProps['initialChecked']; /** * We use a different property name internally so the react wrapper can still * keep track of the property while we can use custom getter/setter to * set and reflect the `checked` attribute. */ providedChecked: CheckboxProps['checked']; /** * We use a different property name internally so we can still * keep track of the property while we can use custom getter/setter to * set and reflect the `indeterminate` attribute. */ providedIndeterminate: CheckboxProps['indeterminate']; static define(): void; createRenderRoot(): DocumentFragment | HTMLElement; connectedCallback(): Promise; disconnectedCallback(): void; update(changedProperties: PropertyValues): void; updated(changedProperties: PropertyValues): void; render(): import("lit-html").TemplateResult<1>; get input(): HTMLInputElement | null; set checked(checked: boolean); get checked(): boolean; set indeterminate(indeterminate: boolean); get indeterminate(): boolean; formResetCallback(): void; formStateRestoreCallback(state: unknown): void; formDisabledCallback(disabled: boolean): void; } declare global { interface HTMLElementTagNameMap { 'm-checkbox': Checkbox; } }