import { type TiaMap } from './map.js'; export declare const TIA_MAX_COMMIT_DISTANCE = 50; export declare const TIA_MAX_HASH_MISS_RATIO = 0.2; /** Force-full triggers — mirrors the R2 gate script (`is_force_full` in * content/assets/agent-ops/gate/gate-check-affected.sh.tmpl) and * content/knowledge/core/test-impact-analysis.md. Keep the three lists in * sync. The bash `case` glob's star spans the path separator (so its * star-slash-prefixed alternatives already cover arbitrary nesting); * minimatch's plain star does NOT span the separator, so every such bash * alternative below needs an explicit globstar-prefixed sibling to match * the same nested-monorepo paths (e.g. `packages/app/vitest.config.ts`). */ export declare const FORCE_FULL_GLOBS: string[]; export interface TiaSelection { verdict: 'selected' | 'full'; confidence: 'high' | 'low'; reason: string; /** Selected test files, most-likely-to-fail-first. Empty when verdict=full. */ tests: string[]; } export declare function selectAffected(opts: { map: TiaMap | null; changedFiles: string[]; /** Commits between the map's head and HEAD; null = map head unknown to this repo. */ commitDistance: number | null; /** Current sha256 of a repo-relative file, or null when it does not exist. */ hashOf: (rel: string) => string | null; /** testId -> recent flake-event count (ordering signal); optional. */ flakeCounts?: Map; }): TiaSelection; //# sourceMappingURL=affected.d.ts.map