import { type Node } from 'typescript'; /** * Determines whether a node's value belongs to a `style` attribute or `style` * property within JSX or JSX-like code (e.g., `React.createElement` or * hyperscript `h()` calls). * * The function walks up the AST from the provided node: * - If it encounters a JSX attribute, it returns whether that attribute is * named `style`. * - If it encounters a property assignment named `style`, it searches further * up the tree for a surrounding JSX attribute, `React.createElement` call, or * hyperscript call. * - Returns `false` otherwise. * * @example * ```tsx * const element =
; * // Given a reference to the value of the `color` property: * isStyleValue(colorValueNode); // => true * // Given a reference to the value of `title`: * isStyleValue(titleValueNode); // => false * ``` * * @param node - The TypeScript AST node to check. * @returns `true` if the node is a style value, `false` otherwise. */ export declare function isStyleValue(node: Node): boolean; //# sourceMappingURL=is-style-value.d.ts.map