/** * @license * Copyright 2026 Qwen Team * SPDX-License-Identifier: Apache-2.0 */ import { type QwenRealtimeDeps } from './realtime-session.js'; import type { DebugArchive } from '../log/debug-archive.js'; export interface QwenRealtimeImageAnalysisOptions { endpoint: string; apiKey?: string; model: string; image: string; question: string; source: 'screen' | 'camera'; signal?: AbortSignal; /** Correlation and bounded metadata only; never raw images or question text. */ onDebug?: (event: string, details: Record) => void; debugArchive?: DebugArchive; debugContext?: Record; } export interface QwenRealtimeImageAnalysisDeps { createWebSocket?: QwenRealtimeDeps['createWebSocket']; timeoutMs?: number; } export interface QwenRealtimeImageAnalysisResult { answer: string; providerSessionId?: string; responseId?: string; } /** One pinned snapshot; at most one retry, never another capture or tool action. */ export declare function analyzeQwenRealtimeImage(options: QwenRealtimeImageAnalysisOptions, deps?: QwenRealtimeImageAnalysisDeps): Promise;