/** * @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 { FlipParams } from "./flip.cpu"; export interface ImageFlipTaskInput extends ImageFilterInput { direction: "horizontal" | "vertical"; } export type ImageFlipTaskOutput = ImageFilterOutput & Record; export declare class ImageFlipTask extends ImageFilterTask, ImageFlipTaskOutput> { static readonly type = "ImageFlipTask"; 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 direction: { readonly type: "string"; readonly enum: readonly ["horizontal", "vertical"]; readonly title: "Direction"; readonly description: "Flip direction"; readonly default: "horizontal"; }; }; readonly required: readonly ["image", "direction"]; 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 = "flip"; protected opParams(input: ImageFlipTaskInput & Record): FlipParams; } declare module "@workglow/task-graph" { interface Workflow { imageFlip: CreateWorkflow, ImageFlipTaskOutput, TaskConfig>; } }