/** * Copyright 2017 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { Protocol } from 'devtools-protocol'; import type { CDPSession } from '../api/CDPSession.js'; import type { Point } from '../api/ElementHandle.js'; import { Keyboard, type KeyDownOptions, type KeyPressOptions, Mouse, type MouseClickOptions, type MouseMoveOptions, type MouseOptions, type MouseWheelOptions, Touchscreen, type KeyboardTypeOptions } from '../api/Input.js'; import { type KeyInput } from '../common/USKeyboardLayout.js'; /** * @internal */ export declare class CdpKeyboard extends Keyboard { #private; _modifiers: number; constructor(client: CDPSession); updateClient(client: CDPSession): void; down(key: KeyInput, options?: Readonly): Promise; up(key: KeyInput): Promise; sendCharacter(char: string): Promise; private charIsKey; type(text: string, options?: Readonly): Promise; press(key: KeyInput, options?: Readonly): Promise; } /** * @internal */ export declare class CdpMouse extends Mouse { #private; constructor(client: CDPSession, keyboard: CdpKeyboard); updateClient(client: CDPSession): void; reset(): Promise; move(x: number, y: number, options?: Readonly): Promise; down(options?: Readonly): Promise; up(options?: Readonly): Promise; click(x: number, y: number, options?: Readonly): Promise; wheel(options?: Readonly): Promise; drag(start: Point, target: Point): Promise; dragEnter(target: Point, data: Protocol.Input.DragData): Promise; dragOver(target: Point, data: Protocol.Input.DragData): Promise; drop(target: Point, data: Protocol.Input.DragData): Promise; dragAndDrop(start: Point, target: Point, options?: { delay?: number; }): Promise; } /** * @internal */ export declare class CdpTouchscreen extends Touchscreen { #private; constructor(client: CDPSession, keyboard: CdpKeyboard); updateClient(client: CDPSession): void; touchStart(x: number, y: number): Promise; touchMove(x: number, y: number): Promise; touchEnd(): Promise; } //# sourceMappingURL=Input.d.ts.map