/**
 * Creates an in-memory database for temporary storage
 */
export declare class MemDb<T> {
    db: Map<any, {
        accessed: number;
        dateCreated: number;
        dateLastAccessed: number;
        data: T;
    }>;
    constructor();
    /**
     * @param data - data to store, must be serializable
     * @returns md5 hash used to retrieve data later
     */
    addData(data: T): string;
    /**
     * @param hash - md5 hash of data to retrieve
     * @returns if data is found, then it's returned, if not then `null`
     */
    getData(hash: string): null | T;
}
//# sourceMappingURL=mem-db.d.ts.map