import React, { ReactNode } from 'react'; import { Locale, Styles } from 'react-joyride/es'; export declare type Placement = 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'center'; export declare enum Action { Init = "init", Start = "start", Stop = "stop", Reset = "reset", Restart = "restart", Prev = "prev", Next = "next", Go = "go", Index = "index", Close = "close", Skip = "skip", Update = "update" } export declare enum Status { Idle = "idle", Ready = "ready", Waiting = "waiting", Running = "running", Paused = "paused", Skipped = "skipped", Finished = "finished", Error = "error" } export interface Step { title?: ReactNode; content: ReactNode; placement?: Placement; target: string | HTMLElement; } export interface CallBackProps { action: Action; controlled: boolean; index: number; lifecycle: string; size: number; status: Status; step: Step; type: string; } export interface TourGuideProps { /** * Setting a number here will turn it into controlled mode */ stepIndex?: number; locale?: Locale; styles?: Styles; steps: Step[]; callback?: (data: CallBackProps) => void; } export declare const TourGuide: React.NamedExoticComponent;