/** * Unified Storage Abstraction * * Routes to LocalFileStorage (free tier) or Supabase (pro/dev tier) * based on the detected tier. Tools call getStorage() instead of * importing supabase-client directly. */ import type { RelevantScar } from "../types/index.js"; /** * Storage backend interface */ export interface StorageBackend { /** * Query records from a collection */ query(collection: string, options?: { select?: string; filters?: Record; order?: string; limit?: number; }): Promise; /** * Get a single record by ID */ get(collection: string, id: string): Promise; /** * Upsert (insert or update) a record */ upsert(collection: string, data: Record): Promise; /** * Search for relevant scars */ search(query: string, k?: number): Promise; } /** * Get the storage backend for the current tier */ export declare function getStorage(): StorageBackend; /** * Reset storage (for testing) */ export declare function resetStorage(): void; //# sourceMappingURL=storage.d.ts.map