import { PageTourOptions } from './models/pagetouroptions'; import { Tutorial } from './models/tutorial'; import { PageContext } from './models/pagecontext'; import { IPagetourRepository } from './repository/ipagetourrepository'; import { PagetourFeedbackEnum } from './models/pagetourfeedbackenum'; import { AnnouncementFeedbackEnum } from './models/announcementfeedbackenum'; declare class PageTour { static ContextChangeEvent: string; private constructor(); private static me; private pageTourManager; private pageTourAuthor; private dataStore; private authService; private eventHandlers; /** * * @param repository: IPagetourRepository * @param options: PageTourOptions * * Initialize the PageTour Library */ static init: (repository: IPagetourRepository, options: PageTourOptions) => Promise; private static initializePageTourServices; /** * Get an instance of PageTour * @returns Instance of type PageTour * @throws Error if library has not been initialized */ static GetInstance: () => PageTour; /** * Creates PageTour Manager Dialog and attaches it to the DOM */ openPageTourManageDialog: () => Promise; /** * Closes and removes Manage Tour Dialog from the DOM */ closePageTourManageDialog: () => void; /** * Creates PageTour Author Dialog and attaches it to the DOM */ openPageTourAuthorDialog: () => void; /** * Creates PageTour Edit Dialog and attaches it to the DOM */ openPageTourEditDialog: (tour: Tutorial) => void; /** * @param tourId: string * Deletes tour with the given tourId */ deleteTourById: (tourId: string) => Promise; /** * @returns current page context */ getPageContext: () => PageContext; /** * @param {*} pageContext * @param {*} tags * */ getTours: (pageContext: any) => Promise; autoPlayByContext: (pageContext: PageContext, startDelay?: any, autoPlayViewedTour?: boolean) => Promise; autoPlayByTourId: (tourId: string, startDelay: any) => Promise; autoPlayByTourObject: (tour: Tutorial, startDelay?: any) => Promise; destroy: () => void; isAllowed: (permission: string) => Promise; private static initializeServices; } export { PageTour, Tutorial, IPagetourRepository, PagetourFeedbackEnum, AnnouncementFeedbackEnum };