import { UserModel } from './../models/user.model'; import { SwissdataApi } from './swissdata-api'; import { Store } from '../deco'; import { AppState } from '../state/interfaces'; import { EventAggregator } from 'aurelia-event-aggregator'; export declare class SdLogin { inited: boolean; store: Store; state: AppState; api: SwissdataApi; private log; private strongRegex; private mediumRegex; private weakRegex; passwordStrengthRequired: 'strong' | 'medium' | 'weak'; eventAggregator: EventAggregator; processing: boolean; constructor(); init(store: Store, api: SwissdataApi): void; readySub: Array; ready(): Promise; registerActions(): void; checkIfUsernameExists(username: string): Promise; private authenticate; login(username: string, password: string): Promise; doubleAuth(code: any): void; passwordRegex(): RegExp; createAccount(firstname: string, lastname: string, email: string | null, mobile: string | null, password: string, ensureEmail: boolean, ensureMobile: boolean, extraData?: any): Promise; validateCode(code: string, type: 'email' | 'mobile'): Promise; resendCode(method: 'email' | 'mobile'): Promise; processValidationResponse(response: any): true; requestResetPassword(input: string): Promise; resetPassword(code: string, password: string): Promise; logout(): Promise; }