import { FeatureServiceJSON, IItem } from '../../types'; /** * Fetches the root JSON of a feature service. This resource provides basic information about the feature service, * including the feature layers and tables that it contains, the service description, and so on. * * If an 'Invalid token' error is encountered, it retries the request without the token. * * @param item - The item representing the feature service. * @param token - The token for authentication. * @param bypassCache - Whether to bypass the cache (default is false). If true, a query timestamp is added to the request to bypass any cached responses. * @returns {FeatureServiceJSON} A promise that resolves to a FeatureServiceJSON object. * @throws An error if the item is not a feature service or if the URL is not found. * * @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-service/ */ export declare const fetchFeatureServiceRootJSON: (item: IItem, token: string, bypassCache?: boolean) => Promise;