import type Database from "better-sqlite3"; import type { Project } from "../../schemas/project.schema"; export interface UpsertProjectInput { lastConversationId?: string | null; lastConversationCreatedAt?: string | null; latestMessageAt?: string | null; latestMessageId?: string | null; name?: string | null; } export declare class ProjectsRepository { private getByPath; private getById; private listAll; private insert; private update; constructor(db: Database.Database); getProjectByPath(rawPath: string): Project | null; getProjectById(id: string): Project | null; listProjects(): Project[]; /** * Insert a project at the given canonical path, or update its metadata * if one already exists. Returns the persisted Project row. * * Idempotent: passing the same path twice returns the same project id. */ upsertProjectByPath(rawPath: string, input?: UpsertProjectInput): Project; } //# sourceMappingURL=projects.repository.d.ts.map