wgc
Version:
The official CLI tool to manage the GraphQL Federation Platform Cosmo
18 lines (17 loc) • 571 B
TypeScript
/**
* Initialize PostHog client
* This should be called once at the start of the CLI
*/
export declare const initTelemetry: () => void;
/**
* Capture a usage event
*/
export declare const capture: (eventName: string, properties?: Record<string, any>) => Promise<void>;
/**
* Capture a command failure event with error details
*/
export declare const captureCommandFailure: (command: string, error: Error | string) => Promise<void>;
/**
* Shutdown PostHog client - should be called before CLI exits
*/
export declare const shutdownTelemetry: () => Promise<void>;