ipfs-unixfs-importer
Version:
JavaScript implementation of the UnixFs importer used by IPFS
20 lines • 877 B
TypeScript
import type { Blockstore } from 'interface-blockstore';
import { Dir, DirProps } from './dir.js';
import type { ImportResult, InProgressImportResult } from './index.js';
import { PersistOptions } from './utils/persist.js';
export declare class DirFlat extends Dir {
private readonly _children;
constructor(props: DirProps, options: PersistOptions);
put(name: string, value: InProgressImportResult | Dir): Promise<void>;
get(name: string): Promise<InProgressImportResult | Dir | undefined>;
childCount(): number;
directChildrenCount(): number;
onlyChild(): InProgressImportResult | Dir;
eachChildSeries(): AsyncGenerator<{
key: string;
child: InProgressImportResult | Dir;
}, void, undefined>;
estimateNodeSize(): number;
flush(block: Blockstore): AsyncGenerator<ImportResult>;
}
//# sourceMappingURL=dir-flat.d.ts.map