import { IContact, IContactList, IThreadList, IContactQuery, IQueryOptions } from './model'; /** * Add a new Contact after fetching the Contact information. */ export declare function add(contact: IContact): Promise; /** * Get Contact information by address. */ export declare function get(address: string): Promise; /** * List all known Contacts. */ export declare function list(): Promise; /** * Remove a Contact by their address. */ export declare function remove(address: string): Promise; /** * List all Threads in common with a Contact. * ```typescript * Textile.contacts.threads(address); * ``` */ export declare function threads(address: string): Promise; /** * Search for Contacts over network. * ```typescript * Textile.contacts.search(query, options); * ``` */ export declare function search(query: IContactQuery, options: IQueryOptions): Promise; /** * Cancel an ongoing contact search. * ```typescript * Textile.contacts.cancelSearch(); * ``` */ export declare function cancelSearch(): Promise;