UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

14 lines (13 loc) 479 B
import { PostHog } from "posthog-js-lite"; type Properties = { [p: string]: any; }; export declare function init(): Promise<boolean>; export declare function client(): PostHog; export declare function capture(event: string, properties?: Properties): void; export declare function createScoped(scope: string, p?: Properties): { capture: (event: string, props?: Properties) => void; properties: Properties; }; export declare function flush(): Promise<void>; export {};