/**
 * Ensures an array is always returned, optionally generating placeholder entries.
 *
 * Why this exists:
 * This utility is helpful in UI scenarios where a fixed number of items must be
 * rendered (e.g., skeleton loaders, grids), even when no real data is available.
 *
 * Behavior:
 * - If `elements` is provided and non-empty → return it as-is
 * - If `elements` is empty or undefined AND `count` is provided →
 *   return an array of `undefined` placeholders of the given length
 * - Otherwise → return an empty array
 *
 * @template E - Type of elements in the array
 *
 * @param elements - The source array (optional)
 * @param count - Optional number of placeholder entries to generate
 *
 * @returns Either the original array or a placeholder-filled array
 */
export declare function placeholderArray<E>(elements: E[] | undefined): E[];
export declare function placeholderArray<E>(elements: E[] | undefined, count: 0 | undefined): E[];
export declare function placeholderArray<E>(elements: E[] | undefined, count?: number): (E | undefined)[];
