import { ColorQuery, MatchRequest, MatchResult, Point } from "@nut-tree-fork/shared"; /** * A WindowFinder should provide an abstraction layer to perform window searches * * @interface ColorFinderInterface */ export interface ColorFinderInterface { /** * findMatch should provide an abstraction to search for a color on screen * * @param {ColorQuery} query A {@link ColorQuery} containing needed data * @returns {Promise} A single window handle * @memberof WindowFinderInterface */ findMatch(query: MatchRequest): Promise>; /** * findMatches should provide an abstraction to search for a window on screen * * @param {ColorQuery} query A {@link ColorQuery} containing needed data * @returns {Promise} A list of window handles * @memberof WindowFinderInterface */ findMatches(query: MatchRequest): Promise[]>; }