/**
 * Single-pass character-level state machine that strips comments, string
 * literals, template literals, and JS regex literals from source code,
 * replacing each stripped character with whitespace so that downstream
 * regex match positions remain stable.
 *
 * Tier 8 — promoted from Tier 7's react-tools internal helper. Used by both
 * pattern-tools.ts (preprocessing for regex patterns with `preprocess: true`)
 * and react-tools.ts (Suspense ancestor detection).
 *
 * Handles:
 *   - // line comments
 *   - block comments
 *   - 'single' / "double" / `template` string literals (with escape sequences)
 *   - JS regex literals /pattern/flags including character classes [...]
 *
 * Heuristic — distinguishes `/` as division from `/` as regex-start by
 * examining the preceding non-whitespace token. Does not handle:
 *   - JSX text nodes (out of scope; JSX has no comment grammar between tags)
 *   - tagged template expressions ${...} contents (treated opaquely)
 */
export declare function stripCommentsAndStrings(source: string): string;
//# sourceMappingURL=source-stripper.d.ts.map