import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonNotificationActionContext = { describedBy: import("svelte/store").Writable; toast: boolean; }; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the kind of callout. * @default "info" */ kind?: "error" | "info" | "info-square" | "success" | "warning" | "warning-alt"; /** * Set to `true` to use the low contrast variant * @default false */ lowContrast?: boolean; /** * Specify the title text. * Alternatively, use the named slot "titleChildren". * @default "" */ titleText?: string; /** * Specify the subtitle text. * Alternatively, use the named slot "subtitleChildren", such as for a link. * @default "" */ subtitleText?: string; /** * Specify the id of the title element. A `NotificationActionButton` in * the callout is described by it. Point the `aria-describedby` of other * interactive content, such as a link, at the same id. * @default uniqueId() */ titleId?: string; /** * Specify the label of the status icon for screen readers. * Defaults to the kind, such as "Warning". */ statusIconDescription?: string | undefined; /** * Set to `true` for the callout to fill its parent's width, without the * default width limits, as when it sits inside a tile or a form. * @default false */ fullWidth?: boolean; /** An action, such as a `NotificationActionButton`. */ actions?: (this: void) => void; subtitleChildren?: (this: void) => void; titleChildren?: (this: void) => void; /** Extra content under the subtitle. */ children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type CalloutProps = Omit<$RestProps, keyof $Props> & $Props; export default class Callout extends SvelteComponentTyped< CalloutProps, { click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { /** Extra content under the subtitle. */ default: Record; /** An action, such as a `NotificationActionButton`. */ actions: Record; subtitleChildren: Record; titleChildren: Record; } > {}