import AnchoredOperationModel from '../../models/AnchoredOperationModel'; import IOperationProcessor, { PatchResult } from '../../interfaces/IOperationProcessor'; /** * Implementation of OperationProcessor. Uses a OperationStore * that might, e.g., use a backend database for persistence. * All 'processing' is deferred to resolve time, with process() * simply storing the operation in the store. */ export default class OperationProcessor implements IOperationProcessor { private didMethodName; constructor(didMethodName: string); patch(anchoredOperationModel: AnchoredOperationModel, previousOperationHash: string | undefined, didDocumentReference: { didDocument: object | undefined; }): Promise; }