import { default as React, ChangeEventHandler, ReactNode } from 'react'; export type SwitchFieldProps = Readonly<{ /** * Content to render as the SwitchInput's label */ label: ReactNode; /** * Whether the SwitchInput should be checked */ isChecked: boolean; /** * Handler called when the SwitchInput's state changes */ onChange: ChangeEventHandler; /** * The element's unique identifier */ id?: string; /** * className for the element */ className?: string; /** * Name of the input element */ name?: string; /** * Whether the input is disabled. Default to false * @default false */ isDisabled?: boolean; /** * Whether the input should fit the content or the parent. Default to content * @default content */ fit?: 'content' | 'parent'; /** * Content to render as the SwitchInput's help text */ helpText?: ReactNode; }>; export declare const SwitchField: ({ className, name, isDisabled, fit, helpText, id: providedId, isChecked, label, onChange, ...rest }: SwitchFieldProps) => React.JSX.Element; //# sourceMappingURL=SwitchField.d.ts.map