import React from 'react'; import { ReactTestRendererJSON } from 'react-test-renderer'; import { GetByAPI } from './helpers/getByAPI'; import { QueryByAPI } from './helpers/queryByAPI'; declare type DebugFn = (message?: string) => void; declare type DebugShallow = DebugFn; declare type Debug = DebugFn & { shallow: DebugShallow; }; export interface RenderAPI extends GetByAPI, QueryByAPI { update(nextElement: React.ReactElement): void; rerender(nextElement: React.ReactElement): void; unmount(nextElement?: React.ReactElement): void; toJSON(): ReactTestRendererJSON | null; debug: Debug; } export interface RenderOptions { wrapper?: React.ComponentType; createNodeMock?: (element: React.ReactElement) => any; } export interface TestRendererOptions { createNodeMock: (element: React.ReactElement) => any; } export default function render(component: React.ReactElement, { wrapper: Wrapper, createNodeMock }?: RenderOptions): RenderAPI; export {};