@ezbot-ai/javascript-sdk
Version:
The easiest way to interact with ezbot via JS (node and browser)
11 lines (10 loc) • 463 B
TypeScript
import { Prediction } from './types';
/**
* Returns the first visual prediction matching the provided CSS selector.
*/
export declare function getVisualForSelector(predictions: ReadonlyArray<Prediction>, selector: string): Prediction | undefined;
/**
* Converts visual predictions into a CSS string suitable for server-side rendering
* within a single <style> tag.
*/
export declare function predictionsToCss(predictions: ReadonlyArray<Prediction>): string;