import { AuthenticationControl } from './authentication-control'; import { UserModel } from './../models/user.model'; import { DecoApi, DecoInitOptions, Store, EnsureModel } from '../deco'; import { SwissdataState, AppState } from '../state/interfaces'; import { Container } from 'aurelia-framework'; import 'whatwg-fetch'; import { NavigationInstruction } from 'aurelia-router'; export interface SwissdataInitOptions extends DecoInitOptions { } export declare class SwissdataApi extends DecoApi { state: AppState; private subscription; ready: boolean; authenticationControl: AuthenticationControl; clientUrl: string; get ensureUsers(): EnsureModel; constructor(http: any); private swissdataInitDone; init(store: Store, options?: SwissdataInitOptions): Promise; setState(state: SwissdataState): void; defaultOptions(options?: any): any; extendEntrpoint(entrypoint: string): string; addAppId(entrypoint: string): string; isReady(): Promise; private checkStatusInterval; private checkStatus; startCheckStatus(interval: number, unit?: 'milliseconds' | 'seconds'): void; stopCheckingStatus(): void; ensureAuthentication(): Promise; checkAuthentication(): Promise; authenticate(username: string, password: string): Promise; doubleAuth(code: string): Promise; setAccessToken(token: any): Promise; setCurrentUser(): Promise; setDoubleAuth(token: any): Promise; logout(): Promise; requestResetPassword(emailOrMobile: string): Promise; resetPassword(token: any, code: any, newPassword: any): Promise; hideOnboarding(): Promise; private setStateAsUnauthenticated; private setStateAsAuthenticated; } export declare class AuthorizeStep { private container; constructor(container?: Container); static redirectUnauthenticatedTo: string; run(navigationInstruction: NavigationInstruction, next: any): any; }