export interface NodesetImageStore { /** the image stored under `key`, or undefined */ get(key: string): Promise; /** keep `image` under `key`; a store may drop older images to stay within its size */ put(key: string, image: Uint8Array): Promise; } /** the key of the image of a source whose bytes hash to `sourceDigest` */ export declare function nodesetImageKey(sourceDigest: string): string; /** * an in-memory store: for browsers, tests, and a process that loads the same files repeatedly. * The size cap counts the compressed bytes, which is all the store retains per entry: the loader * inflates an image for one load and lets the lines go afterwards */ export declare class MemoryNodesetImageStore implements NodesetImageStore { private readonly maxBytes; private readonly images; constructor(maxBytes?: number); get(key: string): Promise; put(key: string, image: Uint8Array): Promise; get size(): number; keys(): string[]; } /** * the store a plain `imageStore: true` selects where no file system store is available (the * browser, `generateAddressSpaceRaw`): one memory store for the process */ export declare function sharedMemoryNodesetImageStore(): MemoryNodesetImageStore;