// Type definitions for react-faux-dom 4.1 // Project: https://github.com/Olical/react-faux-dom // Definitions by: Ali Taheri Moghaddar // Cleve Littlefield // Michał Kostrzyński // Hanai // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from "react"; export class Element extends HTMLElement { style: any; constructor(nodeName: string, parentNode?: Element); toReact(): React.ReactElement; } export const defaultView: { getComputedStyle(node: Element): { getPropertyValue(name: string): string }; }; export function createElement(nodeName: string): Element; export function createElementNS(namespace: string, nodeName: string): Element; export function compareDocumentPosition(): number; export interface ReactFauxDomProps { connectFauxDOM(node: string, name: string, discardNode?: any): Element; drawFauxDOM(): void; animateFauxDOM(duration: number): void; stopAnimatingFauxDOM(): void; isAnimatingFauxDOM(): boolean; } export function withFauxDOM

(WrappedComponent: React.ComponentClass

): React.ComponentClass>>;