/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module utils/toarray */ /** * Transforms any value to an array. If the provided value is already an array, it is returned unchanged. * * @label MUTABLE * @param data The value to transform to an array. * @returns An array created from data. */ export declare function toArray(data: ArrayOrItem): Array; /** * Transforms any value to an array. If the provided value is already an array, it is returned unchanged. * * @label IMMUTABLE * @param data The value to transform to an array. * @returns An array created from data. */ export declare function toArray(data: ReadonlyArrayOrItem): ReadonlyArray; export type ArrayOrItem = T | Array; export type ReadonlyArrayOrItem = T | ReadonlyArray;