import type { UseQueryResult } from '@tanstack/react-query'; import type { WMSServiceInfo, LayerTree, LayerProps, Style, OGCWMSWMTSGetCapabilities, LayerFoundation } from '@opengeoweb/webmap'; import { WMLayer } from '@opengeoweb/webmap'; /** * Queries the WMS GetCapabilities. This is the base TanStack hook for the other hooks in this file. * * @param {string} serviceUrl * @returns {UseQueryResult} */ export declare const useQueryGetWMSGetCapabilities: (serviceUrl: string) => UseQueryResult; /** * Returns details about the WMS service * * @param {string} serviceUrl * @returns {(WMSServiceInfo | null)} */ export declare const useQueryGetWMSServiceInfo: (serviceUrl: string) => WMSServiceInfo | null; /** * Gets the layer tree in hierarchical order for a WMS service. Cached by TanStack. Uses the same store as in queryWMSGetCapabilities. * * @param {string} serviceUrl * @returns {(LayerTree | null)} */ export declare const useQueryGetWMSLayersTree: (serviceUrl: string) => LayerTree | null; /** * Gets the flat layer list (without hierarchy) for a WMS service. Cached by TanStack. Uses the same store as in queryWMSGetCapabilities. * * @param {string} serviceUrl * @returns {LayerProps[]} */ export declare const useQueryGetWMSLayers: (serviceUrl: string) => LayerProps[]; /** * Returns specific layer from the WMS service * * @param {string} serviceUrl * @param {string} name * @returns {(LayerProps | null)} */ export declare const useQueryGetWMSLayer: (serviceUrl: string, name: string) => LayerProps | null; /** * Returns a stylelist for given layer in a service * * @param {string} serviceUrl * @param {string} name * @returns {(Style[] | null)} */ export declare const useGetWMSLayerStyleList: (serviceUrl: string, name: string) => Style[] | null; /** * Returns a WMLayer instance. If the layerType is LayerType.mapLayer or LayerType.wmtsMapLayer, the layer will detect the right type and will contain the parsed dimensions and styles. * * @param layerFoundation * @returns object with wmLayer and if set an errorMessage */ export declare const useGetWMLayerInstance: (layerFoundation?: LayerFoundation) => { wmLayer: WMLayer | null; errorMessage: string | null; }; /** * Used for querying WMTS GetCapabilities documents * @param serviceUrl * @returns */ export declare const useQueryWMTSGetCapabilities: (serviceUrl: string) => UseQueryResult;