/// import AnchorFileModel from './models/AnchorFileModel'; import NamedAnchoredOperationModel from '../../models/NamedAnchoredOperationModel'; /** * Defines the schema of a Batch File and its related operations. * NOTE: Must NOT add properties not defined by Sidetree protocol. */ export default class BatchFile { /** * Parses and validates the given batch file buffer and all the operations within it. * @throws Error if failed parsing or validation. */ static parseAndValidate(batchFileBuffer: Buffer, anchorFile: AnchorFileModel, transactionNumber: number, transactionTime: number): Promise; /** * Creates the Batch File buffer from an array of operation Buffers. * @param operationBuffers Operation buffers in JSON serialized form, NOT encoded in anyway. * @returns The Batch File buffer. */ static fromOperationBuffers(operationBuffers: Buffer[]): Buffer; }