import { SQLite } from '@ionic-native/sqlite' ; export interface SQLiteDatabaseConfig { /**
     * Name of the database. Example: 'my.db'
     */ name : string ; /**
     * Location of the database. Example: 'default'
     */ location ? : string ; /**
     * iOS Database Location. Example: 'Library'
     */ iosDatabaseLocation ? : string ; } export declare class SQLiteObject { _objectInstance : any ; constructor ( _objectInstance ) ; databaseFeatures : { isSQLitePluginDatabase : boolean ; } ; openDBs : any ; addTransaction ( transaction ) ; param fn { any } returns { Promise < any > } transaction ( fn ) ; param fn { Function } returns { Promise < any > } readTransaction ( fn ) ; startNextTransaction ( ) ; returns { Promise < any > } open ( ) ; returns { Promise < any > } close ( ) ; /**
     * Execute SQL on the opened database. Note, you must call `create` first, and
     * ensure it resolved and successfully opened the database.
     */ executeSql ( statement , params ) ; param sqlStatements { Array < string | string [ ] > } returns { Promise < any > } sqlBatch ( sqlStatements ) ; abortallPendingTransactions ( ) ; } export interface SQLiteTransaction { start : ( ) => void ; executeSql : ( sql : any , values : any , success : Function , error : Function ) => void ; addStatement : ( sql : any , values : any , success : Function , error : Function ) => void ; handleStatementSuccess : ( handler : Function , response : any ) => void ; handleStatementFailure : ( handler : Function , response : any ) => void ; run : ( ) => void ; abort : ( txFailure : any ) => void ; finish : ( ) => void ; abortFromQ : ( sqlerror : any ) => void ; } export class SQLiteMock extends SQLite { param config { SQLiteDatabaseConfig } return create ( config ) { let theResult ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; returns { Promise < any > } echoTest ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param config { SQLiteDatabaseConfig } returns { Promise < any > } deleteDatabase ( config ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }