/** * Returns the registered target associated with a given ID. Returns an empty array if no target is found. * @param {string|number} id * @param {*} agentRef the agent reference * @returns {import("../../interfaces/registered-entity").RegisterAPIMetadataTarget[]} */ export function getRegisteredTargetsFromId(id: string | number, agentRef: any): import("../../interfaces/registered-entity").RegisterAPIMetadataTarget[]; /** * Returns the registered target(s) associated with a given filename if found in the resource timing API during registration. Returns an empty array if no target is found. * @param {string} filename * @param {*} agentRef * @returns {import("../../interfaces/registered-entity").RegisterAPIMetadataTarget[]} */ export function getRegisteredTargetsFromFilename(filename: string, agentRef: any): import("../../interfaces/registered-entity").RegisterAPIMetadataTarget[]; /** * When given a valid target, returns an object with the V2 payload attributes. Returns an empty object otherwise. * @note Field names may change as the schema is finalized * * @param {Object} [target] the registered target * @param {AggregateInstance} [aggregateInstance] the aggregate instance calling the method * @returns {Object} returns an empty object if args are not supplied or the aggregate instance is not supporting version 2 */ export function getVersion2Attributes(target?: Object, aggregateInstance?: AggregateInstance): Object; /** * Returns the attributes used for duplicating data in version 2 of the harvest endpoint. * If not valid for duplication, returns an empty object. * @note BEST PRACTICE - Caller should call shouldDuplicate() before utilizing this method to determine if duplication attributes should be added to the event. * @param {import("../../interfaces/registered-entity").RegisterAPIMetadataTarget} target * @param {*} aggregateInstance the aggregate instance calling the method * @returns {Object} */ export function getVersion2DuplicationAttributes(target: import("../../interfaces/registered-entity").RegisterAPIMetadataTarget, aggregateInstance: any): Object; /** * Determines if an event should be duplicated for a given target and aggregate instance. This is used to determine if duplication attributes should be added to an event and if the event should be sent to the soft nav feature for evaluation. * @note This method is intended to be used in conjunction with getVersion2DuplicationAttributes and should be called before it to determine if duplication attributes should be added to an event. * @param {import("../../interfaces/registered-entity").RegisterAPIMetadataTarget} target * @param {*} aggregateInstance The aggregate instance calling the method. This is needed to check if duplication is enabled and if the harvest endpoint version supports it. * @returns {boolean} returns true if the event should be duplicated for the target, false otherwise */ export function shouldDuplicate(target: import("../../interfaces/registered-entity").RegisterAPIMetadataTarget, aggregateInstance: any): boolean; /** * Finds the registered targets from the stack trace for a given agent reference. * @param {*} agentRef The agent reference to use for finding targets. * @returns {Array} An array of targets found from the stack trace. If no targets are found or allowed, returns an array with undefined. */ export function findTargetsFromStackTrace(agentRef: any): any[]; /** * * */ export type V2_TYPES = string; export namespace V2_TYPES { let MFE: string; let BA: string; } //# sourceMappingURL=utils.d.ts.map