import { type ComponentPropsWithRef } from "react"; export type DialogProps = ModalDialogProps | PopoverDialogProps; interface ModalDialogProps { mode: "modal"; onClickAway?: () => void; onCancel?: () => void; classNamePrefix?: string; } interface PopoverDialogProps { mode: "popover"; anchor: HTMLElement; onClickAway?: () => void; classNamePrefix?: string; } declare const Dialog: { ({ ref, ...props }: DialogProps & ComponentPropsWithRef<"dialog">): import("react/jsx-runtime.js").JSX.Element; displayName: string; }; export default Dialog;