UNPKG

mindee

Version:

Mindee Client Library for Node.js

26 lines (25 loc) 880 B
import { Prediction } from "../../../v1/parsing/common/index.js"; import { GeneratedListField } from "../../../v1/parsing/generated/index.js"; import { StringField } from "../../../v1/parsing/standard/index.js"; 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[]; }