BlueWallet/typings/bip21.d.ts
2024-02-18 10:21:43 +00:00

13 lines
362 B
TypeScript

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;
}