1 | import { Aurelia, FrameworkConfiguration } from 'aurelia-framework';
|
2 | export declare class StageComponent {
|
3 | static withResources<T = any>(resources?: string | string[]): ComponentTester<T>;
|
4 | }
|
5 | export declare class ComponentTester<T = any> {
|
6 | bind: (bindingContext: {}) => Promise<void>;
|
7 | attached: () => Promise<void>;
|
8 | detached: () => Promise<void>;
|
9 | unbind: () => Promise<void>;
|
10 | element: Element;
|
11 | viewModel: T;
|
12 | private html;
|
13 | private resources;
|
14 | private bindingContext;
|
15 | private rootView;
|
16 | private host;
|
17 | configure(aurelia: Aurelia): FrameworkConfiguration;
|
18 | bootstrap(configure: (aurelia: Aurelia) => FrameworkConfiguration): void;
|
19 | withResources(resources: string | string[]): ComponentTester<T>;
|
20 | inView(html: string): ComponentTester<T>;
|
21 | boundTo(bindingContext: {}): ComponentTester<T>;
|
22 | manuallyHandleLifecycle(): ComponentTester<T>;
|
23 | create(bootstrap: (configure: (aurelia: Aurelia) => Promise<void>) => Promise<void>): Promise<void>;
|
24 | dispose(): Element;
|
25 | private _prepareLifecycle();
|
26 | waitForElement(selector: string, options?: {
|
27 | present?: boolean;
|
28 | interval?: number;
|
29 | timeout?: number;
|
30 | }): Promise<Element>;
|
31 | waitForElements(selector: string, options?: {
|
32 | present?: boolean;
|
33 | interval?: number;
|
34 | timeout?: number;
|
35 | }): Promise<NodeListOf<Element>>;
|
36 | }
|