import type { UiMetricaGoal } from '../uiFactory/types'; /** * Interface for a counter that provides methods for tracking metrics. * @function hit - Tracks a hit event with optional arguments. https://yandex.ru/support/metrica/ru/objects/hit * @function params - Sets parameters for the counter with optional arguments. https://yandex.ru/support/metrica/ru/objects/params-method * @function userParams - Sets user-specific parameters for the counter with optional arguments. https://yandex.ru/support/metrica/ru/objects/user-params * @function reachGoal - Tracks a goal achievement event with optional arguments. https://yandex.ru/support/metrica/ru/objects/reachgoal */ export interface Counter { hit: (...args: unknown[]) => void; params: (...args: unknown[]) => void; userParams: (...args: unknown[]) => void; reachGoal: (...args: unknown[]) => void; } /** * Retrieves a Yandex Metrica instance by name from the global window object. * If no instance is found for the given name, returns a FakeMetrica instance instead. * @param name The name of the metrica to retrieve * @returns The Yandex Metrica instance if found, otherwise a FakeMetrica instance */ export declare function getMetrica(name?: string): Counter | undefined; export declare function reachMetricaGoal(goalKey: UiMetricaGoal, params?: Record): void;