import { Ca as abortAndDrainEmbeddedAgentRun, Da as resolveActiveEmbeddedRunSessionId, Gc as AgentToolResultMiddleware, K as createAgentToolResultMiddlewareRunner, Ki as AgentHarnessV2, Pn as createOpenClawCodingTools, Yi as SandboxToolPolicy, Zc as OpenClawAgentToolResult, ao as ScheduledToolPolicyContext, bi as AgentHarness, ht as disposeRegisteredAgentHarnesses, i as EmbeddedRunAttemptParamsV2, il as TrustedSubagentCompletionHandoff, q as createCodexAppServerToolResultExtensionRunner, qc as AgentToolResultMiddlewareEvent, r as EmbeddedRunAttemptParams, wa as abortEmbeddedAgentRun } from "../agent-harness-runtime-Dve5eW1E.js";
import { r as OpenClawConfig } from "../types.openclaw-Cv-8Xdxq.js";
import { ft as InputProvenance } from "../templating-BHXmF-hZ.js";
import { n as AnyAgentTool } from "../common-D8e0NYr2.js";
//#region src/agents/web-search-tool-policy.d.ts
type WebSearchToolPolicyParams = {
  webSearchEnabled?: boolean;
  config?: OpenClawConfig;
  modelProvider?: string;
  modelId?: string;
  agentId?: string;
  sessionKey?: string;
  sessionId?: string;
  sandboxToolPolicy?: SandboxToolPolicy;
  messageProvider?: string;
  agentAccountId?: string | null;
  groupId?: string | null;
  groupChannel?: string | null;
  groupSpace?: string | null;
  spawnedBy?: string | null;
  senderId?: string | null;
  senderName?: string | null;
  senderUsername?: string | null;
  senderE164?: string | null;
  inputProvenance?: InputProvenance;
  trustedInternalHandoff?: TrustedSubagentCompletionHandoff;
  scheduledToolPolicy?: ScheduledToolPolicyContext;
  runtimeToolAllowlist?: string[];
};
type WebSearchToolPolicyResolution = {
  allowed: boolean;
  persistentAllowed: boolean;
};
/** Resolves current and sender-independent policy for the managed web_search tool. */
export declare function resolveWebSearchToolPolicy(params: WebSearchToolPolicyParams): WebSearchToolPolicyResolution;
//#endregion
export { type AgentHarness, type AgentHarnessV2, type AgentToolResultMiddleware, type AgentToolResultMiddlewareEvent, type AnyAgentTool, type EmbeddedRunAttemptParams, type EmbeddedRunAttemptParamsV2, type OpenClawAgentToolResult, abortEmbeddedAgentRun as abortAgentHarnessRun, abortAndDrainEmbeddedAgentRun as abortAndDrainAgentHarnessRun, createAgentToolResultMiddlewareRunner, createCodexAppServerToolResultExtensionRunner, createOpenClawCodingTools, disposeRegisteredAgentHarnesses, resolveActiveEmbeddedRunSessionId };