import { IApiClient } from '@zkdb/api'; import { Schema, TDocumentDropResponse, TDocumentHistoryFindResponse, TDocumentMetadataResponse, TDocumentProofStatusReponse, TDocumentResponse, TDocumentUpdateResponse, TMerkleTreeProofByDocIdResponse, TPagination, TSchemaFieldDefinition } from '@zkdb/common'; import { IDocument, IMetadata, TDocument } from '../interfaces'; import { Result } from '../../utils/result'; export declare class Document implements IDocument { private readonly apiClient; private readonly databaseName; private readonly collectionName; private readonly _document; private readonly _innerDocument; private get basicRequest(); constructor(apiClient: IApiClient, databaseName: string, collectionName: string, document: TDocumentResponse); get document(): TDocument & T; get metadata(): IMetadata; drop(): Promise>; update(document: Partial): Promise>; /** * Verifies that the document is correctly included in the Merkle tree. * This method computes the document hash and traverses the Merkle proof * to verify it matches the root hash. */ merkleProofVerify(schema: Schema, merkleProof: TMerkleTreeProofByDocIdResponse): boolean; merkleProof(): Promise>; history(pagination?: TPagination): Promise>; proofStatus(): Promise>; }