import { EnchantedDataGridColDef, OverflowList } from '../types/enchanted-data-grid'; /** * @param {string[]} specialFields: ... * @param {any} obj: object to search for the value * @param {string | undefined} path: path to the value in the object * @param {string | undefined} keyForStringify: nested property to be stringified * * @returns The value of the object at the given path */ export declare const getObjectValue: (specialFields: string[], obj: any, path?: string, keyForStringify?: string) => any; /** * Counts the number of valid items in the `OverflowList` that have both a `name` and `field` attribute, * and ensures the value retrieved using `getObjectValue` is valid. * * If there is only one valid item, the function returns an object containing the count and the index of that item. * If there are multiple valid items, it returns the count only. * * @param {string[]} specialFields: ... * @param {OverflowList[] | undefined} overflowList - The list of `OverflowList` items to evaluate. * @param {any} data - The data object used to retrieve values for the `OverflowList` fields. * @returns {{ count: number, index?: number }} - An object containing the count of valid items, and the index if there is only one valid item. */ export declare const getMenuItemCount: (specialFields: string[], overflowList: OverflowList[] | undefined, data: any) => { count: number; index?: number; }; /** * Retrieves the action link from the `overflowList` of a given header. * The function checks if the `overflowList` exists and contains valid items. It uses the * `getMenuItemCount` function to determine the index of the valid item in the list. If a valid * item is found, the action link is returned; otherwise, `undefined` is returned. * * @param {string[]} specialFields: ... * @param {any} data - The data object used to evaluate the validity of items in the `overflowList`. * @param {EnchantedDataGridColDef} header - The header object containing the `overflowList`. * @returns {string | undefined} - The action link from the valid item, or `undefined` if no valid item is found. */ export declare const getActionLink: (specialFields: string[], data: any, header: EnchantedDataGridColDef) => string | undefined; /** * Checks if a given string is a valid JSON object. * * @param {string} str - The string to be checked. * @returns {boolean} - Returns true if the string is a valid JSON object, otherwise false. */ export declare function isValidJsonObject(str: string): boolean; /** * Retrieves a specific property value from an item in the `overflowList` of a given header. * * The function checks if the `overflowList` exists and contains valid items. It uses the * `getMenuItemCount` function to determine the index of the valid item in the list. If a valid * item is found, the specified property value is returned; otherwise, an empty string is returned. * * @param specialFields: ... * @param {EnchantedDataGridColDef} header - The header object containing the `overflowList`. * @param {any} data - The data object used to evaluate the validity of items in the `overflowList`. * @param {string} property - The property name to retrieve from the valid item. * @returns {string} - The value of the specified property from the valid item, or an empty string if no valid item is found. */ export declare const getOverflowItemProperty: (specialFields: string[], header: EnchantedDataGridColDef, data: any, property: string) => string; export declare const getFilteredOverflowList: (specialFields: string[], data: unknown, header: EnchantedDataGridColDef) => OverflowList[];