import { Link, Links, Tree, File } from '../types'; import { CID, FileContent } from '../../ipfs'; import BaseTree from '../base/tree'; declare class BareTree extends BaseTree { links: Links; constructor(links: Links); static empty(): Promise; static fromCID(cid: CID): Promise; static fromLinks(links: Links): BareTree; emptyChildTree(): Promise; childTreeFromCID(cid: CID): Promise; createChildFile(content: FileContent): Promise; childFileFromCID(cid: CID): Promise; put(): Promise; updateDirectChild(child: Tree | File, name: string): Promise; removeDirectChild(name: string): Promise; getDirectChild(name: string): Promise; getOrCreateDirectChild(name: string): Promise; updateLink(link: Link): this; findLink(name: string): Link | null; findLinkCID(name: string): CID | null; rmLink(name: string): this; getLinks(): Links; } export default BareTree;