import type { Format } from "./Format.js";
/**
 * Defines how a field in the dataset participates (or does not participate) in
 * a pop-up window.
 *
 * See
 * {@link https://developers.arcgis.com/web-map-specification/objects/fieldInfo/}
 * {@link https://developers.arcgis.com/web-scene-specification/objects/fieldInfo/}.
 *
 * @deprecated Use "json/*" modules instead.
 */
export interface FieldInfo {
    /**
     * The field name as defined by the service.
     */
    fieldName: string;
    /**
     * A format object used with numerical or date fields to provide more detail
     * about how the value should be displayed in a web map pop-up window.
     */
    format?: Format;
    /**
     * Determines whether users can edit this field.
     */
    isEditable?: boolean;
    /**
     * The field alias. This can be overridden by the web map author.
     */
    label?: string;
    /**
     * The type of input box editors will see when editing the field. Applies
     * only to string fields. See {@link StringFieldOption}.
     */
    stringFieldOption?: StringFieldOption;
    /**
     * Provides an editing hint for editors of the field. This string could
     * provide a short description of the field and how editors should format or
     * supply its value.
     */
    tooltip?: string;
    /**
     * Determines whether the field is visible in the pop-up window.
     */
    visible?: boolean;
}
/**
 * The type of string field to use with
 * {@link portal/FieldInfo!FieldInfo.stringFieldOption}..
 *
 * @deprecated Use "json/*" modules instead.
 */
export type StringFieldOption = "textbox" | "textarea" | "richtext";
