import { Context, Next } from 'hono'; import type { UserApiKey } from '../../config.js'; /** * 用户 Session 存储(内存) */ export declare const userSessions: Map; /** * 用户登录(通过 API Key) */ export declare function loginUserSession(apiKey: string, configPath: string): string | null; /** * 获取当前登录用户 */ export declare function getCurrentUser(c: Context, configPath?: string): UserApiKey | null; /** * 用户认证中间件 */ export declare function createUserAuthMiddleware(configPath: string): (c: Context, next: Next) => Promise<(Response & import("hono").TypedResponse) | (Response & import("hono").TypedResponse<{ error: { message: string; }; }, 401, "json">) | undefined>; //# sourceMappingURL=auth.d.ts.map