import { ICustomPolicyTokenData } from "./types"; /** * Defines the shape of all the data we store in localStorage for a conversation. */ export interface IConversationLocalStorage { conversationId: string; /** * The userId for this conversation, if any. */ userId?: string; /** * Represents a jwt token containing a custom policy that grants access to a specific conversation. */ tokenData: ICustomPolicyTokenData; /** * True if the widget should talk to the 'draft' or 'unpublished' version of the agent. */ dev?: boolean; /** * True if this is a 'demo' conversation that should not be included in conversation analytics. */ demo?: boolean; } declare const _default: { setConversationData: (args: { conversationId: string; conversationTokenData: ICustomPolicyTokenData; widgetId: string | number; userId?: string | undefined; agentId: string; /** * True if the widget should talk to the 'draft' or 'unpublished' version of the agent. */ dev?: boolean | undefined; /** * True if this is a 'demo' conversation that should not be included in conversation analytics. */ demo?: boolean | undefined; }) => void; getConversationData: (widgetId: string | number, agentId: string, dev: boolean, demo: boolean) => IConversationLocalStorage | null; clearWidgetStorage: (widgetId: string | number) => void; }; export default _default;