import { RenderModeType, VideoModulePosition, VideoSourceType } from '../Private/AgoraMediaBase'; declare global { /** * Attributes of the Agora custom element. * You can use this custom element as follows: */ interface AgoraView { /** * The type of the video source. See VideoSourceType . */ 'video-source-type': VideoSourceType; /** * The ID of the remote user. */ 'uid': number; /** * The channel name. This parameter signifies the channel in which users engage in real-time audio and video interaction. Under the premise of the same App ID, users who fill in the same channel ID enter the same channel for audio and video interaction. The string length must be less than 64 bytes. Supported characters: * All lowercase English letters: a to z. * All uppercase English letters: A to Z. * All numeric characters: 0 to 9. * Space * "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "= ", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", "," */ 'channel-id': string; /** * The frame position of the video observer. */ 'position': VideoModulePosition; /** * The video display mode. */ 'renderer-content-mode': RenderModeType; /** * Whether to enable mirror mode when rendering video: true: Enable mirror mode.false: Do not enable mirror mode. */ 'renderer-mirror': boolean; /** * The inline style of elements. See style . */ 'style': any; /** * Whether to enable alpha mask rendering: true : Enable alpha mask rendering. false : (Default) Disable alpha mask rendering. Alpha mask rendering can create images with transparent effects and extract portraits from videos. When used in combination with other methods, you can implement effects such as portrait-in-picture and watermarking. */ 'enable-alpha-mask': boolean; } namespace JSX { /** * The custom HTML elements defined by Agora. */ interface IntrinsicElements { /** * The name of the custom element, which supports rendering an AgoraView or HTMLElement object. */ 'agora-view': AgoraView | HTMLElement; } } } export default class AgoraView extends HTMLElement { isConnectedCallback: boolean; static get observedAttributes(): string[]; get sourceType(): VideoSourceType; set sourceType(val: VideoSourceType); get uid(): number; set uid(val: number); get channelId(): string; set channelId(val: string); get position(): VideoModulePosition; set position(val: VideoModulePosition); get renderMode(): RenderModeType; set renderMode(val: RenderModeType); get renderMirror(): boolean; set renderMirror(val: boolean); get enableAlphaMask(): boolean; set enableAlphaMask(val: boolean); constructor(); initializeRender: () => void; destroyRender: () => void; connectedCallback(): void; attributeChangedCallback(attrName: string, oldVal: any, newVal: any): void; disconnectedCallback(): void; } //# sourceMappingURL=AgoraView.d.ts.map