import { ExtractionReponse } from "../types/ExtractionResponse.js"; import { BasicInferenceConfig } from "@optimaxer/web-core"; export declare class FormEngine { private dataExtractor; private dataInjector; private llmInstance; private static defaultConfig; constructor(config?: Partial); /** * setup * @param config - The configuration for the Form Engine setup. * @returns Response * * This function initializes the Form Engine by creating an instance of the InferenceEngine. */ static setup(config?: Partial): Promise; /** * extract * @param formSchema * @param text * @returns { [key: string]: any } * * This function extracts data from the given text using the SLM model and injects the extracted data into the form schema. */ extract(formSchema: { [key: string]: any; }, text?: string): Promise; /** * rawExtract * This function extracts data from the given text using the SLM model. And does not require a schema. * @param text The text to extract data from. * @returns { [key: string]: any } */ rawExtract(text?: string): Promise; }