import { IParameters } from '../canvas/BlurFastWithMask'; import { IEffectDrawSegmentationParams } from '../classes/SegmentationProcessor'; import { IDimentions } from '../types'; import { IEffect } from './IEffect'; export declare class EffectBackground extends IEffect { private _backgroundImageSource?; private _backgroundImageData?; private _WebGlBlend; private _savedOptions; private _backgroundChangeListeners; constructor(); setBackgroundImage(url: string | null): Promise; getBackgroundSource(): CanvasImageSource | undefined; getBackgroundImageUrl(): string | undefined; addBackgroundChangeListener(listener: () => void): VoidFunction; /** после обновления фона пользователем, срабатывает и меняет размер картинки фона */ private _updateBackground; private _notifyBackgroundChange; needSegmentation(): boolean; setResolution(resolution: IDimentions): void; setEffects(parameters: IParameters): void; draw(imgSources: IEffectDrawSegmentationParams): void; cleanup(): void; destroy(): void; }