import { AnnotatedSimpleField } from "./annotatedSimpleField.js"; import { AnnotatedObjectField } from "./annotatedObjectField.js"; import { AnnotatedListField } from "./annotatedListField.js"; import { StringDict } from "../../../../parsing/index.js"; /** * A dictionary of field names and their corresponding configured field types. */ export declare class AnnotatedFields extends Map { constructor(serverResponse: StringDict); /** * Returns a field as an `AnnotatedSimpleField`, or throws if the type mismatches. */ getSimpleField(fieldName: string): AnnotatedSimpleField; /** * Returns a field as an `AnnotatedObjectField`, or throws if the type mismatches. */ getObjectField(fieldName: string): AnnotatedObjectField; /** * Returns a field as an `AnnotatedListField`, or throws if the type mismatches. */ getListField(fieldName: string): AnnotatedListField; /** * Serializes the fields to API format. * Needed because a `Map` is otherwise serialized as an empty object by `JSON.stringify`. */ toJSON(): Record; }