import { StringDict } from "../../../../parsing/stringDict.js"; import type { ListField } from "./listField.js"; import type { ObjectField } from "./objectField.js"; import type { SimpleField } from "./simpleField.js"; /** * Typed map of extraction fields returned by the API. */ export declare class InferenceFields extends Map { /** * Indentation level used when rendering text output. */ protected _indentLevel: number; constructor(serverResponse: StringDict, indentLevel?: number); /** * Returns a field as a `SimpleField`, or throws if the type mismatches. */ getSimpleField(fieldName: string): SimpleField; /** * Returns a field as an `ObjectField`, or throws if the type mismatches. */ getObjectField(fieldName: string): ObjectField; /** * Returns a field as a `ListField`, or throws if the type mismatches. */ getListField(fieldName: string): ListField; toString(indent?: number): string; }