import { NumericalKeys, PlainObject } from "../models.mjs"; //#region src/array/get.d.ts /** * Get an array from an object, where only values with numerical keys will be included * * @param value Object to convert to an array * @returns Array holding the values of the object's numerical keys * * @example * ```typescript * getArray({0: 'a', 1: 'b', 2: 'c', d: 'd'}, true); // => ['a', 'b', 'c'] * getArray({a: 'a', b: 'b', c: 'c', d: 'd'}, true); // => [] * ``` */ declare function getArray(value: Value, indiced: true): Value[NumericalKeys][]; /** * Get an array from a map * * @param value Map to convert to an array * @returns Array holding the entries of the map * * @example * ```typescript * getArray( * new Map([['a', 1], ['b', 2], ['c', 3]]), * ); // => [['a', 1], ['b', 2], ['c', 3]] * ``` */ declare function getArray(map: Map): [Key, Value][]; /** * Get an array from an object * * @param value Object to convert to an array * @returns Array holding the values of the object * * @example * ```typescript * getArray({0: 'a', 1: 'b', 2: 'c', d: 'd'}); // => ['a', 'b', 'c', 'd'] * getArray({a: 'a', b: 'b', c: 'c', d: 'd'}); // => ['a', 'b', 'c', 'd'] * ``` */ declare function getArray(value: Value): [keyof Value, Value[keyof Value]][]; /** * Get an array from a set * * @param value Set to convert to an array * @returns Array holding the values of the set * * @example * ```typescript * getArray(new Set([123, 456, 789])); // => [123, 456, 789] * ``` */ declare function getArray(set: Set): Value[]; /** * Get an array from a value * * @param value Original array * @returns Original array * * @example * ```typescript * getArray([123]); // => [123] * ``` */ declare function getArray(value: Item[]): Item[]; /** * Get an array from an unknown value * * @param value Value to convert to an array * @returns Array of value * * @example * ```typescript * getArray(123); // => [123] * ``` */ declare function getArray(value: Value): Value[]; //#endregion export { getArray };