import type { BlockReason } from "./WidgetDisplayResult"; export interface WidgetCallbacks { onPreOpen?: (userId: string) => void; onOpened?: (userId: string) => void; onBlocked?: (blockReason: BlockReason | string | undefined) => void; onClosed?: () => void; onError?: (message: string) => void; onPageChanged?: (page: string) => void; onQuestionAnswered?: () => void; onCompleted?: (userId: string) => void; onPartialCompleted?: (userId: string) => void; onResize?: (height: string) => void; }