import type { ErrorObject, ValidateFunction } from 'ajv'; import type { Notebook } from '@jupyterlab/notebook'; import type { ISignal } from '@lumino/signaling'; import type { INotebookTourManager, ITourManager } from './tokens'; /** * The NotebookTourManager is needed to sync Notebook metadata with the TourManager */ export declare class NotebookTourManager implements INotebookTourManager { constructor(options: INotebookTourManager.IOptions); get tourManager(): ITourManager; /** * Handle the current notebook changing */ addNotebook(notebook: Notebook): Promise; /** * Get the list of full tour ids for this notebook * * @param notebook the notebook */ getNotebookTourIds(notebook: Notebook): string[]; /** * Get the validation errors for a notebook * @param notebook the notebook * @returns the list of errors */ getNotebookValidationErrors(notebook: Notebook): ErrorObject[]; /** A signal that emits when notebook tours changes. */ get notebookToursChanged(): ISignal; private _onNotebookDisposed; private _cleanNotebookTours; /** * The metadata changed, and therefore maybe tours: remove all of them, and * maybe re-add. */ private _notebookMetadataChanged; /** * Tour metadata was found: */ private _updateFromNotebookMetadata; /** * Actually create a tour from JSON */ private _addNotebookTour; private _tourManager; private _notebookTours; private _notebookToursChanged; private _validationErrors; } /** A namespace for private values. */ export declare namespace Private { /** * Get a singleton pre-compiled validator function. */ function ensureValidator(): Promise; }