zp-figma-converter
Version:
Convert Figma designs to various code formats
30 lines • 900 B
TypeScript
/**
* Initialize necessary folders
* @param jsonDir Path to JSON directory
* @param csdDir Path to CSD directory
*/
export declare function initializeFolders(jsonDir: string, csdDir: string): void;
/**
* Create folder if it doesn't exist
* @param folderPath Path to folder
*/
export declare function createFolderIfNotExists(folderPath: string): void;
/**
* Read JSON file
* @param filePath Path to JSON file
* @returns Data from JSON file
*/
export declare function readJsonFile(filePath: string): any;
/**
* Write file
* @param filePath Path to file
* @param content Content to write
*/
export declare function writeFile(filePath: string, content: string): void;
/**
* Check file type based on file name
* @param fileName File name
* @returns File type (scene, layer, node)
*/
export declare function getFileType(fileName: string): string;
//# sourceMappingURL=file-utils.d.ts.map