import { BaseClass } from './base'; import { Factory } from './factory'; declare type GlobRule = { glob?: string; ignores?: any[]; }; export declare abstract class Template extends BaseClass { factory: Factory; [key: string]: any; abstract id: string; description: string; path: string; templates: Template[]; protected data: Record; protected rule: GlobRule; protected targetDir: string; protected _debugPrefix: string; private rootPath; constructor(factory: Factory); get globPath(): string; resolveTemplate(templateId: string): Template | undefined; run(data: Record, flags: any): Promise; private prepare; protected gathering(flags: any): Promise; private afterGathering; protected checking(): Promise; private afterChecking; protected writing(): Promise; private afterWriting; protected installing(flags: any): Promise; private afterInstalling; protected ending(): Promise; private afterEnding; /** * output -> ${this.targetDir}/src/routes/index.ts * @param srcPath file entry path */ private getOutputPath; /** * determine the srcPath file is ignored * @param srcPath file entry path */ private isIgnoreFile; /** * copy or render file from srcPath to outputPath, .ejs file will be render by ejs * @param srcPath file entry path * @param outputPath file output path */ private writeFile; /** * copy or render files * @param files file path list */ writingFiles(files: string[]): Promise; } export {};