import type { DetailedHTMLProps, ForwardedRef, HTMLAttributes, WeakValidationMap } from "react"; import type ReactElementProps from "../../types/react-element-properties/react-element-properties"; export type PyEnvChildrenAsObject = PyEnvChildrenAsObjectWithPaths | PyEnvChildrenAsObjectWithoutPaths; export type PyEnvChildrenAsObjectWithPaths = { paths: string[] | Set; items?: string[] | Set; }; export type PyEnvChildrenAsObjectWithoutPaths = { paths?: string[] | Set; items: string[] | Set; }; export type PyEnvPropertiesBase = Omit, HTMLElement>>, "children"> & { children: string | string[] | Set | PyEnvChildrenAsObject; }; export type PyEnvProperties = OptionalProperties extends infer OptionalProperties ? OptionalProperties & PyEnvPropertiesBase : PyEnvPropertiesBase; export type PyEnvTag = { (properties: PyEnvProperties, reference?: ForwardedRef): JSX.Element; displayName?: string; defaultProps?: Partial; propTypes?: WeakValidationMap; };