import type { StreamFn } from "@mariozechner/pi-agent-core"; import type { SimpleStreamOptions } from "@mariozechner/pi-ai"; import type { SettingsManager } from "@mariozechner/pi-coding-agent"; import type { ThinkLevel } from "../../auto-reply/thinking.js"; import type { OpenClawConfig } from "../../config/config.js"; import { prepareProviderExtraParams as prepareProviderExtraParamsRuntime, wrapProviderStreamFn as wrapProviderStreamFnRuntime } from "../../plugins/provider-runtime.js"; declare const defaultProviderRuntimeDeps: { prepareProviderExtraParams: typeof prepareProviderExtraParamsRuntime; wrapProviderStreamFn: typeof wrapProviderStreamFnRuntime; }; export declare const __testing: { setProviderRuntimeDepsForTest(deps: Partial | undefined): void; resetProviderRuntimeDepsForTest(): void; }; /** * Resolve provider-specific extra params from model config. * Used to pass through stream params like temperature/maxTokens. * * @internal Exported for testing only */ export declare function resolveExtraParams(params: { cfg: OpenClawConfig | undefined; provider: string; modelId: string; agentId?: string; }): Record | undefined; type CacheRetentionStreamOptions = Partial & { cacheRetention?: "none" | "short" | "long"; openaiWsWarmup?: boolean; }; type SupportedTransport = Exclude; export declare function resolvePreparedExtraParams(params: { cfg: OpenClawConfig | undefined; provider: string; modelId: string; extraParamsOverride?: Record; thinkingLevel?: ThinkLevel; agentId?: string; resolvedExtraParams?: Record; }): Record; export declare function resolveAgentTransportOverride(params: { settingsManager: Pick; effectiveExtraParams: Record | undefined; }): SupportedTransport | undefined; /** * Apply extra params (like temperature) to an agent's streamFn. * Also applies verified provider-specific request wrappers, such as OpenRouter attribution. * * @internal Exported for testing */ export declare function applyExtraParamsToAgent(agent: { streamFn?: StreamFn; }, cfg: OpenClawConfig | undefined, provider: string, modelId: string, extraParamsOverride?: Record, thinkingLevel?: ThinkLevel, agentId?: string, workspaceDir?: string): { effectiveExtraParams: Record; }; export {};