import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["button"]; type $Props = { /** * Set the type of notification. * @default "toast" */ notificationType?: "toast" | "inline"; /** * Set to `true` to use the low contrast icon fill. * @default false */ lowContrast?: boolean; /** * Specify the icon to render. * @default Close */ icon?: Icon; /** * Specify the title of the icon. */ title?: string | undefined; /** * Specify the ARIA label for the icon * @default "Close icon" */ iconDescription?: string; [key: `data-${string}`]: unknown; }; export type NotificationButtonProps = Omit<$RestProps, keyof $Props> & $Props; export default class NotificationButton extends SvelteComponentTyped< NotificationButtonProps, { click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, Record > {}