import { AsyncApiRealmCLI } from '@redocly/realm-asyncapi-sdk';
type TraceStepCallbacks = {
    error: (error: Error) => void;
    end: () => void;
};
declare class CLITelemetryWrapper extends AsyncApiRealmCLI.Telemetry {
    #private;
    constructor();
    initialize(portalVersion: string, telemetryEnabled?: boolean, verbose?: boolean): void;
    addTraceStepCallbacks(event: string, { error, end }: TraceStepCallbacks): void;
    removeTraceStepCallbacks(event: string): void;
}
export declare const telemetry: CLITelemetryWrapper;
export declare const telemetryTracer: {
    traceStep: <T extends AsyncApiRealmCLI.EventType>(event: T, data?: AsyncApiRealmCLI.EventPayload<T>) => AsyncApiRealmCLI.TraceStep<T> | undefined;
};
export {};
//# sourceMappingURL=index.d.ts.map