type BaseProps = { category: string; action: string; }; type PropsWithBaseElement = BaseProps & { name?: never; value?: never; }; type PropsWithName = BaseProps & { name: string; value?: never; }; type PropsWithValue = BaseProps & { name: string; value: number; }; type Props = PropsWithBaseElement | PropsWithName | PropsWithValue; /** * Send a custom event to Matomo tracker * * @param props - Event properties with category, action, and optional name and value * * @example * // Basic event * sendEvent({ category: "contact", action: "click phone" }); * * @example * // Event with name * sendEvent({ category: "video", action: "play", name: "intro-video" }); * * @example * // Event with name and value * sendEvent({ category: "purchase", action: "buy", name: "product-123", value: 99 }); */ export declare function sendEvent(props: Props): void; export {}; //# sourceMappingURL=events.d.ts.map