/** * Shared file-walking / offset helpers used by every guard in this * directory. Ported (behavior-for-behavior) from the identical helpers * duplicated across `scripts/guard-*.mjs` — see each guard file for the * specific `scripts/guard-.mjs` it was derived from. * * The original scripts walk directories with `fs/promises` async * generators. Guard functions here are synchronous pure functions (per the * plan's `scan(options): GuardResult` contract), so this module uses * `fs.readdirSync` instead — same skip-dir semantics, no behavior change. */ /** Directories skipped by every guard's repo/app walk. */ export declare const DEFAULT_SKIP_DIRS: Set; /** Recursively walk `dir`, yielding absolute file paths. Skips any * directory whose basename is in `skipDirs`. */ export declare function walk(dir: string, skipDirs?: Set): Generator; export declare function lineColForOffset(contents: string, offset: number): { line: number; col: number; }; export declare function isCommentLine(lineText: string): boolean; export declare function relPosix(root: string, file: string): string; export declare function readFileSafe(file: string): string | null; /** True if `rel` matches an exact-path entry in `extraExemptPaths` * (posix-relative, exact string match — the same shape the exempt-path * sets used in the original monorepo guards). */ export declare function isExtraExempt(rel: string, extraExemptPaths: string[] | undefined): boolean; //# sourceMappingURL=scan-utils.d.ts.map