import { z } from 'zod'; export declare const coerceBoolean: z.ZodPipe, z.ZodBoolean>; export declare const READ_ANNOTATIONS: { readonly readOnlyHint: true; readonly destructiveHint: false; readonly idempotentHint: true; readonly openWorldHint: false; }; export declare const WRITE_ANNOTATIONS: { readonly readOnlyHint: false; readonly destructiveHint: false; readonly idempotentHint: false; readonly openWorldHint: false; }; export declare const WRITE_IDEMPOTENT_ANNOTATIONS: { readonly readOnlyHint: false; readonly destructiveHint: false; readonly idempotentHint: true; readonly openWorldHint: false; }; export declare const DESTRUCTIVE_ANNOTATIONS: { readonly readOnlyHint: false; readonly destructiveHint: true; readonly idempotentHint: false; readonly openWorldHint: false; }; export declare const cmykColorSchema: z.ZodObject<{ type: z.ZodLiteral<"cmyk">; c: z.ZodNumber; m: z.ZodNumber; y: z.ZodNumber; k: z.ZodNumber; }, z.core.$strip>; export declare const rgbColorSchema: z.ZodObject<{ type: z.ZodLiteral<"rgb">; r: z.ZodNumber; g: z.ZodNumber; b: z.ZodNumber; }, z.core.$strip>; export declare const grayColorSchema: z.ZodObject<{ type: z.ZodLiteral<"gray">; value: z.ZodNumber; }, z.core.$strip>; export declare const colorSchema: z.ZodOptional; c: z.ZodNumber; m: z.ZodNumber; y: z.ZodNumber; k: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rgb">; r: z.ZodNumber; g: z.ZodNumber; b: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"gray">; value: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"none">; }, z.core.$strip>], "type">>; export declare const strokeSchema: z.ZodOptional; c: z.ZodNumber; m: z.ZodNumber; y: z.ZodNumber; k: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rgb">; r: z.ZodNumber; g: z.ZodNumber; b: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"gray">; value: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"none">; }, z.core.$strip>], "type">>; width: z.ZodOptional; }, z.core.$strip>>; export declare const FONT_HELPERS_JSX = "\nfunction findFontCandidates(fontName) {\n var candidates = [];\n var searchLower = fontName.toLowerCase();\n for (var fi = 0; fi < app.textFonts.length; fi++) {\n var f = app.textFonts[fi];\n if (f.name.toLowerCase().indexOf(searchLower) >= 0 ||\n (f.family && f.family.toLowerCase().indexOf(searchLower) >= 0)) {\n candidates.push({ name: f.name, family: f.family });\n if (candidates.length >= 10) break;\n }\n }\n return candidates;\n}\n"; export declare const COLOR_HELPERS_JSX = "\nfunction createColor(colorObj) {\n if (!colorObj || colorObj.type === \"none\") return new NoColor();\n if (colorObj.type === \"cmyk\") {\n var c = new CMYKColor();\n c.cyan = colorObj.c;\n c.magenta = colorObj.m;\n c.yellow = colorObj.y;\n c.black = colorObj.k;\n return c;\n }\n if (colorObj.type === \"rgb\") {\n var c = new RGBColor();\n c.red = colorObj.r;\n c.green = colorObj.g;\n c.blue = colorObj.b;\n return c;\n }\n if (colorObj.type === \"gray\") {\n var c = new GrayColor();\n c.gray = colorObj.value;\n return c;\n }\n return new NoColor();\n}\n\nfunction applyOptionalFill(item, colorObj) {\n if (typeof colorObj === \"undefined\") return;\n if (!colorObj || colorObj.type === \"none\") {\n item.filled = false;\n return;\n }\n item.fillColor = createColor(colorObj);\n item.filled = true;\n}\n\nfunction applyStroke(item, strokeObj, defaultStroked) {\n if (!strokeObj) {\n item.stroked = defaultStroked;\n return;\n }\n if (typeof strokeObj.width === \"number\") {\n item.strokeWidth = strokeObj.width;\n }\n if (strokeObj.color && strokeObj.color.type === \"none\") {\n item.stroked = false;\n return;\n }\n if (strokeObj.color) {\n item.strokeColor = createColor(strokeObj.color);\n item.stroked = true;\n }\n}\n"; //# sourceMappingURL=shared.d.ts.map