import { k as AIUsageInfo, X as PlanningAction, i as MidsceneYamlFlowItem, S as Size } from './types-81ea39fa.js';
import { ChatCompletionMessageParam } from 'openai/resources';
export { ChatCompletionMessageParam } from 'openai/resources';
import { b as AIActionType } from './llm-planning-6920ac29.js';
export { a as AiAssert, f as AiExtractElementInfo, A as AiLocateElement, g as AiLocateSection, h as adaptBboxToRect, c as callAiFn, d as describeUserPage, e as elementByPositionWithElementInfo, p as plan } from './llm-planning-6920ac29.js';
import { vlLocateMode } from '@midscene_spp/shared/env';
import { actionParser } from '@ui-tars/action-parser';
import '@midscene_spp/shared/constants';

declare function callToGetJSONObject<T>(messages: ChatCompletionMessageParam[], AIActionTypeValue: AIActionType): Promise<{
    content: T;
    usage?: AIUsageInfo;
}>;

declare function systemPromptToLocateElement(vlMode: ReturnType<typeof vlLocateMode>): string;

declare function vlmPlanning(options: {
    userInstruction: string;
    conversationHistory: ChatCompletionMessageParam[];
    size: {
        width: number;
        height: number;
    };
}): Promise<{
    actions: PlanningAction<any>[];
    actionsFromModel: ReturnType<typeof actionParser>['parsed'];
    action_summary: string;
    yamlFlow: MidsceneYamlFlowItem[];
}>;
declare function resizeImageForUiTars(imageBase64: string, size: Size): Promise<string>;

export { callToGetJSONObject, resizeImageForUiTars, systemPromptToLocateElement, vlmPlanning };
