2023-03-31 16:37:44 +00:00
|
|
|
import { Client } from "@lumeweb/libkernel-universal";
|
2023-04-01 17:40:08 +00:00
|
|
|
import { CatOptions, LsOptions, StatOptions } from "@helia/unixfs";
|
2023-03-31 16:37:44 +00:00
|
|
|
interface AbortableGenerator {
|
|
|
|
abort: () => void;
|
|
|
|
iterable: AsyncGenerator<object>;
|
|
|
|
}
|
|
|
|
export declare class IPFSClient extends Client {
|
|
|
|
ready(): Promise<any>;
|
2023-04-01 17:40:08 +00:00
|
|
|
stat(cid: string, options?: Partial<StatOptions>): Promise<any>;
|
|
|
|
ls(cid: string, options?: Partial<LsOptions>): AbortableGenerator;
|
|
|
|
cat(cid: string, options?: Partial<CatOptions>): AbortableGenerator;
|
2023-03-31 16:37:44 +00:00
|
|
|
ipns(cid: string): Promise<string>;
|
|
|
|
activePeers(): Promise<number>;
|
|
|
|
private connectModuleGenerator;
|
|
|
|
}
|
|
|
|
export declare const createClient: (...args: any) => IPFSClient;
|
|
|
|
export {};
|
2022-08-05 13:35:28 +00:00
|
|
|
//# sourceMappingURL=index.d.ts.map
|