/** * 统一的错误处理工具 */ import { ContextStore } from '../../core/index.js'; import { buildTextResponse } from './utils.js'; export interface ErrorContext { lastProject?: { projectName?: string; projectId?: string; } | null; projectRoot: string; contextStore: ContextStore; } /** * 处理项目信息缺失的错误,尝试从上下文推断 */ export declare function handleMissingProjectError(context: ErrorContext): ReturnType; /** * 处理接口信息缺失的错误 */ export declare function handleMissingInterfaceError(context: ErrorContext, interfaceNameOrId?: string): ReturnType; /** * 处理缓存未找到的错误 */ export declare function handleCacheNotFoundError(projectNameOrId: string, context: ErrorContext): ReturnType; //# sourceMappingURL=error-handler.d.ts.map