import { PostHogCoreOptions, PostHogCore, PostHogPersistedProperty, PostHogFetchOptions, PostHogFetchResponse, PostHogEventProperties } from '@posthog/core'; type PostHogOptions = { autocapture?: boolean; persistence?: 'localStorage' | 'sessionStorage' | 'cookie' | 'memory'; persistence_name?: string; captureHistoryEvents?: boolean; } & PostHogCoreOptions; declare class PostHog extends PostHogCore { private _storage; private _storageCache; private _storageKey; private _lastPathname; constructor(apiKey: string, options?: PostHogOptions); private getWindow; getPersistedProperty(key: PostHogPersistedProperty): T | undefined; setPersistedProperty(key: PostHogPersistedProperty, value: T | null): void; fetch(url: string, options: PostHogFetchOptions): Promise; getLibraryId(): string; getLibraryVersion(): string; getCustomUserAgent(): void; getCommonEventProperties(): PostHogEventProperties; private setupHistoryEventTracking; private captureNavigationEvent; } export { PostHog, PostHog as default };