import { Constructor } from './resolvers'; /** * Quick flatten utility to flatten a 2-dimensional array. * * @param {Array>} array * The array to flatten. * * @return {Array} * The flattened array. */ export declare function flatten(array: Array>): Array; /** * Creates a { name: value } object if the input isn't already in that format. * * @param {string|object} name * Either a string or an object. * * @param {*} value * The value, only used if name is not an object. * * @return {object} */ export declare function nameValueToObject(name: string | symbol | object, value?: any): Record; /** * Returns the last item in the array. * * @param {*[]} arr * The array. * * @return {*} * The last element. */ export declare function last(arr: Array): T; /** * Determines if the given function is a class. * * @param {Function} fn * @return {boolean} */ export declare function isClass(fn: Function | Constructor): boolean; /** * Determines if the given value is a function. * * @param {unknown} val * Any value to check if it's a function. * * @return {boolean} * true if the value is a function, false otherwise. */ export declare function isFunction(val: unknown): val is Function; /** * Returns the unique items in the array. * * @param {Array} * The array to remove dupes from. * * @return {Array} * The deduped array. */ export declare function uniq(arr: Array): Array;