import { Synth } from "./synth"; import { Texture } from "./texture"; export declare class SourceProxy extends Texture { synth: Synth; sourceIndex: number; source: TexImageSource; constructor(synth: Synth, index: number); init(source: TexImageSource): ReturnType; initCam(index: any, params?: MediaTrackConstraints): void; initVideo(videoOrurl: string | HTMLVideoElement, params?: { autoPlay?: boolean; loop?: boolean; muted?: boolean; }): void; initScreen(params?: MediaTrackConstraints): void; resize(width: number, height: number): this; newFrame(source: TexImageSource): void; update(): this; clear(): void; } export declare class Source extends Texture { dynamic: boolean; constructor(synth: Synth, index: number); init(source: TexImageSource, dynamic?: boolean): ReturnType; init(props: { src: TexImageSource; dynamic: boolean; }): ReturnType; initImage(src: string, textureParams?: { clamp?: boolean; filter?: "linear" | "nearest"; }): Promise; initText(text: string, font?: string, color?: string): this; initCam(index: any, params?: MediaTrackConstraints): Promise; initScreen(params?: MediaTrackConstraints): Promise; initVideo(videoOrurl: string | HTMLVideoElement, params?: { autoPlay?: boolean; loop?: boolean; muted?: boolean; }, textureParams?: { clamp?: boolean; filter?: "linear" | "nearest"; }): Promise; update(): this; resize(width: number, height: number): this; clear(): void; } export declare function Webcam(deviceId: number, videoParams?: MediaTrackConstraints): Promise; export declare function Screen(videoParams?: MediaTrackConstraints): Promise;