///
import type { ISignal } from '@lumino/signaling';
import type { LabIcon } from '@jupyterlab/ui-components';
import type { CallBackProps, Props as JoyrideProps, Step } from 'react-joyride';
import type { ITourHandler, StepPlacement } from './tokens';
export declare class TourHandler implements ITourHandler {
constructor(id: string, label: string, options?: Omit, icon?: LabIcon | null, version?: number, controlled?: boolean);
/**
* The index of the current step of the tour. Returns -1 if tour isn't active.
* Setting this moves the tour only when {@link controlled} is true.
*/
get currentStepIndex(): number;
set currentStepIndex(index: number);
/**
* A signal emitted when all the steps of the tour have been seen and tour is finished.
*/
get finished(): ISignal;
/**
* True if the tour has steps, otherwise false. Launching a tour without steps is a no-op.
*/
get hasSteps(): boolean;
/**
* The id of the tour, used by the tour manager to track different tours.
*/
get id(): string;
/**
* Whether the tour is disposed.
*/
get isDisposed(): boolean;
/**
* The tour label
*/
get label(): string;
/**
* The tour icons
*/
get icon(): LabIcon;
/**
* Each tour can have it's behavior, attributes and css styling customized
* by accessing and setting its options.
*/
get options(): Omit;
set options(options: Omit);
/**
* A signal emitted if the user skips or ends the tour prematurely.
*/
get skipped(): ISignal;
/**
* A signal emitted when the tour is first launched.
*/
get started(): ISignal;
/**
* A signal emitted when the tour step has changed.
*/
get stepChanged(): ISignal;
/**
* When true, Joyride is controlled by {@link currentStepIndex}.
*/
get controlled(): boolean;
/**
* A signal emitted when {@link currentStepIndex} changes.
*/
get currentStepIndexChanged(): ISignal;
/**
* The array of steps the tour currently contains. Each step will be followed
* in order as the tour progresses.
*/
get steps(): Step[];
set steps(steps: Step[]);
/**
* Tour version
*
* If a newer tour is available, it will be proposed to the user.
*
* #### Notes
* Prefer calendar versioning (YYYYMMDD)
*/
get version(): number;
/**
* Adds a step to the tour.
*
* @param step Step - The step to add to the current tour.
*/
addStep(step: Step): void;
/**
* Creates a tour step and adds it to this tour.
*
* @param target A css selector that will specify which area/component to highlight with this step.
* @param content The text content to use for this tour step.
* @param placement The position of the content when it is displayed for this step.
* @param title The title to use for the the tour step.
*
* @returns The create step
*
* @deprecated Prefer using {@link addStep} passing the argument within an object.
*/
createAndAddStep(target: string, content: React.ReactNode, placement?: StepPlacement, title?: string): Step;
/**
* Dispose the tour.
*/
dispose(): void;
/**
* Is the tour running?
*/
isRunning(): boolean;
/**
* Handle react-joyride callbacks
*
* @param data Callback data
*/
handleTourEvent: (data: CallBackProps) => void;
/**
* This will replace the tour step at the specified index with a new step
* @param index The index of the step to update.
* @param newStep The new step that will replace the old step.
*/
replaceStep(index: number, newStep: Step): void;
/**
* Removes a step from the tour, no-op if the index is out of range.
* @param index The index of the step to remove.
*/
removeStep(index: number): Step | null;
private _skipped;
private _finished;
private _started;
private _stepChanged;
private _currentStepIndexChanged;
private _currentStepIndex;
private _id;
private _isDisposed;
private _label;
private _options;
private _previousStatus;
private _steps;
private _icon;
private _version;
private _controlled;
}