import { FetchResponse } from '../components/v2/DataTable/DataTable.vue.d';
/**
 * Format the response data from the API to display in the changelog table.
 * This function formats the date and currency fields in the response data.
 * It also formats the datetime fields if the field value is a valid ISO datetime string.
 * @param {object} data - The response data from the API.
 * @param {ChangelogObject} object - The changelog object.
 * @returns {FetchResponse} - The formatted response data.
 */
export declare const formatLogResponseData: (data: {
    data: {
        data: Record<string, unknown>[];
        totalRecords?: number | undefined;
    };
}) => FetchResponse;
/**
 * Checks if a given value is a valid ISO datetime string.
 *
 * @param {string} [value] - The value to be checked.
 * @returns {boolean} - `true` if the value is a valid ISO datetime string, `false` otherwise.
 */
export declare const isValidDateISOString: (value?: string) => boolean;
/**
 * Safely parse a JSON string into an object of type T.
 * If the input is not a string or is not a valid JSON string, return null.
 * If the parsing fails, return null.
 * @template T
 * @param {unknown} value - The value to parse.
 * @returns {T | null}
 */
export declare const safeJsonParse: <T = string>(value?: unknown) => T | null;
/**
 * Formats a date value from a string into a human-readable format.
 * If the input is not a valid ISO datetime string, returns the original value.
 * If the input is a valid ISO datetime string, returns a formatted date string.
 * If the withTime parameter is true, includes the time in the formatted date string.
 * @param {string} [value] - The date value to format.
 * @param {boolean} [withTime] - Whether to include the time in the formatted date string.
 * @returns {string | unknown} - The formatted date string, or the original value if the input is not a valid ISO datetime string.
 */
export declare const formatDateValue: (value?: string, withTime?: boolean) => string | unknown;
/**
 * Checks if a given value is a valid JSON string that contains the 'dataType' key.
 * @param {unknown} [value] - The value to be checked.
 * @returns {boolean} - `true` if the value is a valid JSON string that contains the 'dataType' key, `false` otherwise.
 */
export declare const hasDataType: (value?: unknown) => boolean;
export declare const isCurrency: (value?: unknown) => boolean;
/**
 * Formats the 'newValue' and 'oldValue' properties of a given object from ISO datetime strings into human-readable formats.
 * If the input values are not valid ISO datetime strings, they are left unchanged.
 * The formatted date strings will include the time.
 * @param {Record<string, unknown>} d - The object with 'newValue' and 'oldValue' properties to format.
 */
export declare const formatDateTimeField: (d: Record<string, unknown>) => void;
/**
 * Formats the 'newValue' and 'oldValue' properties of a given object from JSON strings containing ISO datetime strings into human-readable formats.
 * If the input values are not valid JSON strings or do not contain the 'value' key, they are left unchanged.
 * The formatted date strings will include the time.
 * @param {Record<string, unknown>} d - The object with 'newValue' and 'oldValue' properties to format.
 */
export declare const formatDateFieldFromJson: (d: Record<string, unknown>) => void;
/**
 * Formats a given value from a JSON string containing a 'currency' and 'value' key into a human-readable currency string.
 * If the input value is not a valid JSON string or does not contain the 'currency' key, it is left unchanged.
 * @param {unknown} value - The value to be formatted.
 * @returns {unknown} - The formatted value if it is a valid JSON string containing the 'currency' key, the original value otherwise.
 */
export declare const formatCurrencyField: (value: unknown) => unknown;
