import type { InstructionType, WidgetSettingsData } from '../sdk';
export type { AgentData, ConnectionData, InstructionType, IntegrationData, TenantData, UserData, WidgetChip, WidgetSettingsData, } from '../sdk';
/**
 * MarketrixConfig - Flat superset type extending WidgetSettingsData
 *
 * This type extends WidgetSettingsData (with all fields optional) with additional
 * widget-specific fields, allowing API settings to be spread directly:
 * { ...config, ...apiSettings }
 *
 * All fields are at the top level for easy merging and access.
 */
export type MarketrixConfig = Partial<WidgetSettingsData> & {
    mtxId?: string;
    mtxKey?: string;
    mtxApp?: number;
    mtxAgent?: number;
    userId?: number;
    mtxApiHost?: string;
    mtxAiHost?: string;
    widget_position_offset?: {
        x?: number;
        y?: number;
    };
    widget_position_z_index?: number;
    isPreviewMode?: boolean;
};
export interface ChatMessage {
    id: string;
    content: string;
    sender: 'user' | 'agent';
    timestamp: Date;
    mode?: InstructionType;
    videoStream?: MediaStream;
    isScreenAccessRequest?: boolean;
    screenShareStatus?: 'allowed' | 'denied';
    isSystemMessage?: boolean;
    isPlaceholder?: boolean;
    placeholderState?: 'thinking' | 'waiting-for-user';
    parts?: MessagePart[];
    taskStatus?: 'ongoing' | 'done' | 'failed' | 'stopped';
}
export interface MessagePart {
    type: 'text' | 'progress';
    content: string;
    status?: 'running' | 'completed' | 'failed' | 'canceled';
    toolName?: string;
    hideIcon?: boolean;
    textStyle?: 'default' | 'muted';
}
export interface TaskProgress {
    tool_name: string;
    tool_params: Record<string, unknown>;
    step: number;
    explanation: string;
    mode: string;
    timestamp: number;
}
export interface WidgetState {
    isOpen: boolean;
    isMinimized: boolean;
    isLoading: boolean;
    messages: ChatMessage[];
    currentMode: InstructionType;
    agentAvailable: boolean;
    error?: string;
    activeTaskId: string | null;
    isTaskRunning: boolean;
    taskProgress: TaskProgress[];
}
export interface SendMessageRequest {
    message?: string;
    mode?: InstructionType;
    mtxId?: string;
    mtxKey?: string;
    connection_id?: number;
    question?: string;
}
export interface SendMessageResponse {
    messageId: string;
    response: string;
    mode: InstructionType;
    timestamp: Date;
    task_id?: string;
}
export type WidgetPosition = WidgetSettingsData['widget_position'];
/**
 * Configuration for addWidget function
 * Supports preview, production, and dev modes
 */
export type AddWidgetConfig = ({
    settings: WidgetSettingsData;
    mtxId?: never;
    mtxKey?: never;
    mtxApp?: never;
    mtxAgent?: never;
} | {
    settings?: never;
    mtxId: string;
    mtxKey: string;
    mtxApp?: never;
    mtxAgent?: never;
} | {
    settings?: never;
    mtxId?: never;
    mtxKey?: never;
    mtxApp: number;
    mtxAgent: number;
}) & {
    container?: HTMLElement;
    mtxApiHost?: string;
    mtxAiHost?: string;
    userId?: number;
    widget_position_offset?: {
        x?: number;
        y?: number;
    };
    widget_position_z_index?: number;
};
/**
 * Props for MarketrixWidget React component
 */
export interface MarketrixWidgetProps {
    settings: WidgetSettingsData;
    container?: HTMLElement;
}
export type { TourData } from '../sdk';
export type { BrowserAction, BrowserToolMetadata, ClickElementAction, CloseTabAction, DoneAction, ExtractAction, GetDropdownOptionsAction, InputTextAction, NavigateAction, NoParamsAction, ScrollAction, SearchAction, SelectDropdownOptionAction, SendKeysAction, StructuredOutputAction, SwitchTabAction, UploadFileAction, } from './browserTools';
export { BROWSER_TOOL_CATEGORIES, BROWSER_TOOLS } from './browserTools';
//# sourceMappingURL=index.d.ts.map