import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonInterstitialScreenContext = { isFullScreen: import("svelte/store").Writable; progStep: import("svelte/store").Writable; views: import("svelte/store").Writable>; addView: (view: { id: string; stepTitle: string; node?: HTMLElement }) => void; removeView: (id: string) => void; handleGotoStep: (index: number) => void; handleClose: (actionType: "close" | "start" | "skip" | "back" | "next") => void; }; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Set to `true` to open the interstitial screen. * @default false */ open?: boolean; /** * Set to `true` to render as a full-screen takeover instead of a modal-hosted dialog * @default false */ isFullScreen?: boolean; /** * Element to return focus to when the screen closes. * Defaults to the element that had focus when the screen opened. */ launcherButtonRef?: HTMLElement | undefined; /** * Specify the ARIA label for the top-level element * @default "Interstitial screen" */ ariaLabel?: string; /** * Obtain a reference to the top-level HTML element. * @default null */ ref?: null | HTMLDivElement; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type InterstitialScreenProps = Omit<$RestProps, keyof $Props> & $Props; export default class InterstitialScreen extends SvelteComponentTyped< InterstitialScreenProps, { /** Dispatched when the screen is about to close, from the header close button, Escape, or the footer's final Skip/Get Started action. Cancelable: call `preventDefault()` to keep it open. */ close: CustomEvent<{ actionType: "close" | "start" | "skip" | "back" | "next" }>; }, { default: Record } > {}