import type { McpContextOptions } from "./context.js";
/**
 * Analytics for the MCP server, sent straight from the CLI.
 *
 * Off when the user says so, by `--skip-telemetry` or TRIGGER_TELEMETRY_DISABLED (the same
 * variable the webapp honours). Tools that report anywhere are hidden while it is off, rather
 * than left to fail at call time.
 */
export declare function isTelemetryEnabled(options: McpContextOptions): boolean;
export type FeedbackEvent = {
    userId: string;
    message: string;
    toolName?: string;
    projectRef?: string;
    cliVersion: string;
};
/**
 * Captures a feedback report and waits for it to leave the machine. A stdio MCP server dies
 * whenever its client closes it, so an unflushed report would be lost while the agent had
 * already been told it was sent.
 */
export declare function captureFeedback(event: FeedbackEvent): Promise<void>;
