import { BaseClass } from './base'; import { Command } from './command'; import { Template } from './template'; import { Plugin } from './plugin'; import { Version } from './version'; declare type VersionInfo = { baseDir: string; latest: Record; versions: []; }; export declare type FactoryType = 'git' | 'npm' | 'local'; export declare type FactoryInfo = { id: string; type: FactoryType; from: string; path: string; updatedAt: number; version?: VersionInfo; global?: boolean; }; export declare type FactoryOptions = { rootDir?: string; type?: FactoryType; [key: string]: any; }; export declare abstract class Factory extends BaseClass { options?: FactoryOptions | undefined; abstract id: string; commands: Command[]; templates: Template[]; plugins: Plugin[]; description: string; version: Version | null; _version: string; isGlobal: boolean; baseDir: string; type: FactoryType; constructor(options?: FactoryOptions | undefined); init(baseDir?: string, type?: FactoryType): void; resolveTemplate(templateId: string): Template | undefined; } export {};