/// <reference types="node" />
import { Buffer } from 'buffer';
import { IContact, IQueryOptions } from './model';
/**
 * Get the account address.
 *
 * ```typescript
 * const address = Textile.account.address();
 * ```
 */
export declare function address(): Promise<string>;
/**
 * Get the account seed phrase to display to user.
 *
 * ```typescript
 * const seed = Textile.account.seed();
 * ```
 */
export declare function seed(): Promise<string>;
/**
 * 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<Buffer>;
/**
 * Decrypt data previously encrypted with the account address.
 *
 * ```typescript
 * const decrypted = Textile.account.decrypt(encrypted);
 * ```
 */
export declare function decrypt(input: Buffer): Promise<Buffer>;
/**
 * List all own contact.
 *
 * ```typescript
 * const contact: IContact = Textile.account.contact();
 * ```
 */
export declare function contact(): Promise<IContact>;
/**
 * Search and apply account thread snapshots.
 * ```typescript
 * Textile.account.sync(options);
 * ```
 */
export declare function sync(options: IQueryOptions): Promise<string>;
/**
 * Cancel an ongoing Thread backup search.
 * ```typescript
 * Textile.account.cancelSync();
 * ```
 */
export declare function cancelSync(): Promise<void>;
