import type { HTMLDialogAttributes } from 'svelte/elements';
import type { Snippet } from 'svelte';
type ModalVariant = 'default' | 'confirm' | 'destructive';
interface Props extends HTMLDialogAttributes {
/** Whether the dialog is currently open. @default false */
open?: boolean;
/** Heading text shown in the modal header. */
title: string;
/** Visual variant — adds a coloured icon to the header. @default 'default' */
variant?: ModalVariant;
/** Called when the modal requests to close (close button, backdrop, or Escape). */
onclose?: () => void;
children?: Snippet;
footer?: Snippet;
[key: string]: unknown;
}
declare const Modal: import("svelte").Component;
type Modal = ReturnType;
export default Modal;