import type { ChainablePromiseElement } from 'webdriverio'; import type { ClickPoint, DetermineClickPointOptions, PageSegmentationMode, PageSegmentationModeOptions, Rectangles, RectReturn, ScreenshotSize } from '../types.js'; export declare function getBase64ScreenshotSize(screenshot: string): ScreenshotSize; export declare function getDprPositions(values: Rectangles, dpr: number): Rectangles; /** * Determine the click point */ export declare function determineClickPoint(options: DetermineClickPointOptions): ClickPoint; /** * Adjust the Element Bbox */ export declare function adjustElementBbox(bbox: Rectangles, elementRect: RectReturn): Rectangles; export declare function createOcrDir(imagesPath: string): string; export declare function isRectanglesObject(obj: WebdriverIO.Element | ChainablePromiseElement | RectReturn): boolean; /** * Tells a multiremote browser apart from a single browser */ export declare function isMultiRemoteBrowser(browser: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser): browser is WebdriverIO.MultiRemoteBrowser; export declare function isPageSegmentationMode(pageSegmentationMode: unknown): pageSegmentationMode is PageSegmentationMode; /** * Get the page segmentation mode from the `pageSegmentationMode` option or its alias `psm`, or the default when * neither is set. Only the supported numbers are allowed, because the system Tesseract gets the value in a shell command. */ export declare function getPageSegmentationMode(options: PageSegmentationModeOptions | undefined, defaultPageSegmentationMode: PageSegmentationMode): PageSegmentationMode; //# sourceMappingURL=index.d.ts.map