UNPKG

varbyte-printable

Version:

A library for encoding variable-length bytes into a compact, printable, and JSON/JavaScript-safe string format.

7 lines (6 loc) 319 B
import { type NumberArrayLike } from "./encode.js"; export interface NumberArrayLikeConstructor<T extends NumberArrayLike> { readonly prototype: T; new (length: number): T; } export declare function decodeVarbytePrintable<T extends NumberArrayLike>(ArrayConstructor: NumberArrayLikeConstructor<T>, input: string): T;