import { T as StreamFn } from "./types-BoFHdU9q.js";
import { t as SubsystemLogger } from "./subsystem-CfQVin8T.js";
import { an as ProviderWrapStreamFnContext } from "./plugin-entry-BTRQGtzH.js";
import { E as stripTrailingAnthropicAssistantPrefillWhenThinking } from "./provider-stream-shared-CgKZinLH.js";

//#region extensions/anthropic/stream-wrappers.d.ts
type AnthropicServiceTier = "auto" | "standard_only";
/** Resolve configured Anthropic beta headers from extra model params. */
declare function resolveAnthropicBetas(extraParams: Record<string, unknown> | undefined, _modelId: string): string[] | undefined;
/** Wrap a stream function to merge OpenClaw and configured Anthropic beta headers. */
declare function createAnthropicBetaHeadersWrapper(baseStreamFn: StreamFn | undefined, betas: string[]): StreamFn;
/** Wrap a stream function with the Anthropic fast-mode service tier. */
declare function createAnthropicFastModeWrapper(baseStreamFn: StreamFn | undefined, enabled: boolean): StreamFn;
/** Wrap a stream function with an explicit Anthropic service tier when allowed. */
declare function createAnthropicServiceTierWrapper(baseStreamFn: StreamFn | undefined, serviceTier: AnthropicServiceTier): StreamFn;
/** Wrap a stream function to strip trailing assistant prefill before thinking requests. */
declare function createAnthropicThinkingPrefillWrapper(baseStreamFn: StreamFn | undefined): StreamFn;
/** Resolve Anthropic fast-mode setting from model extra params. */
declare function resolveAnthropicFastMode(extraParams: Record<string, unknown> | undefined): boolean | undefined;
/** Resolve Anthropic service tier from model extra params. */
declare function resolveAnthropicServiceTier(extraParams: Record<string, unknown> | undefined): AnthropicServiceTier | undefined;
/** Compose all Anthropic stream wrappers for one provider/model context. */
declare function wrapAnthropicProviderStream(ctx: ProviderWrapStreamFnContext): StreamFn | undefined;
/** Test-only hooks for Anthropic stream wrapper behavior. */
declare const testing: {
  log: SubsystemLogger;
  stripTrailingAssistantPrefillWhenThinking: typeof stripTrailingAnthropicAssistantPrefillWhenThinking;
};
//#endregion
export { resolveAnthropicBetas as a, testing as c, createAnthropicThinkingPrefillWrapper as i, wrapAnthropicProviderStream as l, createAnthropicFastModeWrapper as n, resolveAnthropicFastMode as o, createAnthropicServiceTierWrapper as r, resolveAnthropicServiceTier as s, createAnthropicBetaHeadersWrapper as t };