import { ReactWrapper, CommonWrapper, ShallowWrapper, MountRendererProps, ShallowRendererProps } from 'enzyme'; import * as React from 'react'; import { PolarisContext } from '../components/types'; export declare type AnyWrapper = ReactWrapper | CommonWrapper; export declare function findByTestID(root: ReactWrapper, id: string): any; export declare function matchByTestID(root: ReactWrapper, regexp: RegExp): ReactWrapper>; export declare function trigger(wrapper: AnyWrapper, keypath: string, ...args: any[]): any; /** * This is needed for updating the enzyme wrapper and react instance when we deeply change the context. * root.update() should work, but it doesn’t currently (see https://github.com/airbnb/enzyme/issues/1329). */ export declare function forceUpdate(root: AnyWrapper): void; export declare function layeredContent(root: ReactWrapper): any; export interface ReactWrapperPredicate { (wrapper: ReactWrapper): boolean; } export declare function findWhereInLayeredContent(root: ReactWrapper, predicate: ReactWrapperPredicate): any; export declare function mountWithAppProvider

(node: React.ReactElement

, options?: MountRendererProps): ReactWrapper; export declare function shallowWithAppProvider

(node: React.ReactElement

, options?: ShallowRendererProps): ShallowWrapper; export declare function createPolarisProps(): PolarisContext;