import type { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GeneralKeyboardEvent, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, LabelVariantHorizontalType, SizeProps } from '../../shared/model.js'; export type DBSwitchDefaultProps = { /** * Add additional icons to indicate active/inactive state. */ visualAid?: boolean | string; /** * Change the variant of the label to `trailing` or `leading`. Defaults to `trailing` */ variant?: LabelVariantHorizontalType; }; export type DBSwitchProps = GlobalProps & ChangeEventProps & FocusEventProps & FormProps & FormCheckProps & Omit & SizeProps & IconProps & IconTrailingProps & IconLeadingProps & DBSwitchDefaultProps; export type DBSwitchDefaultState = { handleKeyDown: (event: GeneralKeyboardEvent) => void; }; export type DBSwitchState = DBSwitchDefaultState & GlobalState & ChangeEventState & FocusEventState & FormState & FromValidState;