UNPKG

textiot

Version:

A framework for building web and native (IoT) Dapps on the IPFS network

40 lines (39 loc) 966 B
import { IPeer, IBlock, IThread } from './model'; /** * Get the profile. * ```typescript * Textile.profile.get(); * ``` */ export declare function get(): Promise<IPeer>; /** * Get the name. * ```typescript * Textile.profile.name(); * ``` */ export declare function name(): Promise<string | undefined>; /** * Update the name. * ```typescript * Textile.profile.setName(name); * ``` */ export declare function setName(name: string): Promise<void>; /** * Get the BlockId of the current user Avatar. * ```typescript * Textile.profile.avatar(); * ``` */ export declare function avatar(): Promise<string | undefined>; /** * Set the user's avatar image * @param item The path to an image or existing hash to set as the avatar * @returns A Promise that will resolve with the Block result */ export declare function setAvatar(item: string): Promise<IBlock>; /** * Get the account thread. */ export declare function accountThread(): Promise<IThread>;