import { CognitoUserSession, UserData } from 'amazon-cognito-identity-js'; import { AmazonCognitoIdentityJsError } from 'ember-cognito-identity/errors/cognito'; import { UserAttributes } from 'ember-cognito-identity/services/cognito'; interface Args { username: string; cognitoUserSession?: any; mfaEnabled?: boolean; userPool?: any; assert?: any; } export declare const MOCK_COGNITO_CONFIG: { mustEnterNewPassword: boolean; mustEnterMfaCode: boolean; }; export declare function mockCognitoUser(args: Args): MockCognitoUser | undefined; declare class MockCognitoUser { #private; constructor({ username, cognitoUserSession, mfaEnabled, userPool, assert, }: Args); signOut(): void; globalSignOut(callback: { onSuccess: () => void; onFailure: () => void; }): void; getUsername(): string; authenticateUser(authenticationDetails: { username: string; password: string; }, callback: { onSuccess: () => void; onFailure: (error: Error) => void; newPasswordRequired: (userAttributes: UserAttributes, requiredAttributes: UserAttributes) => void; totpRequired: () => void; }): void; associateSoftwareToken(callback: { associateSecretCode: (secret: string) => string; onFailure: (error: Error) => void; }): void; getUserData(callback: (error: null | Error, userData: UserData) => void, options?: { bypassCache: boolean; }): void; getSession(callback: (error: null | Error, cognitoUserSession: CognitoUserSession) => void): void; refreshSession(_: string, callback: (error: null | Error) => void): void; sendMFACode(code: string, callback: { onSuccess: () => void; onFailure: (error: AmazonCognitoIdentityJsError) => void; }): void; completeNewPasswordChallenge(newPassword: string, newAttributes: any, callback: { onSuccess: () => void; onFailure: (error: AmazonCognitoIdentityJsError) => void; }): void; setUserMfaPreference(_: any, totpSettings: { PreferredMfa: boolean; Enabled: boolean; }, callback: (error: null | Error) => void): void; forgotPassword(callback: { onSuccess: () => void; onFailure: (error: AmazonCognitoIdentityJsError) => void; }): void; changePassword(oldPassword: string, newPassword: string, callback: (error: null | Error) => void): void; confirmPassword(code: string, newPassword: string, callback: { onSuccess: () => void; onFailure: (error: AmazonCognitoIdentityJsError) => void; }): void; updateAttributes(_: any, callback: (error: null | Error) => void): void; verifySoftwareToken(token: string, deviceName: string, callback: { onSuccess: () => void; onFailure: (error: AmazonCognitoIdentityJsError) => void; }): void; } export {}; //# sourceMappingURL=cognito-user.d.ts.map