import type { ReactNode } from 'react'; import type { Unstable_ElementSource as ElementSource } from 'waku/minimal/server'; type CacheId = string; export declare function createElementCache(onSerialize?: (cacheId: CacheId, data: string) => void): { preload: (cacheId: CacheId, data: string) => void; has: (cacheId: CacheId) => boolean; get: (cacheId: CacheId) => Promise | undefined; set: (cacheId: CacheId, render: ElementSource["render"]) => Promise; }; export type ElementCache = ReturnType; export declare function cacheElementSource(source: ElementSource, cacheId: CacheId, cache: ElementCache, populate?: boolean): ElementSource; export declare const getSlotCacheIdForTest: (slotId: string) => CacheId; export declare function getElementCacheId(slotId: string, source: ElementSource & { cacheKey?: string; }): string; export {};