import { i as AgentToolResult } from "../../index-BLofIBp_.js";
import "../../agent-core-Dn0iWhef.js";
import { Type } from "typebox";
//#region extensions/xai/x-search-tool-shared.d.ts
export declare const X_SEARCH_HANDLE_LIMIT = 20;
export declare function buildMissingXSearchApiKeyPayload(): {
  error: string;
  message: string;
  docs: string;
};
export declare function createXSearchToolDefinition(execute: (toolCallId: string, args: Record<string, unknown>, signal?: AbortSignal) => Promise<AgentToolResult<unknown>>): {
  label: string;
  name: string;
  resultContentSource: "network";
  description: string;
  parameters: Type.TObject<{
    query: Type.TString;
    allowed_x_handles: Type.TOptional<Type.TArray<Type.TString>>;
    excluded_x_handles: Type.TOptional<Type.TArray<Type.TString>>;
    from_date: Type.TOptional<Type.TString>;
    to_date: Type.TOptional<Type.TString>;
    enable_image_understanding: Type.TOptional<Type.TBoolean>;
    enable_video_understanding: Type.TOptional<Type.TBoolean>;
  }>;
  execute: (toolCallId: string, args: Record<string, unknown>, signal?: AbortSignal) => Promise<AgentToolResult<unknown>>;
};
//#endregion