/** * [WHO]: Dialog — generic modal built on @radix-ui/react-dialog with Close button. * [FROM]: React + @radix-ui/react-dialog + framer-motion + CVA + getThemeFromDocument + local icons-inline. * [TO]: sparkdesign package consumers; output of CLI `add dialog` when registered. * Coexists with `AlertDialog` (destructive confirmation focus). * [HERE]: registry/basic/dialog.tsx — Spark Design source; keep aligned with the main library. * * [PROTOCOL]: * 1. Keep this P3 header in sync when the public contract changes. * 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change. * 3. Follow design tokens and explicit type exports. */ import * as React from 'react'; import * as DialogPrimitive from '@radix-ui/react-dialog'; import { type VariantProps } from 'class-variance-authority'; declare const Dialog: React.FC; declare const DialogTrigger: React.ForwardRefExoticComponent>; declare const DialogPortal: React.FC; declare const DialogClose: React.ForwardRefExoticComponent>; declare const DialogOverlay: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; declare const contentVariants: (props?: ({ size?: "default" | "sm" | "lg" | "xl" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; export interface DialogContentProps extends React.ComponentPropsWithoutRef, VariantProps { size?: 'sm' | 'default' | 'lg' | 'xl'; /** Hide the built-in top-right close button. */ hideCloseButton?: boolean; /** When provided (e.g. from ThemeStyleProvider), used for portal wrapper */ dataStyle?: string; dataTheme?: string; } declare const DialogContent: React.ForwardRefExoticComponent>; declare const DialogHeader: React.ForwardRefExoticComponent & React.RefAttributes>; declare const DialogFooter: React.ForwardRefExoticComponent & React.RefAttributes>; declare const DialogTitle: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; declare const DialogDescription: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; export type DialogHeaderProps = React.HTMLAttributes; export type DialogFooterProps = React.HTMLAttributes; export { Dialog, DialogTrigger, DialogPortal, DialogOverlay, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, contentVariants as dialogContentVariants, };