/** One declaration the project ships: a script, a target, a table, a CI step. */ export type DeclaredCommand = { /** * The declaration's own name — the script name, the make target, the tool * table. Empty for a CI step, which has no name of its own. */ readonly label: string; /** The command line the project declared. */ readonly command: string; /** Where the declaration was found. */ readonly declaredBy: string; }; /** What one declaration site yielded. */ export type DeclarationScan = { readonly commands: readonly DeclaredCommand[]; /** Sites that could not be read — reported, never swallowed. */ readonly problems: readonly string[]; }; /** Every declaration the project ships, and the sites that could not be read. */ export type ProjectDeclarations = { readonly commands: readonly DeclaredCommand[]; readonly problems: readonly string[]; /** The `package.json` scripts by name, so `pnpm lint` can be resolved. */ readonly scripts: ReadonlyMap; }; /** Every declaration the project ships. */ export declare function readProjectDeclarations(projectRoot: string): ProjectDeclarations;