import type Accessor from "../../core/Accessor.js";
import type EsriError from "../../core/Error.js";
import type KnowledgeGraph from "./KnowledgeGraph.js";

/** @since 5.0 */
export interface GraphDataModelSingletonOperationResultProperties extends Partial<Pick<GraphDataModelSingletonOperationResult, "decoderError" | "updatedKnowledgeGraph">> {}

/** @since 5.0 */
export default class GraphDataModelSingletonOperationResult extends Accessor {
  /** @since 5.0 */
  constructor(properties?: GraphDataModelSingletonOperationResultProperties);
  /**
   * Any errors encountered while decoding the results.
   *
   * @since 5.0
   */
  accessor decoderError: EsriError | null;
  /**
   * The updated knowledge graph with the applied additions, updates, and deletions.
   *
   * @since 5.0
   */
  accessor updatedKnowledgeGraph: KnowledgeGraph | null;
}