UNPKG

@cusedev/core

Version:

Core library for implementing computer usage capabilities for AI agents

22 lines 792 B
import { KeyboardInterface, SystemConfig, PressKeyParams, TypeParams } from './types'; /** * Keyboard control implementation * Provides functionality for keyboard input operations */ export declare class Keyboard implements KeyboardInterface { private config; constructor(config: SystemConfig); /** * Simulate pressing a single key on the keyboard * @param params Parameters containing the key to press * @throws Error if key press operation fails */ pressKey({ key }: PressKeyParams): Promise<void>; /** * Simulate typing a sequence of text * @param params Parameters containing the text to type * @throws Error if typing operation fails */ type({ text }: TypeParams): Promise<void>; } //# sourceMappingURL=keyboard.d.ts.map