import { CodeConnectJSON } from './figma_connect'; import { CodeConnectConfig } from './project'; /** * Thrown when a raw template file has no `// url=` directive but contains the * string `codeProperties`. These files (e.g. Make's code component property * definitions) are not Code Connect, so callers skip them with a log instead of * failing. Every other file is handled exactly as before — a missing url is * still a hard error. */ export declare class CodePropertiesError extends Error { constructor(message: string); } /** * Returns true if the file content looks like a raw template file, i.e. its * leading comment block contains a `// url=`, `// component=`, or `// source=` * directive. Used to distinguish raw `.figma.ts` templates from React/HTML * Code Connect files that share the same extension. */ export declare function isRawTemplate(content: string): boolean; export interface BatchOverrides { url: string; source?: string; component?: string; batchData: Record; batchFilePath: string; } export declare function parseRawFile(filePath: string, label: string | undefined, config?: CodeConnectConfig, dir?: string, batchOverrides?: BatchOverrides): CodeConnectJSON; //# sourceMappingURL=raw_templates.d.ts.map