UNPKG

y-op-sqlite

Version:

<p align="center"> <img src="https://cdn.malts.me/6Wu0Fj.svg" /> </p>

25 lines (21 loc) 707 B
// Generated by dts-bundle-generator v9.5.1 import { OPSQLiteConnection } from '@op-engineering/op-sqlite'; import { ObservableV2 } from 'lib0/observable'; import * as Y from 'yjs'; export declare const PREFERRED_TRIM_SIZE = 500; export declare class OPSQLitePersistence extends ObservableV2<{ synced: (persistence: OPSQLitePersistence) => void; }> { doc: Y.Doc; name: string; whenSynced: Promise<this>; db: OPSQLiteConnection; synced: boolean; _dbref: number; _dbsize: number; _destroyed: boolean; constructor(name: string, doc: Y.Doc); _storeUpdate(update: Uint8Array, origin: any): Promise<void | import("@op-engineering/op-sqlite").QueryResult> | undefined; destroy(): void; } export {};