import type { DesignInventory } from "./inventory.js"; import type { ResolvedConfig } from "../types.js"; /** The repository root: the nearest ancestor holding a .git, else the project. */ export declare function repoRootOf(projectDir: string): Promise; export interface DetectOptions { /** Skip the hand-roll scan, which is the only expensive part. */ skipHandRolls?: boolean; } /** * Read the project and say what it is built from. * * A declared `designSystem` in the config is not consulted here: this function * reports what the repository shows, and the caller layers the declaration over * it. Keeping those apart means `--refresh` can show a person that what they * declared and what is on disk have come apart. */ export declare function detect(resolved: ResolvedConfig, opts?: DetectOptions): Promise;