import { EventEmitter } from '../../stencil-public-runtime'; import { FormControlState } from '../../utils/form-control'; /** * @component seki-checkbox * @description A checkbox control that allows users to toggle between checked, unchecked, * and optionally indeterminate states. Supports form integration and full accessibility. * @example * * * */ export declare class SekiCheckbox { el: HTMLElement; internals: ElementInternals; private buttonEl?; private formControl?; /** * Checked state. In HTML this attribute is the *initial* state (as with * ``) and the component keeps it in step with user interaction. * Assigning the property at any time drives the state, so a host framework can * still fully control the checkbox — including vetoing a user toggle by writing * the previous value back in its `sekiChange` handler. */ checked?: boolean; /** * Initial checked state for uncontrolled mode. Ignored if checked prop is provided. */ defaultChecked: boolean; /** * Whether the checkbox is in an indeterminate state. */ indeterminate: boolean; /** * Disables all interactions when true. */ disabled: boolean; /** * Marks checkbox as required for form validation. */ required: boolean; /** * Form field name for form integration. */ name?: string; /** * Value sent in form data when checkbox is checked. Defaults to 'on'. */ value: string; /** * Accessible label for screen readers. */ ariaLabel?: string; /** * ID of element describing this checkbox. */ ariaDescribedby?: string; /** * Text that describes this control. Set by `seki-field` from its description * (and error) slot, because an `aria-describedby` id cannot cross the shadow * boundary to the inner element (#358). */ ariaDescription?: string; /** Marks the control invalid for assistive technology. Set by `seki-field` (#358). */ ariaInvalid?: string; /** * Rendered checked state. Seeded from `checked` (or `defaultChecked`) and * thereafter the single source of truth for rendering. */ internalChecked: boolean; /** * Emitted when checked state changes. */ sekiChange: EventEmitter<{ checked: boolean; indeterminate: boolean; }>; /** * Initialize internal checked state from defaultChecked */ componentWillLoad(): void; handleFormStateChange(): void; /** * Mirror externally-assigned `checked` onto the rendered state. This is what * keeps controlled usage working: a consumer writing `el.checked = x` (or * writing the old value back to reject a toggle) always wins. */ checkedChanged(newValue: boolean | undefined): void; /** * Get current checked state */ private get isChecked(); /** * Update form value based on checked state */ private updateFormValue; /** * Toggle checkbox state and emit event */ private toggle; /** * Handle click events */ private handleClick; /** * Handle keyboard events (Space key) */ handleKeyDown(event: KeyboardEvent): void; formResetCallback(): void; formDisabledCallback(disabled: boolean): void; formStateRestoreCallback(state: FormControlState): void; render(): any; }