import SQLite3, { Database } from 'sqlite3'; export declare function set(db: Database, key: string, value: string): Promise; export declare function add(db: Database, key: string, value: string): Promise; export declare function del(db: Database, key: string): Promise; export declare function get(db: Database, key: string): Promise; export declare function has(db: Database, key: string): Promise; export declare function clean(db: Database, keyPrefix?: string, expirationTime?: number, vacuum?: boolean): Promise; export declare function hash(text: string): string; export declare function set_xjson(db: Database, key: string, object: any, limit?: number): Promise; export declare function get_xjson(db: Database, key: string): Promise; export default class KTVMap { private readonly dbPath; constructor(dbPath: string); readonly db: Database; set_xjson(key: string, object: any, limit?: number): Promise; get_xjson(key: string): Promise; set_xjson_p(key: string, object: any): Promise; get_xjson_p(key: string): Promise; set(key: string, value: string): Promise; add(key: string, value: string): Promise; delete(key: string): Promise; get(key: string): Promise; has(key: string): Promise; clean(keyPrefix?: string, expirationTime?: number, vacuum?: boolean): Promise; } export declare function queryIdByHashes(db: Database, hashes: string[]): Promise>; export declare function queryValueByIds(db: Database, ids: number[]): Promise>; export declare function queryHashByHashes(db: Database, hashes: string[]): Promise>; export declare function tryInsertHashValues(db: Database, hashValues: [string, string][]): Promise; export declare function saveHashValues(db: Database, hashValues: [string, string][]): Promise>; export declare function hello(): Promise; //# sourceMappingURL=index.d.ts.map