import { Database } from 'bun:sqlite'; import { z } from 'zod'; import { type CommitEntry } from './schema.js'; export declare const dbCommitRowSchema: z.ZodObject<{ commit_hash: z.ZodString; parents: z.ZodNullable; refs: z.ZodNullable; tags: z.ZodNullable; author: z.ZodString; email: z.ZodNullable; committer: z.ZodNullable; committerEmail: z.ZodNullable; committerDate: z.ZodNullable; date: z.ZodString; type: z.ZodNullable; scope: z.ZodNullable; isBreaking: z.ZodNumber; breakingChangeDescription: z.ZodNullable; isRevert: z.ZodNumber; revertedCommit: z.ZodNullable; isRebased: z.ZodNumber; subject: z.ZodString; cleanSubject: z.ZodNullable; body: z.ZodNullable; size: z.ZodNullable>; files: z.ZodNullable; fileCount: z.ZodNullable; isFilesTruncated: z.ZodNumber; totalInsertions: z.ZodNullable; totalDeletions: z.ZodNullable; metadata: z.ZodNullable; patch: z.ZodNullable; isPatchTruncated: z.ZodNumber; references: z.ZodNullable; coAuthors: z.ZodNullable; reviewers: z.ZodNullable; associatedIssues: z.ZodNullable; validationErrors: z.ZodNullable; isCorrupted: z.ZodNumber; }, z.core.$strip>; export declare function initCache(dbPath?: string): Database; export declare function closeCache(): void; export declare function insertCommits(batch: CommitEntry[]): void; export declare function queryCommits(filters?: Partial): CommitEntry[]; /** * Batch-query commits by SHA list, replacing the N+1 per-commit lookup pattern. * Returns a Map keyed by commit SHA for O(1) caller lookup. */ export declare function batchQueryCommits(shas: string[]): Map; //# sourceMappingURL=cache.d.ts.map