import React, { HTMLInputTypeAttribute } from 'react'; export interface UseSwitchParameters { /** * If `true`, the component is checked. */ checked?: boolean; /** * The default checked state. Use when the component is not controlled. */ defaultChecked?: boolean; /** * If `true`, the component is disabled. */ disabled?: boolean; onBlur?: React.FocusEventHandler; /** * Callback fired when the state is changed. * * @param {React.ChangeEvent} event The event source of the callback. * You can pull out the new value by accessing `event.target.value` (string). * You can pull out the new checked state by accessing `event.target.checked` (boolean). */ onChange?: React.ChangeEventHandler; onFocus?: React.FocusEventHandler; onFocusVisible?: React.FocusEventHandler; /** * If `true`, the component is read only. */ readOnly?: boolean; /** * If `true`, the `input` element is required. */ required?: boolean; } interface UseSwitchInputSlotOwnProps { checked?: boolean; defaultChecked?: boolean; disabled?: boolean; onBlur: React.FocusEventHandler; onChange: React.ChangeEventHandler; onFocus: React.FocusEventHandler; readOnly?: boolean; ref: React.Ref; required?: boolean; type: HTMLInputTypeAttribute; } export declare type UseSwitchInputSlotProps = Omit & UseSwitchInputSlotOwnProps; export {};