UNPKG

@powersync/react-native

Version:

PowerSync React Native SDK. Sync Postgres, MongoDB or MySQL with SQLite in your React Native app

12 lines (11 loc) 656 B
import { ILogger } from 'js-logger'; import { AbstractRemote, AbstractRemoteOptions, BSONImplementation, DataStream, RemoteConnector, SyncStreamOptions } from '@powersync/common'; export declare const STREAMING_POST_TIMEOUT_MS = 30000; export declare class ReactNativeRemote extends AbstractRemote { protected connector: RemoteConnector; protected logger: ILogger; constructor(connector: RemoteConnector, logger?: ILogger, options?: Partial<AbstractRemoteOptions>); getUserAgent(): string; getBSON(): Promise<BSONImplementation>; postStreamRaw<T>(options: SyncStreamOptions, mapLine: (line: string) => T): Promise<DataStream<T>>; }