import type { RepeatedAnnotation } from './types.mts'; /** A repeat tolerated until the open `issue` removes it. */ export interface BaselineScope { /** Exact request identities, including MCP tool-call identities. */ routes: string[]; /** Exact worker identities. Worker scopes never excuse a request repeat. */ workers?: Array<{ queue: string; job: string; }>; /** Null preserves an intentional unbounded exception within the named scopes. */ maxCount: number | null; } export interface TemporaryBaselineEntry extends BaselineScope { annotation: string; reason: string; /** Number of the open GitHub issue that owns removing the repeat. */ issue: number; } /** A repeat the code needs on purpose; the reason names the mechanism. */ export interface PermanentBaselineEntry extends BaselineScope { annotation: string; reason: string; permanent: true; /** `:` of the code that needs the repeat. */ code: string; } export type RepeatBaselineEntry = TemporaryBaselineEntry | PermanentBaselineEntry; /** Parsed baseline, or an error naming every malformed or duplicate entry. */ export declare function parseRepeatBaseline(raw: unknown): RepeatBaselineEntry[]; /** Temporary entries, whose `issue` must stay open. */ export declare function temporaryBaselineEntries(baseline: readonly RepeatBaselineEntry[]): TemporaryBaselineEntry[]; /** Repeats outside their exact baseline scope and maximum, in the order given. */ export declare function findUnbaselinedRepeats(route: string, repeats: readonly RepeatedAnnotation[], baseline: readonly RepeatBaselineEntry[]): RepeatedAnnotation[]; /** * Failure text for one request: names the route and every unbaselined annotation. * `baselineFile` is the repository path of the baseline, shown in the remediation hint. */ export declare function formatUnbaselinedRepeats(route: string, repeats: readonly RepeatedAnnotation[], options: { baselineFile: string; }): string; /** * Failure text for temporary entries whose issue is not open, one line per entry. `states` maps an * issue number to its GitHub state; an issue missing from it counts as not found. `issueGroup` * names where replacement issues live (for example a milestone or issue group title). */ export declare function formatClosedBaselineIssues(baseline: readonly RepeatBaselineEntry[], states: ReadonlyMap, options: { issueGroup: string; }): string[];