/**
 * @fileoverview Shared text utilities for handler-source heuristic lint rules.
 * @module src/linter/rules/source-text
 */
/**
 * Replaces the contents of single-line comments, block comments, and string
 * literals with same-length whitespace runs. Preserves line structure (so any
 * future line-aware diagnostics still align) without falsely matching
 * anti-pattern regexes against documentation or sample text inside literals.
 *
 * Used by the handler-body and error-contract conformance rules so a comment
 * like `// throws NotFound` doesn't pollute the scan.
 *
 * Limitations: regex literals are not stripped. If a regex contains the literal
 * text `throw new Error(`, it would still trigger a false positive — but that is
 * a deliberate trade-off; full lexing is overkill for a heuristic warning.
 */
export declare function stripCommentsAndStrings(source: string): string;
//# sourceMappingURL=source-text.d.ts.map