/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { AnthropicModelConfig } from "./Anthropic_ModelSchema"; /** * Hostnames (or hostname suffixes) accepted for Anthropic `base_url` without * the explicit `trustedBaseUrl` opt-out. */ export declare const ANTHROPIC_ALLOWED_HOSTS: readonly string[]; type AnthropicSDKModule = typeof import("@anthropic-ai/sdk"); type AnthropicClientClass = AnthropicSDKModule["default"]; export declare function loadAnthropicSDK(): Promise; /** * Override the client returned by {@link getClient} so runtime tests can * capture the requests the Anthropic run-fns build without a live SDK, * API key, or network call. Pass `undefined` to restore normal SDK-backed * creation. This lives in the runtime module (not a `vi.mock` of * `@anthropic-ai/sdk`) so it works identically whether the provider resolves * to `src` or the bundled `dist`, and is immune to duplicate SDK copies * across the workspace defeating module-level mocks. */ declare function setAnthropicClientForTests(client: unknown): void; /** * @internal Symbols exported only for use by `@workglow/test`. Not part of the * stable public API. Surfaced on the `ai-runtime` barrel (via `export *`) and * merged into the `/ai` barrel's `_testOnly`. */ export declare const _testOnly: { readonly setAnthropicClientForTests: typeof setAnthropicClientForTests; }; export declare function getClient(model: AnthropicModelConfig | undefined): Promise; export declare function getModelName(model: AnthropicModelConfig | undefined): string; /** * `input` is widened to `object` so every run-fn can hand its own task input * through, including the ones whose schema declares no `maxTokens` port. Those * simply fall through to the configured default. */ export declare function getMaxTokens(input: object, model: AnthropicModelConfig | undefined): number; export {};