export type ScopePattern = { raw: string; regex: RegExp; line: number; }; export type FileClassification = 'in-scope' | 'out-of-scope-violation' | 'unclassified' | 'auto-allowed'; export type ClassifiedFile = { path: string; classification: FileClassification; matchedPattern?: string; reason: string; }; export type DiffScopeReport = { ok: boolean; rdArtifactPath: string; inScopePatterns: ScopePattern[]; outOfScopePatterns: ScopePattern[]; changedFiles: ClassifiedFile[]; violations: ClassifiedFile[]; unclassified: ClassifiedFile[]; gitAvailable: boolean; patternsDeclared: boolean; }; export type DiffScopeError = { kind: 'rd-not-found'; }; export type DiffScopeOptions = { projectRoot: string; requestId: string; sessionId?: string; baseRef?: string; }; /** * Convert a simple glob pattern to a regex. * Supports `**` (any path including separators), `*` (one path segment), `?` (single char). * Leading `/` is removed; matching is relative to project root. */ export declare function globToRegex(pattern: string): RegExp; export declare function getDiffVsScope(options: DiffScopeOptions): Promise; export declare function isDiffScopeError(value: DiffScopeReport | DiffScopeError): value is DiffScopeError;