import { MerklePath } from '@bsv/sdk'; import { BlockHeader, GetMerklePathResult } from '../sdk/WalletServices.interfaces'; import { Chain } from '../sdk/types'; export interface ValidatedMerklePathResult { merklePath: MerklePath; header: BlockHeader; root: string; index: number; } export interface MerkleRootValidator { isValidRootForHeight(root: string, height: number): Promise; } export interface SnapshotMerklePathResult extends Omit { merklePath?: MerklePath | MerklePath[]; } export declare function normalizeTxid(value: unknown, name?: string): string; /** * Snapshot the provider envelope before inspecting proof availability or * diagnostics. The optional legacy array mode is bounded for older custom * WalletServices implementations; ordinary providers return one path. */ export declare function snapshotMerklePathResult(value: unknown, allowLegacyArray?: boolean, providerName?: string): SnapshotMerklePathResult; export declare function copyMerklePath(txid: string, value: unknown): { merklePath: MerklePath; root: string; index: number; }; export declare function copyValidatedBlockHeader(value: unknown, requireProofOfWork?: boolean, requireHeaderFormat?: boolean, chain?: Chain): BlockHeader; export declare function validateMerklePathResult(requestedTxid: unknown, result: GetMerklePathResult, requireProofOfWork?: boolean, requireHeaderFormat?: boolean, chain?: Chain): ValidatedMerklePathResult; export declare function authenticateMerklePathResult(requestedTxid: unknown, result: GetMerklePathResult, validator: MerkleRootValidator, requireProofOfWork?: boolean, requireHeaderFormat?: boolean, chain?: Chain): Promise; //# sourceMappingURL=validateMerklePathResult.d.ts.map