import { Destination as Destination$1, Mapping as Mapping$1 } from '@walkeros/core'; import { DestinationWeb } from '@walkeros/web-core'; declare global { interface Window { _paq?: Array; } } interface Settings { /** Matomo Site ID (required). */ siteId: string; /** Base URL of Matomo instance, e.g. https://analytics.example.com/ (required). */ url: string; /** Disable all tracking cookies for cookie-free analytics. */ disableCookies?: boolean; /** Enable automatic outlink and download tracking. Default: true. */ enableLinkTracking?: boolean; /** Enable heart beat timer with interval in seconds for accurate time-on-page. */ enableHeartBeatTimer?: number; /** Custom dimensions applied to all events. Keys are dimension IDs, values are property paths. */ customDimensions?: Record; } type InitSettings = Partial; interface Mapping { /** Goal ID to track a conversion alongside this event. */ goalId?: string; /** Property path for goal revenue value (e.g. data.revenue). */ goalValue?: string; /** Track as internal site search via trackSiteSearch. */ siteSearch?: boolean; /** Track as content impression via trackContentImpression. */ contentImpression?: boolean; /** Track as content interaction via trackContentInteraction. */ contentInteraction?: boolean; /** Per-event custom dimensions. Keys are dimension IDs, values are property paths. */ customDimensions?: Record; } interface Env extends DestinationWeb.Env { window: { _paq: Array; location?: { href?: string; }; }; document: { createElement: (tagName: string) => { type: string; src: string; async?: boolean; defer?: boolean; }; head: { appendChild: (node: unknown) => void; }; }; } type Types = Destination$1.Types; type Destination = DestinationWeb.Destination; type Config = DestinationWeb.Config; type Rule = Mapping$1.Rule; type Rules = Mapping$1.Rules; type index_Config = Config; type index_Destination = Destination; type index_Env = Env; type index_InitSettings = InitSettings; type index_Mapping = Mapping; type index_Rule = Rule; type index_Rules = Rules; type index_Settings = Settings; type index_Types = Types; declare namespace index { export type { index_Config as Config, index_Destination as Destination, index_Env as Env, index_InitSettings as InitSettings, index_Mapping as Mapping, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_Types as Types }; } declare const destinationMatomo: Destination; export { index as DestinationMatomo, destinationMatomo as default, destinationMatomo };