interface SessionData {
    expires_at: number;
    created_at: number;
    ip?: string;
}
export declare function getSession(token: string): SessionData | undefined;
export declare function createSession(token: string, expiresAt: number, ip?: string): void;
export declare function extendSession(token: string, newExpiresAt: number): void;
export declare function deleteSession(token: string): void;
/**
 * Delete all sessions except the one with the given token.
 * Used when changing the password to invalidate all other sessions.
 */
export declare function deleteAllSessionsExcept(exceptToken?: string): void;
export declare function cleanupExpiredSessions(): number;
export {};
//# sourceMappingURL=sessions.d.ts.map