/** * Options for {@linkcode lintRecipeOutput}. */ export interface LintRecipeOutputOptions { /** * The new recipe output parquet to lint. */ recipeOutputPath: string; /** * Pre-computed corpus stats JSON (see `corpus-stats.ts`). */ statsPath: string; /** * Anti-pattern rules JSON. * * @defaultValue the `lint-rules.json` beside this module. */ rulesPath?: string; /** * Write the markdown report here as well as stdout. */ outMd?: string; /** * Write a JSON sidecar of the flags + summary here. */ outJSON?: string; } /** * A check emits this lint flag. */ export interface LintFlag { check: string; severity: "error" | "warn"; token: string | null; bigram: string | null; outputLabel: string | null; corpusLabel: string | null; outputCount: number | null; corpusCount: number | null; detail: string; ruleID: string | null; } /** * Findings summary returned by {@linkcode lintRecipeOutput}. */ export interface LintRecipeOutputSummary { errors: number; warnings: number; findings: LintFlag[]; /** * The rendered markdown report (also printed to stdout). */ report: string; } /** * Lint a recipe output against corpus stats and the anti-pattern rules, * printing the markdown report to stdout. */ export declare function lintRecipeOutput(options: LintRecipeOutputOptions, report?: (line: string) => void): Promise; //# sourceMappingURL=recipe-output.d.ts.map