import 'posthog-js/dist/exception-autocapture'; import { type BeforeSendFn, type PostHogConfig } from 'posthog-js'; export declare const beforeSend: BeforeSendFn; /** * Produces a Posthog instance that is configured for use in the Devvit platform. * * ONLY USE THE POSTHOG INSTANCE RETURNED BY THIS FUNCTION. Do not use * `import posthog from 'posthog-js'` as it will not work! * * Additionally, does not use their react package as it will not work with a bundled * posthog at the time of writing. * */ export declare const createDevvitPosthog: (key: string, { sample_rate, ...postHogConfig }: Partial & { /** * The percentage of events to sample by distinct id. * A number from 0 to 1, 1 means always send and, 0 means never send the event. * * @default 1 */ sample_rate?: number; }) => any; //# sourceMappingURL=createPosthog.d.ts.map