import { EnhanceAppContext } from 'vitepress';

export declare function yandexMetrika(ctx: EnhanceAppContext, options: YandexMetrikaOptions): void;

export declare interface YandexMetrikaCounter {
    id: number;
    initParams?: {
        defer?: boolean;
        clickmap?: boolean;
        trackLinks?: boolean;
        accurateTrackBounce?: boolean;
        webvisor?: boolean;
        ecommerce?: boolean | string | Array<string | boolean>;
        trustedDomains?: string[];
        childIframe?: boolean;
        type?: number;
        triggerEvent?: boolean;
    };
}

export declare interface YandexMetrikaOptions {
    enabled?: boolean;
    counter: YandexMetrikaCounter | YandexMetrikaCounter[];
    cdn?: {
        tag?: string;
        watch?: string;
    };
}

export { }
