#!/usr/bin/env node /** * CLI project configuration interface */ interface ProjectConfig { name: string; sourceRepo: string; docsPath: string; sourceLanguage: string; targetLanguages: string[]; outputDir: string; branch?: string; } /** * Translation CLI application */ declare class TranslationCLI { private projectConfigPath; private globalConfigDir; constructor(); /** * Initialize new translation project */ initProject(): Promise; /** * Copy nextra-template to target location */ copyNextraTemplate(): Promise; /** * Update .gitignore file, add translation-related ignore rules */ updateGitignore(): Promise; /** * Copy .env example file */ copyEnvExample(): Promise; /** * Sync source repository documents */ syncDocuments(force?: boolean): Promise; /** * Translate documents */ translateDocuments(options: { language?: string; file?: string; }): Promise; /** * Display and modify configuration */ manageConfig(): Promise; /** * Edit project configuration */ editProjectConfig(currentConfig: ProjectConfig): Promise; /** * Save project configuration */ saveProjectConfig(config: ProjectConfig): Promise; /** * Load project configuration */ loadProjectConfig(): Promise; /** * Translate _meta.ts files */ translateMetaFiles(options: { language?: string; file?: string; }): Promise; /** * Show status information */ showStatus(): Promise; } declare function main(): Promise; export { TranslationCLI, main };