import { IActivityHandler, IActivityContext, Deferrable } from "../../IActivityHandler";
import { MapProvider } from "./MapProvider";
/** Defines inputs for the ReverseGeocode activity. */
export interface ReverseGeocodeInputs {
    /** The URL of the geocoding service. */
    url: string;
    /** The point at which to search for the closest address. The location parameter can be represented by a Point object or as a comma-separated list. The spatial reference can be specified if a Point is used; otherwise the spatial reference is assumed to be the same as that of the geocoding service. If comma-separated values are used, they must be in the following format: <XCoordinate>,<YCoordinate>. */
    location: number[] | __esri.Point;
    /** Specifies the radius of an area around a point location that should be searched. The distance value is in meters. If the distance parameter is not specified or invalid, a default value of 0 meters is used. */
    distance?: number;
    /** The well-known ID (WKID) of the spatial reference or a Spatial Reference object for the returned address candidates. For a list of valid WKID values, see http://resources.arcgis.com/EN/HELP/REST/APIREF/PCS.HTML and http://resources.arcgis.com/EN/HELP/REST/APIREF/GCS.HTML. */
    outSpatialReference?: number | string | __esri.SpatialReference;
    /** The language code. Note: Only supported by geocode services published using StreetMap Premium locators. Added at 10.3 and only supported by geocode services published with ArcGIS 10.3 for Server and later versions. */
    languageCode?: string;
    /** Determines whether the geocode service should return the nearest street intersection or the nearest address to the given point. If true, then the closest intersection to the input location is returned; if false, then the closest address to the input location is returned. The default value is false. Note: This parameter is only valid for geocode services that support intersections. A geocode service that supports intersections will include the IntersectionConnectors property in the service description. This parameter was added at 10.3. */
    returnIntersection?: boolean;
    /** The time span in milliseconds to wait for the request's results. */
    timeout?: number;
    /** This activity errors and causes the workflow to quit if it's provided with coordinates that don't match an address. Setting this parameter to true will continue the workflow on error. */
    continueOnError?: boolean;
}
/** Defines outputs for the ReverseGeocode activity. */
export interface ReverseGeocodeOutputs {
    address: {};
    location: __esri.Point;
}
export declare class ReverseGeocode implements IActivityHandler {
    static action: string;
    static suite: string;
    execute(inputs: ReverseGeocodeInputs, context: IActivityContext, type: typeof MapProvider): Deferrable<ReverseGeocodeOutputs>;
}
