import {
  C as DetachedRunAgentToolResult,
  S as DetachedAgentToolConfig,
  T as RunAgentToolResult,
  _ as AgentToolRunState,
  a as AgentToolEvent,
  b as AgentToolTerminalStatus,
  c as AgentToolFailure,
  g as AgentToolRunPart,
  h as AgentToolRunInspection,
  i as AgentToolDisplayMetadata,
  l as AgentToolInterruptedReason,
  m as AgentToolRunInfo,
  o as AgentToolEventMessage,
  r as AgentToolChildAdapter,
  s as AgentToolEventState,
  u as AgentToolLifecycleResult,
  v as AgentToolRunStatus,
  w as RunAgentToolOptions,
  x as ChatCapableAgentClass,
  y as AgentToolStoredChunk
} from "./agent-tool-types-BC-WFlsz.js";
import { Tool } from "ai";

//#region src/agent-tools.d.ts
type SchemaLike<T = unknown> = {
  parse(value: unknown): T;
};
type AgentToolFactoryOptions<Output = unknown> = {
  description: string;
  inputSchema: unknown;
  outputSchema?: SchemaLike<Output>;
  displayName?: string;
  icon?: string;
  display?: AgentToolDisplayMetadata;
};
/**
 * Create an AI SDK tool that dispatches a chat-capable sub-agent through
 * `Agent.runAgentTool`.
 */
declare function agentTool<Input = unknown, Output = unknown>(
  cls: ChatCapableAgentClass,
  options: AgentToolFactoryOptions<Output>
): Tool<Input, string | Output | AgentToolFailure>;
//#endregion
export {
  type AgentToolChildAdapter,
  type AgentToolDisplayMetadata,
  type AgentToolEvent,
  type AgentToolEventMessage,
  type AgentToolEventState,
  type AgentToolFactoryOptions,
  type AgentToolFailure,
  type AgentToolInterruptedReason,
  type AgentToolLifecycleResult,
  type AgentToolRunInfo,
  type AgentToolRunInspection,
  type AgentToolRunPart,
  type AgentToolRunState,
  type AgentToolRunStatus,
  type AgentToolStoredChunk,
  type AgentToolTerminalStatus,
  type ChatCapableAgentClass,
  type DetachedAgentToolConfig,
  type DetachedRunAgentToolResult,
  type RunAgentToolOptions,
  type RunAgentToolResult,
  agentTool
};
//# sourceMappingURL=agent-tools.d.ts.map
