import { OpenAttestationDocument, WrappedDocument, v2 } from '@tradetrust-tt/tradetrust'; /** * Asynchronously wraps a V2 OpenAttestation document. * * This function takes a OpenAttestation document and wraps it using the OpenAttestation * library's `wrapOADocument` function. The function will throw any errors encountered during * the wrapping process, as handled by the OpenAttestation library. * @param {v2.OpenAttestationDocument} document - The OpenAttestation document to be wrapped. * @returns {Promise} - A promise that resolves to the wrapped document. * @throws {Error} - Any errors thrown by the `wrapOADocument` function will propagate naturally. */ declare const wrapOADocumentV2: (document: T) => Promise>; /** * Asynchronously wraps multiple V2 OpenAttestation documents. * * Similar to the `wrapOADocumentV2` function, this function takes an array of OpenAttestation * documents and wraps them using the OpenAttestation library's `wrapOADocuments` function. The * function will throw any errors encountered during the wrapping process, as handled by the * OpenAttestation library. * @param {v2.OpenAttestationDocument[]} documents - The OpenAttestation documents to be wrapped. * @returns {Promise} - A promise that resolves to the wrapped documents. * @throws {Error} - Any errors thrown by the `wrapOADocuments` function will propagate naturally. */ declare const wrapOADocumentsV2: (documents: T[]) => Promise[]>; /** * Asynchronously wraps a V2 OpenAttestation document. * * This function takes an OpenAttestation document and validates its version before wrapping it * using the OpenAttestation library's `wrapOADocument` function. Only V2 documents are supported. * @param {OpenAttestationDocument} document - The OpenAttestation document to be wrapped. * @returns {Promise} - A promise that resolves to the wrapped document. * @throws {Error} - Throws if the document is not a V2 document. */ declare function wrapOADocument(document: T): Promise>; /** * Asynchronously wraps multiple V2 OpenAttestation documents. * * This function takes an array of OpenAttestation documents and validates their versions before wrapping them * using the OpenAttestation library's `wrapOADocuments` function. Only V2 documents are supported. * @param {OpenAttestationDocument[]} documents - The OpenAttestation documents to be wrapped. * @returns {Promise} - A promise that resolves to the wrapped documents. * @throws {Error} - Throws if any document is not a V2 document. */ declare function wrapOADocuments(documents: T[]): Promise[]>; export { wrapOADocument, wrapOADocumentV2, wrapOADocuments, wrapOADocumentsV2 };