import { XYContentConfig, XYPeopleConfig, StreamResolution, ConstraintMode, StreamFrameRate, IRecallConfig } from '../type/index'; /** * 获取Electron采集约束配置 * * @param width - 宽度 * @param height - 高度 * @param frameRate - 帧率 * @returns { TConstraintsConfig } - 约束配置 */ export declare const getElectronConstraints: (width: number, height: number, frameRate: StreamFrameRate) => { video: { mandatory: { chromeMediaSource: string; chromeMediaSourceId: string; maxWidth: number; maxHeight: number; maxFrameRate: StreamFrameRate; }; }; audio: { mandatory: { chromeMediaSource: string; chromeMediaSourceId: string; }; optional: ({ noiseSuppression: boolean; autoGainControl?: undefined; googAutoGainControl?: undefined; googNoiseSuppression?: undefined; googHighpassFilter?: undefined; googTypingNoiseDetection?: undefined; googAudioMirroring?: undefined; } | { autoGainControl: boolean; noiseSuppression?: undefined; googAutoGainControl?: undefined; googNoiseSuppression?: undefined; googHighpassFilter?: undefined; googTypingNoiseDetection?: undefined; googAudioMirroring?: undefined; } | { googAutoGainControl: boolean; noiseSuppression?: undefined; autoGainControl?: undefined; googNoiseSuppression?: undefined; googHighpassFilter?: undefined; googTypingNoiseDetection?: undefined; googAudioMirroring?: undefined; } | { googNoiseSuppression: boolean; noiseSuppression?: undefined; autoGainControl?: undefined; googAutoGainControl?: undefined; googHighpassFilter?: undefined; googTypingNoiseDetection?: undefined; googAudioMirroring?: undefined; } | { googHighpassFilter: boolean; noiseSuppression?: undefined; autoGainControl?: undefined; googAutoGainControl?: undefined; googNoiseSuppression?: undefined; googTypingNoiseDetection?: undefined; googAudioMirroring?: undefined; } | { googTypingNoiseDetection: boolean; noiseSuppression?: undefined; autoGainControl?: undefined; googAutoGainControl?: undefined; googNoiseSuppression?: undefined; googHighpassFilter?: undefined; googAudioMirroring?: undefined; } | { googAudioMirroring: boolean; noiseSuppression?: undefined; autoGainControl?: undefined; googAutoGainControl?: undefined; googNoiseSuppression?: undefined; googHighpassFilter?: undefined; googTypingNoiseDetection?: undefined; })[]; }; }; /** * people基础约束配置 */ export declare const BASE_PEOPLE_CONSTRAINTS: XYPeopleConfig; /** * content采集基础约束配置 */ export declare const BASE_CONTENT_CONSTRAINTS: XYContentConfig; /** * people采集音频基础约束配置 */ export declare const BASE_PEOPLE_AUDIO_CONSTRAINTS: { channelCount: number; autoGainControl: boolean; noiseSuppression: boolean; echoCancellation: boolean; }; /** * content 720P 1080P 采集配置信息 * * COMMON: 普通模式 * ADVANCED: 高级模式, 帧率、宽、高 可进行最大、最小、期望设置 * ELECTRON_COMMON: Electron桌面共享视频流采集约束配置方案 * * @param { StreamResolution } resolution - 分辨率 * @param { StreamFrameRate } frameRate - 帧率 * @param { ConstraintMode } constraintMode - 模式 */ export declare const GET_CONTENT_CONSTRAINTS: (resolution: StreamResolution, frameRate: StreamFrameRate, constraintMode: ConstraintMode) => any; /** * people 180P 360P 720P 采集配置信息 * * common: 普通模式 * advanced: 高级模式, 帧率、宽、高 可进行最大、最小、期望设置 * 特殊说明:180P采集默认配置15帧率,无法增加,其他支持基于Config配置形式采集 */ export declare const GET_PEOPLE_CONSTRAINTS: (resolution: StreamResolution, frameRate: StreamFrameRate, constraintMode: ConstraintMode) => any; /** * 分辨率枚举,将分辨率转换为0-6的索引值 */ export declare const RESOLUTION_MAP: Record; /** * 枚举分辨率对应的最小带宽值 */ export declare const MIN_BANDWIDTH_MAP: Record; /** * 重呼配置参数 */ export declare const DEFAULT_RECALL_CONFIG: Required;