import { Actor } from '@testla/screenplay'; import { Maskable, Selector, SelectorOptions } from '../types'; import { FrameEnabledAction } from '../templates/FrameEnabledAction'; /** * Action Class. Press the specified key on the keyboard. */ export declare class Press extends FrameEnabledAction { private mode; private payload; private constructor(); /** * Press the specified key. * * @param {Actor} actor Actor performing this action * @return {void} Returns when the `key` can specify the intended value or a single character to generate the text for. */ performAs(actor: Actor): Promise; /** * Press a key on the keyboard. (or multiple keys with +, e.g. Shift+A) * * @param {string} keys the key(s) to press. * @return {Press} new Press instance */ static key(keys: string): Press; /** * Types the given input into the element specified by the selector. * @param {Selector} selector The selector of the source element. * @param {string} input The input to type into the element. * @param {SelectorOptions} options (optional) advanced selector lookup options. * @return {Press} new Press instance */ static sequentially(selector: Selector, input: string, options?: SelectorOptions & Maskable): Press; }