import { AccountCreationManager, AccountCreationDetails, Account, AccountDetailsProvider, AccountStatusProvider, UserProfile, LoginPasswordCredentials } from '../../../api'; import { UuidGenerator } from '../../../../common/api'; import { UserRepository } from '../../../../common/api/User'; export interface LoginPasswordAccountDetails extends AccountCreationDetails { credentials: { /** * @param {string} login The unique login that will be later used for authentication */ login: string; /** * @param {string} password The password that will be later used for authentication */ password: string; }; /** * @param {string} profile Additional personal information about the user (ex: firstname, lastname, ...) */ profile?: UserProfile; } export declare class DefaultLoginPasswordAccountDetails implements LoginPasswordAccountDetails { profile?: UserProfile | undefined; credentials: LoginPasswordCredentials; constructor(login: string, password: string, profile?: UserProfile | undefined); } /** * Create the account using ZetaPush cloud service. * * The account is created using a login and a password. Login and password will later be used * by the user to log in your application. * * The account creation may also use data provided in profile to store data about * the user. * * When the account is created, a status (AccountStatus) is set to indicate the * initial state of the confirmation process. */ export declare class LoginPasswordAccountCreationManager implements AccountCreationManager { private userRepository; private uuidGenerator; private accountStatusProvider; private additionalAccountDetailsProvider?; constructor(userRepository: UserRepository, uuidGenerator: UuidGenerator, accountStatusProvider: AccountStatusProvider, additionalAccountDetailsProvider?: AccountDetailsProvider | undefined); createAccount(accountCreationDetails: AccountCreationDetails): Promise; private toCredentials; private supports; private getUserProfile; }