/** * @fileoverview Storage layer for the tm-core package * This file exports all storage-related classes and interfaces */ // Export storage implementations export { FileStorage } from './file-storage.js'; export { ApiStorage, type ApiStorageConfig } from './api-storage.js'; export { StorageFactory } from './storage-factory.js'; // Export storage interface and types export type { IStorage, StorageStats } from '../interfaces/storage.interface.js'; // Placeholder exports - these will be implemented in later tasks export interface StorageAdapter { read(path: string): Promise; write(path: string, data: string): Promise; exists(path: string): Promise; delete(path: string): Promise; } /** * @deprecated This is a placeholder class that will be properly implemented in later tasks */ export class PlaceholderStorage implements StorageAdapter { private data = new Map(); async read(path: string): Promise { return this.data.get(path) || null; } async write(path: string, data: string): Promise { this.data.set(path, data); } async exists(path: string): Promise { return this.data.has(path); } async delete(path: string): Promise { this.data.delete(path); } }