/** * Copyright IBM Corp. 2024 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ /** * Extracts data-autotrack-* attributes from props object. * This utility filters out only the autotrack data attributes for spreading onto DOM elements. * * @param {Record} props - Props object that may contain data-autotrack-* attributes * @returns {Record} Object containing only data-autotrack-* attributes * * @example * ```typescript * const props = { title: 'My Tile', 'data-autotrack-action': 'click', ...rest }; * const dataAttrs = extractAutotrackAttributes(rest); * // Returns: { 'data-autotrack-action': 'click' } * ``` */ export function extractAutotrackAttributes(props: Record): Record;