/** * Get the intersection of two arrays * * @param {Array} a * @param {Array} b * * @private * @returns {Array} intersection between a and b */ export function intersect(a: any[], b: any[]): any[]; /** * Given an object of form {"1": {...}, "2": {...}, ...} get the maximum ID used * in this object * If the object has no keys, return 0 * * @param {Object} o an object for which the keys are an ID * * @returns {number} */ export function getMaxObjectId(o: Object): number; /** converts and orderBy Object to a string equivalent that can be processed by orm.call */ export function orderByToString(orderBy: any): any; /** * Convert a spreadsheet date representation to an odoo * server formatted date * * @param {Date} value * @returns {string} */ export function toServerDateString(value: Date): string; /** * @param {number[]} array * @returns {number} */ export function sum(array: number[]): number; /** * Recursively convert camel case object keys to snake case keys * @param {object} obj * @returns {object} */ export function camelToSnakeObject(obj: object): object; /** * Check if the argument is falsy or is an empty object/array * * TODO : remove this and replace it by the one in o_spreadsheet xlsx import when its merged */ export function isEmpty(item: any): boolean; /** * Load external libraries required for o-spreadsheet * @returns {Promise} */ export function loadSpreadsheetDependencies(): Promise;