import type { RxCollection, RxDatabase, RxLocalDocument } from '../../types/index.d.ts'; import { Observable } from 'rxjs'; /** * save the local-document-data * throws if already exists */ export declare function insertLocal = any, Reactivity = unknown>(this: RxDatabase | RxCollection, id: string, data: DocData): Promise>; /** * save the local-document-data * overwrites existing if exists */ export declare function upsertLocal = any, Reactivity = unknown>(this: any, id: string, data: DocData): Promise>; export declare function getLocal(this: any, id: string): Promise | null>; export declare function getLocal$(this: RxCollection, id: string): Observable | null>;