import type React from 'react'; import type { CloseDetail } from './types.js'; export interface DialogRef extends HTMLElement { /** Opens the dialog modal with entrance animation. */ open(): void; /** Closes the dialog modal with exit animation. */ close(): void; /** Toggles the dialog open/close state. */ toggle(): void; } /** * Content goes in named slots (`header`, `children`, `footer`), not as flat children. * The dialog uses Shadow DOM — `