/** * @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 { PosterizeParams } from "./posterize.cpu"; export interface ImagePosterizeTaskInput extends ImageFilterInput { levels?: number; } export type ImagePosterizeTaskOutput = ImageFilterOutput & Record; export declare class ImagePosterizeTask extends ImageFilterTask, ImagePosterizeTaskOutput> { static readonly type = "ImagePosterizeTask"; 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 levels: { readonly type: "integer"; readonly title: "Levels"; readonly description: "Number of color levels per channel (2-16)"; readonly minimum: 2; readonly maximum: 16; 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 = "posterize"; protected opParams(input: ImagePosterizeTaskInput & Record): PosterizeParams; } declare module "@workglow/task-graph" { interface Workflow { imagePosterize: CreateWorkflow, ImagePosterizeTaskOutput, TaskConfig>; } }