import type FeatureItem from "./FeatureItem.js"; import type GroupLayerItem from "./GroupLayerItem.js"; import type LayerItem from "./LayerItem.js"; import type { ListItem, ParentItem } from "./types.js"; /** * Utility function to recursively extract all FeatureItem objects from a nested structure of ParentItem objects. * * @param items - An array of ParentItem objects, which can be either LayerItem or GroupLayerItem instances. * @returns A flat array of FeatureItem objects extracted from the provided ParentItem objects. * @internal */ export function getNestedFeatureItems(items: ParentItem[]): FeatureItem[]; /** * Utility function to recursively extract all LayerItem objects from a nested structure of ParentItem objects. * * @param items - An array of ParentItem objects, which can be either LayerItem or GroupLayerItem instances. * @returns An array of LayerItem objects extracted from the provided ParentItem objects. * @internal */ export function getNestedLayerItems(items: ParentItem[]): LayerItem[]; /** * Utility function to compute the effective count of all provided list items, including nested items. * * @param items - An array of ListItem objects, which can be either FeatureItem, LayerItem, or GroupLayerItem instances. * @returns A number representing the combined total of all provided list items. * @internal */ export function computeEffectiveCount(items: ListItem[]): number; /** * Utility function to determine if a given item is a GroupLayerItem. * * @param item - Item to check if it is a GroupLayerItem. * @returns True if the item is a GroupLayerItem, false otherwise. * @internal */ export function isGroupLayerItem(item: unknown): item is GroupLayerItem; /** * Utility function to determine if a given item is a LayerItem. * * @param item - Item to check if it is a LayerItem. * @returns True if the item is a LayerItem, false otherwise. * @internal */ export function isLayerItem(item: unknown): item is LayerItem; /** * Utility function to determine if a given item is a FeatureItem. * * @param item - Item to check if it is a FeatureItem. * @returns True if the item is a FeatureItem, false otherwise. * @internal */ export function isFeatureItem(item: unknown): item is FeatureItem;