/** * 判断模型配置是否有效:空字符串与配置界面的占位值「无」均视为未配置。 */ export declare const isModelConfigured: (model: unknown) => model is string; /** * 读取非空字符串:去除首尾空白;空白字符串或非字符串输入返回 undefined。 */ export declare const toNonEmptyString: (value: unknown) => string | undefined; /** * 将任意抛出值转为可记录的文本;Error 优先保留堆栈以便定位。 */ export declare const formatErrorDetails: (error: unknown) => string; /** 将任意抛出值规范为 Error,非 Error 值包装为消息。 */ export declare const toError: (error: unknown) => Error; /** * 提取模型消息正文的纯文本:多分片内容仅拼接 text 分片,其余形式序列化为 JSON。 */ export declare const stringifyModelContent: (content: unknown) => string;