import { ThreadInfo, ThreadID, Multiaddr, ThreadRecord } from '@textile/threads-core';
import { Network } from '@textile/threads-network';
export declare function decodeRecord<T = any>(rec: ThreadRecord, info: ThreadInfo): T | undefined;
export declare function createThread(network: Network, id?: ThreadID): Promise<ThreadInfo>;
export declare function threadAddr(hostAddr: Multiaddr, hostID: string, threadID: string): Multiaddr;
export interface CacheOptions {
    duration?: number;
}
export declare function Cache(params?: CacheOptions): (_target: any, _propertyKey: string | symbol, descriptor: PropertyDescriptor) => void;
