codec-ai
Version:
Codec AI - 智能代码生成和编程助手,支持多语言代码生成、项目脚手架、代码转换和优化
45 lines • 1.24 kB
TypeScript
/**
* 日志工具类
*/
export declare class Logger {
static info(message: string): void;
static success(message: string): void;
static warning(message: string): void;
static error(message: string): void;
static debug(message: string): void;
}
/**
* 文件工具类
*/
export declare class FileUtils {
static ensureFileExists(filePath: string): Promise<boolean>;
static readFileSafe(filePath: string): Promise<string | null>;
}
/**
* 验证工具类
*/
export declare class Validator {
static isValidLanguage(language: string): boolean;
static isValidCodeType(type: string): boolean;
static isValidProjectType(type: string): boolean;
}
/**
* 字符串工具类
*/
export declare class StringUtils {
static camelCase(str: string): string;
static pascalCase(str: string): string;
static kebabCase(str: string): string;
static snakeCase(str: string): string;
}
/**
* 进度指示器
*/
export declare class ProgressIndicator {
private static spinners;
private static currentFrame;
static show(message: string): void;
static hide(): void;
static withProgress<T>(message: string, action: () => Promise<T>): Promise<T>;
}
//# sourceMappingURL=index.d.ts.map