import newrelicOriginal from "newrelic"; /** * "newrelic" is an optionalDependency so it might be not installed. This module fixes the typing * so the "null" check is required before using it. */ export declare let newrelic: typeof newrelicOriginal | undefined; /** * Wrapper around newrelic.startSegment that calls the handler even if newrelic is not installed. */ export declare function startSegment>(name: string, record: boolean, handler: T): T; export declare function startSegment any>(name: string, record: boolean, handler: (cb?: C) => T, callback?: C): T; /** * Wrapper around newrelic.addCustomSpanAttribute that performs a no-op if newrelic is not installed. */ export declare function addCustomSpanAttribute(name: string, value: string | number): void;