/** * Remote template fetcher for AIM Studio CLI * * Fetches spec templates from the official docs repository: * https://github.com/five-five0909/aim-studio/tree/main/marketplace */ export interface SpecTemplate { id: string; type: string; name: string; description?: string; path: string; tags?: string[]; } export type TemplateStrategy = "skip" | "overwrite" | "append"; /** * Fetch available templates from the remote index * Returns empty array on network error (allows fallback to blank) */ export declare function fetchTemplateIndex(): Promise; /** * Find a template by ID from the index */ export declare function findTemplate(templateId: string): Promise; /** * Get the installation path for a template type */ export declare function getInstallPath(cwd: string, templateType: string): string; /** * Download a template with the specified strategy * * @param templatePath - Path in the docs repo (e.g., "marketplace/specs/electron-fullstack") * @param destDir - Destination directory * @param strategy - How to handle existing directory: skip, overwrite, or append * @returns true if template was downloaded, false if skipped */ export declare function downloadWithStrategy(templatePath: string, destDir: string, strategy: TemplateStrategy): Promise; /** * Download a template by ID * * @param cwd - Current working directory * @param templateId - Template ID from the index * @param strategy - How to handle existing directory * @returns Object with success status and message */ export declare function downloadTemplateById(cwd: string, templateId: string, strategy: TemplateStrategy): Promise<{ success: boolean; message: string; skipped?: boolean; }>; //# sourceMappingURL=template-fetcher.d.ts.map