import type { GhExec } from '../gha-post-review/github.mts'; export declare class CheckRunError extends Error { constructor(message: string); } export type CheckRunStatus = 'in_progress' | 'completed'; export type CheckRunConclusion = 'success' | 'neutral'; export type CreateCheckRunInput = { repository: string; name: string; headSha: string; title: string; summary: string; } & ({ status: 'in_progress'; conclusion?: undefined; } | { status: 'completed'; conclusion: CheckRunConclusion; }); export type CompleteCheckRunInput = { repository: string; checkRunId: string; conclusion: CheckRunConclusion; title: string; summary: string; }; /** Creates a GitHub check run, returning the API-assigned check run id. */ export declare function createCheckRun(input: CreateCheckRunInput, exec: GhExec): string; /** Transitions an existing check run to `completed` with a final conclusion. */ export declare function completeCheckRun(input: CompleteCheckRunInput, exec: GhExec): void;