import type Database from 'better-sqlite3';
import type { ProjectDocRecord, DocType } from '../../types/doc.types.js';
type CreateDocData = Omit<ProjectDocRecord, 'id' | 'last_indexed_at'>;
export declare class DocRepository {
    private db;
    private stmts;
    constructor(db: Database.Database);
    create(data: CreateDocData): number;
    upsert(data: CreateDocData): number;
    getById(id: number): ProjectDocRecord | undefined;
    findByProject(projectId: number): ProjectDocRecord[];
    findByType(projectId: number, docType: DocType): ProjectDocRecord[];
    findByPath(projectId: number, filePath: string): ProjectDocRecord | undefined;
    search(query: string, projectId?: number, limit?: number): ProjectDocRecord[];
}
export {};
