import type Accessor from "../../core/Accessor.js";

export interface ReplicasInformationResponseProperties extends Partial<Pick<ReplicasInformationResponse, "replicas">> {}

/**
 * The response for [fetchReplicasInformation()](https://developers.arcgis.com/javascript/latest/references/core/rest/knowledgeGraphService/#fetchReplicasInformation).
 *
 * @since 5.1
 */
export default class ReplicasInformationResponse extends Accessor {
  constructor(properties?: ReplicasInformationResponseProperties);
  /** Information for the replicas registered with the knowledge graph. */
  accessor replicas: ReplicaInformation[];
}

/** Summary information for a replica registered with the knowledge graph. */
export interface ReplicaInformation {
  /** Name of the replica. */
  replicaName: string;
  /** Unique identifier of the replica. */
  replicaId: string;
  /** Date of the last replica sync. */
  lastSyncDate?: Date | null;
}