import { Migration } from '@verdant-web/common'; import { ContextWithoutPersistence } from '../../context/context.js'; import { PersistenceFileDb, PersistenceImplementation, PersistenceNamespace } from '../interfaces.js'; import { IdbMetadataDb } from './metadata/IdbMetadataDb.js'; import { IdbDocumentDb } from './queries/IdbDocumentDb.js'; export declare class IdbPersistence implements PersistenceImplementation { private indexedDB; name: string; constructor(indexedDB?: IDBFactory); getNamespaces: () => Promise; getNamespaceVersion: (namespace: string) => Promise; deleteNamespace: (namespace: string) => Promise; openNamespace: (namespace: string) => Promise; copyNamespace: (from: string, to: string, ctx: ContextWithoutPersistence) => Promise; } declare class IdbPersistenceNamespace implements PersistenceNamespace { private indexedDB; private namespace; constructor(indexedDB: IDBFactory, namespace: string); private metadataDb; openFiles(ctx: ContextWithoutPersistence): Promise; openMetadata: (ctx: ContextWithoutPersistence) => Promise; openDocuments: (ctx: ContextWithoutPersistence) => Promise; applyMigration: (ctx: ContextWithoutPersistence, migration: Migration) => Promise; } export {};