export declare const SKIP_DIRS: Set; export interface PackageJson { name?: string; private?: boolean; main?: string; module?: string; exports?: unknown; workspaces?: string[] | { packages?: string[]; }; dependencies?: Record; devDependencies?: Record; peerDependencies?: Record; } export declare function readJson(path: string): Promise; export declare function allDeps(pkg: PackageJson | null): Record; /** Every source file under a root, depth-capped, skipping the usual noise. */ export declare function sourceFiles(root: string, maxDepth?: number): Promise; /** * Every source file under the application's own roots. * * Exported because the conformance sweep chooses which of these are worth a * model's attention, and it must be choosing from the same set the scan read. * Two different notions of "the application's source" would mean a file the * scan cleared could never be re-examined, or a file nobody scanned could be * filed against. */ export declare function appSourceFiles(roots: string[]): Promise; /** Import specifiers in one file, from both `import ... from "x"` and `require("x")`. */ export declare function importsOf(text: string): string[];