import { ImageSource, HttpRequestOptions, HttpResponse, File } from "@nativescript/core"; export declare function getString(url: string): Promise; export declare function getString(options: HttpRequestOptions): Promise; export declare function getJSON(url: string): Promise; export declare function getJSON(options: HttpRequestOptions): Promise; export declare function getImage(url: string): Promise; export declare function getImage(options: HttpRequestOptions): Promise; export declare function getFile(url: string, destinationFilePath?: string): Promise; export declare function getFile(options: HttpRequestOptions, destinationFilePath?: string): Promise; export declare function getBinary(url: string): Promise; export declare function getBinary(options: HttpRequestOptions): Promise; export declare function request(options: HttpRequestOptions): Promise; export declare function getFilenameFromUrl(url: string): string; export declare class HTTPFormDataEntry { data: any; name?: string; type?: string; constructor(data: any, name?: string, type?: string); } export declare type HTTPFormDataEntryValue = HTTPFormDataEntry | FormDataEntryValue | ArrayBuffer | Blob | File | string | any; export declare class HTTPFormData implements FormData { private values; append(name: string, value: HTTPFormDataEntryValue): void; delete(name: string): void; get(name: string): HTTPFormDataEntryValue | null; getAll(name: string): HTTPFormDataEntryValue[]; has(name: string): boolean; set(name: string, value: HTTPFormDataEntryValue): void; forEach(callbackfn: (value: HTTPFormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; } export declare enum ImageParseMethod { NEVER = 0, CONTENTTYPE = 1, ALWAYS = 2 } export declare function completeSelfCheck(options: HttpRequestOptions): Promise;