import { DatabaseDriver, DatabaseOption, Index, Encrypted, Records, SortOrder } from '../typings'; declare class Mem implements DatabaseDriver { private options; private store; private indexes; private cleanup; private ttlStore; private ttlCleanup; private timerId; constructor(options: DatabaseOption); init(): Promise; get(namespace: string, key: string): Promise; getAll(namespace: string, pageOffset?: number, pageLimit?: number, _?: string, sortOrder?: SortOrder): Promise; getByIndex(namespace: string, idx: Index, pageOffset?: number, pageLimit?: number, _?: string, sortOrder?: SortOrder): Promise; put(namespace: string, key: string, val: Encrypted, ttl?: number, ...indexes: any[]): Promise; delete(namespace: string, key: string): Promise; deleteMany(namespace: string, keys: string[]): Promise; close(): Promise; getStats(): Record; } declare const _default: { new: (options: { db: DatabaseOption; }) => Promise; }; export default _default;