import Locator, { Strategy } from './lib/Locator'; import { CancellablePromise } from '@theintern/common'; import Session from './Session'; export default class Element extends Locator, CancellablePromise, CancellablePromise> { private _elementId; private _session; constructor(elementId: any, session: Session); get elementId(): string; get session(): Session; private _get; private _post; toJSON(): { ELEMENT: string; 'element-6066-11e4-a52e-4f735466cecf': string; }; private _normalizeWhitespace; private _uploadFile; find(using: Strategy, value: string): CancellablePromise; findAll(using: Strategy, value: string): CancellablePromise; click(): CancellablePromise; submit(): CancellablePromise; getVisibleText(): CancellablePromise; type(value: string | string[]): CancellablePromise; getTagName(): CancellablePromise; clearValue(): CancellablePromise; isSelected(): CancellablePromise; isEnabled(): CancellablePromise; getSpecAttribute(name: string): CancellablePromise; getAttribute(name: string): CancellablePromise; getProperty(name: string): CancellablePromise; equals(other: Element): CancellablePromise; isDisplayed(): CancellablePromise; getPosition(): CancellablePromise<{ x: number; y: number; }>; getSize(): CancellablePromise<{ width: number; height: number; }>; getComputedStyle(propertyName: string): CancellablePromise; findDisplayed(using: Strategy, value: string): CancellablePromise; waitForDeleted(strategy: Strategy, value: string): CancellablePromise; } export declare type ElementOrElementId = { ELEMENT: string; } | { 'element-6066-11e4-a52e-4f735466cecf': string; } | Element | string;