/**
* — React wrapper around createTorukPreviewer.
*
* Mounts the embeddable chat widget in a host-provided container on
* the client side. SSR-safe (renders null on the server; mounts in
* useEffect after hydration).
*
*
*
* Auth is sourced from the surrounding . To use the
* previewer without a Provider, construct it imperatively with
* createTorukPreviewer().
*/
import { type CSSProperties, type ReactNode } from 'react';
import { type PreviewerMountOptions } from '../previewer/create-toruk-previewer';
export type TorukPreviewerProps = Omit & {
/** Required: task UUID (chatflow or agentflow). */
deploymentId?: string;
/** @deprecated use `deploymentId`. */
workflowId?: string;
/** Per-task engine config. */
taskConfig?: Record;
/** @deprecated use `taskConfig`. */
workflowConfig?: Record;
/** Container className (forwarded onto the host div for inline mode). */
className?: string;
/** Container style (forwarded onto the host div for inline mode). */
style?: CSSProperties;
/** Content rendered while the widget mounts (e.g. a skeleton). */
fallback?: ReactNode;
};
export declare function TorukPreviewer(props: TorukPreviewerProps): import("react").DetailedReactHTMLElement<{
ref: import("react").MutableRefObject;
className: string | undefined;
style: CSSProperties | undefined;
}, HTMLDivElement> | null;