UNPKG

@dfinity/candid

Version:

JavaScript and TypeScript library to work with candid interfaces

18 lines (13 loc) 357 B
declare module 'borc' { import { Buffer } from 'buffer/'; class Decoder { constructor(opts: { size: Number; tags: Record<number, (val: any) => any> }); decodeFirst(input: ArrayBuffer): any; } export function encode(o: any): Buffer | null; class Tagged { tag: number; value: any; constructor(tag: Number, value: any); } }