import mongodb from "mongodb"; import UserModel from "../models/UserModel"; export interface UserCacheType { users: UserModel[]; getUser: (username: string) => Promise; getUserByUUID: (uuid: string) => Promise; getCachedUser: (username: string) => UserModel | null; getCachedUserByUUID: (uuid: string) => UserModel | null; createUser: (name: string, username: string, email: string, password: string) => Promise; } declare const UserCache: (database: string, client: mongodb.MongoClient) => Promise; export default UserCache;