import type EsriError from "../../core/Error.js";
import type GraphDataModelOperationResult from "./GraphDataModelOperationResult.js";
import type { GraphDataModelOperationResultProperties } from "./GraphDataModelOperationResult.js";

export interface GraphDeleteNamedTypeResultProperties extends GraphDataModelOperationResultProperties, Partial<Pick<GraphDeleteNamedTypeResult, "warnings">> {}

/**
 * The result returned when [deleting](https://developers.arcgis.com/javascript/latest/references/core/rest/knowledgeGraphService/#executeDeleteNamedType) an [entity type](https://developers.arcgis.com/javascript/latest/references/core/rest/knowledgeGraph/EntityType/) or
 * [relationship type](https://developers.arcgis.com/javascript/latest/references/core/rest/knowledgeGraph/RelationshipType/) from a knowledge graph.
 * This contains the updated [knowledge graph](https://developers.arcgis.com/javascript/latest/references/core/rest/knowledgeGraph/KnowledgeGraph/) and any errors encountered.
 *
 * @since 4.33
 */
export default class GraphDeleteNamedTypeResult extends GraphDataModelOperationResult {
  constructor(properties?: GraphDeleteNamedTypeResultProperties);
  /**
   * Any warnings returned while processing the delete operation for this named type.
   *
   * @property
   * @since 5.1
   */
  accessor warnings: EsriError[];
}