/**
 * Small helpers the dynamic-edge synthesizers share: a per-match line
 * resolver over one source string, and "the function this line is in".
 */
import type { Node } from '../types';
/** The kinds a call site can be attributed to. */
export declare const FN_KINDS: ReadonlySet<string>;
/**
 * Per-match line resolver over `src`, 1-based at `baseLine`. The inline
 * `src.slice(0, idx).split('\n').length` idiom is O(source-length) PER MATCH,
 * which goes quadratic on a match-dense source (a generated function full of
 * `.push(` calls re-scanned tens of thousands of times was most of the #1235
 * indexing wedge). Builds the newline index once — lazily, since most sources
 * never produce a match — then answers each call with a binary search.
 */
export declare function makeLineAt(src: string, baseLine: number): (idx: number) => number;
/** Innermost function/method node whose line range contains `line`. */
export declare function enclosingFn(nodesInFile: readonly Node[], line: number): Node | null;
/**
 * The smallest `constant` / `variable` node whose lines contain `line` — the
 * value a top-level registration is written inside (`const worker = new
 * Worker('q', async (job) => …)`): what a caller imports and a walk can start
 * from when no function encloses the site.
 */
export declare function enclosingValue(nodesInFile: readonly Node[], line: number): Node | null;
//# sourceMappingURL=synth-utils.d.ts.map