import { MapProvider } from "./MapProvider"; import type { IActivityHandler, IActivityContext } from "../../IActivityHandler"; /** Defines inputs for the basic Service Area Task activity. This task is related to the Route and Service Area tasks. */ export interface ServiceAreaTaskInputs { url: string; facilities: __esri.DataLayer | __esri.FeatureSet; accumulateAttributes?: string[]; attributeParameterValues?: any[]; defaultBreaks?: number[]; doNotLocateOnRestrictedElements?: boolean; excludeSourcesFromPolygons?: string[]; impedanceAttribute?: string; impedenceAttribute?: string; mergeSimilarPolygonRanges?: boolean; outputGeometryPrecision?: number; outputGeometryPrecisionUnits?: string; outputLines?: string; outputPolygons?: string; outSpatialReference?: number | string | __esri.SpatialReference; overlapLines?: boolean; overlapPolygons?: boolean; pointBarriers?: __esri.DataLayer | __esri.FeatureSet; polygonBarriers?: __esri.DataLayer | __esri.FeatureSet; polylineBarriers?: __esri.DataLayer | __esri.FeatureSet; restrictionAttributes?: string[]; restrictUTurns?: string; returnFacilities?: boolean; returnPointBarriers?: boolean; returnPolygonBarriers?: boolean; returnPolylineBarriers?: boolean; splitLinesAtBreaks?: boolean; splitPolygonsAtBreaks?: boolean; timeOfDay?: Date; travelDirection?: string; trimOuterPolygon?: boolean; trimPolygonDistance?: number; trimPolygonDistanceUnits?: string; useHierarchy?: boolean; } /** defines outputs for the Service Area Task activity. */ export interface ServiceAreaTaskOutputs { /** @description The facilities points. */ facilities: __esri.FeatureSet; /** @description The messages returned by the network analysis service. */ messages: __esri.NAMessage[]; /** @description The point barriers. */ pointBarriers: __esri.FeatureSet; /** @description The polygon barriers. */ polygonBarriers: __esri.FeatureSet; /** @description The polyline barriers. */ polylineBarriers: __esri.FeatureSet; /** @description The service area polygon features. */ serviceAreaPolygons: __esri.FeatureSet; /** @description The service area polyline features. */ serviceAreaPolylines: __esri.FeatureSet; } export declare class ServiceAreaTask implements IActivityHandler { static readonly action = "gcx:wf:arcgis::ServiceAreaTask"; static readonly suite = "gcx:wf:builtin"; execute(inputs: ServiceAreaTaskInputs, context: IActivityContext, MapProviderType: typeof MapProvider): Promise; }