/** * @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 { BrightnessParams } from "./brightness.cpu"; export interface ImageBrightnessTaskInput extends ImageFilterInput { amount?: number; } export type ImageBrightnessTaskOutput = ImageFilterOutput & Record; export declare class ImageBrightnessTask extends ImageFilterTask, ImageBrightnessTaskOutput> { static readonly type = "ImageBrightnessTask"; 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: "Brightness adjustment (-255 to 255)"; readonly minimum: -255; readonly maximum: 255; 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 = "brightness"; protected opParams(input: ImageBrightnessTaskInput & Record): BrightnessParams; } declare module "@workglow/task-graph" { interface Workflow { imageBrightness: CreateWorkflow, ImageBrightnessTaskOutput, TaskConfig>; } }