/** @internal */ import { Links, Tree, File, SemVer, NonEmptyPath } from '../types'; import { CID, FileContent } from '../../ipfs'; declare abstract class BaseTree implements Tree { version: SemVer; constructor(version: SemVer); ls(path: string): Promise; mkdir(path: string): Promise; cat(path: string): Promise; add(path: string, content: FileContent): Promise; addChild(path: string, toAdd: Tree | FileContent): Promise; addRecurse(path: NonEmptyPath, child: Tree | FileContent): Promise; rm(path: string): Promise; rmNested(path: NonEmptyPath): Promise; pathExists(path: string): Promise; get(path: string): Promise; abstract put(): Promise; abstract updateDirectChild(child: Tree | File, name: string): Promise; abstract removeDirectChild(name: string): Promise; abstract getDirectChild(name: string): Promise; abstract getOrCreateDirectChild(name: string): Promise; abstract getLinks(): Links; abstract emptyChildTree(): Promise; abstract childTreeFromCID(cid: CID): Promise; abstract createChildFile(content: FileContent): Promise; abstract childFileFromCID(cid: CID): Promise; } export default BaseTree;