//#region src/auth/methods/utils.d.ts
type Result<T, E = Error> = {
  success: false;
  error: E;
} | {
  success: true;
  data: T;
};
type AuthError = {
  code: AuthErrorCode;
  message: string;
};
type AuthErrorCode = "invalidCredentials" | "tooManyAttempts" | "emailTaken" | "invalidDetails" | "invalidCode" | "notAuthenticated" | "emailDomainNotAllowed" | "linkExpired" | "invalidName" | "fileTooLarge" | "notAnImage" | "avatarNotSupported";
//#endregion
export { AuthError, Result };