import { NodePath, types } from '@babel/core'; import { CSSProperty, PseudoProps } from '@kuma-ui/system'; type ExtractedStyleProps = T extends NodePath ? { filteredAttributes: types.JSXAttribute[]; styledProps: { [key: string]: CSSProperty | number | (CSSProperty | number)[]; }; pseudoProps: PseudoProps; } : { filteredProperties: types.ObjectProperty[]; styledProps: { [key: string]: string | number | (string | number)[]; }; pseudoProps: PseudoProps; }; /** * Extracts style props from a JSX opening element or an ObjectExpression in a React.createElement call * and returns the filtered properties and the extracted style props. */ declare function extractStyleProps | NodePath>(path: T): ExtractedStyleProps; export { ExtractedStyleProps, extractStyleProps };