export const VegaLoadingIndicatorRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'MODE_IS_INDETERMINATE',
    payloadDescription: 'Specifies the mode of the loading indicator',
    /**
     * The function checks if the `mode` property of the `host` element is equal to 'indeterminate'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.mode === 'indeterminate',
  },
  {
    payloadKey: 'MODE_IS_DETERMINATE',
    payloadDescription: 'Specifies the mode of the loading indicator',
    /**
     * The function checks if the `mode` property of the `host` element is equal to 'determinate'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.mode === 'determinate',
  },
];
