import type { Hash } from '@ariestools/sdk';
import type { BlockContextRead } from '@xyo-network/xl1-protocol/protocol-lib';
import { LRUCache } from 'lru-cache';
/** Function type for Hydrate operations. */
export type HydrateFunction<T> = (context: BlockContextRead, hash: Hash) => Promise<T | undefined>;
/** HydratedCache implementation. */
export declare class HydratedCache<T extends {}> {
    protected readonly cache: LRUCache<Hash, T>;
    protected context: BlockContextRead;
    protected readonly hydrateFunction: HydrateFunction<T>;
    constructor(context: BlockContextRead, hydrateFunction: HydrateFunction<T>, maxCount?: number, ttl?: number);
    get(hash: Hash): Promise<T | null>;
    has(hash: Hash): boolean;
}
//# sourceMappingURL=HydratedCache.d.ts.map