export type CLI_ORIGIN = 'mastra-cloud' | 'oss';
export declare function getAnalytics(): PosthogAnalytics | null;
export declare function setAnalytics(instance: PosthogAnalytics): void;
export declare class PosthogAnalytics {
    private sessionId;
    private client?;
    private distinctId;
    private version;
    private packageManager;
    constructor({ version, apiKey, host, }: {
        version: string;
        apiKey: string;
        host: string;
    });
    private writeCliConfig;
    private initializePostHog;
    private isTelemetryEnabled;
    private getDistinctId;
    private getSystemProperties;
    private getDurationMs;
    private captureSessionStart;
    trackEvent(eventName: string, properties?: Record<string, any>): void;
    trackCommand(options: {
        command: string;
        args?: Record<string, unknown>;
        durationMs?: number;
        status?: 'success' | 'error';
        error?: string;
        origin?: CLI_ORIGIN;
    }): void;
    trackCommandExecution<T>({ command, args, execution, origin, }: {
        command: string;
        args: Record<string, unknown>;
        execution: () => Promise<T>;
        origin?: CLI_ORIGIN;
    }): Promise<T>;
    shutdown(timeoutMs?: number): Promise<void>;
}
//# sourceMappingURL=index.d.ts.map