/** * Shared command logic for palette generation */ import { Effect, Option as O } from "effect"; import { BatchGeneratedPaletteOutput } from "../../../../schemas/batch.js"; import { ColorSpace } from "../../../../schemas/color.js"; import type { ExportConfig } from "../../../../schemas/IO.js"; import { StopPosition } from "../../../../schemas/palette.js"; import { ExportService } from "../../../../services/ExportService.js"; import { PaletteService } from "../../../../services/PaletteService.js"; /** * Generate and display palette */ export declare const generateAndDisplay: ({ color, format, name, pattern, stop }: { color: string; format: ColorSpace; name: string; pattern: string; stop: StopPosition; }) => 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; }; })[]; }, import("effect/ParseResult").ParseError | import("../../../../services/PaletteService.js").PaletteGenerationError, PaletteService>; /** * Display palette with clack formatting */ export declare const displayPalette: (result: Effect.Effect.Success>) => Effect.Effect; /** * Display batch results with clack formatting */ export declare const displayBatch: (batch: BatchGeneratedPaletteOutput) => Effect.Effect; /** * Validate and build export config * Returns None if export target is "none", otherwise returns the config */ export declare const buildExportConfig: (exportOpt: O.Option, exportPath: O.Option) => Effect.Effect | O.Some<{ readonly target: "none" | "json" | "clipboard"; readonly jsonPath?: string | undefined; readonly includeOKLCH: boolean; }>, import("effect/ParseResult").ParseError, never>; /** * Execute export for a single palette with config */ export declare const executePaletteExport: (palette: Effect.Effect.Success>, config: ExportConfig) => Effect.Effect; /** * Execute export for batch result with config */ export declare const executeBatchExport: (batch: BatchGeneratedPaletteOutput, config: ExportConfig) => Effect.Effect; //# sourceMappingURL=formatter.d.ts.map