import { StartFrom } from '@indite.io/schemas'; type Props = { bot: string | any; stripeRedirectStatus?: string; apiHost?: string; source?: string; startFrom?: StartFrom; isPreview: boolean; prefilledVariables?: Record; resultId?: string; sessionId?: string; }; export declare function startChatQuery({ bot, isPreview, apiHost, source, prefilledVariables, resultId, stripeRedirectStatus, startFrom, sessionId, }: Props): Promise<{ error: unknown; data?: undefined; } | { data: { messages: ({ id: string; } & ({ type: import("@indite.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.TEXT; content: { type: "richText"; richText?: any; } | { type: "markdown"; markdown: string; }; } | { type: import("@indite.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.IMAGE; content: { url?: string | undefined; clickLink?: { url?: string | undefined; alt?: string | undefined; } | undefined; }; } | { type: import("@indite.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.VIDEO; content: { height?: number | `{{${string}}}` | undefined; id?: string | undefined; type?: import("@indite.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined; url?: string | undefined; isAutoplayEnabled?: boolean | undefined; aspectRatio?: string | undefined; maxWidth?: string | undefined; queryParamsStr?: string | undefined; areControlsDisplayed?: boolean | undefined; }; } | { type: import("@indite.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.AUDIO; content: { url?: string | undefined; isAutoplayEnabled?: boolean | undefined; }; } | { type: import("@indite.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.EMBED; content: { height?: number | undefined; url?: string | undefined; waitForEvent?: { name?: string | undefined; isEnabled?: boolean | undefined; saveDataInVariableId?: string | undefined; } | undefined; }; } | { type: "custom-embed"; content: { initFunction: { content: string; args: Record; }; url?: string | undefined; waitForEventFunction?: { content: string; args: Record; } | undefined; }; }))[]; bot: { id: string; settings: { metadata?: { title?: string | undefined; description?: string | undefined; imageUrl?: string | undefined; favIconUrl?: string | undefined; customHeadCode?: string | undefined; googleTagManagerId?: string | undefined; } | undefined; whatsApp?: { isEnabled?: boolean | undefined; startCondition?: { logicalOperator: import("@indite.io/schemas/features/blocks/logic/condition/constants").LogicalOperator; comparisons: { id: string; value?: string | undefined; comparisonOperator?: import("@indite.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined; }[]; } | undefined; sessionExpiryTimeout?: number | undefined; } | undefined; telegram?: { isEnabled?: boolean | undefined; startCondition?: { logicalOperator: import("@indite.io/schemas/features/blocks/logic/condition/constants").LogicalOperator; comparisons: { id: string; value?: string | undefined; comparisonOperator?: import("@indite.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined; }[]; } | undefined; sessionExpiryTimeout?: number | undefined; botToken?: string | undefined; webhookUrl?: string | undefined; } | undefined; general?: { isBrandingEnabled?: boolean | undefined; isTypingEmulationEnabled?: boolean | undefined; isInputPrefillEnabled?: boolean | undefined; isHideQueryParamsEnabled?: boolean | undefined; isNewResultOnRefreshEnabled?: boolean | undefined; rememberUser?: { isEnabled?: boolean | undefined; storage?: "session" | "local" | undefined; } | undefined; } | undefined; typingEmulation?: { enabled?: boolean | undefined; speed?: number | undefined; maxDelay?: number | undefined; delayBetweenBubbles?: number | undefined; isDisabledOnFirstMessage?: boolean | undefined; } | undefined; publicShare?: { isEnabled?: boolean | undefined; } | undefined; security?: { allowedOrigins?: string[] | undefined; } | undefined; }; theme: { chat?: { buttons?: { color?: string | undefined; opacity?: number | undefined; backgroundColor?: string | undefined; blur?: number | undefined; shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined; border?: { color?: string | undefined; opacity?: number | undefined; thickness?: number | undefined; roundeness?: "medium" | "large" | "default" | "none" | "custom" | undefined; customRoundeness?: number | undefined; } | undefined; } | undefined; inputs?: { color?: string | undefined; opacity?: number | undefined; backgroundColor?: string | undefined; blur?: number | undefined; shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined; border?: { color?: string | undefined; opacity?: number | undefined; thickness?: number | undefined; roundeness?: "medium" | "large" | "default" | "none" | "custom" | undefined; customRoundeness?: number | undefined; } | undefined; placeholderColor?: string | undefined; } | undefined; container?: { color?: string | undefined; opacity?: number | undefined; backgroundColor?: string | undefined; maxWidth?: string | undefined; blur?: number | undefined; shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined; border?: { color?: string | undefined; opacity?: number | undefined; thickness?: number | undefined; roundeness?: "medium" | "large" | "default" | "none" | "custom" | undefined; customRoundeness?: number | undefined; } | undefined; maxHeight?: string | undefined; } | undefined; hostAvatar?: { url?: string | undefined; isEnabled?: boolean | undefined; } | undefined; guestAvatar?: { url?: string | undefined; isEnabled?: boolean | undefined; } | undefined; hostBubbles?: { color?: string | undefined; opacity?: number | undefined; backgroundColor?: string | undefined; blur?: number | undefined; shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined; border?: { color?: string | undefined; opacity?: number | undefined; thickness?: number | undefined; roundeness?: "medium" | "large" | "default" | "none" | "custom" | undefined; customRoundeness?: number | undefined; } | undefined; } | undefined; guestBubbles?: { color?: string | undefined; opacity?: number | undefined; backgroundColor?: string | undefined; blur?: number | undefined; shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined; border?: { color?: string | undefined; opacity?: number | undefined; thickness?: number | undefined; roundeness?: "medium" | "large" | "default" | "none" | "custom" | undefined; customRoundeness?: number | undefined; } | undefined; } | undefined; roundness?: "medium" | "large" | "none" | undefined; } | undefined; general?: { font?: string | { type: "Google"; family?: string | undefined; } | { type: "Custom"; url?: string | undefined; css?: string | undefined; family?: string | undefined; } | undefined; background?: { type?: import("@indite.io/schemas/features/bot/theme/constants").BackgroundType | undefined; content?: string | undefined; } | undefined; progressBar?: { placement?: "Top" | "Bottom" | undefined; color?: string | undefined; backgroundColor?: string | undefined; isEnabled?: boolean | undefined; position?: "fixed" | "absolute" | undefined; thickness?: number | undefined; } | undefined; } | undefined; customCss?: string | undefined; }; publishedAt?: Date | undefined; }; sessionId: string; input?: (({ id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE; items: { id: string; outgoingEdgeId?: string | undefined; content?: string | undefined; blockId?: string | undefined; displayCondition?: { isEnabled?: boolean | undefined; condition?: { logicalOperator?: import("@indite.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined; comparisons?: { id: string; value?: string | undefined; variableId?: string | undefined; comparisonOperator?: import("@indite.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined; }[] | undefined; } | undefined; } | undefined; }[]; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; isMultipleChoice?: boolean | undefined; buttonLabel?: string | undefined; dynamicVariableId?: string | undefined; isSearchable?: boolean | undefined; searchInputPlaceholder?: string | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE; items: { id: string; outgoingEdgeId?: string | undefined; content?: string | undefined; displayCondition?: { isEnabled?: boolean | undefined; condition?: { logicalOperator?: import("@indite.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined; comparisons?: { id: string; value?: string | undefined; variableId?: string | undefined; comparisonOperator?: import("@indite.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined; }[] | undefined; } | undefined; } | undefined; }[]; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; isMultipleChoice?: boolean | undefined; buttonLabel?: string | undefined; dynamicVariableId?: string | undefined; isSearchable?: boolean | undefined; searchInputPlaceholder?: string | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; labels?: { button?: string | undefined; from?: string | undefined; to?: string | undefined; } | undefined; hasTime?: boolean | undefined; isRange?: boolean | undefined; format?: string | undefined; min?: string | undefined; max?: string | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE; outgoingEdgeId?: string | undefined; options?: { visibility?: "Auto" | "Public" | "Private" | undefined; variableId?: string | undefined; labels?: { button?: string | undefined; placeholder?: string | undefined; clear?: string | undefined; skip?: string | undefined; success?: { single?: string | undefined; multiple?: string | undefined; } | undefined; } | undefined; isRequired?: boolean | undefined; isMultipleAllowed?: boolean | undefined; sizeLimit?: number | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE; outgoingEdgeId?: string | undefined; options?: { visibility?: "Auto" | "Public" | "Private" | undefined; variableId?: string | undefined; labels?: { button?: string | undefined; placeholder?: string | undefined; clear?: string | undefined; skip?: string | undefined; success?: { single?: string | undefined; multiple?: string | undefined; } | undefined; } | undefined; isRequired?: boolean | undefined; isMultipleAllowed?: boolean | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; labels?: { button?: string | undefined; placeholder?: string | undefined; } | undefined; isLong?: boolean | undefined; audioClip?: { visibility?: "Auto" | "Public" | "Private" | undefined; isEnabled?: boolean | undefined; saveVariableId?: string | undefined; } | undefined; attachments?: { visibility?: "Auto" | "Public" | "Private" | undefined; isEnabled?: boolean | undefined; saveVariableId?: string | undefined; } | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; labels?: { button?: string | undefined; placeholder?: string | undefined; } | undefined; retryMessageContent?: string | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; labels?: { button?: string | undefined; placeholder?: string | undefined; } | undefined; min?: number | `{{${string}}}` | undefined; max?: number | `{{${string}}}` | undefined; step?: number | `{{${string}}}` | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.PAYMENT; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; labels?: { button?: string | undefined; success?: string | undefined; } | undefined; retryMessageContent?: string | undefined; provider?: import("@indite.io/schemas/features/blocks/inputs/payment/constants").PaymentProvider | undefined; additionalInformation?: { address?: { country?: string | undefined; line1?: string | undefined; line2?: string | undefined; state?: string | undefined; city?: string | undefined; postalCode?: string | undefined; } | undefined; name?: string | undefined; email?: string | undefined; description?: string | undefined; phoneNumber?: string | undefined; } | undefined; credentialsId?: string | undefined; currency?: string | undefined; amount?: string | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; labels?: { button?: string | undefined; placeholder?: string | undefined; } | undefined; retryMessageContent?: string | undefined; defaultCountryCode?: string | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING; outgoingEdgeId?: string | undefined; options?: { length?: number | undefined; variableId?: string | undefined; labels?: { left?: string | undefined; right?: string | undefined; button?: string | undefined; } | undefined; buttonType?: "Icons" | "Numbers" | undefined; startsAt?: number | `{{${string}}}` | undefined; customIcon?: { isEnabled?: boolean | undefined; svg?: string | undefined; } | undefined; isOneClickSubmitEnabled?: boolean | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.URL; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; labels?: { button?: string | undefined; placeholder?: string | undefined; } | undefined; retryMessageContent?: string | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.PICTURE_CHOICE; items: { id: string; title?: string | undefined; outgoingEdgeId?: string | undefined; blockId?: string | undefined; displayCondition?: { isEnabled?: boolean | undefined; condition?: { logicalOperator?: import("@indite.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined; comparisons?: { id: string; value?: string | undefined; variableId?: string | undefined; comparisonOperator?: import("@indite.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined; }[] | undefined; } | undefined; } | undefined; description?: string | undefined; pictureSrc?: string | undefined; }[]; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; isMultipleChoice?: boolean | undefined; buttonLabel?: string | undefined; isSearchable?: boolean | undefined; searchInputPlaceholder?: string | undefined; dynamicItems?: { isEnabled?: boolean | undefined; titlesVariableId?: string | undefined; descriptionsVariableId?: string | undefined; pictureSrcsVariableId?: string | undefined; } | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.PICTURE_CHOICE; items: { id: string; title?: string | undefined; outgoingEdgeId?: string | undefined; displayCondition?: { isEnabled?: boolean | undefined; condition?: { logicalOperator?: import("@indite.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined; comparisons?: { id: string; value?: string | undefined; variableId?: string | undefined; comparisonOperator?: import("@indite.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined; }[] | undefined; } | undefined; } | undefined; description?: string | undefined; pictureSrc?: string | undefined; }[]; outgoingEdgeId?: string | undefined; options?: { variableId?: string | undefined; isMultipleChoice?: boolean | undefined; buttonLabel?: string | undefined; isSearchable?: boolean | undefined; searchInputPlaceholder?: string | undefined; dynamicItems?: { isEnabled?: boolean | undefined; titlesVariableId?: string | undefined; descriptionsVariableId?: string | undefined; pictureSrcsVariableId?: string | undefined; } | undefined; } | undefined; } | { id: string; type: import("@indite.io/schemas/features/blocks/inputs/constants").InputBlockType.LOCATION; outgoingEdgeId?: string | undefined; options?: { buttons: { yes?: string | undefined; no?: string | undefined; }; variableId?: string | undefined; labels?: { question?: string | undefined; } | undefined; browserDetails?: { isEnabled?: boolean | undefined; saveVariableId?: string | undefined; } | undefined; } | undefined; }) & { prefilledValue?: string | undefined; runtimeOptions?: { paymentIntentSecret: string; amountLabel: string; publicKey: string; } | undefined; }) | undefined; progress?: number | undefined; logs?: { status: string; description: string; details?: unknown; }[] | undefined; resultId?: string | undefined; dynamicTheme?: { hostAvatarUrl?: string | undefined; guestAvatarUrl?: string | undefined; } | undefined; lastMessageNewFormat?: string | undefined; clientSideActions?: ({ type: "scriptToExecute"; scriptToExecute: { content: string; args: { id: string; value?: string | number | boolean | (string | null)[] | null | undefined; }[]; isCode?: boolean | undefined; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "redirect"; redirect: { url?: string | undefined; isNewTab?: boolean | undefined; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "chatwoot"; chatwoot: { scriptToExecute: { content: string; args: { id: string; value?: string | number | boolean | (string | null)[] | null | undefined; }[]; isCode?: boolean | undefined; }; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "googleAnalytics"; googleAnalytics: { value?: number | `{{${string}}}` | undefined; label?: string | undefined; trackingId?: string | undefined; category?: string | undefined; action?: string | undefined; sendTo?: string | undefined; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "wait"; wait: { secondsToWaitFor: number; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "setVariable"; setVariable: { scriptToExecute: { content: string; args: { id: string; value?: string | number | boolean | (string | null)[] | null | undefined; }[]; isCode?: boolean | undefined; }; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "streamOpenAiChatCompletion"; streamOpenAiChatCompletion: { messages: { content?: string | undefined; role?: "user" | "system" | "assistant" | undefined; }[]; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "httpRequestToExecute"; httpRequestToExecute: { url: string; body?: unknown; headers?: Record | undefined; method?: import("@indite.io/schemas/features/blocks/integrations/httpRequest/constants").HttpMethod | undefined; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "startPropsToInject"; startPropsToInject: { customHeadCode?: string | undefined; googleAnalyticsId?: string | undefined; pixelIds?: string[] | undefined; gtmId?: string | undefined; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "pixel"; pixel: { params?: { id: string; value?: any; key?: string | undefined; }[] | undefined; eventType?: undefined; pixelId?: string | undefined; isInitSkip?: boolean | undefined; } | { eventType: "Lead" | "Contact" | "CompleteRegistration" | "Schedule" | "SubmitApplication" | "ViewContent" | "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Purchase" | "Search" | "StartTrial" | "Subscribe"; params?: { id: string; value?: any; key?: string | undefined; }[] | undefined; pixelId?: string | undefined; isInitSkip?: boolean | undefined; } | { eventType: "Custom"; params?: { id: string; value?: any; key?: string | undefined; }[] | undefined; name?: string | undefined; pixelId?: string | undefined; isInitSkip?: boolean | undefined; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "stream"; stream: true; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "codeToExecute"; codeToExecute: { content: string; args: Record; }; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; } | { type: "listenForWebhook"; lastBubbleBlockId?: string | undefined; expectsDedicatedReply?: boolean | undefined; })[] | undefined; chatLimitExceededError?: string | undefined; }; error?: undefined; }>; export {}; //# sourceMappingURL=startChatQuery.d.ts.map