export type Bolt12Tlv = { type: number; typeBytes: Uint8Array; value: Uint8Array; bytes: Uint8Array; }; export declare const canonicalBolt12: (encoded: string) => string; export declare const decodeBolt12: (encoded: string, prefix: string) => Uint8Array | undefined; export declare const parseBolt12Tlvs: (bytes: Uint8Array) => Bolt12Tlv[] | undefined; type Fields = Map; export type Bolt12PayerProof = { fields: Fields; paymentHash: string; preimage: string; payerId: string; nodeId: string; payerNote?: string; amount?: number; }; /** * Decodes a bolt12 `lnp` payer proof and runs every check the spec asks of a reader: the * preimage hashes to the payment hash, the withheld fields are renumbered in order, and both * signatures verify — the recipient node over the reconstructed invoice merkle root, and the * payer over the proof itself. Returns undefined for anything that fails. */ export declare const decodeBolt12PayerProof: (proof: string) => Bolt12PayerProof | undefined; export declare const bolt12ProofPaysOffer: (proof: Bolt12PayerProof, offer: string) => boolean; export {}; //# sourceMappingURL=Bolt12.d.ts.map