import type { Config } from '@oclif/core'; import { PostHog } from 'posthog-node'; /** * Initialize and get the PostHog client * @param debug Whether to log debug information * @returns The PostHog client */ export declare function getClient(debug?: boolean): PostHog; /** * Shutdown the PostHog client * @param debug Whether to log debug information * @returns void */ export declare function shutdown(debug?: boolean): Promise; /** * Track an event in PostHog * @param options The tracking options * @param options.lifecycle The lifecycle event to track ('start', 'complete', 'error') * @param options.distinctId The distinct ID for the user * @param options.command Optional command name (for command tracking) * @param options.flags Optional command flags * @param options.runId Optional run ID * @param options.config Optional config object * @param options.properties Optional additional properties to track * @param options.debug Whether to log debug information */ export declare function track({ command, config, debug, distinctId, flags, lifecycle, message, properties, runId }: { command?: string; config?: Config; debug?: boolean; distinctId: string; flags?: Record; lifecycle: 'complete' | 'error' | 'start'; message?: string; properties?: Record; runId?: string; }): void; /** * Manually capture an exception in PostHog * @param error The error object to capture * @param distinctId The distinct ID for the user * @param properties Optional additional properties to track * @param debug Whether to log debug information */ export declare function captureException({ debug, distinctId, error, properties }: { debug?: boolean; distinctId: string; error: unknown; properties?: Record; }): void;