export interface IParameters { blurStrength: number; fixSegmentation: boolean; fixSegmentationBlurStrength: number; fixSegmentationIterations: number; alphaCutterLowerBound: number; alphaCutterUpperBound: number; } export type IDrawParams = { image: TexImageSource; segmentationMask: TexImageSource; resizedImage: TexImageSource; background?: TexImageSource; }; export declare class BlurFastWithMask { private readonly $canvas; private readonly gl; private readonly positionBuffer; private readonly pBackgroundComposer; private readonly pBlurFastWithMask; private readonly pBlurFast; private readonly pAlphaCutter; private readonly indexBuffer; private readonly vertices; private readonly indices; private readonly textures; private readonly fbs; private parameters; private canvasSize; constructor(canvasCtx: WebGLRenderingContext); private onresize; private loadTextures; close(): void; private drawGeometry; private createTextureLayers; private setGeometry; setParameters(parameters: Partial): void; draw(imgSources: IDrawParams): void; }