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';
import { U as UserRole } from '../../enums-Dume-V5Y.js';
import 'drizzle-orm/pg-core';

/**
 * Auth Services - Password Utilities
 * 密码哈希相关工具函数
 */
/**
 * 哈希密码
 */
declare function hashPassword(password: string, saltRounds?: number): Promise<string>;
/**
 * 验证密码
 */
declare function verifyPassword(password: string, hashedPassword: string): Promise<boolean>;

/**
 * Auth Services - Token Utilities
 * Token 相关工具函数
 */

/**
 * JWT Payload
 */
interface JwtPayload {
    userId: string;
    email: string;
    username?: string;
    role: UserRole;
    iat?: number;
    exp?: number;
}
/**
 * 生成 JWT Token
 */
declare function generateToken(payload: Omit<JwtPayload, 'iat' | 'exp'>, secret: string, expiresIn?: string | number): string;
/**
 * 验证 JWT Token
 */
declare function verifyJwtToken(token: string, secret: string): JwtPayload;
/**
 * 从请求中获取 Token
 * 优先从 Cookie 读取（Web），兼容 Authorization Header（Mobile/API）
 */
declare function getTokenFromRequest(request: Request): string | null;

export { type JwtPayload, generateToken, getTokenFromRequest, hashPassword, verifyJwtToken, verifyPassword };
