BlueWallet/typings/bip21.d.ts

13 lines
362 B
TypeScript
Raw Normal View History

2024-02-18 11:21:43 +01:00
declare module 'bip21' {
export type TOptions =
| {
amount?: number;
label?: string;
pj?: string;
}
| { [key: string]: string };
export function decode(uri: string, urnScheme?: string): { address: string; options: TOptions };
export function encode(address: string, options?: TOptions, urnScheme?: string): string;
}