import type { IntentCheckpoint } from "../types/intentCheckpoint.js"; /** Exact path or directory-prefix match (e.g. "src/api" matches "src/api/x.ts"). */ export declare function pathMatchesPrefix(filePath: string, entryPath: string): boolean; /** * Minimal glob match supporting `*` (within a segment), `**` (across * segments, matching ZERO or more whole path segments — conventional glob * semantics), `?`. * * A `**` segment folds its ADJACENT separator into its own regex fragment * (optional) rather than emitting it as a mandatory literal, so a * zero-segment match is possible on either side: `**\/*.env` matches a * repo-root `secrets.env`, `src/**\/*.ts` matches `src/index.ts`, and * `vendor/**` matches the bare `vendor` entry itself (COR-ef7a209d / * COR-ef7a209d-2) — not only paths with an intermediate directory. */ export declare function globMatches(filePath: string, glob: string): boolean; /** * `disposition_overrides` statuses that mean "out of scope" for BOTH orchestrators. * `binary` / `doc_only` are dispositions but not exclusions, so they are absent. */ export declare const EXCLUDED_OVERRIDE_STATUSES: ReadonlySet; /** * Whether a single file is excluded by the checkpoint's STRUCTURED scope, and the * human reason when it is (null when in scope). Consults ALL exclusion fields so the * two orchestrators cover the same scope: * - `excluded_scope` (path/prefix + its reason), * - `disposition_overrides` with an excluded status (path/prefix + its reason), * - `must_not_touch` globs (write-forbidden ⇒ also out of review/remediation scope; * a synthesized reason since the entry is a bare glob). * Precedence follows that field order (first match wins). Never reads * `free_form_intent` (interpreted into priority/lens signals, never verbatim, INV-S04). * * The AGGREGATION over a unit's / finding's files (audit: excluded only when EVERY * file is excluded; remediate: dropped when ANY file is excluded) stays the caller's * domain policy — only the per-file field coverage is single-sourced here. */ export declare function fileExclusionReason(filePath: string, checkpoint: IntentCheckpoint | undefined): string | null; //# sourceMappingURL=pathScope.d.ts.map