import React from 'react'; import { BaseSkeletonProps } from '../Skeleton'; export interface BaseProps { name: string; label: string; value?: string; on: boolean; size?: 'sm' | 'md' | 'lg'; disabled?: boolean; error?: string; touched?: boolean; help?: string; hideLabel?: boolean; alignment?: 'row' | 'column' | 'center'; condensed?: boolean; annotations?: { on: string | React.ReactNode; off: string | React.ReactNode; }; onChange?: (isOn: boolean) => void; onBlur?: () => void; onFocus?: () => void; } interface SkeletonProps extends BaseSkeletonProps, BaseProps { skeleton?: boolean; } export type Props = BaseProps | SkeletonProps; declare const Toggle: (props: Props) => JSX.Element; export default Toggle;