UNPKG

@aichatkit/storage-adapter

Version:
30 lines (29 loc) 775 B
// src/index.ts var StorageAdapter = class { /** * Set network callbacks for syncing with backend * @param callbacks Network adapter callbacks */ setNetworkCallbacks(callbacks) { this.callbacks = callbacks; } /** * Sync all conversations with backend to ensure consistency * This should be called on app initialization to get latest state * @returns Promise that resolves when sync is complete */ async syncAllConversationsWithBackend() { return Promise.resolve(); } /** * Optional method to initialize the adapter * @param config Optional configuration object */ // eslint-disable-next-line @typescript-eslint/no-unused-vars async initialize(config) { return Promise.resolve(); } }; export { StorageAdapter };