import { AvatarVideoDimension, VideoPlayerLayer, VideoPlayerConfig } from './types';
export declare class VideoPlayer {
    private readonly inputVideoElement;
    private readonly videoElement;
    private background?;
    private isVideo;
    private backgroundElement?;
    private canvas?;
    private canvasContext?;
    private videoIframe?;
    private avatarConfig;
    private _layers;
    constructor(config: VideoPlayerConfig);
    get layers(): VideoPlayerLayer[];
    private renderCanvas;
    private createBackgroundElement;
    private processVideoFrame;
    setAvatarDimensions(width: AvatarVideoDimension, height: AvatarVideoDimension): void;
    setAvatarPosition(x: number, y: number): void;
    setBackground(background: string): void;
    addLayer(layer: VideoPlayerLayer): void;
    updateLayer(index: number, layer: VideoPlayerLayer): void;
    removeLayer(index: number): void;
    removeBackground(): void;
    getURLFileType(url: string): Promise<"video" | "image">;
    destroy(): void;
}
