import type { Config } from '../config/schema.js';
import { type OpenPR } from '../github/client.js';
export type BacktraceScope = {
    org: string;
} | {
    owner: string;
    repo: string;
};
export interface BacktracePR extends OpenPR {
    owner: string;
    repo: string;
}
export interface BacktraceResult {
    queued: BacktracePR[];
    alreadyReviewed: number;
    skippedAuthor: number;
}
export declare function buildScopesFromConfig(config: Config, token: string): Promise<BacktraceScope[]>;
export declare function scanUnreviewedPRs(scopes: BacktraceScope[], config: Config, token: string): Promise<BacktraceResult>;
//# sourceMappingURL=backtrace.d.ts.map