/** * Pre-injection utility for React Compiler compatibility * * React Compiler captures reactive dependencies during its Function.enter visitor. * If hooks are injected later (during JSXAttribute or Program.exit visitors), * React Compiler won't track the hook return values as reactive, causing * memoized expressions to never re-evaluate when the hook value changes. * * This utility scans function bodies for color scheme modifiers BEFORE * React Compiler's analysis phase, allowing hook injection in Function.enter. */ import type * as BabelTypes from "@babel/types"; /** * Scan an AST node tree for color scheme modifiers in class name contexts. * * Walks the AST manually (without Babel traverse) to avoid triggering plugin visitors. * Skips nested functions as they have their own scope. */ export declare function scanForColorSchemeModifiers(node: BabelTypes.Node, supportedAttributes: Set, attributePatterns: RegExp[], twImportNames: Set, t: typeof BabelTypes): boolean;