import type { ApiFunctionsContext, ApiFunctionsUser } from '@redocly/config';
export declare function shouldHandleMcpAuth(requiresLogin: boolean, rbacConfig?: Record<string, unknown>): boolean;
export declare function handleMcpAuth(request: Request, context: ApiFunctionsContext): Promise<{
    isAuthenticated: boolean;
    isTokenValid?: boolean;
    currentUser?: ApiFunctionsUser;
    accessToken?: string;
}>;
export declare function constructUnauthorizedResponse(baseUrl: string): Response;
export declare function constructInvalidTokenResponse(): Response;
//# sourceMappingURL=auth-handlers.d.ts.map