import { PostHogCore } from '../posthog-core'; import type { GetFlagsResult, JsonType, PostHogCoreOptions, PostHogFetchOptions, PostHogFetchResponse } from '../types'; export interface PostHogCoreTestClientMocks { fetch: jest.Mock, [string, PostHogFetchOptions]>; storage: { getItem: jest.Mock; setItem: jest.Mock; }; } export declare class PostHogCoreTestClient extends PostHogCore { private mocks; _cachedDistinctId?: string; constructor(mocks: PostHogCoreTestClientMocks, apiKey: string, options?: PostHogCoreOptions); getFlags(distinctId: string, groups?: Record, personProperties?: Record, groupProperties?: Record>, extraPayload?: Record): Promise; getPersistedProperty(key: string): T; setPersistedProperty(key: string, value: T | null): void; fetch(url: string, options: PostHogFetchOptions): Promise; getLibraryId(): string; getLibraryVersion(): string; getCustomUserAgent(): string; } export declare const createTestClient: (apiKey: string, options?: PostHogCoreOptions, setupMocks?: (mocks: PostHogCoreTestClientMocks) => void, storageCache?: { [key: string]: string | JsonType; }) => [PostHogCoreTestClient, PostHogCoreTestClientMocks]; //# sourceMappingURL=PostHogCoreTestClient.d.ts.map