kernel-ipfs-client/dist/index.d.ts

18 lines
740 B
TypeScript
Raw Permalink Normal View History

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;
2023-04-09 20:20:01 +00:00
iterable: () => AsyncIterable<Uint8Array>;
2023-03-31 16:37:44 +00:00
}
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