import { Bt as createOpenClawCodingTools, Co as disposeRegisteredAgentHarnesses, Ga as createAgentToolResultMiddlewareRunner, Gl as resolveRequesterToolPolicies, Hl as resolveActiveSessionRunId, Ka as createCodexAppServerToolResultExtensionRunner, Kc as abortAndDrainEmbeddedAgentRun, OE as ScheduledToolPolicyContext, RE as TrustedSubagentCompletionHandoff, Vt as createOpenClawCodingToolsAsync, WE as SandboxToolPolicy, Xi as EmbeddedRunAttemptParams, Yt as AgentHarness, Zi as EmbeddedRunAttemptParamsV2, cc as OpenClawAgentToolResult, ic as AgentToolResultMiddlewareEvent, nc as AgentToolResultMiddleware, qc as abortEmbeddedAgentRun, rN as InputProvenance, xn as AgentHarnessV2 } from "../config-contracts--zSNHFlu.js";
import { r as OpenClawConfig } from "../types.openclaw-A0y1x1SF.js";
import { n as AnyAgentTool } from "../common-CE6E6Gcx.js";
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[];
  preparedRequesterPolicy?: Pick<ReturnType<typeof resolveRequesterToolPolicies>, "delegated" | "groupPolicy" | "senderPolicy" | "subagentPolicy" | "inheritedToolPolicy">;
};
type WebSearchToolPolicyResolution = {
  allowed: boolean;
  persistentAllowed: boolean;
};
/** Prepares stored session capability facts, so callers need no warm Gateway projection. */
export declare function resolveWebSearchToolPolicyAsync(params: WebSearchToolPolicyParams): Promise<WebSearchToolPolicyResolution>;
/** Resolves current and sender-independent policy for the managed web_search tool. */
export declare function resolveWebSearchToolPolicy(params: WebSearchToolPolicyParams): WebSearchToolPolicyResolution;
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, createOpenClawCodingToolsAsync, disposeRegisteredAgentHarnesses, resolveActiveSessionRunId as resolveActiveEmbeddedRunSessionId };