import { BlockService } from './block-service'; import { Await, CID, AwaitIterable, AbortOptions } from './basic'; import { StoreReader, StoreExporter, StoreEraser } from './store'; import { ResolveResult, Format } from './format'; export interface IPLD extends StoreReader, StoreExporter, StoreEraser { put(value: T, format: FormatCode, options?: PutOptions & AbortOptions): Await; putMany(values: AwaitIterable, format: FormatCode, options?: PutOptions): AwaitIterable; resolve(cid: CID, path: string, options?: AbortOptions): AwaitIterable>; tree(cid: CID, path?: string, options?: TreeOptions & AbortOptions): AwaitIterable; addFormat(format: Format): IPLD; removeFormat(format: Format): IPLD; defaultOptions: Options; } export declare type FormatCode = number; export declare type HashAlg = number; export interface Options { blockService?: BlockService; formats?: Record; loadFormat?: (code: number | string) => Promise>; } export interface PutOptions { hashAlg?: HashAlg; cidVersion?: 0 | 1; onlyHash?: boolean; } export interface TreeOptions { recursive?: boolean; } //# sourceMappingURL=ipld.d.ts.map