import { ChangeEvent } from "react";
interface NvSwitchProps {
/** If true, the component is checked. */
checked?: boolean;
/** The text between the label and the switch. */
description?: string;
/** If true, the component is disabled. */
disabled?: boolean;
/** The error text under the checkbox, if true the label is red. */
error?: string;
/** The label text over the switch. */
label?: string;
/** The name attribute of the input element. */
name?: string;
/** The text value next to the switch. */
value?: string;
/** Callback fired when the state is changed. */
onChange?: (e: ChangeEvent) => void;
/** The additional CSS class for the wrapper element. */
className?: string;
}
/**
* Functional component for rendering a switch input with a label.
*
* @param {string} label - The text to display as the label.
* @param {string} description - Additional description text.
* @param {string} error - Error message to display.
* @param {string} value - The value to display next to the switch.
* @param {boolean} checked - Indicates if the switch is checked.
* @param {boolean} disabled - Indicates if the switch is disabled.
* @param {string} name - The name attribute for the input element.
* @param {function} onChange - Event handler for when the switch value changes.
* @param {string} className - Additional CSS class names.
* @param {string} "data-testid" - Test id for element identification.
*/
declare const NvSwitch: ({ label, description, error, value, checked, disabled, name, onChange, className, }: NvSwitchProps) => import("react/jsx-runtime").JSX.Element;
export default NvSwitch;