/** * 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 type { BatchResult, PaletteResult } from "../../../domain/palette/palette.schema.js"; import { ConfigService } from "../../../services/ConfigService.js"; import { ConsoleService } from "../../../services/ConsoleService/index.js"; import { PromptService } from "../../../services/PromptService/index.js"; import { ModeResolver } from "./modes/resolver.js"; interface GenerateOptions { readonly colorOpt: O.Option; readonly exportOpt: O.Option; readonly exportPath: O.Option; readonly formatOpt: O.Option; readonly nameOpt: O.Option; readonly patternOpt: O.Option; readonly stopOpt: O.Option; } /** Union of possible interactive mode results */ type InteractiveResult = BatchResult | ReadonlyArray; /** * Main handler for the generate command. * * Orchestrates the CLI session: resolves pattern, detects execution mode, * handles interactive prompts if needed, then executes the appropriate * mode handler (single palette, batch, or transformation). */ export declare const handleGenerate: (options: GenerateOptions) => Effect.Effect<{ readonly name: string; readonly stops: readonly ({ 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 value: string; })[]; readonly inputColor: string; readonly anchorStop: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000; readonly outputFormat: "hex" | "rgb" | "oklch" | "oklab"; } | { readonly name: string; readonly stops: readonly ({ 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 value: string; })[]; readonly inputColor: string; readonly anchorStop: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000; readonly outputFormat: "hex" | "rgb" | "oklch" | "oklab"; }[] | InteractiveResult, unknown, ModeResolver | ConfigService | ConsoleService | PromptService | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path>; export {}; //# sourceMappingURL=handler.d.ts.map