import { AuthMeResponseBody, AuthSignInResponseBody } from './ApiTypes'; /** * Handles authentication-related operations. */ export default class AuthHandler { /** * Signs in a user with the provided username and password. * @param username - The username of the user. * @param password - The password of the user. * @returns A Promise that resolves to a session token string. * @throws An error if the sign-in fails. */ static signIn(username: string, password: string): Promise; /** * Authenticates the user using the provided session token. * Not technically necessary outside of session token validation. * @param sessionToken The session token for authentication. * @returns A promise that resolves to the response body containing the authenticated user's data. */ static authenticate(sessionToken: string): Promise; /** * Signs out the user with the provided session token. * Not technically necessary, but good practice to end the session. * @param sessionToken - The session token of the user. * @returns A Promise that resolves when the sign out is successful. * @throws {Error} If the sign out fails. */ static signOut(sessionToken: string): Promise; /** * Extracts the session token from the response headers. * @param response - The Axios response object. * @returns The session token if found, otherwise undefined. */ private static grabSessionToken; } //# sourceMappingURL=AuthHandler.d.ts.map