import "../../../schema-BogGdbdV.js";
import "../../../types-DoT0an28.js";
import { SentryApiService } from "../../../client-njqQAP-R.js";
import "../../../errors-CyAWBU2S.js";
import "../../../index-NfFbnYt3.js";
import { AgentToolResponse } from "../../../utils-BV58GdRy.js";
import { z } from "zod";
import * as ai270 from "ai";

//#region src/internal/agents/tools/dataset-fields.d.ts
type DatasetType = "events" | "errors" | "search_issues";
interface DatasetField {
  key: string;
  name: string;
  totalValues: number;
  examples?: string[];
}
interface DatasetFieldsResult {
  dataset: string;
  fields: DatasetField[];
  commonPatterns: Array<{
    pattern: string;
    description: string;
  }>;
}
/**
 * Discover available fields for a dataset by querying Sentry's tags API
 */
declare function discoverDatasetFields(apiService: SentryApiService, organizationSlug: string, dataset: DatasetType, options?: {
  projectId?: string;
}): Promise<DatasetFieldsResult>;
/**
 * Create a tool for discovering available fields in a dataset
 * The tool is pre-bound with the API service and organization configured for the appropriate region
 */
declare function createDatasetFieldsTool(options: {
  apiService: SentryApiService;
  organizationSlug: string;
  dataset: DatasetType;
  projectId?: string;
}): ai270.Tool<z.ZodType<{}, z.ZodTypeDef, {}>, AgentToolResponse<DatasetFieldsResult>> & {
  execute: (args: {}, options: ai270.ToolExecutionOptions) => PromiseLike<AgentToolResponse<DatasetFieldsResult>>;
};
/**
 * Get example values for common fields
 */
declare function getFieldExamples(key: string, dataset: string): string[] | undefined;
/**
 * Get common search patterns for a dataset
 */
declare function getCommonPatterns(dataset: string): {
  pattern: string;
  description: string;
}[];
//# sourceMappingURL=dataset-fields.d.ts.map
//#endregion
export { DatasetField, DatasetFieldsResult, DatasetType, createDatasetFieldsTool, discoverDatasetFields, getCommonPatterns, getFieldExamples };
//# sourceMappingURL=dataset-fields.d.ts.map