xobuilder-extractor
Version:
> **A sophisticated web application that converts HTML and CSS to JSON layout through an intelligent multi-step flow process with AI validation.**
29 lines (28 loc) • 806 B
TypeScript
import { RawDataEEPV2, TrackElementData } from '../entities/general.entity';
export interface Html2XojlConvertedInput {
/**
* Data input of the flow, includes html, css, and screenshot is capture of html and css
*/
data: {
html: string;
css: string;
screenshot: string;
};
/**
* Functions LLM converted use for this flow
*/
cFuncs: {
/**
* Parse the html and css to get the parsed html and css
*/
trackElement: (screenshot: string, parsedHtml: string) => Promise<TrackElementData>;
};
}
export interface Html2XojlConvertedOutput {
timeTaken: number;
cleanHTML: string;
cleanCSS: string;
data: TrackElementData;
contributesElement: RawDataEEPV2[];
entities: Record<string, any>;
}