/** * Shared credential / endpoint resolution for the ByteDance (Volcengine Ark) plugin. * * This plugin uses the **Volcengine Ark Agent Plan** product surface, which has * two independent API surfaces: * * 1. **Vision (image understanding)** — OpenAI-compatible Chat Completions: * Endpoint: ${ARK_BASE_URL}/chat/completions * Auth: Authorization: Bearer ${ARK_API_KEY} * Default: https://ark.cn-beijing.volces.com/api/plan/v3 * * 2. **Web search (Harness "AskEcho Search Infinity")** — separate service * with its own quota and its own API key: * Endpoint: ${ARK_SEARCH_BASE_URL}/search_api/web_search * Auth: Authorization: Bearer ${ARK_SEARCH_API_KEY} * Default: https://open.feedcoopapi.com * * Both keys are read at runtime from configuration or environment variables * — this plugin **never bundles any credentials**. */ export declare const DEFAULT_ARK_BASE_URL = "https://ark.cn-beijing.volces.com/api/plan/v3"; export declare const ARK_API_KEY_ENV_VARS: readonly ["ARK_API_KEY", "VOLCENGINE_API_KEY"]; export declare const ARK_BASE_URL_ENV_VARS: readonly ["ARK_BASE_URL", "VOLCENGINE_BASE_URL"]; export declare const DEFAULT_ARK_SEARCH_BASE_URL = "https://open.feedcoopapi.com"; export declare const ARK_SEARCH_API_KEY_ENV_VARS: readonly ["ARK_SEARCH_API_KEY", "ASK_ECHO_SEARCH_INFINITY_API_KEY", "VOLCENGINE_SEARCH_API_KEY"]; export declare const ARK_SEARCH_BASE_URL_ENV_VARS: readonly ["ARK_SEARCH_BASE_URL"]; export declare const DEFAULT_VISION_MODEL = "doubao-seed-2.0-pro"; export declare const SEARCH_TRAFFIC_TAG = "ark_mcp_server_openclaw_bytedance"; /** Resolve the Ark API key from (in order): explicit override → env vars. */ export declare function resolveArkApiKey(explicit?: unknown): string | undefined; /** Resolve the Ark Base URL with fallback to env vars and the built-in default. */ export declare function resolveArkBaseUrl(explicit?: unknown): string; /** Resolve the AskEcho Search Infinity API key. */ export declare function resolveArkSearchApiKey(explicit?: unknown): string | undefined; /** Resolve the AskEcho Search Infinity base URL. */ export declare function resolveArkSearchBaseUrl(explicit?: unknown): string; /** * Build a full endpoint URL for an Ark API path (e.g. `/responses`, * `/chat/completions`). Path must begin with a leading slash. */ export declare function buildArkEndpoint(baseUrl: string, path: string): string; //# sourceMappingURL=credentials.d.ts.map