import { type Express, type Request as ExpressRequest } from 'express'; import { createBetterAuthConfig } from '../../config/index.js'; import { PkceFlowOrchestrator } from '../auth/pkce-flow-orchestrator.js'; /** * Proxies Better Auth requests and completes social login flow. */ export declare class BetterAuthProxyHandler { private readonly auth; private readonly pkceFlowOrchestrator; private static readonly BETTER_AUTH_ERROR_PATH; private static readonly CUSTOM_AUTH_ERROR_PATH; private readonly logger; constructor(auth: Awaited>, pkceFlowOrchestrator: PkceFlowOrchestrator); setupBetterAuthHandler(expressApp: Express): void; private tryRedirectToCustomErrorPage; private isBetterAuthErrorPath; private getSessionTokenFromResponse; private escapeRegex; private tryCompleteAuthFlow; private isJsonRequest; private resolveCallbackProviderId; convertExpressToFetchRequest(req: ExpressRequest): globalThis.Request; } //# sourceMappingURL=better-auth-proxy-handler.d.ts.map