/** * TrackEvent class for managing analytics events */ export declare class TrackEvent { private appId; private endpoint; /** * Constructor for TrackEvent * * @param appId - Heap app ID * @param endpoint - Heap endpoint URL */ constructor(appId: string, endpoint: string); /** * Track a command run event * * @param command - The command path that was run */ trackCommandRun(command: string): void; /** * Track init event * * @param clientType - Type of client being configured */ trackInit(clientType?: string): void; /** * Track server run event * */ trackServerRun(): void; /** * Track tool usage event * * @param toolName - The name of the tool being used * @param success - Whether the tool execution was successful */ trackTool(toolName: string, success?: boolean): void; /** * Internal method to track an event * * @param eventName - Name of the event to track * @param customProperties - Additional properties for the event */ private track; /** * Creates an event object */ private createEvent; /** * Sends an event to Heap Analytics */ private sendEvent; /** * Generate a run event name from a command path */ private generateRunEventName; /** * Generate an event name from a command path and action */ private generateEventName; /** * Get common properties for all events */ private getCommonProperties; /** * Determine if tracking should be enabled */ private shouldTrack; /** * Get current timestamp in milliseconds */ private timestamp; } declare const trackEvent: TrackEvent; export default trackEvent;