import type { SQLite } from './index'; declare type SQLStatementHandler = (tx: SQLitePluginTransaction, result: any) => void; declare type SQLStatementErrorHandler = (tx: SQLitePluginTransaction, error: any) => boolean | void; interface SQLExecuteItem { sql: string; params: any[]; success: SQLStatementHandler | null; error: SQLStatementErrorHandler | null; } export declare class SQLitePluginTransaction { db: SQLite; fn: (tx: SQLitePluginTransaction) => void; error: ((err: any) => void) | null; success: (() => void) | null; txlock: boolean; readOnly: boolean; finalized: boolean; executes: SQLExecuteItem[]; constructor(db: SQLite, fn: (tx: SQLitePluginTransaction) => void, error: ((err: any) => void) | null, success: (() => void) | null, txlock: boolean, readOnly: boolean); start(): void; executeSql(sql: string, values: any[], success?: SQLStatementHandler, error?: SQLStatementErrorHandler): void; addStatement(sql: string, values: any[], success: SQLStatementHandler | null, error: SQLStatementErrorHandler | null): void; handleStatementSuccess(handler: SQLStatementHandler | null, response: any): void; handleStatementFailure(handler: SQLStatementErrorHandler | null, response: any): void; run(): void; abort(txFailure: any): void; finish(): void; abortFromQ(sqlerror: any): void; } export {};