import { ReactNode } from "react"; /** * Checks if the provided element is a valid React element. * * @param {any} element - The element to check. * @param {boolean} [includeStrOrText=false] - Indicates whether strings, * numbers, or booleans should be considered in the check. * @returns {boolean} `true` if the element is a valid React element or if * it is a string, number, or boolean when `includeStrOrText` is true; otherwise, `false`. */ export default function isValidElement(element: any, includeStrOrText?: boolean): element is ReactNode;