import type { BeforeSendFn } from 'posthog-js'; export declare function hash(str: string): number; /** * Provides an implementation of sampling that samples based on the distinct ID. * Using the provided percentage. * Can be used to create a beforeCapture fn for a PostHog instance. * * Setting 0.5 will cause roughly 50% of distinct ids to have events sent. * Not 50% of events for each distinct id. * * @param percent a number from 0 to 1, 1 means always send and, 0 means never send the event */ export declare function sampleByDistinctId(percent: number): BeforeSendFn; //# sourceMappingURL=posthogUtils.d.ts.map