UNPKG

@mastra/core

Version:
39 lines • 1.34 kB
import { MastraCompositeStore } from './base.js'; import type { StorageDomains } from './base.js'; /** * Provides in-memory storage for testing and development. * Data is lost when the process ends. Access individual storage domains with `getStore()`. * * @example * ```typescript * import { Mastra } from '@mastra/core/mastra'; * import { InMemoryStore } from '@mastra/core/storage'; * * const mastra = new Mastra({ * storage: new InMemoryStore(), * }); * ``` * * @see For documentation bundled with your installed package, locate * `@mastra/core/package.json` with your project's resolver or package-manager * tooling, then read `dist/docs/SKILL.md` from that package root and follow its * reference links. Use package-manager tools for virtual or archived packages. * * @see [Storage documentation](https://mastra.ai/docs/storage) * if packaged docs are unavailable. */ export declare class InMemoryStore extends MastraCompositeStore { #private; stores: StorageDomains; constructor({ id }?: { id?: string; }); /** * Clears all data from the in-memory database. * Useful for testing. * @deprecated Use dangerouslyClearAll() on individual domains instead. */ clear(): void; } export declare const MockStore: typeof InMemoryStore; //# sourceMappingURL=mock.d.ts.map