mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add xstream * Add bigi * Add uuid-js * Add user-home * Add strip-bom * Add strip-ansi * Add slug * Add safe-regex * Add react-recaptcha * Add is-absolute-url * Add is-archive * Add is-compressed * Add is-relative-url * add is-root-path * Add is-root * Add is-text-path * add os-homedir * Add os-tmpdir * Add path-is-absolute * Add pad * Add number-is-nan * Add node-hid * Add is-finite * is-path-incwd * Add indent-string * Add cpy * Add camelcase-keys * Add blacklist * add http-codes * clamp-js * Add checkstyle-formatter * Add currency-formatter * Add multi-typeof * Add intl-messageformat * Add coinstring * Add ecurve * Add bitcoinjs-lib * Add deep-freeze * Add fuxxaldrin * Add react-body-classname * Add react-highlight-words * Update headers * Fix lint errors * remove xstream * Code review comments * Remove clamp-js in favour of https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13527
14 lines
858 B
TypeScript
14 lines
858 B
TypeScript
// Type definitions for coinstring 2.3
|
|
// Project: https://github.com/cryptocoinjs/coinstring
|
|
// Definitions by: Mohamed Hegazy <https://github.com/mhegazy>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types= "node" />
|
|
|
|
export function createDecoder(version: number): (base58str: string, version?: number | Buffer) => Buffer;
|
|
export function createEncoder(version: number): (payload: Buffer | number[] | Uint8Array, version?: number | Buffer) => string;
|
|
export function createValidator(version: number): (base58str: string, version?: number | Buffer) => boolean;
|
|
export function decode(base58str: string, version?: number | Buffer): Buffer;
|
|
export function encode(payload: Buffer | number[] | Uint8Array, version?: number| Buffer): string;
|
|
export function isValid(base58str: string, version?: number | Buffer): boolean;
|