import type { ToolGatewayCatalogEntry } from "@opengeni/contracts"; import type { Observability } from "@opengeni/observability"; export type WorkspaceToolGatewayAdapter = "http" | "mcp"; export type WorkspaceToolGatewayOperation = "approval" | "call"; export type WorkspaceToolGatewayOutcome = "ok" | "tool_error" | "approval_required" | "catalog_stale" | "invalid_input" | "not_found" | "rate_limited" | "failed"; /** * Low-cardinality gateway telemetry shared by HTTP/SDK/Site and aggregate MCP * adapters. Tool names, workspace/subject ids, arguments, results, credentials, * and approval tokens are excluded by construction. */ export declare function startWorkspaceToolGatewayObservation(observability: Observability | null | undefined, input: { adapter: WorkspaceToolGatewayAdapter; operation: WorkspaceToolGatewayOperation; source: ToolGatewayCatalogEntry["source"] | "aggregate"; }): { end: (outcome: WorkspaceToolGatewayOutcome) => void; };