import type { ImageRequireSource, ImageURISource } from 'react-native'; import { HMSVideoPlugin } from './HMSVideoPlugin'; export declare class HMSVirtualBackgroundPlugin extends HMSVideoPlugin { static NAME: string; constructor(); /** * Sets Blur as background * @returns {Promise} A promise that resolves to true when blur effect has been applied as background, otherwise, rejected promise is returned */ setBlur(blurRadius: number): Promise; /** * Sets provided image as background * @param backgroundImage An image to apply as background on * @returns {Promise} A promise that resolves to true when provided background image has been applied as background, otherwise, rejected promise is returned * * Example Usage: * ``` * // Create instance of `HMSVirtualBackgroundPlugin` class * const hmsVirtualBackgroundPlugin = HMSVirtualBackgroundPlugin(); * ... * // In ON_PREVIEW or ON_JOIN event callback method * const image = require('path to image file'); * hmsVirtualBackgroundPlugin.setBackground(image); * * * ``` */ setBackground(backgroundImage: ImageURISource | ImageRequireSource): Promise; } //# sourceMappingURL=HMSVirtualBackgroundPlugin.d.ts.map