import React from 'react'; import { DarkModeProps, Either, LgIdProps } from '@leafygreen-ui/lib'; export declare const Size: { readonly Default: "default"; readonly Small: "small"; readonly XSmall: "xsmall"; }; export type Size = (typeof Size)[keyof typeof Size]; interface BaseToggleProps extends DarkModeProps, LgIdProps { /** * Sets the size of the toggle. * * @default 'default' */ size?: Size; /** * Sets the checked state of the Toggle. */ checked?: boolean; /** * Disables the Toggle. * * @default false */ disabled?: boolean; /** * `onChange` fires when the internally-managed `checked` state of the component is updated. Receives the updated checked state of the toggle as its first argument, and the associated mouse event as the second. */ onChange?: (checked: boolean, mouseEvent: React.MouseEvent) => void; /** * Adds a className to the outermost element. */ className?: string; } export type ToggleProps = Either, keyof BaseToggleProps>, 'aria-label' | 'aria-labelledby'>; export {}; //# sourceMappingURL=types.d.ts.map