import type { CommitCategory, IndexMetadata } from './types.js'; export declare const MAX_FILES_PER_COMMIT = 20; /** * Signal keywords that make a commit worth indexing. * Exact set from Python filters.py RELEVANT_KEYWORDS. */ export declare const RELEVANT_KEYWORDS: Set; /** * True if commit message contains at least one signal keyword. * Exact port of Python is_relevant(). */ export declare function isRelevant(message: string): boolean; /** * First keyword match → category. Falls back to 'general'. * Exact port of Python build_metadata() category logic. */ export declare function categorize(message: string): CommitCategory; /** * Build the searchable document text stored in ChromaDB. * Exact format from Python _build_document(): * * {message} * Author: {name} <{email}> * Date: {YYYY-MM-DD} * Stats: {stats_str} * Files: {comma-separated or "none"} */ export declare function buildDocument(message: string, authorName: string, authorEmail: string, dateStr: string, statsStr: string, files: string[]): string; /** * Build the 6-line LLM-readable summary for ContextStore (Layer 2). * Exact format from Python summarize_commit(): * * Commit: {hash} * Author: {name} <{email}> * Date: {YYYY-MM-DD HH:MM UTC} * Message: {message} * Stats: +{ins}/-{del} lines across {n} file(s) * Files changed: {comma-separated or "none"} */ export declare function summarizeCommit(params: { hash: string; authorName: string; authorEmail: string; date: Date; message: string; insertions: number; deletions: number; fileCount: number; files: string[]; }): string; /** * Build structured metadata dict stored alongside the commit. * Exact port of Python build_metadata(). * Returns IndexMetadata (superset of CommitMetadata). */ export declare function buildMetadata(params: { hash: string; authorName: string; authorEmail: string; date: Date; message: string; files: string[]; repoName: string; }): IndexMetadata; /** * Build stats string from insertions/deletions. * Format: "+100/-50 lines" — used in buildDocument(). */ export declare function buildStatsStr(insertions: number, deletions: number): string; //# sourceMappingURL=filters.d.ts.map