mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
527 B
TypeScript
15 lines
527 B
TypeScript
// Type definitions for bech32 1.1
|
|
// Project: https://github.com/bitcoinjs/bech32
|
|
// Definitions by: Satana Charuwichitratana <https://github.com/micksatana>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
export function decode(str: string, LIMIT?: number): { prefix: string, words: Buffer };
|
|
|
|
export function encode(prefix: string, words: Buffer, LIMIT?: number): string;
|
|
|
|
export function fromWords(words: Buffer): Buffer;
|
|
|
|
export function toWords(bytes: Buffer): Buffer;
|