/// <reference types="node" />
/// <reference types="node" />
import * as https from 'https';
import { URL } from 'url';
export declare function getJson<T>(url: URL): Promise<T>;
export interface PostOptions extends https.RequestOptions {
    /** Response body should be parsed as JSON input. */
    json?: boolean;
    /** Response body should be read using given encoding. */
    encoding?: string;
    isAuthenticated?: boolean;
    serviceFriendlyName?: string;
    verbose?: boolean;
}
export declare function postJsonAsString(url: URL, requestBody: never, options: PostOptions): Promise<string>;
export declare function postJson<T>(url: URL, requestBody: never, options: PostOptions): Promise<T>;
