import { CommitmentProof, ProofSpec } from "../generated/cosmos/ics23/v1/proofs.js"; //#region src/proof/ics23-verify.d.ts /** Commitment root is the merkle root hash */ type CommitmentRoot = Uint8Array; /** * Verify membership proof * Returns true iff proof contains valid ExistenceProof for key/value that hashes to root * Based on Go ics23 VerifyMembership (ics23.go lines 33-45) */ declare function verifyMembership(spec: ProofSpec, root: CommitmentRoot, proof: CommitmentProof, key: Uint8Array, value: Uint8Array): boolean; /** * Verify non-membership proof * Returns true iff proof contains valid NonExistenceProof that key is not in tree * Based on Go ics23 VerifyNonMembership (ics23.go lines 47-61) */ declare function verifyNonMembership(spec: ProofSpec, root: CommitmentRoot, proof: CommitmentProof, key: Uint8Array): boolean; //#endregion export { CommitmentRoot, verifyMembership, verifyNonMembership }; //# sourceMappingURL=ics23-verify.d.ts.map