type TelemetryEventType = "command_start" | "command_success" | "command_error"; type TelemetryEvent = { event: TelemetryEventType; command: string; args: string[]; durationMs?: number; error?: string; configPath?: string; }; /** * Telemetry is opt-out: enabled by default, disabled only by an explicit * signal — the persisted `telemetryEnabled` preference (set via * `scai cli telemetry disable`), the `SITECOREAI_TELEMETRY` env override, * or the cross-tool `DO_NOT_TRACK` standard. On the first interactive run * this surfaces a one-time notice instead of a consent prompt, then * persists `telemetryEnabled: true` so the notice shows exactly once. */ export declare const ensureTelemetryNotice: (configPath?: string) => Promise; export declare const setTelemetryVersion: (version: string) => void; export declare const resolveConfigPathFromArgs: (argv: string[]) => string | undefined; export declare const formatTelemetryCommand: (args: string[]) => string; export declare const recordTelemetry: (event: TelemetryEvent) => Promise; export declare const getTelemetryStatus: (configPath?: string) => { enabled: boolean; source: string; url: string; }; /** * Persist `settings.telemetryEnabled` to the root config. Telemetry is * opt-out (on by default), so disabling is the primary use; enabling * exists for symmetry and to undo a prior disable. */ export declare const setTelemetryEnabled: (configPath: string, enabled: boolean) => void; export {};