import type { DangerDSLType } from "./dsl/danger-dsl.ts"; import type { DangerRuntimeContainer } from "./dsl/results.ts"; import type { MarkdownString } from "./dsl/types.ts"; export type { DangerDSLType, DangerUtilsDSL } from "./dsl/danger-dsl.ts"; export type { DangerResults, DangerRuntimeContainer } from "./dsl/results.ts"; export type { MarkdownString, Violation, GitCommit, GitCommitAuthor } from "./dsl/types.ts"; export type { GitDSL, GitJSONDSL, TextDiff, StructuredDiff, JSONPatch, JSONDiff, GitMatchResult, } from "./dsl/git-dsl.ts"; export type { GitHubDSL, GitHubPRDSL, GitHubUser, GitHubRepo, GitHubMergeRef, GitHubCommit, GitHubReview, GitHubReviewers, GitHubIssue, GitHubIssueLabel, GitHubIssueComment, GitHubAPIPR, GitHubUtilsDSL, } from "./github/types.ts"; /** * The root Danger object. Contains all of the metadata you * will be looking for in order to generate useful rules. * * Populated before your Dangerfile executes. */ export declare let danger: DangerDSLType; /** * The current results container. You can introspect this to see * whether a build has already failed. */ export declare let results: DangerRuntimeContainer; /** * Highlights critical issues. Message is shown inside a HTML table. * * @param message the String to output * @param file a file which this message should be attached to * @param line the line which this message should be attached to */ export declare function fail(message: MarkdownString, file?: string, line?: number): void; /** * Highlights low-priority issues. Message is shown inside a HTML table. * * @param message the String to output * @param file a file which this message should be attached to * @param line the line which this message should be attached to */ export declare function warn(message: MarkdownString, file?: string, line?: number): void; /** * Adds a message to the Danger table. * * @param message the String to output * @param fileOrOpts a file path, or an options object with file/line/icon * @param line the line which this message should be attached to */ export declare function message(msg: MarkdownString, fileOrOpts?: string | { file?: string; line?: number; icon?: MarkdownString; }, line?: number): void; /** * Adds raw markdown into the Danger comment, under the table. * * @param message the String to output * @param file a file which this message should be attached to * @param line the line which this message should be attached to */ export declare function markdown(msg: MarkdownString, file?: string, line?: number): void; /** * Register async code to run during Danger evaluation. * Use this when you need to do async work in a Dangerfile. * * @param asyncFunction the function to run asynchronously */ export declare function schedule(fn: Promise | Promise | (() => Promise)): void; /** @internal Set the danger DSL singleton */ export declare function _setDangerDSL(dsl: DangerDSLType): void; /** @internal Reset the results container */ export declare function _resetResults(): void; /** @internal Get the current results */ export declare function _getResults(): DangerRuntimeContainer; /** @internal Inject all exports into globalThis for backwards compat */ export declare function _injectGlobals(): void; //# sourceMappingURL=index.d.ts.map