export interface FetchOptionsProps { /** * 环境变量,可选值为 'node' 或 'browser' */ env: string; /** * 类型 */ type: string; /** * 模型 */ model: string; /** * AK路径 */ AKPath: string; /** * 请求体 */ requestBody: any; /** * 请求头 */ headers: Object; /** * Qianfan 访问密钥 */ qianfanAccessKey: string; /** * Qianfan 密钥 */ qianfanSecretKey: string; /** * Qianfan AK */ qianfanAk: string; /** * Qianfan SK */ qianfanSk: string; /** * Qianfan 基础 URL */ qianfanBaseUrl: string; /** * Qianfan 控制台 API 基础 URL */ qianfanConsoleApiBaseUrl: string; /** * 终端点 */ Endpoint: string; /** * 访问令牌 */ accessToken: string; } /** * 获取版本1的 Fetch 请求选项 * * @param {FetchOptionsProps} props 包含所需参数的对象 * @returns Fetch 请求选项 * @throws 当环境变量为 'node' 且未设置 AK/SK 或 Qianfan_ACCESS_KEY/Qianfan_SECRET_KEY 时,抛出错误 * @throws 当环境变量为 'node' 且未找到对应模型时,抛出错误 * @throws 当环境变量为 'browser' 且 baseUrl 包含了 'aip.baidubce.com' 时,抛出错误 * @throws 当环境变量为 'browser' 且未找到对应模型时,抛出错误 */ export declare const getVersion1FetchOptions: (props: FetchOptionsProps) => Promise;