UNPKG

@computer-use/provider-interfaces

Version:

Public provider interfaces for @computer-use/nut-js

25 lines (24 loc) 893 B
import { WindowQuery } from "@computer-use/shared"; /** * A WindowFinder should provide an abstraction layer to perform window searches * * @interface WindowFinderInterface */ export interface WindowFinderInterface { /** * findMatch should provide an abstraction to search for a window on screen * * @param {WindowQuery} query A {@link WindowQuery} containing needed data * @returns {Promise<number>} A single window handle * @memberof WindowFinderInterface */ findMatch(query: WindowQuery): Promise<number>; /** * findMatches should provide an abstraction to search for a window on screen * * @param {WindowQuery} query A {@link WindowQuery} containing needed data * @returns {Promise<number[]>} A list of window handles * @memberof WindowFinderInterface */ findMatches(query: WindowQuery): Promise<number[]>; }