/** * SinglePalette workflow - completes partial input to full input. * * Takes a SinglePalettePartial (from CLI flags) and prompts for any missing fields, * producing a validated SinglePaletteComplete that can be passed to the executor. */ import { Effect, Option as O } from "effect"; import { PromptService } from "../../../../services/PromptService/index.js"; import { type SinglePaletteComplete, type SinglePalettePartial } from "../inputSpecs/singlePalette.input.js"; import { type WorkflowCompletionError } from "./shared/index.js"; /** * Complete a partial SinglePalette input by prompting for missing fields. * * Uses Option pattern matching to prompt only when a field is missing. * Validates the final result with Schema.decode for type safety. */ export declare const completeSinglePaletteInput: (partial: SinglePalettePartial, patternFromContext: string) => Effect.Effect; /** * Build a partial input from CLI options. * Converts Option types to optional values for the workflow. * Uses Schema validation to safely refine types - invalid values become undefined. */ export declare const buildPartialFromOptions: (options: { readonly colorOpt: O.Option; readonly stopOpt: O.Option; readonly formatOpt: O.Option; readonly nameOpt: O.Option; readonly patternOpt: O.Option; }) => SinglePalettePartial; //# sourceMappingURL=singlePalette.workflow.d.ts.map