import { CleanedWhere } from "better-auth/adapters"; import { BetterAuthDBSchema } from "better-auth/db"; import { Account, CoList, CoMap, Group, co } from "jazz-tools"; import type { Database, TableItem } from "../schema.js"; export declare class JazzRepository { protected databaseSchema: Database; protected databaseRoot: co.loaded; protected worker: Account; protected owner: Group; protected betterAuthSchema: BetterAuthDBSchema; private coValuesTracker; constructor(databaseSchema: Database, databaseRoot: co.loaded, worker: Account, betterAuthSchema?: BetterAuthDBSchema, ensureSync?: boolean); ensureSync(): Promise; create(model: string, data: Record, uniqueId?: string): Promise; findOne(model: string, where: CleanedWhere[]): Promise; findById(model: string, where: [{ field: "id"; operator: "eq"; value: string; connector: "AND"; }]): Promise; findByUnique(model: string, where: [{ field: string; operator: "eq"; value: string; connector: "AND"; }]): Promise; findMany(model: string, where: CleanedWhere[] | undefined, limit?: number, sortBy?: { field: string; direction: "asc" | "desc"; }, offset?: number): Promise; update(model: string, where: CleanedWhere[], update: Record): Promise; deleteValue(model: string, where: CleanedWhere[]): Promise; count(model: string, where: CleanedWhere[] | undefined): Promise; protected getSchema(model: string): co.Map; protected filterSortPaginateList(list: CoList, where: CleanedWhere[] | undefined, limit?: number, sortBy?: { field: string; direction: "asc" | "desc"; }, offset?: number): T[]; } //# sourceMappingURL=generic.d.ts.map