import { Await, CID } from './basic'; export interface Format { util: Util; resolver: Resolver; defaultHashArg: string | number; codec: string | number; } export interface Util { /** * Serialize an IPLD Node into a binary blob. */ serialize(node: T): Uint8Array; /** * Deserialize a binary blob into an IPLD Node. */ deserialize(bytes: Uint8Array): T; /** * Calculate the CID of the binary blob. */ cid(bytes: Uint8Array, options?: CIDOptions): Await; } export interface CIDOptions { cidVersion?: number; hashAlg?: number | string; } export interface Resolver { resolve(bytes: Uint8Array, path: string): ResolveResult; tree(byte: Uint8Array): string[]; } export interface ResolveResult { value: T; remainderPath: string; } //# sourceMappingURL=format.d.ts.map