declare const analytics: ServerAnalytics; export default analytics; declare interface AnalyticsOptions { writeKey?: string; host?: string; flushAt?: number; flushInterval?: number; debug?: boolean; storagePrefix?: string; userIdKey?: string; anonymousIdKey?: string; traitsKey?: string; useBeacon?: boolean; timeout?: number; retries?: number; retryDelay?: number; } export declare class ServerAnalytics { constructor(_options?: AnalyticsOptions); load(_writeKey?: string, _options?: AnalyticsOptions): void; ready(callback: () => void): void; track(_event: string, _properties?: Record, _options?: Record): void; identify(_userId?: string, _traits?: Record, _options?: Record): void; page(_category?: string, _name?: string, _properties?: Record, _options?: Record): void; group(_groupId: string, _traits?: Record, _options?: Record): void; alias(_userId: string, _previousId?: string, _options?: Record): void; user(): User; reset(): void; flush(): void; } declare interface User { id(): string | null; anonymousId(): string; traits(): Record; } export { }