/** * Project Scanner — detects project conventions and generates kern.config.ts * * Scans config files (package.json, tsconfig.json, .prettierrc, etc.) * to auto-generate a KernConfig that matches the project's setup. */ import type { KernConfig } from './config.js'; export interface ScanResult { config: Partial; info: ScanInfo; detections: Detection[]; } export interface ScanInfo { packageManager: 'npm' | 'pnpm' | 'yarn' | 'bun' | null; typescript: { strict: boolean; pathAliases: Record; module: string | null; } | null; formatting: { semicolons: boolean; singleQuote: boolean; tabWidth: number; trailingComma: string; } | null; editorConfig: { indentStyle: string; indentSize: number; } | null; typeLibraries: string[]; } export interface Detection { source: string; field: string; value: string; confidence: 'high' | 'medium'; } export declare function scanProject(cwd: string): ScanResult; export declare function generateConfigSource(result: ScanResult): string; export declare function formatScanSummary(result: ScanResult): string;