/** * 带重试机制的异步函数包装器 * - 4xx 客户端错误直接抛出,不重试 * - 其他错误使用带随机抖动的指数退避重试 */ export declare function withRetry(fn: (...args: any[]) => Promise, maxRetries?: number, initialDelay?: number): (...args: any[]) => Promise; /** * 检查字符串是否为 URL */ export declare function isUrl(source: string): boolean; /** * 创建成功响应 */ export declare function createSuccessResponse(data: string): { content: { type: "text"; text: string; }[]; }; /** * 创建错误响应 */ export declare function createErrorResponse(message: string): { content: { type: "text"; text: string; }[]; isError: boolean; }; //# sourceMappingURL=helpers.d.ts.map