import { IconProps } from "../Icon/type.mjs";
import { Key, ReactNode } from "react";

//#region src/Menu/switchItem.d.ts
/**
 * Switch menu item shared by DropdownMenu / ContextMenu.
 * Similar to checkbox but renders as a toggle switch.
 */
interface MenuSwitchItemType {
  checked?: boolean;
  closeOnClick?: boolean;
  danger?: boolean;
  defaultChecked?: boolean;
  desc?: ReactNode;
  disabled?: boolean;
  extra?: ReactNode;
  icon?: IconProps['icon'];
  key: Key;
  label?: ReactNode;
  onCheckedChange?: (checked: boolean) => void;
  title?: ReactNode;
  type: 'switch';
}
//#endregion
export { MenuSwitchItemType };
//# sourceMappingURL=switchItem.d.mts.map