import { Database } from './Database'; import { SQLiteInteger } from './SQLiteTypes'; export declare const SERVICE_NAME: string; export declare class SQLite { private static $exec; static open(path: string, writeAccess: boolean, busyTimeout?: SQLiteInteger): Promise; static close(db: Database): Promise; /** * * Note, this API is unsafe to use while the db is being actively used. * * @param path * @param backupName */ static backup(path: string, backupPath: string): Promise; /** * * Note, this API is unsafe to use while the db is being actively used. * Close all active databases prior to restoring and re-open them after restoring. * * @param path * @param backupName */ static restoreBackup(path: string, backupPath: string): Promise; }