import { z } from 'zod'; import { ComponentTypeSignature } from '../react/parser'; import { Intrinsic } from './intrinsics'; import { SyntaxHighlightLanguage } from './label_language_mapping'; export type ParseRequestPayload = { mode: 'PARSE'; paths: string[]; config: Record; verbose?: boolean; }; export declare const ParserExecutableMessages: z.ZodArray, z.ZodLiteral<"INFO">, z.ZodLiteral<"WARN">, z.ZodLiteral<"ERROR">]>; type: z.ZodOptional; message: z.ZodString; sourceLocation: z.ZodOptional; }, "strip", z.ZodTypeAny, { file: string; line?: number | undefined; }, { file: string; line?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { level: "DEBUG" | "ERROR" | "INFO" | "WARN"; type?: string | undefined; message: string; sourceLocation?: { file: string; line?: number | undefined; } | undefined; }, { level: "DEBUG" | "ERROR" | "INFO" | "WARN"; type?: string | undefined; message: string; sourceLocation?: { file: string; line?: number | undefined; } | undefined; }>, "many">; export declare const ParseResponsePayload: z.ZodObject<{ docs: z.ZodArray; variant: z.ZodOptional>; source: z.ZodOptional; sourceLocation: z.ZodOptional>; _codeConnectFilePath: z.ZodOptional; template: z.ZodString; templateData: z.ZodObject<{ props: z.ZodRecord; imports: z.ZodOptional>; nestable: z.ZodOptional; }, "strip", z.ZodTypeAny, { props: Record; imports?: string[] | undefined; nestable?: boolean | undefined; }, { props: Record; imports?: string[] | undefined; nestable?: boolean | undefined; }>; language: z.ZodNativeEnum; label: z.ZodString; links: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { figmaNode: string; component?: string | undefined; variant?: Record | undefined; source?: string | undefined; sourceLocation?: { line: number; } | undefined; _codeConnectFilePath?: string | undefined; template: string; templateData: { props: Record; imports?: string[] | undefined; nestable?: boolean | undefined; }; language: SyntaxHighlightLanguage; label: string; links?: { name: string; url: string; }[] | undefined; }, { figmaNode: string; component?: string | undefined; variant?: Record | undefined; source?: string | undefined; sourceLocation?: { line: number; } | undefined; _codeConnectFilePath?: string | undefined; template: string; templateData: { props: Record; imports?: string[] | undefined; nestable?: boolean | undefined; }; language: SyntaxHighlightLanguage; label: string; links?: { name: string; url: string; }[] | undefined; }>, "many">; messages: z.ZodArray, z.ZodLiteral<"INFO">, z.ZodLiteral<"WARN">, z.ZodLiteral<"ERROR">]>; type: z.ZodOptional; message: z.ZodString; sourceLocation: z.ZodOptional; }, "strip", z.ZodTypeAny, { file: string; line?: number | undefined; }, { file: string; line?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { level: "DEBUG" | "ERROR" | "INFO" | "WARN"; type?: string | undefined; message: string; sourceLocation?: { file: string; line?: number | undefined; } | undefined; }, { level: "DEBUG" | "ERROR" | "INFO" | "WARN"; type?: string | undefined; message: string; sourceLocation?: { file: string; line?: number | undefined; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { docs: { figmaNode: string; component?: string | undefined; variant?: Record | undefined; source?: string | undefined; sourceLocation?: { line: number; } | undefined; _codeConnectFilePath?: string | undefined; template: string; templateData: { props: Record; imports?: string[] | undefined; nestable?: boolean | undefined; }; language: SyntaxHighlightLanguage; label: string; links?: { name: string; url: string; }[] | undefined; }[]; messages: { level: "DEBUG" | "ERROR" | "INFO" | "WARN"; type?: string | undefined; message: string; sourceLocation?: { file: string; line?: number | undefined; } | undefined; }[]; }, { docs: { figmaNode: string; component?: string | undefined; variant?: Record | undefined; source?: string | undefined; sourceLocation?: { line: number; } | undefined; _codeConnectFilePath?: string | undefined; template: string; templateData: { props: Record; imports?: string[] | undefined; nestable?: boolean | undefined; }; language: SyntaxHighlightLanguage; label: string; links?: { name: string; url: string; }[] | undefined; }[]; messages: { level: "DEBUG" | "ERROR" | "INFO" | "WARN"; type?: string | undefined; message: string; sourceLocation?: { file: string; line?: number | undefined; } | undefined; }[]; }>; export type PropMapping = Record; export type ComponentPropertyDefinition = { type: 'BOOLEAN' | 'INSTANCE_SWAP' | 'TEXT' | 'VARIANT'; defaultValue: boolean | string; variantOptions?: string[]; }; export interface FigmaConnectionComponent { figmaNodeUrl: string; id: string; name: string; type: 'COMPONENT' | 'COMPONENT_SET'; componentPropertyDefinitions: Record; } export interface FigmaConnection { sourceExport?: string; propMapping?: PropMapping; reactTypeSignature?: ComponentTypeSignature; component: FigmaConnectionComponent; } export type CreateRequestPayload = { mode: 'CREATE'; destinationDir: string; destinationFile?: string; sourceFilepath?: string; sourceExport?: string; propMapping?: PropMapping; reactTypeSignature?: ComponentTypeSignature; component: { figmaNodeUrl: string; id: string; name: string; normalizedName: string; type: 'COMPONENT' | 'COMPONENT_SET'; componentPropertyDefinitions: Record; }; config: Record; verbose?: boolean; }; export type CreateRequestPayloadMulti = { mode: 'CREATE'; destinationDir: string; destinationFile?: string; sourceFilepath?: string; normalizedName: string; figmaConnections: FigmaConnection[]; config: Record; }; export declare const CreateResponsePayload: z.ZodObject<{ createdFiles: z.ZodArray, "many">; messages: z.ZodArray, z.ZodLiteral<"INFO">, z.ZodLiteral<"WARN">, z.ZodLiteral<"ERROR">]>; type: z.ZodOptional; message: z.ZodString; sourceLocation: z.ZodOptional; }, "strip", z.ZodTypeAny, { file: string; line?: number | undefined; }, { file: string; line?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { level: "DEBUG" | "ERROR" | "INFO" | "WARN"; type?: string | undefined; message: string; sourceLocation?: { file: string; line?: number | undefined; } | undefined; }, { level: "DEBUG" | "ERROR" | "INFO" | "WARN"; type?: string | undefined; message: string; sourceLocation?: { file: string; line?: number | undefined; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { createdFiles: { filePath: string; }[]; messages: { level: "DEBUG" | "ERROR" | "INFO" | "WARN"; type?: string | undefined; message: string; sourceLocation?: { file: string; line?: number | undefined; } | undefined; }[]; }, { createdFiles: { filePath: string; }[]; messages: { level: "DEBUG" | "ERROR" | "INFO" | "WARN"; type?: string | undefined; message: string; sourceLocation?: { file: string; line?: number | undefined; } | undefined; }[]; }>; export type ParserRequestPayload = ParseRequestPayload | CreateRequestPayload; //# sourceMappingURL=parser_executable_types.d.ts.map