import { RiddleProofPublicStateSummary } from './public-state.js';

declare const RIDDLE_PROOF_PR_COMMENT_MARKER = "<!-- riddle-proof:pr-comment:v1 -->";
type RiddleProofPrCommentArtifactKind = "image" | "data" | "artifact";
interface RiddleProofPrCommentArtifact {
    name: string;
    url: string;
    kind: RiddleProofPrCommentArtifactKind;
    size_bytes?: number;
}
interface RiddleProofPrCommentPageSummary {
    route: string;
    passed: number;
    failed: number;
}
interface RiddleProofPrCommentCheckpointSummary {
    pending?: boolean;
    response_count?: number;
    rejected_response_count?: number;
    ignored_response_count?: number;
    duplicate_response_count?: number;
    latest_decision?: string;
    latest_packet_id?: string;
    latest_resume_token?: string;
}
interface RiddleProofPrCommentSummary {
    ok: boolean | null;
    status?: string;
    result_status?: string;
    job_id?: string;
    duration_ms?: number;
    proof_url?: string;
    preview_id?: string;
    preview_url?: string;
    preview_publish_recovered?: boolean;
    preview_publish_error?: string;
    ship_held?: boolean;
    shipping_disabled?: boolean;
    ship_authorized?: boolean;
    merge_ready?: boolean;
    sync_allowed?: boolean;
    proof_decision?: string;
    merge_recommendation?: string;
    checkpoint_summary?: RiddleProofPrCommentCheckpointSummary;
    public_state?: RiddleProofPublicStateSummary;
    passed_checks: number;
    failed_checks: number;
    pages: RiddleProofPrCommentPageSummary[];
    artifacts: RiddleProofPrCommentArtifact[];
    primary_image?: RiddleProofPrCommentArtifact;
}
interface RiddleProofPrCommentInput {
    title?: string;
    goal?: string;
    successCriteria?: string;
    runResponse?: unknown;
    result?: unknown;
    source?: string;
}
declare function summarizeRiddleProofPrComment(input: RiddleProofPrCommentInput): RiddleProofPrCommentSummary;
declare function buildRiddleProofPrCommentMarkdown(input: RiddleProofPrCommentInput): string;

export { RIDDLE_PROOF_PR_COMMENT_MARKER, type RiddleProofPrCommentArtifact, type RiddleProofPrCommentArtifactKind, type RiddleProofPrCommentCheckpointSummary, type RiddleProofPrCommentInput, type RiddleProofPrCommentPageSummary, type RiddleProofPrCommentSummary, buildRiddleProofPrCommentMarkdown, summarizeRiddleProofPrComment };
