import type { GitHubAPIClient } from "./api.ts"; import type { DangerResults } from "../dsl/results.ts"; export interface CommenterOptions { /** The unique ID for this danger run */ dangerID: string; /** Whether to always create a new comment (vs update existing) */ newComment?: boolean; /** Whether to remove all previous comments and create fresh */ removePreviousComments?: boolean; } /** * Post or update results as a comment on the PR. * Returns the comment URL if posted, or undefined if the comment was deleted. */ export declare function updateOrCreateComment(api: GitHubAPIClient, options: CommenterOptions, results: DangerResults, commitID?: string): Promise; /** * Delete the main Danger comment for this dangerID. */ export declare function deleteMainComment(api: GitHubAPIClient, dangerID: string): Promise; /** * Update the commit status on the PR. */ export declare function updateCommitStatus(api: GitHubAPIClient, results: DangerResults, commentURL?: string, dangerID?: string, commitHash?: string): Promise; //# sourceMappingURL=commenter.d.ts.map