/** * @copyright * Copyright 2026 Steven Roussey * All Rights Reserved */ import { CreateWorkflow, type TaskConfig } from "@workglow/task-graph"; import { ImageFilterTask, type ImageFilterInput, type ImageFilterOutput } from "../ImageFilterTask"; import type { BlurParams } from "./blur.cpu"; export interface ImageBlurTaskInput extends ImageFilterInput { radius?: number; } export type ImageBlurTaskOutput = ImageFilterOutput & Record; export declare class ImageBlurTask extends ImageFilterTask, ImageBlurTaskOutput> { static readonly type = "ImageBlurTask"; static readonly category = "Image"; static title: string; static description: string; static inputSchema(): { readonly type: "object"; readonly properties: { readonly image: { readonly oneOf: readonly [{ readonly type: "string"; readonly format: "image:data-uri"; }, { readonly type: "object"; readonly format: "image"; }]; readonly title: "Image"; readonly description: "Image"; readonly format: "image"; }; readonly radius: { readonly type: "number"; readonly title: "Radius"; readonly description: "Blur radius (1-10)"; readonly minimum: 1; readonly maximum: 10; readonly default: 1; }; }; readonly required: readonly ["image"]; readonly additionalProperties: false; }; static outputSchema(): { readonly type: "object"; readonly properties: { readonly image: { readonly oneOf: readonly [{ readonly type: "string"; readonly format: "image:data-uri"; }, { readonly type: "object"; readonly format: "image"; }]; readonly title: "Image"; readonly description: "Image"; readonly format: "image"; }; }; readonly required: readonly ["image"]; readonly additionalProperties: false; }; protected readonly filterName = "blur"; protected opParams(input: ImageBlurTaskInput & Record): BlurParams; protected scalePreviewParams({ radius }: BlurParams, s: number): BlurParams; } declare module "@workglow/task-graph" { interface Workflow { imageBlur: CreateWorkflow, ImageBlurTaskOutput, TaskConfig>; } }