UNPKG

@ethersphere/bee-js

Version:
19 lines (18 loc) 693 B
export declare class Bytes { protected readonly bytes: Uint8Array; readonly length: number; constructor(bytes: Uint8Array | ArrayBuffer | string | Bytes, byteLength?: number | number[]); static keccak256(bytes: Uint8Array | ArrayBuffer | string | Bytes): Bytes; static fromUtf8(utf8: string): Bytes; static fromSlice(bytes: Uint8Array, start: number, length?: number): Bytes; offset(index: number): Uint8Array; toUint8Array(): Uint8Array; toHex(): string; toBase64(): string; toBase32(): string; toString(): string; toUtf8(): string; toJSON(): unknown; equals(other: Bytes | Uint8Array | string): boolean; represent(): string; }