import { InputBlock } from '@release0/blocks-inputs/schema'; import { StartFrom } from '@release0/agent-engine/schemas/api'; import { Font } from '@release0/theme/schemas'; type BubbleParams = { theme?: BubbleTheme; previewMessage?: PreviewMessageParams; autoShowDelay?: number; }; type BubbleTheme = { chatWindow?: ChatWindowTheme; button?: ButtonTheme; previewMessage?: PreviewMessageTheme; placement?: "left" | "right"; position?: "fixed" | "static"; }; type ChatWindowTheme = { backgroundColor?: string; maxWidth?: string; maxHeight?: string; }; type ButtonTheme = { size?: "medium" | "large" | `${number}px`; backgroundColor?: string; iconColor?: string; customIconSrc?: string; customCloseIconSrc?: string; }; type PreviewMessageParams = { avatarUrl?: string; message: string; autoShowDelay?: number; }; type PreviewMessageTheme = { backgroundColor?: string; textColor?: string; closeButtonBackgroundColor?: string; closeButtonIconColor?: string; }; type CommandArgs = { id?: string; }; type CommandData = CommandArgs & { isFromAgent: boolean; } & ({ command: "open" | "toggle" | "close" | "hidePreviewMessage" | "unmount" | "reload" | "reset"; } | ShowMessageCommandData | SetPrefilledVariablesCommandData | SetInputValueCommandData); type ShowMessageCommandData = { command: "showPreviewMessage"; message?: Pick; }; type SetPrefilledVariablesCommandData = { command: "setPrefilledVariables"; variables: Record; }; type SetInputValueCommandData = { command: "setInputValue"; value: string; }; declare const close: ({ id }?: CommandArgs) => void; declare const open: ({ id }?: CommandArgs) => void; declare const showPreviewMessage: (proactiveMessage: ShowMessageCommandData["message"] | undefined, { id }?: CommandArgs) => void; declare const toggle: ({ id }?: CommandArgs) => void; declare const reload: ({ id }?: CommandArgs) => void; declare const setInputValue: (value: string, { id }?: CommandArgs) => void; declare const unmount: ({ id }?: CommandArgs) => void; declare const setPrefilledVariables: (variables: Record, { id }?: CommandArgs) => void; declare const hidePreviewMessage: ({ id }?: CommandArgs) => void; type OutgoingLog = { status: string; description: string; details?: unknown; }; type Answer = { message: string; blockId: string; }; type AgentProps = { id?: string; agent: string | any; isPreview?: boolean; resultId?: string; initialContext?: Record; apiHost?: string; font?: Font; progressBarRef?: HTMLDivElement; startFrom?: StartFrom; sessionId?: string; onNewInputBlock?: (inputBlock: InputBlock) => void; onAnswer?: (answer: Answer) => void; onInit?: () => void; onEnd?: () => void; onNewLogs?: (logs: OutgoingLog[]) => void; onChatStatePersisted?: (isEnabled: boolean) => void; onScriptExecutionSuccess?: (message: string) => void; }; type PopupParams = { autoShowDelay?: number; theme?: { width?: string; backgroundColor?: string; zIndex?: number; }; }; type PopupProps = AgentProps & PopupParams & { defaultOpen?: boolean; isOpen?: boolean; onOpen?: () => void; onClose?: () => void; }; type BubbleProps = AgentProps & BubbleParams & { inlineStyle?: { [key: string]: string; }; onOpen?: () => void; onClose?: () => void; onPreviewMessageClick?: () => void; onPreviewMessageDismissed?: () => void; }; export { type AgentProps, type BubbleParams, type BubbleProps, type BubbleTheme, type ButtonTheme, type ChatWindowTheme, type CommandArgs, type CommandData, type PopupParams, type PopupProps, type PreviewMessageParams, type PreviewMessageTheme, type SetInputValueCommandData, type SetPrefilledVariablesCommandData, type ShowMessageCommandData, close, hidePreviewMessage, open, reload, setInputValue, setPrefilledVariables, showPreviewMessage, toggle, unmount };