import { Violation } from "./types.ts"; /** * The representation of what running a Dangerfile generates. */ export interface DangerResults { /** Failed messages */ fails: Violation[]; /** Warning messages */ warnings: Violation[]; /** Info messages */ messages: Violation[]; /** Markdown messages to attach at the bottom of the comment */ markdowns: Violation[]; /** GitHub-specific result metadata */ github?: { /** Markdown for GitHub Actions step summary */ stepSummary?: string; }; /** Meta information about the runtime */ meta?: { runtimeName: string; runtimeHref: string; }; } /** * Extends DangerResults with scheduled async functions * collected during Dangerfile evaluation. */ export interface DangerRuntimeContainer extends DangerResults { /** Asynchronous functions to be run after parsing */ scheduled?: any[]; } /** * Inline results grouped by file and line. */ export interface DangerInlineResults { /** Path to the file */ file: string; /** Line in the file */ line: number; /** Failed messages */ fails: string[]; /** Warning messages */ warnings: string[]; /** Info messages */ messages: string[]; /** Markdown messages */ markdowns: string[]; } /** An empty DangerResults */ export declare const emptyResults: () => DangerResults; /** Whether results have no violations at all */ export declare const isEmptyResults: (results: DangerResults) => boolean; /** Whether results contain only markdown (no fails/warnings/messages) */ export declare const isMarkdownOnlyResults: (results: DangerResults) => boolean; /** Returns only the inline violations from results */ export declare function inlineResults(results: DangerResults): DangerResults; /** Returns only the non-inline violations from results */ export declare function regularResults(results: DangerResults): DangerResults; /** Concat all the violations into new results */ export declare function mergeResults(results1: DangerResults, results2: DangerResults): DangerResults; /** Validates that results have the expected structure */ export declare function validateResults(results: DangerResults): void; /** Sort violations by file and line */ export declare function sortResults(results: DangerResults): DangerResults; /** Convert results into grouped inline results */ export declare function resultsIntoInlineResults(results: DangerResults): DangerInlineResults[]; /** Sort inline results by file and line */ export declare function sortInlineResults(inlineResults: DangerInlineResults[]): DangerInlineResults[]; //# sourceMappingURL=results.d.ts.map