import { Hex } from 'viem'; export type PopWitnessVerdict = { readonly kind: "p2tr-verified"; } | { readonly kind: "p2wpkh-verified"; }; /** * Decode a consensus-encoded PoP witness and verify it against the * depositor's key: Schnorr for the P2TR shape, ECDSA over the BIP-322 * P2WPKH virtual transaction for the two-item shape. * * @param messageBytes - Bytes of the PoP message that was signed. * @param depositorXOnlyHex - Depositor x-only pubkey, bare 64-char hex * (enforced, not assumed). * @param witnessHex - 0x-prefixed consensus-encoded witness. * @throws If the witness is malformed, has an unsupported item count, the * depositor key is not bare x-only hex, the witness pubkey is not * the depositor's, or the signature does not verify. */ export declare function verifyPopWitness(messageBytes: Uint8Array, depositorXOnlyHex: string, witnessHex: Hex): PopWitnessVerdict; //# sourceMappingURL=verifyPopWitness.d.ts.map