import { Links, Tree, HeaderV1, NodeInfo, PutResult, StaticMethods, HeaderTree, HeaderFile, PinMap } from '../types'; import { CID, FileContent } from '../../ipfs'; import BaseTree from '../base/tree'; import { Maybe } from '../../common'; export declare class PublicTree extends BaseTree implements HeaderTree { protected header: HeaderV1; protected parentKey: Maybe; protected ownKey: Maybe; protected static: StaticMethods; constructor(header: HeaderV1, parentKey: Maybe); static empty(parentKey: Maybe): Promise; static fromCID(cid: CID, parentKey: Maybe): Promise; static fromHeader(header: HeaderV1, parentKey: Maybe): HeaderTree; static instanceOf(obj: any): obj is PublicTree; emptyChildTree(): Promise; childTreeFromCID(cid: CID): Promise; childTreeFromHeader(header: HeaderV1): HeaderTree; createChildFile(content: FileContent): Promise; childFileFromCID(cid: CID): Promise; put(): Promise; putWithPins(): Promise; protected putWithKey(key: Maybe): Promise; updateDirectChild(child: HeaderTree | HeaderFile, name: string): Promise; removeDirectChild(name: string): Promise; getDirectChild(name: string): Promise; getOrCreateDirectChild(name: string): Promise; updateHeader(name: string, childInfo: Maybe): Promise; updatePins(name: string, pins: Maybe): this; updateLink(info: NodeInfo): Tree; findLink(name: string): NodeInfo | null; findLinkCID(name: string): CID | null; rmLink(name: string): Tree; getLinks(): Links; getHeader(): HeaderV1; } export default PublicTree;