import { GuardOptions, GuardEventsKebabToCamelType, StartWithRedirectOptions, AuthenticationClient, JwtTokenStatus, User, Lang, LogoutParams } from './types'; import '@authing/react-ui-components/lib/index.min.css'; export * from './types'; export declare class Guard { options: GuardOptions; private visible; private then; private publicConfig?; constructor(options: GuardOptions); private adaptOptions; private getRequestHost; private getPublicConfig; getAuthClient(): Promise; static getGuardContainer(selector?: string | HTMLElement): Element | null; private eventListeners; /** * 启动嵌入模式 * @param el String * @returns Promise */ start(el?: string | HTMLElement, visible?: boolean): Promise; startRegister(): void; checkLoginStatus(): Promise; changeLang(lang: Lang): void; changeContentCSS(contentCSS: string): void; /** * 启动跳转模式 */ startWithRedirect(options?: StartWithRedirectOptions): Promise; handleRedirectCallback(): Promise; private getAccessTokenByCode; private getCodeAndCodeChallenge; private setTokenCache; private clearTokenCache; private clearLoginCache; private parseUrlQuery; /** * 获取当前用户信息 */ trackSession(): Promise; logout(params?: LogoutParams): Promise; render(cb?: () => void): Promise; on(evt: T, handler: Exclude): void; show(): void; hide(): void; unmount(): void; getCurrentView(): { currentModule: string | undefined; currentTab: string | undefined; }; changeView(currentView: string): Promise; private getAgreementsContext; checkAllAgreements(): void; unCheckAllAgreements(): void; }