import type { PublicKeyData } from "@solana/web3.js" ; import { PublicKey } from "@solana/web3.js" ; import BN from "bn.js" ; export { PublicKey } from "@solana/web3.js" ; /**
 * Returns true if the given value is a  PublicKey .
 *  param pk returns export const isPublicKey = ( pk ) : pk is PublicKey => { if ( pk instanceof PublicKey ) { return true ; } if ( typeof pk !== "object" || Array . isArray ( pk ) || BN . isBN ( pk ) ) { return false ; } try { new PublicKey ( pk as PublicKeyData ) ; return true ; } catch ( e ) { return false ; } } ;