import { type Database } from "../data/database.js"; export interface SessionToken { token: string; expiresAt: number; } export declare const SESSION_TTL_MS: number; export declare function hashPassword(password: string): string; export declare function verifyPassword(password: string, stored: string): boolean; export declare function hashAuthToken(token: string): string; export declare function importAuthSession(tokenHash: string, expiresAt: number, db?: Database): void; export declare function login(username: string, password: string): SessionToken | null; export declare function validateToken(token: string): boolean; export declare function extractToken(headers: Record): string | null; export declare function requireAuth(headers: Record): boolean; //# sourceMappingURL=auth.d.ts.map