import { z } from 'zod'; /** * Unified Analytics Configuration * * Centralizes all analytics platform configurations for MyArmy. * Used by all @akson API packages for consistent configuration management. */ declare const BaseAnalyticsConfigSchema: z.ZodObject< { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; }, { environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; } >; declare const GTMConfigSchema: z.ZodObject< { accountId: z.ZodString; containerId: z.ZodString; containerPublicId: z.ZodString; workspaceId: z.ZodOptional; googleAdsId: z.ZodString; serviceAccount: z.ZodObject< { email: z.ZodString; keyFile: z.ZodString; }, 'strip', z.ZodTypeAny, { email: string; keyFile: string; }, { email: string; keyFile: string; } >; conversionLabels: z.ZodObject< { form: z.ZodString; whatsapp: z.ZodString; purchase: z.ZodOptional; add_to_cart: z.ZodOptional; }, 'strip', z.ZodTypeAny, { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }, { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; } >; } & { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; accountId: string; containerId: string; containerPublicId: string; googleAdsId: string; serviceAccount: { email: string; keyFile: string; }; conversionLabels: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; workspaceId?: string | undefined; }, { accountId: string; containerId: string; containerPublicId: string; googleAdsId: string; serviceAccount: { email: string; keyFile: string; }; conversionLabels: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; workspaceId?: string | undefined; } >; declare const GoogleAdsConfigSchema: z.ZodObject< { customerId: z.ZodString; managerId: z.ZodOptional; developerToken: z.ZodString; loginCustomerId: z.ZodOptional; serviceAccount: z.ZodObject< { email: z.ZodString; keyFile: z.ZodString; }, 'strip', z.ZodTypeAny, { email: string; keyFile: string; }, { email: string; keyFile: string; } >; conversionActions: z.ZodObject< { whatsapp: z.ZodString; form: z.ZodString; purchase: z.ZodOptional; add_to_cart: z.ZodOptional; }, 'strip', z.ZodTypeAny, { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }, { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; } >; apiVersion: z.ZodDefault; } & { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; serviceAccount: { email: string; keyFile: string; }; customerId: string; developerToken: string; conversionActions: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; apiVersion: string; managerId?: string | undefined; loginCustomerId?: string | undefined; }, { serviceAccount: { email: string; keyFile: string; }; customerId: string; developerToken: string; conversionActions: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; managerId?: string | undefined; loginCustomerId?: string | undefined; apiVersion?: string | undefined; } >; declare const PostHogConfigSchema: z.ZodObject< { projectApiKey: z.ZodString; host: z.ZodDefault; personalApiKey: z.ZodOptional; projectId: z.ZodOptional; batchSize: z.ZodDefault; flushAt: z.ZodDefault; flushInterval: z.ZodDefault; } & { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; projectApiKey: string; host: string; batchSize: number; flushAt: number; flushInterval: number; projectId?: number | undefined; personalApiKey?: string | undefined; }, { projectApiKey: string; projectId?: number | undefined; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; host?: string | undefined; personalApiKey?: string | undefined; batchSize?: number | undefined; flushAt?: number | undefined; flushInterval?: number | undefined; } >; declare const MetaConfigSchema: z.ZodObject< { pixelId: z.ZodString; appId: z.ZodString; accessToken: z.ZodOptional; testEventCode: z.ZodOptional; apiVersion: z.ZodDefault; } & { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; apiVersion: string; pixelId: string; appId: string; accessToken?: string | undefined; testEventCode?: string | undefined; }, { pixelId: string; appId: string; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; apiVersion?: string | undefined; accessToken?: string | undefined; testEventCode?: string | undefined; } >; declare const GSCConfigSchema: z.ZodObject< { siteUrl: z.ZodString; serviceAccount: z.ZodObject< { email: z.ZodString; keyFile: z.ZodString; }, 'strip', z.ZodTypeAny, { email: string; keyFile: string; }, { email: string; keyFile: string; } >; } & { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; serviceAccount: { email: string; keyFile: string; }; siteUrl: string; }, { serviceAccount: { email: string; keyFile: string; }; siteUrl: string; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; } >; declare const AnalyticsConfigSchema: z.ZodObject< { gtm: z.ZodObject< { accountId: z.ZodString; containerId: z.ZodString; containerPublicId: z.ZodString; workspaceId: z.ZodOptional; googleAdsId: z.ZodString; serviceAccount: z.ZodObject< { email: z.ZodString; keyFile: z.ZodString; }, 'strip', z.ZodTypeAny, { email: string; keyFile: string; }, { email: string; keyFile: string; } >; conversionLabels: z.ZodObject< { form: z.ZodString; whatsapp: z.ZodString; purchase: z.ZodOptional; add_to_cart: z.ZodOptional; }, 'strip', z.ZodTypeAny, { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }, { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; } >; } & { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; accountId: string; containerId: string; containerPublicId: string; googleAdsId: string; serviceAccount: { email: string; keyFile: string; }; conversionLabels: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; workspaceId?: string | undefined; }, { accountId: string; containerId: string; containerPublicId: string; googleAdsId: string; serviceAccount: { email: string; keyFile: string; }; conversionLabels: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; workspaceId?: string | undefined; } >; googleAds: z.ZodObject< { customerId: z.ZodString; managerId: z.ZodOptional; developerToken: z.ZodString; loginCustomerId: z.ZodOptional; serviceAccount: z.ZodObject< { email: z.ZodString; keyFile: z.ZodString; }, 'strip', z.ZodTypeAny, { email: string; keyFile: string; }, { email: string; keyFile: string; } >; conversionActions: z.ZodObject< { whatsapp: z.ZodString; form: z.ZodString; purchase: z.ZodOptional; add_to_cart: z.ZodOptional; }, 'strip', z.ZodTypeAny, { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }, { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; } >; apiVersion: z.ZodDefault; } & { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; serviceAccount: { email: string; keyFile: string; }; customerId: string; developerToken: string; conversionActions: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; apiVersion: string; managerId?: string | undefined; loginCustomerId?: string | undefined; }, { serviceAccount: { email: string; keyFile: string; }; customerId: string; developerToken: string; conversionActions: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; managerId?: string | undefined; loginCustomerId?: string | undefined; apiVersion?: string | undefined; } >; postHog: z.ZodObject< { projectApiKey: z.ZodString; host: z.ZodDefault; personalApiKey: z.ZodOptional; projectId: z.ZodOptional; batchSize: z.ZodDefault; flushAt: z.ZodDefault; flushInterval: z.ZodDefault; } & { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; projectApiKey: string; host: string; batchSize: number; flushAt: number; flushInterval: number; projectId?: number | undefined; personalApiKey?: string | undefined; }, { projectApiKey: string; projectId?: number | undefined; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; host?: string | undefined; personalApiKey?: string | undefined; batchSize?: number | undefined; flushAt?: number | undefined; flushInterval?: number | undefined; } >; meta: z.ZodObject< { pixelId: z.ZodString; appId: z.ZodString; accessToken: z.ZodOptional; testEventCode: z.ZodOptional; apiVersion: z.ZodDefault; } & { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; apiVersion: string; pixelId: string; appId: string; accessToken?: string | undefined; testEventCode?: string | undefined; }, { pixelId: string; appId: string; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; apiVersion?: string | undefined; accessToken?: string | undefined; testEventCode?: string | undefined; } >; gsc: z.ZodObject< { siteUrl: z.ZodString; serviceAccount: z.ZodObject< { email: z.ZodString; keyFile: z.ZodString; }, 'strip', z.ZodTypeAny, { email: string; keyFile: string; }, { email: string; keyFile: string; } >; } & { environment: z.ZodDefault>; debug: z.ZodDefault; retryAttempts: z.ZodDefault; timeout: z.ZodDefault; }, 'strip', z.ZodTypeAny, { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; serviceAccount: { email: string; keyFile: string; }; siteUrl: string; }, { serviceAccount: { email: string; keyFile: string; }; siteUrl: string; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; } >; }, 'strip', z.ZodTypeAny, { gtm: { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; accountId: string; containerId: string; containerPublicId: string; googleAdsId: string; serviceAccount: { email: string; keyFile: string; }; conversionLabels: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; workspaceId?: string | undefined; }; googleAds: { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; serviceAccount: { email: string; keyFile: string; }; customerId: string; developerToken: string; conversionActions: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; apiVersion: string; managerId?: string | undefined; loginCustomerId?: string | undefined; }; postHog: { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; projectApiKey: string; host: string; batchSize: number; flushAt: number; flushInterval: number; projectId?: number | undefined; personalApiKey?: string | undefined; }; meta: { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; apiVersion: string; pixelId: string; appId: string; accessToken?: string | undefined; testEventCode?: string | undefined; }; gsc: { environment: 'development' | 'production' | 'staging'; debug: boolean; retryAttempts: number; timeout: number; serviceAccount: { email: string; keyFile: string; }; siteUrl: string; }; }, { gtm: { accountId: string; containerId: string; containerPublicId: string; googleAdsId: string; serviceAccount: { email: string; keyFile: string; }; conversionLabels: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; workspaceId?: string | undefined; }; googleAds: { serviceAccount: { email: string; keyFile: string; }; customerId: string; developerToken: string; conversionActions: { form: string; whatsapp: string; purchase?: string | undefined; add_to_cart?: string | undefined; }; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; managerId?: string | undefined; loginCustomerId?: string | undefined; apiVersion?: string | undefined; }; postHog: { projectApiKey: string; projectId?: number | undefined; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; host?: string | undefined; personalApiKey?: string | undefined; batchSize?: number | undefined; flushAt?: number | undefined; flushInterval?: number | undefined; }; meta: { pixelId: string; appId: string; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; apiVersion?: string | undefined; accessToken?: string | undefined; testEventCode?: string | undefined; }; gsc: { serviceAccount: { email: string; keyFile: string; }; siteUrl: string; environment?: 'development' | 'production' | 'staging' | undefined; debug?: boolean | undefined; retryAttempts?: number | undefined; timeout?: number | undefined; }; } >; type AnalyticsConfig = z.infer; type GTMConfig = z.infer; type GoogleAdsConfig = z.infer; type PostHogConfig = z.infer; type MetaConfig = z.infer; type GSCConfig = z.infer; declare const DEFAULT_ANALYTICS_CONFIG: AnalyticsConfig; /** * Load unified analytics configuration from environment variables * with fallback to defaults */ declare function loadAnalyticsConfig(): AnalyticsConfig; /** * Event naming constants based on the standardization proposal */ declare const LEAD_GENERATION_EVENTS: { readonly LEAD_PAGE_VIEW: 'lead_page_view'; readonly LEAD_CONTENT_VIEW: 'lead_content_view'; readonly LEAD_INQUIRY_STARTED: 'lead_inquiry_started'; readonly LEAD_QUALIFICATION: 'lead_qualification'; readonly LEAD_CONTACT_INFO: 'lead_contact_info'; readonly LEAD_WHATSAPP_CONTACT: 'lead_whatsapp_contact'; readonly LEAD_FORM_SUBMITTED: 'lead_form_submitted'; readonly LEAD_SCROLL: 'lead_scroll'; readonly LEAD_TEMPLATE_DOWNLOAD: 'lead_template_download'; readonly LEAD_SIZE_GUIDE: 'lead_size_guide'; readonly LEAD_GALLERY_VIEW: 'lead_gallery_view'; readonly LEAD_QUOTE_REQUEST: 'lead_quote_request'; }; declare const ECOMMERCE_EVENTS: { readonly VIEW_ITEM: 'view_item'; readonly VIEW_ITEM_LIST: 'view_item_list'; readonly ADD_TO_CART: 'add_to_cart'; readonly REMOVE_FROM_CART: 'remove_from_cart'; readonly BEGIN_CHECKOUT: 'begin_checkout'; readonly ADD_PAYMENT_INFO: 'add_payment_info'; readonly ADD_SHIPPING_INFO: 'add_shipping_info'; readonly PURCHASE: 'purchase'; readonly PAGE_VIEW: 'page_view'; readonly SCROLL: 'scroll'; readonly CLICK: 'click'; readonly FILE_DOWNLOAD: 'file_download'; readonly VIDEO_PLAY: 'video_play'; readonly SEARCH: 'search'; readonly GENERATE_LEAD: 'generate_lead'; readonly CONTACT_METHOD: 'contact_method'; readonly FORM_SUBMIT: 'form_submit'; readonly QUOTE_REQUEST: 'quote_request'; readonly BADGE_INTEREST: 'badge_interest'; readonly CUSTOMIZATION_START: 'customization_start'; readonly SIZE_GUIDE_VIEW: 'size_guide_view'; readonly BULK_INQUIRY: 'bulk_inquiry'; }; declare const ALL_EVENTS: { readonly VIEW_ITEM: 'view_item'; readonly VIEW_ITEM_LIST: 'view_item_list'; readonly ADD_TO_CART: 'add_to_cart'; readonly REMOVE_FROM_CART: 'remove_from_cart'; readonly BEGIN_CHECKOUT: 'begin_checkout'; readonly ADD_PAYMENT_INFO: 'add_payment_info'; readonly ADD_SHIPPING_INFO: 'add_shipping_info'; readonly PURCHASE: 'purchase'; readonly PAGE_VIEW: 'page_view'; readonly SCROLL: 'scroll'; readonly CLICK: 'click'; readonly FILE_DOWNLOAD: 'file_download'; readonly VIDEO_PLAY: 'video_play'; readonly SEARCH: 'search'; readonly GENERATE_LEAD: 'generate_lead'; readonly CONTACT_METHOD: 'contact_method'; readonly FORM_SUBMIT: 'form_submit'; readonly QUOTE_REQUEST: 'quote_request'; readonly BADGE_INTEREST: 'badge_interest'; readonly CUSTOMIZATION_START: 'customization_start'; readonly SIZE_GUIDE_VIEW: 'size_guide_view'; readonly BULK_INQUIRY: 'bulk_inquiry'; readonly LEAD_PAGE_VIEW: 'lead_page_view'; readonly LEAD_CONTENT_VIEW: 'lead_content_view'; readonly LEAD_INQUIRY_STARTED: 'lead_inquiry_started'; readonly LEAD_QUALIFICATION: 'lead_qualification'; readonly LEAD_CONTACT_INFO: 'lead_contact_info'; readonly LEAD_WHATSAPP_CONTACT: 'lead_whatsapp_contact'; readonly LEAD_FORM_SUBMITTED: 'lead_form_submitted'; readonly LEAD_SCROLL: 'lead_scroll'; readonly LEAD_TEMPLATE_DOWNLOAD: 'lead_template_download'; readonly LEAD_SIZE_GUIDE: 'lead_size_guide'; readonly LEAD_GALLERY_VIEW: 'lead_gallery_view'; readonly LEAD_QUOTE_REQUEST: 'lead_quote_request'; }; /** * Lead scoring values for qualification tracking (1-100) */ declare const LEAD_SCORES: { readonly lead_page_view: 5; readonly lead_content_view: 15; readonly lead_scroll: 25; readonly lead_inquiry_started: 40; readonly lead_qualification: 50; readonly lead_contact_info: 60; readonly lead_whatsapp_contact: 85; readonly lead_form_submitted: 100; }; /** * Platform-specific event mappings */ declare const PLATFORM_MAPPINGS: { readonly GTM: { readonly LEAD_GENERATION: 'google_ads_conversion'; readonly ECOMMERCE: 'enhanced_ecommerce'; }; readonly GOOGLE_ADS: { readonly LEAD_GENERATION: 'conversion'; readonly ECOMMERCE: 'conversion'; }; readonly POSTHOG: { readonly LEAD_GENERATION: 'lead_event'; readonly ECOMMERCE: 'ecommerce_event'; }; readonly META: { readonly LEAD_GENERATION: 'custom'; readonly ECOMMERCE: 'track'; }; }; declare const EnvironmentSchema: z.ZodEnum<['development', 'production', 'test']>; type Environment = z.infer; interface BaseConfig { environment: Environment; debug?: boolean; } declare function loadEnvironment(): Environment; declare function isProduction(): boolean; declare function isDevelopment(): boolean; declare function getRequiredEnv(key: string): string; declare function getOptionalEnv(key: string, defaultValue?: string): string | undefined; declare class ConfigLoader { private schema; constructor(schema: z.ZodSchema); load(config: Record): T; loadFromEnv(envMapping: Record): T; } interface APIResponse { success: boolean; data?: T; error?: string; message?: string; } interface PaginatedResponse extends APIResponse { pagination?: { page: number; limit: number; total: number; hasNext: boolean; hasPrevious: boolean; }; } interface GoogleAPIError { code: number; message: string; status: string; } interface RetryOptions { maxRetries: number; retryDelay: number; backoffFactor: number; } interface RateLimitInfo { limit: number; remaining: number; reset: number; } interface APIClientOptions { baseURL?: string; timeout?: number; retries?: RetryOptions; debug?: boolean; } type LogLevel = 'debug' | 'info' | 'warn' | 'error'; interface Logger { debug(message: string, meta?: any): void; info(message: string, meta?: any): void; warn(message: string, meta?: any): void; error(message: string, meta?: any): void; } declare class ConsoleLogger implements Logger { private level; constructor(level?: LogLevel); private shouldLog; debug(message: string, meta?: any): void; info(message: string, meta?: any): void; warn(message: string, meta?: any): void; error(message: string, meta?: any): void; } export { ALL_EVENTS, type APIClientOptions, type APIResponse, type AnalyticsConfig, AnalyticsConfigSchema, BaseAnalyticsConfigSchema, type BaseConfig, ConfigLoader, ConsoleLogger, DEFAULT_ANALYTICS_CONFIG, ECOMMERCE_EVENTS, type Environment, EnvironmentSchema, type GSCConfig, GSCConfigSchema, type GTMConfig, GTMConfigSchema, type GoogleAPIError, type GoogleAdsConfig, GoogleAdsConfigSchema, LEAD_GENERATION_EVENTS, LEAD_SCORES, type LogLevel, type Logger, type MetaConfig, MetaConfigSchema, PLATFORM_MAPPINGS, type PaginatedResponse, type PostHogConfig, PostHogConfigSchema, type RateLimitInfo, type RetryOptions, getOptionalEnv, getRequiredEnv, isDevelopment, isProduction, loadAnalyticsConfig, loadEnvironment };