import type { ChangeEvent, HTMLAttributes, InputHTMLAttributes } from "react"; export type SwitchProps = Omit, "children" | "onChange" | "defaultChecked"> & Pick, "autoFocus"> & { /** * Whether the `Toggle` is decorative. * Decorative toggles are not using an input element. */ decorative?: boolean; /** * The callback function that is triggered when the `Toggle` is clicked. */ onChange?: (event: ChangeEvent) => void; /** * Whether the `Toggle` is required. */ required?: boolean; /** * Whether the `Toggle` is disabled. */ disabled?: boolean; /** * Whether the `Toggle` is default checked. */ defaultChecked?: boolean; /** * Whether the `Toggle` is checked. */ checked?: boolean; }; /** * The `Switch` component is used to view or switch between enabled or disabled states. * * See the [Switch documentation page](https://satellite.algolia.com/8261d6576/p/10fc77-switch) for more information. */ export declare const Switch: import("react").ForwardRefExoticComponent, "children" | "onChange" | "defaultChecked"> & Pick, "autoFocus"> & { /** * Whether the `Toggle` is decorative. * Decorative toggles are not using an input element. */ decorative?: boolean; /** * The callback function that is triggered when the `Toggle` is clicked. */ onChange?: (event: ChangeEvent) => void; /** * Whether the `Toggle` is required. */ required?: boolean; /** * Whether the `Toggle` is disabled. */ disabled?: boolean; /** * Whether the `Toggle` is default checked. */ defaultChecked?: boolean; /** * Whether the `Toggle` is checked. */ checked?: boolean; } & import("react").RefAttributes>;