export interface GraphicsLayer { addMany: (graphics: __esri.Graphic[]) => void; graphics: any; removeAll: () => void; removeMany: (graphics: __esri.Graphic[]) => void; } export interface LayerWithSublayers { } export interface LayerWithDefinitionExpression { } export interface LayerWithPopupTemplate { } export interface LayerWithRedraw { } export declare function isGraphicsLayer(layer: __esri.Layer): layer is __esri.Layer & GraphicsLayer; /** * The `definitionExpression` property is only supported in * layers of type `FeatureLayer` and `ImageryLayer`. * @param layer The layer to be checked. */ export declare function isLayerWithDefinitionExpression(layer: __esri.Layer): layer is __esri.Layer & LayerWithDefinitionExpression; /** * The `popupTemplate` property is supported in layers of type * `FeatureLayer`, `SceneLayer` and `ImageryLayer`. * @param layer The layer to be checked. */ export declare function isLayerWithPopupTemplate(layer: __esri.Layer): layer is __esri.Layer & LayerWithPopupTemplate; /** * Checks if the supplied layer has a `findSublayerById` method. * @param layer The layer to be checked. */ export declare function isLayerWithSublayers(layer: __esri.Layer): layer is __esri.Layer & LayerWithSublayers; /** * The only layer that contains the `redraw` method is * `ImageryLayer`. * @param layer */ export declare function isLayerWithRedraw(layer: __esri.Layer): layer is __esri.Layer & LayerWithRedraw;