import { ComponentProps, ReactElement } from 'react'; import { Switch as Switch$1 } from '@base-ui/react/switch'; /** * Switch — shadcn/WealthX * Base: npx shadcn\@latest add switch (latest) * Figma: Design-System---shadcn?node-id=3041-6197 * * WealthX additions: aria-invalid error state, SwitchCard with position variants. * Tokens: unchecked=input, checked=primary, error=destructive, thumb=background. */ type SwitchProps = ComponentProps & { size?: "sm" | "default"; }; declare function Switch({ className, size, ...props }: SwitchProps): ReactElement; /** * SwitchCard -- card wrapper with label + description + switch toggle. * Figma: SwitchCard (3041:6237) */ type SwitchCardProps = Omit, "children"> & { label: string; description?: string; error?: boolean; switchPosition?: "left" | "right"; size?: "sm" | "default"; }; declare function SwitchCard({ className, checked, defaultChecked, onCheckedChange, disabled, error, label, description, switchPosition, size, ...props }: SwitchCardProps): ReactElement; export { Switch, SwitchCard, type SwitchCardProps, type SwitchProps };