/** * Shared Photoshop enum mappers. * * The six Photoshop tools (apply-actions, apply-edits, document-manifest, * edit-text, remove-background, smart-object-replace) all need to translate * the same MCP-facing string literals into the @adobe/photoshop-apis enums. * Before this util those mappers were duplicated 5x in tree, with a subtle * footgun: each `switch` lacked a `default:` arm and silently returned * `undefined` for unknown values, which combined with tests that bypassed * zod meant unknown storage strings could quietly land in the SDK request. * * Centralising them here gives us one place to keep the exhaustive `default:` * that throws on unknown input. */ import { ImageFormatType, StorageType } from "@adobe/photoshop-apis"; export declare const PHOTOSHOP_STORAGE_VALUES: readonly ["external", "azure", "dropbox"]; export type PhotoshopStorageValue = (typeof PHOTOSHOP_STORAGE_VALUES)[number]; export declare const PHOTOSHOP_OUTPUT_FORMATS: readonly ["image/jpeg", "image/png", "image/tiff", "image/vnd.adobe.photoshop"]; export type PhotoshopOutputFormat = (typeof PHOTOSHOP_OUTPUT_FORMATS)[number]; /** * Translate the MCP-facing storage string into the SDK's StorageType enum. * Throws on unknown input — the `default:` arm exists so unknown values * fail loudly rather than silently flowing through as `undefined`. */ export declare function toStorageType(s: PhotoshopStorageValue): StorageType; /** * Translate the MCP-facing output-format MIME string into the SDK's * ImageFormatType enum. Throws on unknown input for the same reason as * toStorageType. */ export declare function toImageFormat(s: PhotoshopOutputFormat): ImageFormatType; //# sourceMappingURL=photoshop-enums.d.ts.map