import { default as React, ReactNode } from 'react'; import { AnyObject } from './types.ts'; interface TriggerNativeEventProps { element: HTMLElement; value: unknown; eventType: string; senderObject: unknown; propertyName: string; } export declare class DOMUtils { /** * This method is needed to detect fragment */ static isFragment(element: ReactNode): boolean; /** * This method is used to replace one element with another */ static replaceNode(source: ReactNode, replacement: ReactNode, props: AnyObject): React.ReactNode; /** * This method is used to clone React node */ static cloneNode(element: ReactNode, props: AnyObject): React.ReactNode; static triggerEvent: ({ element, value, eventType, senderObject, propertyName, }: TriggerNativeEventProps) => void; static getValidChildren(element: ReactNode): React.ReactElement>[]; static hasValidChildren(element: ReactNode): boolean; static containsElementType(element: ReactNode, types: React.ElementType[]): boolean; } export {};