/** @internal */ export declare enum NumberFormat { Int8LE = 1, UInt8LE = 2, Int16LE = 3, UInt16LE = 4, Int32LE = 5, Int8BE = 6, UInt8BE = 7, Int16BE = 8, UInt16BE = 9, Int32BE = 10, UInt32LE = 11, UInt32BE = 12, Float32LE = 13, Float64LE = 14, Float32BE = 15, Float64BE = 16, UInt64LE = 17, UInt64BE = 18, Int64LE = 19, Int64BE = 20 } /** * Get the size in bytes of specified number format. */ export declare function sizeOfNumberFormat(format: NumberFormat): 1 | 2 | 0 | 4 | 8; export declare function getNumber(buf: ArrayLike, fmt: NumberFormat, offset: number): number; export declare function setNumber(buf: Uint8Array, fmt: NumberFormat, offset: number, r: number): void; export declare function uintOfBuffer(data: Uint8Array): number; export declare function intOfBuffer(data: Uint8Array): number; export declare function bufferToArray(data: Uint8Array, fmt: NumberFormat): number[]; export declare function concatBufferArray(chunks: Uint8Array[]): Uint8Array; export declare function sha256(buffers: Uint8Array[]): Promise; /** * Compute keyed-Hash Message Authentication Code as defined in RFC 2104. */ export declare function sha256Hmac(key: Uint8Array, msg: Uint8Array): Promise; export declare function fromBase64(encoded: string): Uint8Array; export declare function toBase64(data: Uint8Array): string; //# sourceMappingURL=buffer.d.ts.map