import type { MCPServerLike, McpEvent, SessionInfo } from '../types'; import type { LoggerFn } from './logger'; /** * Materializes an `McpEvent` against the server's tracking data + session info, * then hands it to the `McpEventSink` (wrapping the user's posthog-node client) for the * sanitize/truncate/beforeSend pipeline and capture. No-ops if the server isn't tracked or * no PostHog client is attached — not passing `posthog` is how you turn capture off. * * Returns the sink's capture promise so the user-facing `capture()` can await it. * Auto-capture callers (tool calls, listings, identify) intentionally ignore the * return value, keeping the tool path isolated from analytics latency/errors. */ export declare function captureEvent(server: MCPServerLike, eventInput: McpEvent, logger: LoggerFn, requestAttribution?: SessionInfo): Promise | undefined; //# sourceMappingURL=capture.d.ts.map