import type { LayerLoadState } from "../AbstractLayer"; import { AbstractLayerBase } from "../AbstractLayerBase"; import { AnyLayer, Layer, SublayerTypes } from "../unions"; /** * Represents a sublayer of another layer. * * @group Layers */ export interface SublayerBaseType extends AbstractLayerBase { /** * Identifies the type of this sublayer. */ readonly type: SublayerTypes; /** * The direct parent of this layer instance. * This can either be the parent layer or another sublayer. */ readonly parent: AnyLayer; /** * The parent layer that owns this sublayer. */ readonly parentLayer: Layer; /** * The load state of this sublayer (independent of its parent layer). */ readonly loadState: LayerLoadState; /** * The error associated with this sublayer, if any. */ readonly loadError: Error | undefined; }