import { SafeStorage } from './safe-storage'; export declare const DEFAULT_BACKEND = "https://app.biel.ai"; export declare const LEGACY_CONVERSATION_KEY = "biel_conversation_data"; export declare function conversationBackend(apiUrl: string): string; export declare function widgetInstance(element: HTMLElement, configuredId: string, generatedId: string): string; export interface ConversationRecord { version: 1; backend: string; projectId: string; instance: string; url: string; chatId: string; expiry: number; restoreToken?: string; } interface StoreOptions { backend: string; project: string; instance: string; origin: string; claimLegacy?: () => boolean; } export declare class ConversationStore { private options; private storage; private now; readonly key: string; private legacyDisabled; constructor(options: StoreOptions, storage?: SafeStorage, now?: () => number); private validConversation; read(): ConversationRecord | null; private migrateLegacy; private record; save(chatId: string, expiryHours: number, restoreToken?: string): void; clear(): void; } export declare function claimLegacyConversation(document: Document, namespace: string): boolean; export {};