import { SentryApiService } from "./client-njqQAP-R.js";
import { z } from "zod";

//#region src/tools/search-events/agent.d.ts
declare const outputSchema: z.ZodEffects<z.ZodObject<{
  dataset: z.ZodEnum<["spans", "errors", "logs"]>;
  query: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
  fields: z.ZodArray<z.ZodString, "many">;
  sort: z.ZodString;
  timeRange: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
    statsPeriod: z.ZodString;
  }, "strip", z.ZodTypeAny, {
    statsPeriod: string;
  }, {
    statsPeriod: string;
  }>, z.ZodObject<{
    start: z.ZodString;
    end: z.ZodString;
  }, "strip", z.ZodTypeAny, {
    start: string;
    end: string;
  }, {
    start: string;
    end: string;
  }>]>>>;
  explanation: z.ZodString;
}, "strip", z.ZodTypeAny, {
  sort: string;
  fields: string[];
  dataset: "spans" | "logs" | "errors";
  explanation: string;
  query?: string | null | undefined;
  timeRange?: {
    statsPeriod: string;
  } | {
    start: string;
    end: string;
  } | null | undefined;
}, {
  sort: string;
  fields: string[];
  dataset: "spans" | "logs" | "errors";
  explanation: string;
  query?: string | null | undefined;
  timeRange?: {
    statsPeriod: string;
  } | {
    start: string;
    end: string;
  } | null | undefined;
}>, {
  sort: string;
  fields: string[];
  dataset: "spans" | "logs" | "errors";
  explanation: string;
  query?: string | null | undefined;
  timeRange?: {
    statsPeriod: string;
  } | {
    start: string;
    end: string;
  } | null | undefined;
}, {
  sort: string;
  fields: string[];
  dataset: "spans" | "logs" | "errors";
  explanation: string;
  query?: string | null | undefined;
  timeRange?: {
    statsPeriod: string;
  } | {
    start: string;
    end: string;
  } | null | undefined;
}>;
interface SearchEventsAgentOptions {
  query: string;
  organizationSlug: string;
  apiService: SentryApiService;
  projectId?: string;
}
/**
 * Search events agent - single entry point for translating natural language queries to Sentry search syntax
 * This returns both the translated query result AND the tool calls made by the agent
 */
declare function searchEventsAgent(options: SearchEventsAgentOptions): Promise<{
  result: z.infer<typeof outputSchema>;
  toolCalls: any[];
}>;
//#endregion
export { SearchEventsAgentOptions, searchEventsAgent };
//# sourceMappingURL=agent-D_WfZ67H.d.ts.map