import type { ExportStrategy } from '../index.ts'; import type { CodecLoader } from '@helia/interface'; import type { GraphWalker, GraphWalkerComponents } from '@helia/utils'; 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 SubgraphExporterInit { /** * Graph traversal strategy, defaults to breadth-first */ walker?(components: GraphWalkerComponents): GraphWalker; } /** * Traverses the DAG breadth-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 SubgraphExporter implements ExportStrategy { private walker?; constructor(init?: SubgraphExporterInit); export(cid: CID, blockstore: Blockstore, getCodec: CodecLoader, options?: AbortOptions): AsyncGenerator, void, undefined>; } //# sourceMappingURL=subgraph-exporter.d.ts.map