/// import { Buffer } from 'buffer'; import { IContact, IQueryOptions } from './model'; /** * Get the account address. * * ```typescript * const address = Textile.account.address(); * ``` */ export declare function address(): Promise; /** * Get the account seed phrase to display to user. * * ```typescript * const seed = Textile.account.seed(); * ``` */ export declare function seed(): Promise; /** * Encrypt data with the account address. * * ```typescript * const encrypted = Textile.account.encrypt(Buffer.from(JSON.stringify({foo:"bar"}))); * ``` */ export declare function encrypt(input: Buffer): Promise; /** * Decrypt data previously encrypted with the account address. * * ```typescript * const decrypted = Textile.account.decrypt(encrypted); * ``` */ export declare function decrypt(input: Buffer): Promise; /** * List all own contact. * * ```typescript * const contact: IContact = Textile.account.contact(); * ``` */ export declare function contact(): Promise; /** * Search and apply account thread snapshots. * ```typescript * Textile.account.sync(options); * ``` */ export declare function sync(options: IQueryOptions): Promise; /** * Cancel an ongoing Thread backup search. * ```typescript * Textile.account.cancelSync(); * ``` */ export declare function cancelSync(): Promise;