import { AuthenticationResultType, CognitoIdentityProviderClient, InitiateAuthResponse } from '@aws-sdk/client-cognito-identity-provider'; export type LoginAttemptResponse = { resetPasswordCallback?: (newPassword: string) => Promise; mfaCodeCallback?: (code: string) => Promise; }; export default class AWSCognitoClient { clientId: string; cognitoIdentityProviderClient: CognitoIdentityProviderClient; loginDomain: string | void; redirectUri: string | void; logoutUri: string | void; listeners: Array<() => unknown>; constructor({ clientId, region, loginDomain, redirectUri, logoutUri, }: { clientId: string; region: string; redirectUri?: string; logoutUri?: string; loginDomain?: string; }); get EXPIRES_AT(): string; get ACCESS_TOKEN(): string; get ID_TOKEN(): string; get REFRESH_TOKEN(): string; get STATE(): string; get PKCE_CODE_VERIFIER(): string; _executeListeners(): void; _storeAuthenticationResult(authenticationResult: AuthenticationResultType): void; _removeAuthenticationResult(): void; _getAccessToken(): string | undefined; _getIdToken(): string | undefined; _getRefreshToken(): string | undefined; _isSessionValid(): boolean; _refreshSession(): Promise; registerListener(listener: () => unknown): () => void; responseToAuthChallenge(username: string, initiateAuthResponse: InitiateAuthResponse): Promise; loginUsernamePassword(username: string, password: string): Promise; loginHostedUI(identityProviderName?: string): Promise; handleAuthentication(): Promise; changePassword(existingPassword: string, newPassword: string): Promise; confirmForgotPassword({ username, code, password, }: { username: string; code: string; password: string; }): Promise; logoutHostedUI(): void; logout(): Promise; getIdToken(): Promise; getAccessToken(): Promise; checkIsMfaEnabled(): Promise; disableMfa(): Promise; setupMfa(): Promise<{ secretCode: string | undefined; mfaCodeCallback: (code: string) => Promise; } | undefined>; }