@deno/kv
Version:
A Deno KV client library optimized for Node.js.
19 lines (18 loc) • 741 B
TypeScript
/**
* @deprecated (will be removed in 0.210.0) Use {@linkcode encodeHex} instead.
*
* Encodes `src` into `src.length * 2` bytes.
*/
export declare function encode(src: Uint8Array): Uint8Array;
/** Encodes the source into hex string. */
export declare function encodeHex(src: string | Uint8Array | ArrayBuffer): string;
/**
* @deprecated (will be removed in 0.210.0) Use {@linkcode decodeHex} instead.
*
* Decodes `src` into `src.length / 2` bytes.
* If the input is malformed, an error will be thrown.
*/
export declare function decode(src: Uint8Array): Uint8Array;
/** Decodes the given hex string to Uint8Array.
* If the input is malformed, an error will be thrown. */
export declare function decodeHex(src: string): Uint8Array;