import { IActivityHandler } from "../../IActivityHandler";
import config from "esri/config";
/** Defines inputs for the RegisterCorsUrl activity. */
export interface RegisterCorsUrlInputs {
    /** Indicates the URL of the server to register as CORS enabled. */
    url: string;
    /** Indicates whether or not the CORS enabled server supports credentials. */
    withCredentials?: boolean;
}
/** Defines outputs for the RegisterCorsUrl activity. */
export interface RegisterCorsUrlOutputs {
    /** A boolean which indicates whether the server was successfully registered as CORS enabled. */
    success: boolean;
}
export declare class RegisterCorsUrl implements IActivityHandler {
    static action: string;
    static suite: string;
    esriConfig: config;
    isApi3x: boolean;
    isApiAtLeast49: boolean;
    execute(inputs: RegisterCorsUrlInputs): RegisterCorsUrlOutputs;
    private registerCorsUrl;
    /** Configures the `useCors` parameter. Only applicable to javascript api's below version 4.9 */
    private configureCorsSupport;
    /** Adds the given host to the list of cors enabled servers if not present already. */
    private tryAddCorsEnabledServer;
    /** Adds the given host to the list of trusted servers if not present already. */
    private tryAddTrustedServer;
}
