import type { PrInfo } from "shared/types/index.js";
declare class GithubPrService {
    private cache;
    private ghAvailableChecked;
    private ghAvailable;
    private reviewThreadsSupported;
    /** Check whether the `gh` CLI is on PATH. Cached after first check. */
    isAvailable(): Promise<boolean>;
    /**
     * Fetch PRs for all branches in a repo in one `gh` call. Returns a map of
     * head branch → PrInfo[]. Uses a stale-while-revalidate cache.
     */
    getPrsForRepo(repoDir: string, opts?: {
        force?: boolean;
    }): Promise<{
        map: Map<string, PrInfo[]>;
        fetchedAt: number | null;
    }>;
    private fetchAndCache;
    private normalize;
    private buildChecks;
    /** Bust the cache for a specific repo. Used by ?refresh=1. */
    invalidate(repoDir: string): void;
}
export declare const githubPrService: GithubPrService;
export {};
//# sourceMappingURL=github-pr.d.ts.map