/** * Main command handler for palette generation * * Uses ModeResolver to detect execution mode and routes to appropriate handler */ import { Effect, Option as O } from "effect"; import { ConfigService } from "../../../services/ConfigService.js"; import { ModeResolver } from "./modes/resolver.js"; /** * Main handler for the generate command * * Detects mode (batch vs single) and delegates to appropriate handler */ export declare const handleGenerate: ({ colorOpt, exportOpt, exportPath, formatOpt, nameOpt, patternOpt, stopOpt }: { colorOpt: O.Option; exportOpt: O.Option; exportPath: O.Option; formatOpt: O.Option; nameOpt: O.Option; patternOpt: O.Option; stopOpt: O.Option; }) => Effect.Effect<{ readonly name: string; readonly inputColor: string; readonly anchorStop: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000; readonly outputFormat: "hex" | "rgb" | "oklch" | "oklab"; readonly stops: readonly ({ readonly value: string; } & { readonly position: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000; readonly color: { readonly l: number; readonly c: number; readonly h: number; readonly alpha: number; }; })[]; } | { readonly outputFormat: "hex" | "rgb" | "oklch" | "oklab"; readonly groupName: string; readonly generatedAt: string; readonly palettes: readonly { readonly name: string; readonly inputColor: string; readonly anchorStop: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000; readonly outputFormat: "hex" | "rgb" | "oklch" | "oklab"; readonly stops: readonly ({ readonly value: string; } & { readonly position: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000; readonly color: { readonly l: number; readonly c: number; readonly h: number; readonly alpha: number; }; })[]; }[]; readonly partial: boolean; } | { readonly name: string; readonly inputColor: string; readonly anchorStop: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000; readonly outputFormat: "hex" | "rgb" | "oklch" | "oklab"; readonly stops: readonly ({ readonly value: string; } & { readonly position: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000; readonly color: { readonly l: number; readonly c: number; readonly h: number; readonly alpha: number; }; })[]; }[], import("effect/ParseResult").ParseError | import("../../../services/ExportService.js").ExportError | import("../../../services/PaletteService.js").PaletteGenerationError | import("../../../domain/color/errors.js").ColorConversionError | import("../../../domain/color/errors.js").ColorParseError | import("../../../domain/color/errors.js").TransformationParseError | import("../../../domain/color/errors.js").ColorTransformationError, ConfigService | import("../../../services/ExportService.js").ExportService | import("../../../services/PaletteService.js").PaletteService | ModeResolver>; //# sourceMappingURL=handler.d.ts.map