import { EventEmitter } from '../../stencil-public-runtime'; import { EComponentSize, IToggleButton } from '../../types'; export type IToggleSwitchOption = Omit, 'withRadio'>; export interface IToggleSwitch { /** (optional) List of toggle switch options */ options: IToggleSwitchOption[]; /** (optional) If `true` all toggle buttons will be disabled */ disabled?: boolean; /** (optional) Toggle switch selected option key */ selectedOption?: T; /** (optional) A record with the button's key and its individual disabled state */ disabledButtons?: Record; /** (optional) Sets the size for all toggle buttons */ size?: EComponentSize; } export interface IToggleSwitchEvents { /** When the toggle switch selection changes, emit the requested value */ checkedChange: EventEmitter; }