import { t as Many } from "./Many-bCNxekD7.cjs"; import { t as Maybe } from "./Maybe-BVpZiDsE.cjs"; //#region src/functions/castArray/castArray.d.ts /** * Casts the input value to an array if it is not already an array. * @param value The input value to cast to an array. * @returns An array containing the input value, or the input value itself if it is already an array. * @example * ```ts * castArray('foo'); // ['foo'] * castArray(['foo']); // ['foo'] * castArray(null); // [] * castArray(undefined); // [] * ``` */ declare function castArray(value: null): T[]; /** * Casts the input value to an array if it is not already an array. * @param value The input value to cast to an array. * @returns An array containing the input value, or the input value itself if it is already an array. * @example * ```ts * castArray('foo'); // ['foo'] * castArray(['foo']); // ['foo'] * castArray(null); // [] * castArray(undefined); // [] * ``` */ declare function castArray(value: undefined): T[]; /** * Casts the input value to an array if it is not already an array. * @param value The input value to cast to an array. * @returns An array containing the input value, or the input value itself if it is already an array. * @example * ```ts * castArray('foo'); // ['foo'] * castArray(['foo']); // ['foo'] * castArray(null); // [] * castArray(undefined); // [] * ``` */ declare function castArray(value: readonly T[]): readonly T[]; /** * Casts the input value to an array if it is not already an array. * @param value The input value to cast to an array. * @returns An array containing the input value, or the input value itself if it is already an array. * @example * ```ts * castArray('foo'); // ['foo'] * castArray(['foo']); // ['foo'] * castArray(null); // [] * castArray(undefined); // [] * ``` */ declare function castArray(value: T[]): T[]; /** * Casts the input value to an array if it is not already an array. * @param value The input value to cast to an array. * @returns An array containing the input value, or the input value itself if it is already an array. * @example * ```ts * castArray('foo'); // ['foo'] * castArray(['foo']); // ['foo'] * castArray(null); // [] * castArray(undefined); // [] * ``` */ declare function castArray(value: Maybe, 'mutable'> | Many, 'immutable'>>): T[]; /** * Casts the input value to an array if it is not already an array. * @param value The input value to cast to an array. * @returns An array containing the input value, or the input value itself if it is already an array. * @example * ```ts * castArray('foo'); // ['foo'] * castArray(['foo']); // ['foo'] * castArray(null); // [] * castArray(undefined); // [] * ``` */ declare function castArray(value: NonNullable): T[]; //#endregion export { castArray as t }; //# sourceMappingURL=castArray-HcEPH9Pa.d.cts.map