import type { API as RootAPI } from './root'; import type { API as BitswapAPI } from './bitswap'; import type { API as BlockAPI } from './block'; import type { API as BootstrapAPI } from './bootstrap'; import type { API as ConfigAPI } from './config'; import type { API as DAGAPI } from './dag'; import type { API as DHTAPI } from './dht'; import type { API as DiagAPI } from './diag'; import type { API as FilesAPI } from './files'; import type { API as KeyAPI } from './key'; import type { API as LogAPI } from './log'; import type { API as NameAPI } from './name'; import type { API as ObjectAPI } from './object'; import type { API as PinAPI } from './pin'; import type { API as PubsubAPI } from './pubsub'; import type { Refs, Local } from './refs'; import type { API as RepoAPI } from './repo'; import type { API as StatsAPI } from './stats'; import type { API as SwarmAPI } from './swarm'; import type { AbortOptions, Await, AwaitIterable } from './utils'; import type { BlockCodec } from 'multiformats/codecs/interface'; import type { MultibaseCodec } from 'multiformats/bases/interface'; import type { MultihashHasher } from 'multiformats/hashes/interface'; interface RefsAPI extends Refs { local: Local; } export interface IPFS extends RootAPI { bitswap: BitswapAPI; block: BlockAPI; bootstrap: BootstrapAPI; config: ConfigAPI; dag: DAGAPI; dht: DHTAPI; diag: DiagAPI; files: FilesAPI; key: KeyAPI; log: LogAPI; name: NameAPI; object: ObjectAPI; pin: PinAPI; pubsub: PubsubAPI; refs: RefsAPI; repo: RepoAPI; stats: StatsAPI; swarm: SwarmAPI; bases: Bases; codecs: Codecs; hashers: Hashers; } interface Bases { getBase: (code: string) => Promise>; listBases: () => Array>; } interface Codecs { getCodec: (code: number | string) => Promise>; listCodecs: () => Array>; } interface Hashers { getHasher: (code: number | string) => Promise; listHashers: () => MultihashHasher[]; } export type { AbortOptions, Await, AwaitIterable }; //# sourceMappingURL=index.d.ts.map