import { WidgetContext } from '../../editor/widget-framework/widget-context';
export declare abstract class Tracer {
    static startTrace<F>(key: string, fn: (span: any | undefined) => F): F;
    static startSpan(key: string, createContext?: boolean, currentContext?: any): {
        span: any | undefined;
        ctx?: any;
    };
    static traceWidget(widgetContext: WidgetContext<any>, createContext?: boolean): {
        span: any | undefined;
        ctx?: any;
    };
    static endSpan(span?: any): null;
    static withContext<T>(fn: () => T, ctx?: any): T;
    static logEvent(name: string, attributes?: any, span?: any): void;
}
