2023-06-15 12:53:00 +00:00
|
|
|
import type Shepherd from "shepherd.js";
|
|
|
|
import type {tourIds} from "./tours/exports.js";
|
2023-06-11 14:17:01 +00:00
|
|
|
|
|
|
|
declare global {
|
|
|
|
const $browser: "chromium" | "firefox";
|
|
|
|
const $dev: boolean;
|
|
|
|
const $test: boolean;
|
2023-06-15 12:53:00 +00:00
|
|
|
|
|
|
|
type TourId = (typeof tourIds)[number];
|
|
|
|
type TourStepEvent = "show" | "destroy";
|
|
|
|
type TourStepEventFunction = Parameters<Shepherd.Step["on"]>[1];
|
|
|
|
type TourStepEventHandler = [string, [TourStepEvent, TourStepEventFunction]];
|
|
|
|
type TourStepOptions = Shepherd.Step.StepOptions;
|
2023-06-11 14:17:01 +00:00
|
|
|
}
|