/**
 * Review command - executes the PR reviewer cron script
 */
import { Command } from 'commander';
import { INightWatchConfig } from '@night-watch/core';
import type { JobType } from '@night-watch/core';
/**
 * Options for the review command
 */
export interface IReviewOptions {
    dryRun: boolean;
    timeout?: string;
    provider?: string;
}
/**
 * Review notifications should not fire for script-level skip/no-op outcomes.
 */
export declare function shouldSendReviewNotification(scriptStatus?: string): boolean;
/**
 * Review completion notifications are only valid for successful reviewer runs.
 * Guard against both non-zero exits and mismatched legacy status markers.
 */
export declare function shouldSendReviewCompletionNotification(exitCode: number, scriptStatus?: string): boolean;
/**
 * Parse comma-separated PR numbers like "#12,#34" into numeric IDs.
 */
export declare function parseAutoMergedPrNumbers(raw?: string): number[];
/**
 * Parse comma-separated PR numbers like "#12,#34" into numeric IDs.
 * Deduplicates while preserving order.
 */
export declare function parseReviewedPrNumbers(raw?: string): number[];
/**
 * Build per-PR review notification targets from the script result payload.
 * Legacy no_changes_needed is only trustworthy when exactly one PR was reviewed.
 */
export declare function buildReviewNotificationTargets(reviewedPrNumbers: number[], noChangesPrNumbers: number[], legacyNoChangesNeeded?: boolean): Array<{
    prNumber: number;
    noChangesNeeded: boolean;
}>;
export declare function applyProjectFeedbackPromptEnv(envVars: Record<string, string>, projectDir: string, jobType: JobType, markApplied?: boolean): void;
/**
 * Parse retry attempts from script result data.
 * Returns the number of attempts (defaults to 1 if not present or invalid).
 */
export declare function parseRetryAttempts(raw?: string): number;
/**
 * Parse final review score from script result data.
 * Returns undefined when missing or invalid.
 */
export declare function parseFinalReviewScore(raw?: string): number | undefined;
/**
 * Build environment variables map from config and CLI options for reviewer
 */
export declare function buildEnvVars(config: INightWatchConfig, options: IReviewOptions): Record<string, string>;
/**
 * Apply CLI flag overrides to the config for reviewer
 */
export declare function applyCliOverrides(config: INightWatchConfig, options: IReviewOptions): INightWatchConfig;
interface ICheckStatus {
    name?: string;
    bucket?: string;
    state?: string;
    conclusion?: string;
}
/**
 * Whether a GitHub check entry should be treated as failing/action-required.
 */
export declare function isFailingCheck(check: ICheckStatus): boolean;
/**
 * Get a human-readable list of failing checks for a PR.
 */
export declare function getPrFailingChecks(prNumber: number): string[];
/**
 * Register the review command with the program
 */
export declare function reviewCommand(program: Command): void;
export {};
//# sourceMappingURL=review.d.ts.map