import { CID } from 'multiformats/cid'; import type { WritableStorage, ImportResult, InProgressImportResult } from './index.ts'; import type { AddToTreeOptions } from './tree-builder.ts'; import type { Blockstore } from 'interface-blockstore'; import type { Mtime, UnixFS } from 'ipfs-unixfs'; export interface DirProps { root: boolean; dir: boolean; path: string; dirty: boolean; flat: boolean; parent?: Dir; parentKey?: string; unixfs?: UnixFS; mode?: number; mtime?: Mtime; } export declare abstract class Dir { options: AddToTreeOptions; root: boolean; dir: boolean; path: string; dirty: boolean; flat: boolean; parent?: Dir; parentKey?: string; unixfs?: UnixFS; mode?: number; mtime?: Mtime; cid?: CID; size?: number; nodeSize?: number; constructor(props: DirProps, options: AddToTreeOptions); abstract put(name: string, value: InProgressImportResult | Dir): Promise; abstract get(name: string): Promise; abstract eachChildSeries(): Iterable<{ key: string; child: InProgressImportResult | Dir; }>; abstract flush(blockstore: WritableStorage): AsyncGenerator; abstract estimateNodeSize(blockstore: Blockstore): Promise; abstract childCount(): number; } //# sourceMappingURL=dir.d.ts.map