import type { Answers } from "./core/questions"; interface AnswersMeta { creatorVersion: string; } type TemplateFunctionReturnType = string | Buffer | undefined; /** * */ export interface TemplateFunction { (answers: Answers & AnswersMeta): TemplateFunctionReturnType | Promise; /** * */ customPath?: string | ((answers: Answers & AnswersMeta) => string); /** * */ noReformat?: boolean; } /** * */ export interface File { /** * */ name: string; /** * */ content: string | Buffer; /** * */ noReformat: boolean; } /** * * @param answers */ export declare function createFiles(answers: Answers): Promise; /** * * @param targetDir * @param files */ export declare function writeFiles(targetDir: string, files: File[]): Promise; /** * * @param file * @param relativeTo * @param binary */ export declare function readFile(file: string, relativeTo: string, binary?: boolean): Promise; /** * Reads a file that resides on the root dir. After compilation, this is one folder higher than at build time * * @param file * @param relativeTo * @param binary */ export declare function readFileFromRootDir(file: string, relativeTo: string, binary?: boolean): Promise; export {};