/*!
 * Copyright 2020 VMware, Inc.
 * SPDX-License-Identifier: BSD-2-Clause
 */
import { WidgetDriver } from './base-widget-object';
import { FindableWidget, FindParams } from './widget-object';
/**
 * Given some Cypress Chainable, returns a promise that will resolve when that Chainable completes
 * and rejects when it fails.
 */
export declare function promisify<T>(chain: any): Promise<T>;
/**
 * A WidgetDriver that knows how to interface with the Cypress framework.
 */
export declare class CypressWidgetDriver implements WidgetDriver {
    private element;
    constructor(element: any);
    find<W extends WidgetDriver>(params: FindParams<FindableWidget<W>> | FindableWidget<W>): W;
    exists(cssSelector?: string): Promise<boolean>;
    visible(cssSelector?: string): Promise<boolean>;
    hidden(cssSelector?: string): Promise<boolean>;
    disabled(cssSelector?: string): Promise<boolean>;
    classes(cssSelector?: string): Promise<string[]>;
    click(cssSelector?: string): Promise<void>;
    check(cssSelector?: string): Promise<void>;
    getChecked(cssSelector?: string): Promise<boolean>;
    select(option: string, cssSelector?: string): Promise<void>;
    sendKeyboardKey(key: string, cssSelector?: string): Promise<void>;
    setInputValue(value: string, shouldAppend?: boolean, cssSelector?: string): Promise<void>;
    clearInputValue(cssSelector?: string): Promise<void>;
    getText(cssSelector?: string): Promise<string>;
    getTexts(parentCssSelector?: string, cssSelector?: string): Promise<string[]>;
    getInputValue(cssSelector?: string): Promise<string | number | string[]>;
    getInputValues(parentCssSelector?: string, cssSelector?: string): Promise<(string | number | string[])[]>;
    private getElement;
    private getElements;
    private assert;
}
