/**
 * PR Generator
 *
 * Orchestrates the creation of autofix pull requests.
 * Uses gh CLI for GitHub operations (works locally and in CI).
 *
 * @module autofix/pr-generator
 */
import type { Finding, Severity } from "../certification/types.js";
import type { AutofixPRConfig, AutofixPRResult, AutofixGroup, BatchPRResult } from "./types.js";
import { type Constitution } from "./constitution.js";
/**
 * Check if gh CLI is available
 */
export declare function isGhCliAvailable(): Promise<boolean>;
/**
 * Check if authenticated with gh CLI
 */
export declare function isGhAuthenticated(): Promise<boolean>;
/**
 * Group findings into PR groups based on config
 */
export declare function groupFindings(findings: Finding[], groupBy: AutofixPRConfig["groupBy"], branchPrefix: string): AutofixGroup[];
/**
 * Create a single autofix PR for a group of findings
 */
export declare function createAutofixPR(config: AutofixPRConfig, group: AutofixGroup, constitution?: Constitution): Promise<AutofixPRResult>;
/**
 * Create autofix PRs for all findings
 */
export declare function createAutofixPRs(config: Partial<AutofixPRConfig> & {
    projectPath: string;
    findings: Finding[];
}, constitution?: Constitution): Promise<BatchPRResult>;
/**
 * Preview autofix PRs without creating them
 */
export declare function previewAutofixPRs(projectPath: string, findings: Finding[], options?: {
    groupBy?: AutofixPRConfig["groupBy"];
    includeUnsafe?: boolean;
}): Promise<{
    groups: Array<{
        groupId: string;
        branchName: string;
        findings: number;
        severity?: Severity;
        fixable: number;
        unfixable: number;
        estimatedChanges: Array<{
            file: string;
            findingId: string;
            canAutoFix: boolean;
            risk: string;
        }>;
    }>;
}>;
//# sourceMappingURL=pr-generator.d.ts.map