import { AuthErrorCode, LoginMethods, SessionResult, ResetPasswordResult, SignInResult, SignUpResult, VerifyEmailResult } from '../types/auth.js'; /** * Resolve the auth API base path from the current hostname. * * - `*.bffless.app` (or `bffless.app`) → `/api/auth` (SuperTokens flow, * parent-domain cookies, SSO with admin). * - Anything else (custom domains) → `/_bffless/auth` (domain-scoped JWT * flow that wraps SuperTokens recipes server-side). */ declare function resolveAuthBasePath(hostnameOverride?: string): string; declare class AuthClientError extends Error { readonly code: AuthErrorCode; constructor(code: AuthErrorCode, message: string); } interface AuthFetchOptions { basePath: string; signal?: AbortSignal; } declare function fetchSession(opts: AuthFetchOptions): Promise; declare function signIn(opts: AuthFetchOptions, body: { email: string; password: string; }): Promise; declare function signUp(opts: AuthFetchOptions, body: { email: string; password: string; redirect?: string; }): Promise; declare function forgotPassword(opts: AuthFetchOptions, body: { email: string; }): Promise; declare function resetPassword(opts: AuthFetchOptions, body: { token: string; password: string; }): Promise; declare function verifyEmail(opts: AuthFetchOptions, body: { token: string; }): Promise; declare function resendVerification(opts: AuthFetchOptions): Promise; declare function signOut(opts: AuthFetchOptions): Promise; declare function fetchLoginMethods(opts: AuthFetchOptions): Promise; export { AuthClientError, type AuthFetchOptions, fetchLoginMethods, fetchSession, forgotPassword, resendVerification, resetPassword, resolveAuthBasePath, signIn, signOut, signUp, verifyEmail };