import type { ReactNode } from "react"; import type { MessageItem } from "@droppii-org/wasm-client-sdk"; export declare const CustomMessageType: { readonly Order: "Order"; readonly Product: "Product"; readonly Event: "CUSTOM_MESSAGE_EVENT"; }; export type CustomMessageType = (typeof CustomMessageType)[keyof typeof CustomMessageType]; export type CustomElemOrderData = { id: string; orderCode: string; timestamp: number; checkoutId?: string; }; export declare const MallEventType: { readonly Welcome: "MALL_WELCOME"; readonly FirstOrderWithoutConsultant: "MALL_FIRST_ORDER_WITHOUT_CONSULTANT"; readonly SelectDroppiiConsultant: "MALL_SELECT_DROPPII_CONSULTANT"; readonly SelectConsultant: "MALL_SELECT_CONSULTANT"; }; export type CustomElemEventData = { type: string; /** Whitespace-collapsed plain text, fit for previews only. */ message?: string; consultantId?: string; consultantName?: string; }; export type CustomMessagePayload = { type: typeof CustomMessageType.Order; data: CustomElemOrderData; } | { type: typeof CustomMessageType.Product; data: Record; } | { type: typeof CustomMessageType.Event; data: CustomElemEventData; }; export interface RenderCustomMessageArgs { message: MessageItem; payload: CustomMessagePayload | null; } export type RenderCustomMessage = (args: RenderCustomMessageArgs) => ReactNode | null; //# sourceMappingURL=customMessage.d.ts.map