14 lines
294 B
TypeScript
14 lines
294 B
TypeScript
declare module "light-bolt11-decoder" {
|
|
export function decode(pr?: string): ParsedInvoice;
|
|
|
|
export interface ParsedInvoice {
|
|
paymentRequest: string;
|
|
sections: Section[];
|
|
}
|
|
|
|
export interface Section {
|
|
name: string;
|
|
value: string | Uint8Array | number | undefined;
|
|
}
|
|
}
|