import { Collection as PublicCollection } from './PublicCollection.js'; import type { BackupOptions, CollectionConfig, CollectionDescription, CollectionSnapshot, CollectionListOptions, DatabaseDescription, Metadata, StorageStatus, Snapshot, VectorDBOptions } from './public-api.js'; export declare class VectorDB { private collections; private storageBackend; private readonly autoPersist; private readonly durability; private readonly storageFallback; private readonly searchConcurrency; private readonly concurrency?; private readonly requestedPath?; private aliases; private initialized; private initPromise; private closed; private constructor(); /** Open and initialize a database before returning it to application code. */ static open(options?: VectorDBOptions): Promise; private resolveWorkerCount; private validateConcurrencyOptions; private isAdapter; private createDefaultStorageBackend; /** @internal Exposed only to the implementation and legacy source tests. */ private getStorageBackend; /** * Initialize the VectorDB - creates storage directory and loads existing collections. * Called automatically on first operation if not called explicitly. * Safe to call concurrently — only runs initialization once. */ private init; /** Initialize while the caller already owns the backend lifecycle lock. */ private initUnlocked; private doInit; /** * Load collection metadata from the manifest file and restore collections. */ private loadManifest; private parseManifestEntry; private isMetadataSchema; private publicConfigFromManifest; private physicalConfig; private normalizeCollectionConfig; private validatePhysicalConfig; private readManifestDocument; private readAliasDocument; private loadAliases; private writeAliases; private resolveCollectionName; private readWritableManifest; private writeManifest; private manifestEntryFor; private removeCollectionStorage; createCollection(name: string, config: CollectionConfig): Promise>; collection(name: string): Promise>; findCollection(name: string): Promise | undefined>; hasCollection(name: string): Promise; listCollectionNames(): Promise; listCollections(options?: CollectionListOptions): Promise; deleteCollection(name: string): Promise; setAlias(alias: string, collectionName: string): Promise; deleteAlias(alias: string): Promise; describe(): Promise; storageStatus(): Promise; private remapCollectionSnapshotFiles; importCollectionSnapshot(snapshot: CollectionSnapshot, options?: { name?: string; overwrite?: boolean; }): Promise>; snapshot(): Promise; /** Capture a snapshot while the caller already owns the lifecycle lock. */ private snapshotUnlocked; restore(snapshot: Snapshot, options?: { overwrite?: boolean; }): Promise; exportSnapshot(): Promise; /** Write a complete snapshot to a separate Bun/Node directory. */ backupTo(path: string, options?: BackupOptions): Promise; private validateCollectionName; close(): Promise; } //# sourceMappingURL=VectorDB.d.ts.map