import { StringDict } from "../../../parsing/stringDict.js"; import { BaseFieldConstructor } from "../standard/index.js"; /** * A JSON-like object, with miscellaneous values. */ export declare class GeneratedObjectField { /** * The document page on which the information was found. */ pageId?: number; /** * Confidence with which the value was assessed. */ confidence?: number; /** * Raw unprocessed value, as it was sent by the server. */ rawValue?: string; /** * List of all printable field names. */ private printableValues; /** * All potentially present fields. */ [key: string]: string | number | boolean | object | undefined; constructor({ prediction, pageId, }: BaseFieldConstructor); private static readonly positionFieldNames; private static isPositionField; private assignPositionField; private assignScalarField; /** * ReSTructured-compliant string representation. * Takes into account level of indentation & displays elements as list elements. * @param level Level of indentation. 0 by default. */ toStringLevel(level?: number): string; /** * Formats a float number to have at least one decimal place. * @param n Input number. * @returns */ private toNumberString; /** * Returns the default string representation. */ toString(): string; /** * Returns a field value by key from this generated object. */ get(fieldName: string): string | number | boolean | object | undefined; } /** * Checks whether a field is a custom object or not. * @param strDict input dictionary to check. */ export declare function isGeneratedObject(strDict: StringDict): boolean;