/** * Bot / crawler detection for the browser SDK. * * User-agent patterns are aligned with PostHog's `@posthog/core` bot list * (https://github.com/PostHog/posthog-js — `utils/bot-detection.ts`) so * behaviour matches what PostHog integrators expect. * * Keep in sync with `app/src/lib/tracking/bot-detection.ts`. */ /** Substrings matched case-insensitively against `User-Agent` (and SDK `navigator.userAgent`). */ export declare const DEFAULT_BLOCKED_UA_STRS: readonly string[]; /** * Returns true when the user agent matches a known bot/crawler pattern. */ export declare function isBlockedUA(ua: string | undefined | null, customBlockedUserAgents?: string[]): boolean; /** Subset of `Navigator.userAgentData` used for bot checks. */ export interface NavigatorUAData { brands?: { brand: string; version: string; }[]; platform?: string; } /** * Browser-side bot check (PostHog `isLikelyBot` parity): UA string, CH brand * hints, and `navigator.webdriver`. */ export declare function isLikelyBot(nav: Navigator | undefined, customBlockedUserAgents?: string[]): boolean;