import { type Node } from 'typescript'; /** * Determines whether a given TypeScript AST node is inside JSX (or JSX-like code) * and **not** within a `style` attribute or `style` property assignment. * * This is useful for rules where we need to differentiate between inline style * definitions and other JSX usage. * * The function: * - Walks up the AST from the given node. * - Returns `false` if it finds a `style` attribute or `style` property. * - Returns `true` if it detects the node is inside JSX, a React `createElement` call, * or a `h()` hyperscript call. Otherwise, returns `false`. * * @example * ```tsx * const element =
; * // Given a reference to the `title` attribute node: * isInNonStyleJsx(titleNode); // => true * // For the `color` property inside the style object: * isInNonStyleJsx(colorProp); // => false * ``` * * @param node - The TypeScript AST node to start from. * @returns `true` if the node is inside non-style JSX (or JSX-like code), `false` otherwise. */ export declare function isInNonStyleJsx(node: Node): boolean; //# sourceMappingURL=is-in-non-style-jsx.d.ts.map