/** * vigiles generate-types — emit .d.ts with type unions from actual project state. * * Scans linter configs, package.json, and filesystem to generate TypeScript * types that the compiler uses to PROVE references are valid at authoring time. * * Generated types: * - EslintRule / StylelintRule / RuffRule / ... — enabled rules per linter * - NpmScript — scripts from package.json * - ProjectFile — files in the project (scoped to src/ by default) */ import type { DiscoveredRules } from "./linter-adapter.js"; export interface GenerateTypesOptions { /** The repo root. Required: no cwd fallback. */ readonly basePath: string; fileGlobs?: string[]; } export interface GenerateTypesResult { dts: string; linters: DiscoveredRules[]; /** * Linters that are set up here but whose config could not be read: their * rules are missing from `dts`, and the caller must say so (#371). */ unreadable: readonly { readonly linter: string; readonly reason: string; }[]; scripts: string[]; files: string[]; } /** * Generate .d.ts content with type unions from actual project state. * * Scans all available linters, package.json scripts, and project files. */ export declare function generateTypes(options: Readonly): GenerateTypesResult; //# sourceMappingURL=generate-types.d.ts.map