import type { DeepThinkOption, DeviceAction, InterfaceType, PlanningAIResponse, RawResponsePlanningAIResponse, UIContext } from '../types';
import type { IModelConfig, TModelFamily } from '@midscene/shared/env';
import type { ConversationHistory } from './conversation-history';
/**
 * Parse XML response from LLM and convert to RawResponsePlanningAIResponse
 */
export declare function parseXMLPlanningResponse(xmlString: string, modelFamily: TModelFamily | undefined): RawResponsePlanningAIResponse;
export declare function plan(userInstruction: string, opts: {
    context: UIContext;
    interfaceType: InterfaceType;
    actionSpace: DeviceAction<any>[];
    actionContext?: string;
    modelConfig: IModelConfig;
    conversationHistory: ConversationHistory;
    includeBbox: boolean;
    imagesIncludeCount?: number;
    deepThink?: DeepThinkOption;
}): Promise<PlanningAIResponse>;
