import * as React from 'react';
import { ErrorType } from '@workday/canvas-kit-react/common';
/**
 * @deprecated ⚠️ `SwitchProps` in Main has been deprecated in v15 and will be removed in a future major version. Please use [`Switch` in Preview](https://workday.github.io/canvas-kit/?path=/docs/preview-inputs-switch--docs) instead.
 */
export interface SwitchProps {
    /**
     * If true, set the Switch to the on state.
     * @default false
     */
    checked?: boolean;
    /**
     * If true, set the Switch to the disabled state.
     * @default false
     */
    disabled?: boolean;
    /**
     * The HTML `id` of the underlying checkbox input element.
     * @default A uniquely generated id
     */
    id?: string;
    /**
     * The function called when the Switch state changes.
     */
    onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
    /**
     * The value of the Switch.
     */
    value?: string;
    /**
     * The type of error associated with the Switch (if applicable).
     */
    error?: ErrorType;
}
/**
 * @deprecated ⚠️ `Switch` in Main has been deprecated in v15 and will be removed in a future major version. Please use [`Switch` in Preview](https://workday.github.io/canvas-kit/?path=/docs/preview-inputs-switch--docs) instead.
 */
export declare const Switch: import("@workday/canvas-kit-react/common").ElementComponent<"input", SwitchProps> & {
    ErrorType: typeof ErrorType;
};
//# sourceMappingURL=Switch.d.ts.map