UNPKG

box-ui-elements

Version:
11 lines (10 loc) 600 B
import { type QuestionType, type SuggestedQuestionType } from '@box/box-ai-content-answers'; import { type AgentState } from '@box/box-ai-agent-selector'; export type BoxAISidebarCache = { agents: AgentState; encodedSession: string | null; questions: QuestionType[]; shouldShowLandingPage: boolean; suggestedQuestions: SuggestedQuestionType[]; }; export type BoxAISidebarCacheSetter = (key: 'agents' | 'encodedSession' | 'questions' | 'shouldShowLandingPage' | 'suggestedQuestions', value: AgentState | QuestionType[] | SuggestedQuestionType[] | string | boolean | null) => void;