/** * Headless boolean field controller (checkbox / toggle switch). */ import type { MdyReactivity } from "@modyra/core"; import type { MdyWidgetController } from "../contract.js"; import type { MdyBooleanFieldControllerOptions, MdyBooleanFieldIntent, MdyBooleanFieldState } from "./boolean-field-types.js"; export interface MdyBooleanFieldController extends MdyWidgetController { /** Set the checked state programmatically without producing a command. */ setChecked(checked: boolean): void; /** Update the readonly state. */ setReadonly(readonly: boolean): void; } export declare function createBooleanFieldController(options: MdyBooleanFieldControllerOptions, reactivity?: MdyReactivity): MdyBooleanFieldController;