import { Action, Actor } from '@testla/screenplay'; import { Selector, SelectorOptions } from '../types'; /** * Action Class. Download. */ export declare class Download extends Action { selector: Selector; options: (SelectorOptions & { filepath?: string | undefined; filename?: string | undefined; }) | undefined; private constructor(); /** * Downloads the file. * * @param {Actor} actor Actor performing this action * @return {boolean} returns true if download is successful */ performAs(actor: Actor): Promise; /** * Download file * * @param {Selector} selector the selector to start the download. * @param {SelectorOptions} options (optional) the selector options including a potential filepath and filename. * @return {Download} new Download instance */ static file(selector: Selector, options?: SelectorOptions & { filepath?: string; filename?: string; }): Download; }