import { CleanedWhere } from "better-auth/adapters"; import { JazzRepository } from "./generic"; import type { TableItem } from "../schema"; export declare class UserRepository extends JazzRepository { /** * Custom logic: * - sessions are stored inside the user object * - keep sync email index */ create(model: string, data: Record, uniqueId?: string): Promise; /** * Custom logic: * - if the email is in the where clause, find by email */ findMany(model: string, where: CleanedWhere[] | undefined, limit?: number, sortBy?: { field: string; direction: "asc" | "desc"; }, offset?: number): Promise; private getEmailProperty; private findByEmail; /** * Custom logic: * - if the email is changed, update the email index */ update(model: string, where: CleanedWhere[], update: Record): Promise; deleteValue(model: string, where: CleanedWhere[]): Promise; private loadEmailIndex; private updateEmailIndex; } //# sourceMappingURL=user.d.ts.map