@ucanto/core
Version:
12 lines • 585 B
TypeScript
export const contentType: "application/vnd.ipld.dag-cbor";
export function encode<T>(data: T): API.ByteView<T>;
export function link<T>(bytes: API.ByteView<T>, { hasher }?: {
hasher?: API.MultihashHasher;
}): Promise<API.Link<T, 113, number, 1>>;
export function write<T>(data: T, options?: {
hasher?: API.MultihashHasher<number> | undefined;
} | undefined): Promise<API.Transport.Block<T, 113, number, 1>>;
import * as CBOR from '@ipld/dag-cbor';
import * as API from '@ucanto/interface';
export { code, name, decode } from "@ipld/dag-cbor";
//# sourceMappingURL=cbor.d.ts.map