import type { MongoInsertType, MongoStore } from "liwi-mongo"; import type { Account, User, UserSanitized } from "./types"; export default class MongoUsersManager { store: MongoStore; constructor(store: MongoStore); /** @deprecated use findById instead */ findConnected(connected: string): Promise; findById(userId: string): Promise; insertOne(user: MongoInsertType): Promise; replaceOne(user: U): Promise; sanitize(user: U): USanitized; findOneByAccountOrEmails({ accountId, emails, provider, }: { accountId: number | string; emails?: string[]; provider: string; }): Promise; updateAccount(user: U, account: Account): Promise; sanitizeBaseUser(user: U): UserSanitized; } //# sourceMappingURL=MongoUsersManager.d.ts.map