import { InternalConstructorTag } from "../../utils/InternalConstructorTag"; import { Sublayer } from "../unions"; import { ChildrenCollection } from "./ChildrenCollection"; import { GET_RAW_SUBLAYERS } from "./internals"; import { LayerRetrievalOptions, RecursiveRetrievalOptions } from "./LayerRetrievalOptions"; import { SublayerBaseType } from "./SublayerBaseType"; /** * Contains the sublayers that belong to a {@link Layer} or {@link Sublayer}. * * @group Layer Utilities */ export declare class SublayersCollection implements ChildrenCollection { #private; /** @internal */ constructor(sublayers: SublayerType[], tag: InternalConstructorTag); destroy(): void; getItems(options?: LayerRetrievalOptions): SublayerType[]; /** * Returns the child sublayers in this collection. */ getSublayers(options?: LayerRetrievalOptions | undefined): SublayerType[]; /** * Returns a list of all layers in the collection, including all children (recursively). * * > Note: This includes base layers by default (see `options.filter`). * > Use the `"base"` or `"operational"` short hand values to filter by base layer or operational layers. * > * > If the collection contains many, deeply nested sublayers, this function could potentially be expensive. */ getRecursiveLayers(options?: RecursiveRetrievalOptions): Sublayer[]; /** * Returns a reference to the internal sublayers array. * * NOTE: Do not modify directly! * * @internal */ [GET_RAW_SUBLAYERS](): SublayerType[]; }