import type { BrandedHash, CreatableParams, Hash, Promisable } from '@ariestools/sdk'; import { AbstractCreatable } from '@ariestools/sdk'; import type { Payload, WithStorageMeta } from '@xyo-network/sdk-protocol'; import { LRUCache } from 'lru-cache'; import type { ArchivistDriver, ArchivistNextOptions } from '../archivist-model/index.js'; export interface MemoryDriverConfig { max?: number; } export interface MemoryDriverParams extends CreatableParams { config: MemoryDriverConfig; } export declare class MemoryDriver extends AbstractCreatable implements ArchivistDriver> { private _cache?; private _config?; private _dataHashIndex?; private _sortedValues?; protected get cache(): LRUCache>; protected get config(): MemoryDriverConfig; protected get dataHashIndex(): LRUCache; protected get max(): number; protected get sortedValues(): WithStorageMeta[]; private static findIndexFromCursor; all(): Promisable[]>; clear(): void; count(): number; createHandler(): Promisable; delete(hashes: Hash[]): Promise; get(hashes: Hash[]): Promisable[]>; insert(payloads: WithStorageMeta[]): WithStorageMeta[]; next(options?: ArchivistNextOptions): Promisable[]>; private insertPayloadIntoCache; private rebuildDataHashIndex; } //# sourceMappingURL=MemoryDriver.d.ts.map