import Vue, { VNodeData, ComponentOptions, FunctionalComponentOptions, Component } from 'vue' import { DefaultProps, PropsDefinition } from 'vue/types/options' import * as Cheerio from 'cheerio' /** * Utility type to declare an extended Vue constructor */ type VueClass = (new (...args: any[]) => V) & typeof Vue /** * Utility type for stubs which can be a string of template as a shorthand * If it is an array of string, the specified children are replaced by blank components */ type Stubs = { [key: string]: Component | string | boolean } | string[] /** * Utility type for slots */ type Slots = { [key: string]: (Component | string)[] | Component | string } interface MountOptions extends ComponentOptions { attachToDocument?: boolean context?: VNodeData localVue?: typeof Vue mocks?: object slots?: Slots scopedSlots?: Record stubs?: Stubs, attrs?: Record listeners?: Record } type ThisTypedMountOptions = MountOptions & ThisType type ShallowOptions = MountOptions type ThisTypedShallowOptions = ShallowOptions & ThisType interface VueTestUtilsConfigOptions { stubs?: Stubs mocks?: object methods?: Record provide?: object, } export declare let config: VueTestUtilsConfigOptions export declare function render (component: VueClass, options?: ThisTypedMountOptions): Promise export declare function render (component: ComponentOptions, options?: ThisTypedMountOptions): Promise export declare function render>(component: FunctionalComponentOptions, options?: MountOptions): Promise export declare function renderToString (component: VueClass, options?: ThisTypedMountOptions): Promise export declare function renderToString (component: ComponentOptions, options?: ThisTypedMountOptions): Promise export declare function renderToString>(component: FunctionalComponentOptions, options?: MountOptions): Promise