import { RequestBuilder, ICreateRuntimeMapOptions, IQueryMapFeaturesOptions, IDescribeRuntimeMapOptions } from '../request-builder';
import { RuntimeMap } from '../contracts/runtime-map';
import { QueryMapFeaturesResponse } from '../contracts/query';
import { ResourceIdentifier, ResourceBase, SiteVersionResponse } from '../contracts/common';
/**
 * Indicates if the given response is an error response
 *
 * @export
 * @param {Response} response
 * @returns {boolean}
 */
export declare function isErrorResponse(response: Response): boolean;
/**
 * Encodes the given object for a POST submission
 *
 * @export
 * @param {*} data
 * @returns {string}
 */
export declare function serialize(data: any, uppercase?: boolean): string;
/**
 * The mapagent client
 *
 * @export
 * @class MapAgentRequestBuilder
 * @extends {RequestBuilder}
 */
export declare class MapAgentRequestBuilder extends RequestBuilder {
    private locale;
    constructor(agentUri: string, locale?: string);
    get<T>(url: string): Promise<T>;
    post<T>(url: string, data: any): Promise<T>;
    private stringifyGetUrl;
    createSession(username: string, password: string): Promise<string>;
    getServerSessionTimeout(session: string): Promise<number>;
    getResource<T extends ResourceBase>(resourceId: ResourceIdentifier, args?: any): Promise<T>;
    getSiteVersion(): Promise<SiteVersionResponse>;
    createRuntimeMap(options: ICreateRuntimeMapOptions): Promise<RuntimeMap>;
    createRuntimeMap_v4(options: ICreateRuntimeMapOptions): Promise<RuntimeMap>;
    queryMapFeatures(options: IQueryMapFeaturesOptions): Promise<QueryMapFeaturesResponse>;
    queryMapFeatures_v4(options: IQueryMapFeaturesOptions): Promise<QueryMapFeaturesResponse>;
    describeRuntimeMap(options: IDescribeRuntimeMapOptions): Promise<RuntimeMap>;
    describeRuntimeMap_v4(options: IDescribeRuntimeMapOptions): Promise<RuntimeMap>;
    getTileTemplateUrl(resourceId: string, groupName: string, xPlaceholder: string, yPlaceholder: string, zPlaceholder: string, isXYZ: boolean): string;
}
