mindee
Version:
Mindee Client Library for Node.js
26 lines (25 loc) • 856 B
TypeScript
import { Prediction } from "../../../src/parsing/common";
import { GeneratedListField } from "../../../src/parsing/generated";
import { StringField } from "../../../src/parsing/standard";
export declare class GeneratedV1Prediction implements Prediction {
/** Map of all fields in the document. */
fields: Map<string, any>;
constructor();
toString(): string;
/**
* Returns a dictionary of all fields that aren't a collection.
*/
getSingleField(): Map<string, StringField>;
/**
* Returns a dictionary of all array-like fields.
*/
getArrayFields(): Map<string, GeneratedListField>;
/**
* Returns a dictionary of all object-like fields.
*/
getObjectFields(): Map<string, GeneratedListField>;
/**
* Lists names of all top-level field keys.
*/
listFieldNames(): string[];
}