import { AxiosError } from "axios"; import { ConventionService } from "./ConventionService"; import { ConsoleService } from "./ConsoleService"; export declare class AuthenticationService { private console; private conventions; constructor(console: ConsoleService, conventions: ConventionService); _handleError(err: AxiosError): Promise; /** * Retrieves the current cached M2M auth token from the DXP-Platform BitBucket repository * * @remarks * This is not used by the login command for local tokens, see sendVerificationEmail & getTokenFromVerification * * @returns The auth token stored in the dxp platform as a promise */ getAppTokenFromPlatform(client_id: string, client_secret: string): Promise; getAppToken(client_id?: string, client_secret?: string): Promise; sendVerificationEmail(client_id: string, email: string): Promise>; getTokenFromVerification(client_id: string, email: string, verification_code: string): Promise; }