import React, { PropsWithChildren } from 'react'; export interface ITraceContext { page?: string; section?: string; modal?: string; element?: string; } export declare const TraceContext: React.Context; export declare function useTrace(trace?: ITraceContext): ITraceContext; declare type TraceProps = { shouldLogImpression?: boolean; name?: string; properties?: Record; } & ITraceContext; /** * Sends an analytics event on mount or if `shouldLogImpression` toggles, * and propagates the context to child traces. * * It defaults to logging an EventName.PAGE_VIEWED if no `name` is provided. */ export declare const Trace: React.MemoExoticComponent<({ shouldLogImpression, name, children, page, section, modal, element, properties, }: PropsWithChildren) => JSX.Element>; export {}; //# sourceMappingURL=Trace.d.ts.map