@ezbot-ai/javascript-sdk
Version:
The easiest way to interact with ezbot via JS (node and browser)
39 lines (38 loc) • 2.41 kB
TypeScript
import { Prediction } from './ezbot';
declare function setElementText(element: Element, text: string): void;
declare function setElementInnerHTML(element: Element, innerHTML: string): void;
declare function setElementAttribute(element: HTMLElement, attribute: string, value: string): void;
declare function addClassesToElement(element: HTMLElement, classes: string[]): void;
declare function removeClassesFromElement(element: HTMLElement, classes: string[]): void;
declare function setElementStyle(element: HTMLElement, value: string): void;
declare function setElementHref(element: HTMLAnchorElement, href: string): void;
declare function setElementSrc(element: HTMLImageElement, src: string): void;
declare function hideElement(element: HTMLElement): void;
declare function showElement(element: HTMLElement): void;
declare function addGlobalCSS(key: string, value: string): void;
declare function validateVisualPrediction(prediction: Prediction): string | null;
declare function parseCommaSeparatedList(list: string): string[];
declare function makeGlobalVisualChange(prediction: Prediction): void;
declare function makeVisualChange(prediction: Prediction): void;
declare function makeVisualChanges(): void;
declare const visualUtils: {
validateVisualPrediction: typeof validateVisualPrediction;
parseCommaSeparatedList: typeof parseCommaSeparatedList;
};
declare const visualChanges: {
setElementText: typeof setElementText;
setElementInnerHTML: typeof setElementInnerHTML;
setElementAttribute: typeof setElementAttribute;
addGlobalCSS: typeof addGlobalCSS;
setElementHref: typeof setElementHref;
setElementSrc: typeof setElementSrc;
addClassesToElement: typeof addClassesToElement;
removeClassesFromElement: typeof removeClassesFromElement;
setElementStyle: typeof setElementStyle;
hideElement: typeof hideElement;
showElement: typeof showElement;
makeVisualChange: typeof makeVisualChange;
makeVisualChanges: typeof makeVisualChanges;
makeGlobalVisualChange: typeof makeGlobalVisualChange;
};
export { visualUtils, visualChanges, setElementText, setElementInnerHTML, setElementAttribute, addGlobalCSS, setElementHref, setElementSrc, addClassesToElement, removeClassesFromElement, setElementStyle, hideElement, showElement, validateVisualPrediction, makeVisualChange, makeVisualChanges, parseCommaSeparatedList, makeGlobalVisualChange, };