import { Versionable } from '../base/Versionable.mjs'; import { Remote } from './Remote.mjs'; import { ReplicationStats } from './ReplicationStats.mjs'; /** * * Data transfer object representing a CouchDB replicator document that tracks the state of a * replication task. * / */ export declare class ReplicatorDocument implements Versionable { /** * * The unique identifier of this replicator document. */ id: string; /** * * The current revision of this document. */ rev: string | undefined; /** * * The source remote endpoint for the replication. */ source: Remote | undefined; /** * * The target remote endpoint for the replication. */ target: Remote | undefined; /** * * The owner of this replication task. */ owner: string | undefined; /** * * Whether to create the target database if it does not exist. */ create_target: boolean | undefined; /** * * Whether the replication runs continuously. */ continuous: boolean | undefined; /** * * An optional list of document ids to replicate. */ doc_ids: Array | undefined; /** * * The current state of the replication (e.g. triggered, completed, error). */ replicationState: string | undefined; /** * * The time when the replication state was last updated. */ replicationStateTime: string | undefined; /** * * Statistics about the replication process. */ replicationStats: ReplicationStats | undefined; /** * * The number of errors encountered during replication. */ errorCount: number | undefined; /** * * Information about the document revisions. */ revsInfo: Array<{ [key: string]: string; }> | undefined; constructor(partial: Partial); toJSON(): object; static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array): ReplicatorDocument; }