// Analytics removed. All calls are no-ops.
// Opaque marker type preserved so callsites type-check until scrubbed.

export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = never

type LogEventMetadata = {
  [key: string]:
    | boolean
    | number
    | string
    | AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
    | undefined
}

export function logEvent(_name: string, _metadata?: LogEventMetadata): void {}

export function attachAnalyticsSink(
  _sink: (name: string, metadata?: LogEventMetadata) => void,
): void {}

export function stripProtoFields<T extends Record<string, unknown>>(obj: T): T {
  return obj
}

export function flushQueuedEvents(): void {}
