/** * @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 { PixelateParams } from "./pixelate.cpu"; export interface ImagePixelateTaskInput extends ImageFilterInput { blockSize?: number; } export type ImagePixelateTaskOutput = ImageFilterOutput & Record; export declare class ImagePixelateTask extends ImageFilterTask, ImagePixelateTaskOutput> { static readonly type = "ImagePixelateTask"; 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 blockSize: { readonly type: "integer"; readonly title: "Block Size"; readonly description: "Size of each pixelation block"; readonly minimum: 2; readonly maximum: 64; readonly default: 4; }; }; 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 = "pixelate"; protected opParams(input: ImagePixelateTaskInput & Record): PixelateParams; protected scalePreviewParams({ blockSize }: PixelateParams, s: number): PixelateParams; } declare module "@workglow/task-graph" { interface Workflow { imagePixelate: CreateWorkflow, ImagePixelateTaskOutput, TaskConfig>; } }