immudb-node
Version:
Node.js SDK for immudb written in TypeScript
24 lines (23 loc) • 1.6 kB
TypeScript
/// <reference types="node" />
import * as types from './interfaces';
import * as schemaTypes from './proto/schema_pb';
export declare const hashUint8Array: (value: Uint8Array) => Uint8Array;
export declare const utf8Encode: (val: any) => Uint8Array;
export declare const digestKeyValue: (kv: schemaTypes.KeyValue) => Uint8Array;
export declare const getAlh: (txm: schemaTypes.TxMetadata) => Uint8Array;
export declare const encodeInt64: (num: number, buf?: Buffer, offset?: number) => Buffer;
export declare const encodeInt32: (num: number, buf?: Buffer, offset?: number) => Buffer;
export declare const doubleToByteArray: (number: number) => number[];
export declare const utf8Decode: (val: any) => any;
export declare const equalArray: (a1: any, a2: any) => boolean;
export declare const isPowerOfTwo: (x: any) => boolean;
export declare const maskConfig: (c: types.Config) => string;
export declare const maskString: (data: string, n?: number) => string;
export declare const prefixKey: (key: Uint8Array) => Uint8Array;
export declare const prefixValue: (value: Uint8Array) => Uint8Array;
export declare const encodeReferenceValue: (referencedKey: Uint8Array, atTx: number) => Uint8Array;
export declare const encodeKeyValue: (key: Uint8Array, value: Uint8Array) => schemaTypes.KeyValue;
export declare const encodeZAdd: (zSet: Uint8Array, score: number, key: Uint8Array, attx: number) => schemaTypes.KeyValue;
export declare const withLeafPrefix: (value: Uint8Array) => Uint8Array;
export declare const bitLength: (n: number) => number;
export declare const isString: (value: any) => boolean;