import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the "Next" button text * @default "Next" */ nextButtonText?: string; /** * Specify the "Back" button text * @default "Back" */ previousButtonText?: string; /** * Specify the "Skip" button text. Set to `""` to hide the Skip button * @default "Skip" */ skipButtonText?: string; /** * Specify the final step's button text * @default "Get Started" */ startButtonText?: string; /** * Set to the action name of a pending async button press to show that * button's `InlineLoading` state and disable the other buttons. Pair with * `preventDefault()` on the `action` event. * @default "" */ loadingAction?: "" | "start" | "skip" | "back" | "next"; [key: `data-${string}`]: unknown; }; export type InterstitialScreenFooterProps = Omit<$RestProps, keyof $Props> & $Props; export default class InterstitialScreenFooter extends SvelteComponentTyped< InterstitialScreenFooterProps, { /** Dispatched synchronously on any footer button press, before the default Skip/Back/Next/Get-Started behavior runs. Cancelable: call `preventDefault()` to take over the button press yourself (for example, to run async work and set `loadingAction`, then call `handleGotoStep`/close the screen manually). */ action: CustomEvent<{ actionType: "start" | "skip" | "back" | "next" }>; }, Record > {}