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 ai280 from "ai";

//#region src/internal/agents/tools/whoami.d.ts
interface WhoamiResult {
  id: string | number;
  name: string | null;
  email: string;
}
/**
 * Get the current authenticated user's information from Sentry API
 */
declare function getCurrentUser(apiService: SentryApiService): Promise<WhoamiResult>;
/**
 * Create a tool for getting current user information
 * The tool is pre-bound with the API service configured for the appropriate region
 */
declare function createWhoamiTool(options: {
  apiService: SentryApiService;
}): ai280.Tool<z.ZodType<{}, z.ZodTypeDef, {}>, AgentToolResponse<string>> & {
  execute: (args: {}, options: ai280.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
};
//# sourceMappingURL=whoami.d.ts.map

//#endregion
export { WhoamiResult, createWhoamiTool, getCurrentUser };
//# sourceMappingURL=whoami.d.ts.map