import { IFeatureServiceDefinition } from "@esri/arcgis-rest-types"; import { IUserRequestOptions } from "@esri/arcgis-rest-auth"; export interface IUpdateServiceDefinitionOptions extends IUserRequestOptions { updateDefinition?: Partial; } export interface IUpdateServiceDefinitionResult { success: boolean; } /** * ```js * import { updateServiceDefinition } from '@esri/arcgis-rest-service-admin'; * // * updateServiceDefinition(serviceurl, { * authentication: userSession, * updateDefinition: serviceDefinition * }); * ``` * Update a definition property in a hosted feature service. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/update-definition-feature-service-.htm) for more information. * * @param url - URL of feature service * @param requestOptions - Options for the request * @returns A Promise that resolves with success or error */ export declare function updateServiceDefinition(url: string, requestOptions: IUpdateServiceDefinitionOptions): Promise;