import React from 'react'; type BuiltinFlavor = 'primary' | 'success' | 'danger' | 'warning' | 'neutral'; type ShadedFlavor = BuiltinFlavor | `${BuiltinFlavor}+` | `${BuiltinFlavor}-`; export interface TySwitchProps extends Omit, 'onChange' | 'onInput'> { /** Checked (on) state */ checked?: boolean; /** Form field value when checked */ value?: string; /** Form field name */ name?: string; /** Disable the switch */ disabled?: boolean; /** Required field */ required?: boolean; /** Switch size */ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'; /** Semantic styling variant */ flavor?: ShadedFlavor | (string & {}); /** * Fires when switch state changes (React convention) * Maps to native 'input' event from ty-switch */ onChange?: (event: CustomEvent) => void; /** * Fires on blur if value changed (native DOM behavior) * Maps to native 'change' event from ty-switch */ onChangeCommit?: (event: CustomEvent) => void; } export interface TySwitchEventDetail { value: boolean; checked: boolean; formValue: string | null; originalEvent: Event; } export declare const TySwitch: React.ForwardRefExoticComponent>; export {}; //# sourceMappingURL=TySwitch.d.ts.map