import type mixpanel from 'mixpanel-browser';
import type { NextRouter } from 'next/router';
import { PropsWithChildren } from 'react';
import { App } from './AnalyticsContext';
export type AnalyticsProviderProps = PropsWithChildren<{
    /**
     * Which app is this?
     */
    app: keyof typeof App;
    /**
     * Next.js's router returned from `useRouter()`, or a compatible equivalent.
     */
    clientRouter: NextRouter;
    /**
     * Mixpanel config object, requires the following keys:
     * - `sdk` (the imported `mixpanel-browser` library)
     * - `token` (the project token; can be `null` to disable tracking, e.g. in local dev)
     */
    mixpanel?: {
        sdk: typeof mixpanel;
        token: string | null;
    };
}>;
/**
 * Provides optional event trackers to the app, for analytics purposes. Tracks page views by default.
 * Should be placed near the root of the app.
 */
export declare const AnalyticsProvider: ({ app: appKey, clientRouter, mixpanel, children }: AnalyticsProviderProps) => import("theme-ui/jsx-runtime").JSX.Element;
