import { ColorQuery, Image, MatchResult, Point, Region, TextQuery, WindowElementQuery, WindowQuery } from "../objects"; import { WindowInterface } from "./window.interface"; export type RegionResultFindInput = Image | TextQuery; export type PointResultFindInput = ColorQuery; export type WindowResultFindInput = WindowQuery; export type WindowElementResultFindInput = WindowElementQuery; export type FindInput = RegionResultFindInput | WindowResultFindInput | PointResultFindInput; export type FindResult = Region | Point | WindowInterface; export type WindowCallback = (target: WindowInterface) => void | Promise; export type MatchResultCallback = (target: MatchResult) => void | Promise; export type FindHookCallback = WindowCallback | MatchResultCallback | MatchResultCallback;