import { PBLink } from "@ipld/dag-pb";
import { CID } from "multiformats/cid";
import type { IPFSEntry } from "ipfs-core-types/src/root";
import { HardLink, SimpleLink } from "./types.js";
export declare const toDAGLink: (link: SimpleLink) => PBLink;
export declare const fromFSFile: (fsObj: IPFSEntry) => HardLink;
export declare const fromDAGLink: (link: PBLink) => SimpleLink;
export declare const make: (name: string, cid: CID, isFile: boolean, size: number) => HardLink;
declare type HasName = {
    name: string;
};
export declare const arrToMap: <T extends HasName>(arr: T[]) => {
    [name: string]: T;
};
export {};
