import type { Database } from "../client.js"; import { magicLinks, userSessions } from "../schema/index.js"; export declare function authQueries(db: Database): { createMagicLink(email: string, token: string, expiresAt: string): any; /** Returns the magic link only if valid (not used, not expired) */ findValidMagicLink(token: string): typeof magicLinks.$inferSelect | undefined; /** Fetch by token regardless of status (for validation logic in route) */ findMagicLink(token: string): typeof magicLinks.$inferSelect | undefined; markMagicLinkUsed(id: string): any; /** Delete expired and used magic links (housekeeping) */ pruneExpiredMagicLinks(): any; createSession(email: string, token: string, expiresAt: string): any; findSession(token: string): typeof userSessions.$inferSelect | undefined; deleteSession(token: string): any; /** Delete expired sessions (housekeeping) */ pruneExpiredSessions(): any; }; //# sourceMappingURL=auth.d.ts.map