import type { DatabaseSync } from "node:sqlite"; import type { AgentDbRecord } from "./databaseTypes.js"; /** * Agents repository backed by SQLite with write-through caching. * Expects: schema migrations already applied for agents. */ export declare class AgentsRepository { private readonly db; private readonly agentsById; private readonly agentLocks; private readonly cacheLock; private readonly createLock; private allAgentsLoaded; constructor(db: DatabaseSync); findById(id: string): Promise; findMany(): Promise; findByUserId(userId: string): Promise; create(record: AgentDbRecord): Promise; update(id: string, data: Partial): Promise; invalidate(id: string): Promise; private agentLockForId; private agentCacheSet; private agentLoadById; private agentParse; } //# sourceMappingURL=agentsRepository.d.ts.map