import { EmitterSubscription } from 'react-native'; export interface NativeDataBridgeContract { query(tableName: string, columns?: string[], selection?: string, selectionArgs?: any[], groupBy?: string, having?: string, orderBy?: string): Promise; queryWithLimit(tableName: string, limit: number, columns?: string[], selection?: string, selectionArgs?: any[], groupBy?: string, having?: string, orderBy?: string): Promise; startTransaction(): Promise; endTransaction(): Promise; setTransactionSuccessful(): Promise; deleteRow(tableName: string, selectionCriteria?: string, selectionArgs?: any[]): Promise; execSQL(sqlStatement: string): Promise; rawQuery(sql?: string, selectionArgs?: any[]): Promise; setParallelThread(corePoolSize: number, maximumPoolSize: number, keepAliveTime: number): void; beginStreamingData(table: string, limit: number, streamId: string, columns?: string[], selection?: string, selectionArgs?: any[], groupBy?: string, having?: string, orderBy?: string): Promise; nextData(streamId: string, start: number, count: number): Promise; endData(streamId: string): Promise; update(table: string, values: { [key: string]: any; }, whereClause?: string, whereArgs?: any[]): Promise; insertWithOnConflict(table: string, initialValues: { [key: string]: any; }, conflictAlgorithm: number, nullColumnHack?: string): Promise; bulkInsertWithOnConflict(table: string, initialColumns: Array, initialValues: Array>, conflictAlgorithm: number, nullColumnHack?: string): Promise; addListener(eventId: string): Promise; addListenerForSpecificTable(eventId: string, tableName: string): Promise; removeListener(eventId: string): Promise; addEmitterListener(eventType: string, listener: (...args: any[]) => any, context: any): EmitterSubscription; }