import type { ExportStrategy } from '../index.ts'; import type { CodecLoader } from '@helia/interface'; import type { AbortOptions } from '@libp2p/interface'; import type { Blockstore } from 'interface-blockstore'; import type { BlockView } from 'multiformats'; import type { CID } from 'multiformats/cid'; export interface UnixFSExporterOptions { /** * Include blocks that start with this offset. * * If the CID being exported is a directory, this option is ignored. * * @default 0 */ offset?: number; /** * Only include blocks that would include this many file bytes (exclusive, * inclusive of offset). * * If the CID being exported is a directory, this option is ignored. * * @default Infinity */ length?: number; /** * By default an exported CAR file will include all blocks that make up a * directory, and the files that are stored there. * * To only include blocks that allow the initial enumeration of the directory, * pass `true` here * * @default false */ listingOnly?: boolean; } /** * Traverses the DAG depth-first starting at the target CID and yields all * encountered blocks. * * Blocks linked to from the target block are traversed using codecs defined in * the helia config. */ export declare class UnixFSExporter implements ExportStrategy { private options?; constructor(options?: UnixFSExporterOptions); export(cid: CID, blockstore: Blockstore, getCodec: CodecLoader, options?: AbortOptions): AsyncGenerator, void, undefined>; } //# sourceMappingURL=unixfs-exporter.d.ts.map