import { Logger } from '@llamaindex/env'; import { IndexStruct } from '../../../data-structs/dist/index.js'; import { BaseKVStore, BaseInMemoryKVStore, DataType } from '../../kv-store/dist/index.js'; declare const DEFAULT_PERSIST_PATH: string; declare abstract class BaseIndexStore { abstract getIndexStructs(): Promise; abstract addIndexStruct(indexStruct: IndexStruct): Promise; abstract deleteIndexStruct(key: string): Promise; abstract getIndexStruct(structId?: string): Promise; persist(persistPath?: string): Promise; } declare class KVIndexStore extends BaseIndexStore { private _kvStore; private _collection; constructor(kvStore: BaseKVStore, namespace?: string); addIndexStruct(indexStruct: IndexStruct): Promise; deleteIndexStruct(key: string): Promise; getIndexStruct(structId?: string): Promise; getIndexStructs(): Promise; } declare class SimpleIndexStore extends KVIndexStore { private kvStore; constructor(kvStore?: BaseInMemoryKVStore); static fromPersistDir(persistDir?: string, options?: { logger?: Logger; }): Promise; static fromPersistPath(persistPath: string, options?: { logger?: Logger; }): Promise; persist(persistPath?: string): Promise; static fromDict(saveDict: DataType): SimpleIndexStore; toDict(): Record; } export { BaseIndexStore, DEFAULT_PERSIST_PATH, KVIndexStore, SimpleIndexStore };