// Type definitions for enzyme-react-intl 2.0 // Project: https://github.com/joetidee/enzyme-react-intl#readme // Definitions by: Mateusz Meller // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.1 import { Component, ReactElement } from 'react'; import { ShallowRendererProps, MountRendererProps, ShallowWrapper, ReactWrapper } from 'enzyme'; // shallow methods export function shallowWithIntl( node: ReactElement

, options?: ShallowRendererProps, ): ShallowWrapper; // tslint:disable-line no-unnecessary-generics export function shallowWithIntl

(node: ReactElement

, options?: ShallowRendererProps): ShallowWrapper; // tslint:disable-next-line no-unnecessary-generics export function shallowWithIntl(node: ReactElement

, options?: ShallowRendererProps): ShallowWrapper; // mount methods export function mountWithIntl( node: ReactElement

, options?: MountRendererProps, ): ReactWrapper; // tslint:disable-line no-unnecessary-generics export function mountWithIntl

(node: ReactElement

, options?: MountRendererProps): ReactWrapper; // tslint:disable-next-line no-unnecessary-generics export function mountWithIntl(node: ReactElement

, options?: MountRendererProps): ReactWrapper; // render method // tslint:disable-next-line no-unnecessary-generics export function renderWithIntl(node: ReactElement

, options?: any): Cheerio; // other methods export function getLocale(): string; export function setLocale(locale: string): void; export function loadTranslation(translationFilePath: string): any;