import { U as UserRole } from '../enums-Dume-V5Y.js';
export { u as userRole } from '../enums-Dume-V5Y.js';
export { Account, NewAccount, NewSession, NewUser, NewVerification, Session, User, Verification, account, accountRelations, session, sessionRelations, user, userRelations, verifications } from './schema/index.js';
export { A as AuthResult, a as AuthServiceConfig, D as DrizzleAuthService, S as SessionInfo, U as UserInfo, V as VerifyResult } from '../drizzle-auth-service-Bxlovhv8.js';
export { JwtPayload, generateToken, getTokenFromRequest, hashPassword, verifyJwtToken, verifyPassword } from './services/index.js';
import { NextRequest } from 'next/server';
export { AnalyticsEvent, AnalyticsService, ApiResponse, BaseRouteConfig, LoginRouteConfig, RegisterRouteConfig, createAnalyticsAdapter, createDefaultBaseConfig, createDefaultLoginConfig, createDefaultRegisterConfig, createLoginHandler, createLoginOptionsHandler, createLogoutHandler, createLogoutOptionsHandler, createMeHandler, createMeOptionsHandler, createRegisterHandler, createRegisterOptionsHandler } from './routes/index.js';
export { AuthLevel, AuthMiddlewareConfig, RouteContext, RouteHandler, createAuthMiddleware } from './middleware/index.js';
export { useAuth, useAuthForm } from './hooks/index.js';
export { B as BaseApiClient } from '../base-api-client-B-yUCal3.js';
export { API_ROUTES, STORAGE_KEYS } from './client/index.js';
export { L as LoginFormState, R as RegisterFormState } from '../types-iFeyR443.js';
export { A as AuthResponse, B as BaseUser, I as IAuthClient, L as LoginForm, R as RegisterForm, U as UseAuthReturn } from '../types-Dlu52uDy.js';
import 'drizzle-orm/pg-core';
import 'drizzle-orm';
import 'react';
import '../types-BaZccpvk.js';
import '../types-CbTsi9CZ.js';

/**
 * 验证 API 请求的身份
 * 从请求头中获取 Token 并验证，返回用户信息
 */
declare function validateApiAuth(request: NextRequest): Promise<{
    id: string;
    email: string;
    username: string | undefined;
    role: UserRole;
} | null>;
/**
 * 验证 API 请求的身份（针对使用数字 ID 的项目）
 * 将 string 类型的 userId 转换为 number 类型
 */
declare function validateApiAuthNumeric(request: NextRequest): Promise<{
    id: number;
    email: string;
    username: string | undefined;
    role: UserRole;
} | null>;

export { UserRole, validateApiAuth, validateApiAuthNumeric };
