/** * Style indexer — Spec 10. * * Syncs style declarations, design tokens, and class usage to the SQLite * style index. Uses content-hash-based change detection to avoid re-extracting * unchanged files. * * Called from auditRunner.ts before the analyzer run, mirroring the function * index sync pattern. */ import type Database from 'better-sqlite3'; export interface StyleSyncResult { /** Files whose declarations were added or updated. */ changed: number; /** Files that were skipped (content hash unchanged). */ skipped: number; /** Files whose declarations were removed (no longer on disk). */ removed: number; /** Files that failed extraction. */ errors: number; } export interface StyleSyncOptions { /** When true, only process the given files (scoped/diff audit). Default false. */ scoped?: boolean; } /** * Sync the style index for the given files. * * - Extracts declarations, tokens, and class usage from each file. * - Uses content hashes to skip unchanged files. * - For scoped runs: deletes and re-inserts declarations for the given files. * - For full runs: also removes stale entries for files no longer on disk. */ export declare function syncStyleIndex(rawDb: Database.Database, files: string[], projectRoot: string, options?: StyleSyncOptions): Promise; //# sourceMappingURL=styleIndexer.d.ts.map