import { type ReactNode } from 'react';
type SwitchProps = {
    isChecked: boolean;
    isDisabled?: boolean;
    onChange?: (checked: boolean) => void;
    onClick?: (rollback: () => void, commit: () => void) => void;
    label?: string;
};
/**
 * Switch component for rendering a toggle switch with optional label.
 *
 * @component
 * @example
 * // Example usage of Switch component
 * <Switch
 *   isChecked={true}
 *   isDisabled={false}
 *   label="Enable feature"
 *   onChange={(checked) => console.log(checked)}
 *   onClick={(rollback, commit) => {
 *     if (confirm('Are you sure?')) {
 *       commit();
 *     } else {
 *       rollback();
 *     }
 *   }}
 * />
 *
 * @param {boolean} isChecked - Initial checked state of the switch.
 * @param {boolean} [isDisabled=false] - Optional boolean to disable the switch.
 * @param {string} [label] - Optional label to be displayed next to the switch.
 * @param {function} [onChange] - Optional callback function to handle change in checked state.
 * @param {function} [onClick] - Optional callback function to handle click events with rollback and commit actions.
 *
 * @returns {ReactNode} The rendered Switch component.
 */
export declare function Switch({ isChecked, isDisabled, label, onChange, onClick, }: SwitchProps): ReactNode;
export {};
//# sourceMappingURL=Switch.d.ts.map