import { ChangeEventHandler } from 'react'; export interface UseSwitchControlValueProps { checked?: boolean; defaultChecked?: boolean; onChange?: ChangeEventHandler; } /** * 管理布林開關(checked)狀態的受控 Hook。 * * 適用於任何基於 `` 的切換元件, * 回傳當前勾選狀態與穩定的 `onChange` 事件處理器。 * * @example * ```tsx * import { useSwitchControlValue } from '@mezzanine-ui/react'; * * const [checked, handleChange] = useSwitchControlValue({ * defaultChecked: false, * onChange: (e) => console.log(e.target.checked), * }); * ``` * * @see {@link Switch} 搭配的元件 */ export declare function useSwitchControlValue(props: UseSwitchControlValueProps): readonly [boolean, (event: import("react").ChangeEvent) => void];