@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
20 lines • 700 B
TypeScript
import { MastraBase } from '../../base.js';
/**
* Base class for all storage domains.
* Provides common interface for initialization and data clearing.
*/
export declare abstract class StorageDomain extends MastraBase {
/**
* Initialize the storage domain.
* This should create any necessary tables/collections.
* Default implementation is a no-op - override in adapters that need initialization.
*/
init(): Promise<void>;
/**
* Clears all data from this storage domain.
* This is a destructive operation - use with caution.
* Primarily used for testing.
*/
abstract dangerouslyClearAll(): Promise<void>;
}
//# sourceMappingURL=base.d.ts.map