/** * @license * Copyright 2023 Nuraly, Laabidi Aymen * SPDX-License-Identifier: MIT */ import type { ChatbotPlugin, ChatbotStorage } from '../core/types.js'; import type { ChatbotCoreController } from '../core/chatbot-core.controller.js'; /** * Persistence plugin - saves/loads state to storage */ export declare class PersistencePlugin implements ChatbotPlugin { readonly id = "persistence"; readonly name = "Persistence Plugin"; readonly version = "1.0.0"; private storage; private storageKey; private autoSaveInterval?; constructor(storage: ChatbotStorage, options?: { storageKey?: string; autoSaveInterval?: number; }); private controller?; onInit(controller: ChatbotCoreController): void; onDestroy(): void; onStateChange(): void; private saveState; private loadState; clearStorage(): Promise; } //# sourceMappingURL=persistence-plugin.d.ts.map