// tourguide.d.ts // Import statements for types import { TourGuideOptions } from './core/options'; import { TourGuideStep } from './types/TourGuideStep'; // Declaration of the TourGuideClient class export declare class TourGuideClient { // Public properties backdrop: HTMLElement; dialog: HTMLElement; group: string; isVisible: boolean; activeStep: number; tourSteps: TourGuideStep[]; options: TourGuideOptions; isFinished: (tourGroup?: string) => boolean; // Constructor constructor(options?: TourGuideOptions); // Public methods start(group?: string): Promise; visitStep(stepIndex: number | 'next' | 'prev'): Promise; addSteps(steps: TourGuideStep[]): Promise; nextStep(): Promise; prevStep(): Promise; exit(): Promise; refresh(): Promise; refreshDialog(): Promise; finishTour(exit?: boolean, tourGroup?: string): Promise; updatePositions(): Promise; deleteFinishedTour(groupKey?: string | 'all'): void; setOptions(options: TourGuideOptions): Promise; // Callback properties (if these are meant to be public) _globalFinishCallback: () => void | Promise; _globalBeforeExitCallback: () => void | Promise; _globalAfterExitCallback: Function; _globalBeforeChangeCallback: () => void | Promise; _globalAfterChangeCallback: () => void | Promise; // Public readonly properties (if these are meant to be public) readonly onFinish: (callback: () => void) => void; readonly onBeforeExit: (callback: () => void) => void; readonly onAfterExit: (callback: () => void) => void; readonly onBeforeStepChange: (callback: () => void) => void; readonly onAfterStepChange: (callback: () => void) => void; } // Export any other types or values that are part of the public API