UNPKG

763 BTypeScriptView Raw
1import { CID } from './ipfs/index';
2/**
3 * Get the CID of a user's data root.
4 * First check Fission server, then check DNS
5 *
6 * @param username The username of the user that we want to get the data root of.
7 */
8export declare function lookup(username: string): Promise<CID | null>;
9/**
10 * Get the CID of a user's data root from the Fission server.
11 *
12 * @param username The username of the user that we want to get the data root of.
13 */
14export declare function lookupOnFisson(username: string): Promise<CID | null>;
15/**
16 * Update a user's data root.
17 *
18 * @param cid The CID of the data root.
19 * @param proof The proof to use in the UCAN sent to the API.
20 */
21export declare function update(cid: CID | string, proof: string): Promise<{
22 success: boolean;
23}>;