/** * Shared, profile-parameterized span-finding engine (phase 167, T1). * * Generalizes the original hardcoded JS/TS scanner (`test-spans.ts` pre-167) * into three composable pieces: * 1. `computeCodeMask` (`./mask.ts`) — string/comment-aware masking driven * by a per-profile delimiter table. * 2. `resolveBlock` (`./strategies.ts`) — one of four block-boundary * primitives (call-expression / brace-delimited / indentation-delimited * / do-end-keyword). * 3. This module — finds opener matches at code-mode word boundaries and * ties the two together, testing the profile's assertion pattern * against only the block's code-mode text (mirrors the original * scanner: characters inside strings/comments never reach the * assertion regex). * * `findSpansForProfile` is strategy-agnostic and language-agnostic; every * built-in and custom `LanguageProfile` is scanned through this one * function. */ import type { LanguageProfile, TestSpan } from './types.js'; export declare function findSpansForProfile(text: string, profile: LanguageProfile): TestSpan[]; //# sourceMappingURL=engine.d.ts.map