/** * Source-scanner entry: dispatch by extension to the Svelte or TypeScript walker, * and a multi-file helper that merges per-file scans while surfacing (never * swallowing) files that failed to parse. */ import type { ScanOptions, UsageScan } from './types.js'; /** Scan one source's text for translation-key usage. */ export declare function scanSource(code: string, file: string, options?: ScanOptions): Promise; export interface ScanSourcesResult { scan: UsageScan; /** Files that could not be parsed — reported, not silently dropped. */ errors: Array<{ file: string; message: string; }>; } /** Scan many sources concurrently and merge them; parse failures become `errors`. */ export declare function scanSources(files: Array<{ file: string; code: string; }>, options?: ScanOptions): Promise;