/** * Auto JSX Insertion for CLI extraction. * * Inserts and JSX elements into the AST so the extraction pipeline * can process them as if the user wrote them. This operates on raw JSX syntax * (JSXElement, JSXText, JSXExpressionContainer) — NOT compiled jsx() calls. * * Rules follow JSX_INSERTION_RULES.md from the compiler package. */ import * as t from '@babel/types'; /** Check if a node was auto-inserted */ export declare function isAutoInserted(node: t.Node): boolean; /** * Ensure GtInternalTranslateJsx and GtInternalVar are imported in the AST. * Always adds: import { GtInternalTranslateJsx, GtInternalVar } from 'gt-react/browser'; * These are distinct from user T/Var so there's no ambiguity. * * Updates importAliases in-place. */ export declare function ensureTAndVarImported(ast: t.File, importAliases: Record): void; /** * Traverse the AST and insert GtInternalTranslateJsx and GtInternalVar JSX elements following * the insertion rules. Uses deliberate children traversal. * * Every inserted node gets node._autoInserted = true. */ export declare function autoInsertJsxComponents(ast: t.File, importAliases: Record): void;