1 | import { App, ComponentPublicInstance } from 'vue';
|
2 | import { VueNode } from './types';
|
3 | import BaseWrapper from './baseWrapper';
|
4 | import type { DOMWrapper } from './domWrapper';
|
5 | export declare class VueWrapper<VM = unknown, T extends ComponentPublicInstance = VM & ComponentPublicInstance> extends BaseWrapper<Node> {
|
6 | private readonly componentVM;
|
7 | private readonly rootVM;
|
8 | private readonly __app;
|
9 | private readonly __setProps;
|
10 | private cleanUpCallbacks;
|
11 | constructor(app: App | null, vm: T, setProps?: (props: Record<string, unknown>) => void);
|
12 | private get hasMultipleRoots();
|
13 | protected getRootNodes(): VueNode[];
|
14 | private get parentElement();
|
15 | getCurrentComponent(): import("vue").ComponentInternalInstance;
|
16 | exists(): boolean;
|
17 | findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
|
18 | findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
|
19 | findAll<T extends Element>(selector: string): DOMWrapper<T>[];
|
20 | private attachNativeEventListener;
|
21 | get element(): T['$el'];
|
22 | get vm(): T;
|
23 | props(): T['$props'];
|
24 | props<Selector extends keyof T['$props']>(selector: Selector): T['$props'][Selector];
|
25 | emitted<T = unknown>(): Record<string, T[]>;
|
26 | emitted<T = unknown[]>(eventName: string): undefined | T[];
|
27 | isVisible(): boolean;
|
28 | setData(data: Record<string, unknown>): Promise<void>;
|
29 | setProps(props: Partial<T['$props']>): Promise<void>;
|
30 | setValue(value: unknown, prop?: string): Promise<void>;
|
31 | unmount(): void;
|
32 | }
|