import BasicInterface from './basic-interface.js'; import Hash from './codec-hash.js'; export default class JsonInterface extends BasicInterface implements JsonInterface { #private; hashFormat: string; init(buffer: Uint8Array | ArrayBuffer | JsonInterface | string): JsonInterface; hasCodec(): boolean; decode(encoded?: string): object; encode(decoded?: object): Uint8Array; /** * @param {Buffer|String|Object} buffer - data - The data needed to create the desired message * @param {Object} proto - {protoObject} * @param {Object} options - {hashFormat, name} */ constructor(buffer: any, proto: any, options?: { hashFormat?: string; name?: string; }); get format(): string; /** * @return {PeernetHash} */ get peernetHash(): Promise; /** * @return {peernetHash} */ hash(): Promise; fromUint8Array(buffer: any): object; fromArrayBuffer(buffer: any): object; /** * @param {Object} data */ create(data: object): Uint8Array; }