/* tslint:disable */ /* eslint-disable */ /* auto-generated by NAPI-RS */ export interface WatchOptions { recursive?: boolean; } /** Watcher kind enumeration */ export enum WatcherKind { /** inotify backend (linux) */ Inotify = 'Inotify', /** FS-Event backend (mac) */ Fsevent = 'Fsevent', /** KQueue backend (bsd,optionally mac) */ Kqueue = 'Kqueue', /** Polling based backend (fallback) */ PollWatcher = 'PollWatcher', /** Windows backend */ ReadDirectoryChangesWatcher = 'ReadDirectoryChangesWatcher', /** Fake watcher for testing */ NullWatcher = 'NullWatcher', Unknown = 'Unknown', } export function moveFile(src: string, dst: string): Promise; export interface BlobRow { key: string; data: Buffer; timestamp: Date; } export interface UpdateRow { id: number; timestamp: Date; data: Buffer; docId?: string; } export interface InsertRow { docId?: string; data: Uint8Array; } export enum ValidationResult { MissingTables = 0, MissingDocIdColumn = 1, GeneralError = 2, Valid = 3, } export class Subscription { toString(): string; unsubscribe(): void; } export type FSWatcher = FsWatcher; export class FsWatcher { static watch(p: string, options?: WatchOptions | undefined | null): FsWatcher; static kind(): WatcherKind; toString(): string; subscribe( callback: (event: import('./event').NotifyEvent) => void, errorCallback?: (err: Error) => void ): Subscription; static unwatch(p: string): void; static close(): void; } export class SqliteConnection { constructor(path: string); connect(): Promise; addBlob(key: string, blob: Uint8Array): Promise; getBlob(key: string): Promise; deleteBlob(key: string): Promise; getBlobKeys(): Promise>; getUpdates(docId?: string | undefined | null): Promise>; getUpdatesCount(docId?: string | undefined | null): Promise; getAllUpdates(): Promise>; insertUpdates(updates: Array): Promise; replaceUpdates( docId: string | undefined | null, updates: Array ): Promise; close(): Promise; get isClose(): boolean; static validate(path: string): Promise; migrateAddDocId(): Promise; }