import { AnnotatedBaseField } from "./annotatedBaseField.js"; import { StringDict } from "../../../../parsing/index.js"; import { AnnotatedFields } from "./annotatedFields.js"; import { AnnotatedSimpleField } from "./annotatedSimpleField.js"; import { AnnotatedListField } from "./annotatedListField.js"; /** * Field having a set of sub-fields. */ export declare class AnnotatedObjectField extends AnnotatedBaseField { /** * Nested fields carried by this object. */ readonly fields: AnnotatedFields; constructor(serverResponse: StringDict); /** * Retrieves a AnnotatedSimpleField by its name if it exists and is of the correct type. * * @param {string} fieldName - The name of the field to retrieve. * @return {AnnotatedSimpleField} The field instance if it exists and is valid, or undefined if not. * @throws {Error} If the field does not exist or is of wrong type. */ getSimpleField(fieldName: string): AnnotatedSimpleField; /** * Retrieves a AnnotatedListField by its name if it exists and is of the correct type. * * @param {string} fieldName - The name of the field to retrieve. * @return {AnnotatedListField} The field instance if it exists and is valid, or undefined if not. * @throws {Error} If the field does not exist or is of wrong type. */ getListField(fieldName: string): AnnotatedListField; /** * Retrieves an AnnotatedObjectField by its name if it exists and is of the correct type. * * @param {string} fieldName - The name of the field to retrieve. * @return {AnnotatedObjectField} The field instance if it exists and is valid, or undefined if not. * @throws {Error} If the field does not exist or is of wrong type. */ getObjectField(fieldName: string): AnnotatedObjectField; /** * Returns a compact representation suitable for list items. */ toStringFromList(): string; }