import { OnDestroy } from '@angular/core'; import { AuthContext, AuthEvent, AuthInterpreter, AuthMachineState } from '@aws-amplify/ui'; import { Event, Subscription } from 'xstate'; import { AuthSubscriptionCallback } from '../common'; /** * AuthenticatorService provides access to the authenticator state and context. */ export declare class AuthenticatorService implements OnDestroy { private _authState; private _authService; private _sendEventAliases; private _machineSubscription; private _facade; constructor(); ngOnDestroy(): void; /** * Context facades */ get error(): string; get hasValidationErrors(): boolean; get isPending(): boolean; get route(): import("@aws-amplify/ui").AuthenticatorRoute; get authStatus(): "authenticated" | "configuring" | "unauthenticated"; get user(): import("@aws-amplify/ui").AmplifyUser; get validationErrors(): Record; get codeDeliveryDetails(): import("@aws-amplify/ui").CodeDeliveryDetails; /** * Service facades */ get initializeMachine(): (data?: Record) => void; get updateForm(): (data?: Record) => void; get updateBlur(): (data?: Record) => void; get resendCode(): (data?: Record) => void; get signOut(): (data?: Record) => void; get submitForm(): (data?: Record) => void; /** * Transition facades */ get toFederatedSignIn(): (data?: Record) => void; get toResetPassword(): (data?: Record) => void; get toSignIn(): (data?: Record) => void; get toConfirmResetPassword(): (data?: Record) => void; get toSignUp(): (data?: Record) => void; get skipVerification(): (data?: Record) => void; /** * Internal utility functions */ /** @deprecated For internal use only */ get authState(): AuthMachineState; /** @deprecated For internal use only */ get authService(): AuthInterpreter; /** @deprecated For internal use only */ get context(): AuthContext; /** @deprecated For internal use only */ get slotContext(): { $implicit: { signOut: (data?: Record) => void; initializeMachine: (data?: Record) => void; resendCode: (data?: Record) => void; submitForm: (data?: Record) => void; updateForm: (data?: Record) => void; updateBlur: (data?: Record) => void; toFederatedSignIn: (data?: Record) => void; toResetPassword: (data?: Record) => void; toConfirmResetPassword: (data?: Record) => void; toSignIn: (data?: Record) => void; toSignUp: (data?: Record) => void; skipVerification: (data?: Record) => void; authStatus: "authenticated" | "configuring" | "unauthenticated"; codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails; error: string; hasValidationErrors: boolean; isPending: boolean; route: import("@aws-amplify/ui").AuthenticatorRoute; socialProviders: import("@aws-amplify/ui").SocialProvider[]; unverifiedContactMethods: import("@aws-amplify/ui").UnverifiedContactMethods; user: import("@aws-amplify/ui").AmplifyUser; validationErrors: Record; }; signOut: (data?: Record) => void; initializeMachine: (data?: Record) => void; resendCode: (data?: Record) => void; submitForm: (data?: Record) => void; updateForm: (data?: Record) => void; updateBlur: (data?: Record) => void; toFederatedSignIn: (data?: Record) => void; toResetPassword: (data?: Record) => void; toConfirmResetPassword: (data?: Record) => void; toSignIn: (data?: Record) => void; toSignUp: (data?: Record) => void; skipVerification: (data?: Record) => void; authStatus: "authenticated" | "configuring" | "unauthenticated"; codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails; error: string; hasValidationErrors: boolean; isPending: boolean; route: import("@aws-amplify/ui").AuthenticatorRoute; socialProviders: import("@aws-amplify/ui").SocialProvider[]; unverifiedContactMethods: import("@aws-amplify/ui").UnverifiedContactMethods; user: import("@aws-amplify/ui").AmplifyUser; validationErrors: Record; }; /** @deprecated For internal use only */ subscribe(callback: AuthSubscriptionCallback): Subscription; /** @deprecated For internal use only */ send(event: Event): void; }