/** * @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 { ContrastParams } from "./contrast.cpu"; export interface ImageContrastTaskInput extends ImageFilterInput { amount?: number; } export type ImageContrastTaskOutput = ImageFilterOutput & Record; export declare class ImageContrastTask extends ImageFilterTask, ImageContrastTaskOutput> { static readonly type = "ImageContrastTask"; 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 amount: { readonly type: "number"; readonly title: "Amount"; readonly description: "Contrast adjustment (-100 to 100)"; readonly minimum: -100; readonly maximum: 100; readonly default: 0; }; }; 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 = "contrast"; protected opParams(input: ImageContrastTaskInput & Record): ContrastParams; } declare module "@workglow/task-graph" { interface Workflow { imageContrast: CreateWorkflow, ImageContrastTaskOutput, TaskConfig>; } }