import type { WindowsDriver } from '../driver'; export interface ExecPowerShellOptions { /** A valid PowerShell script to execute */ script?: string; /** A valid PowerShell command to execute */ command?: string; } /** * Executes the given Power Shell command or a whole script based on the * given options. Either of these options must be provided. If both are provided * then the `command` one gets the priority. * Note that Power Shell command cannot contain line breaks. Consider making it * to a script in such case. * Note that by default Power Shell blocks scripts execution, so the script must * temporarily switch user execution policy if necessary and restore it afterwards. * This makes scripts slightly less performant, as single commands. * * @returns The stdout of the given command or script * @throws If the exit code of the given command or script is not zero (stderr is used as the message when present). */ export declare function execPowerShell(this: WindowsDriver, opts?: ExecPowerShellOptions): Promise; //# sourceMappingURL=powershell.d.ts.map