import { IActivityHandler, IActivityContext, Deferrable } from "../../IActivityHandler";
/** Defines inputs for the Distance Service activity. This activity relies on an ArcGIS Geometry Service REST endpoint. */
export interface DistanceServiceTaskInputs {
    /** The URL of the ArcGIS geometry service. */
    url: string;
    /** The first input geometry. */
    geometry1: __esri.Geometry;
    /** The second input geometry. */
    geometry2: __esri.Geometry;
    /** Measurement unit of the return value. If the unit is not specified the units are derived from the spatial reference. */
    unit?: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards" | string;
    /** When true, the geodesic distance between geometry1 and geometry2 is measured. Defaults to false. */
    geodesic?: boolean;
}
/** Defines outputs for the Distance Service activity. */
export interface DistanceServiceTaskOutputs {
    /** The distance between the two geometries. */
    distance: number;
}
export declare class DistanceServiceTask implements IActivityHandler {
    static action: string;
    static suite: string;
    execute(inputs: DistanceServiceTaskInputs, context: IActivityContext): Deferrable<DistanceServiceTaskOutputs>;
}
