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

export interface GraphDataModelSingletonOperationResultProperties extends Partial<Pick<GraphDataModelSingletonOperationResult, "decoderError" | "updatedKnowledgeGraph">> {}

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