export interface PackageJson { scripts?: Record; dependencies?: Record; devDependencies?: Record; } export declare function readJsonFile(filePath: string): T | null; export declare function detectPackageManager(root: string): string | null; export declare function detectLanguages(root: string): string[]; export declare function detectFrameworks(root: string): string[]; export declare function findImportantConfigFiles(root: string): string[]; export declare function readPackageScripts(root: string): Record; export interface TreeEntry { name: string; type: "file" | "directory" | "more"; children?: TreeEntry[]; } export interface TreeBuildStats { totalFilesScanned: number; directoriesShown: number; excludedDirectoriesCount: number; truncated: boolean; } export declare function buildDirectoryTree(root: string, excludeDirs: Set, maxDepth?: number): TreeEntry[]; export declare function buildCompactDirectoryTree(root: string, excludeDirs: Set, maxDepth: number, maxEntriesPerDir: number): { tree: TreeEntry[]; stats: TreeBuildStats; };