/** * Export service schemas * * Defines validated types for export operations including: * - Export targets (none, clipboard, json) * - Batch input modes (paste, cycle, transform) * - JSON file paths with .json extension validation * - Batch paste input parsing */ import { Schema } from "effect"; /** * Export target schema - where to export palette results */ export declare const ExportTargetSchema: Schema.Literal<["none", "clipboard", "json"]>; export type ExportTarget = typeof ExportTargetSchema.Type; export declare const ExportTarget: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<"none" | "clipboard" | "json", import("effect/ParseResult").ParseError, never>; /** * Batch input mode schema - how to generate multiple palettes */ export declare const BatchInputModeSchema: Schema.Literal<["paste", "cycle", "transform"]>; export type BatchInputMode = typeof BatchInputModeSchema.Type; export declare const BatchInputMode: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<"transform" | "paste" | "cycle", import("effect/ParseResult").ParseError, never>; /** * JSON file path schema with validation * * Validates: * - Non-empty string * - No null bytes * - No leading/trailing whitespace * - Must end with .json or .JSON extension */ export declare const JSONPathSchema: Schema.brand>>, "JSONPath">; export declare const JSONPathSync: (i: string, overrideOptions?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"JSONPath">; export declare const JSONPath: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect, import("effect/ParseResult").ParseError, never>; export type JSONPath = typeof JSONPathSchema.Type; /** * Batch paste input schema * * Validates multi-line or comma-separated color/stop pairs input */ export declare const BatchPasteInputSchema: Schema.brand>, "BatchPasteInput">; export type BatchPasteInput = typeof BatchPasteInputSchema.Type; export declare const BatchPasteInput: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect, import("effect/ParseResult").ParseError, never>; /** Type guard for JSONPath */ export declare const isValidJSONPath: (path: string) => path is JSONPath; /** * Export configuration schema */ export declare const ExportConfigSchema: Schema.Struct<{ target: Schema.Literal<["none", "clipboard", "json"]>; jsonPath: Schema.optional>>, "JSONPath">>; }>; export type ExportConfig = typeof ExportConfigSchema.Type; export declare const ExportConfig: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{ readonly target: "none" | "clipboard" | "json"; readonly jsonPath?: (string & import("effect/Brand").Brand<"JSONPath">) | undefined; }, import("effect/ParseResult").ParseError, never>; //# sourceMappingURL=export.schema.d.ts.map