import { GetMethodOptions } from "./api/getMethod"; import { PostMethodOptions } from "./api/postMethod"; import { PutMethodOptions } from "./api/putMethod"; import { OptionsMethodOptions } from "./api/optionsMethod"; import { ConnectMethodOptions } from "./api/connectMethod"; import { TraceMethodOptions } from "./api/traceMethod"; import { PatchMethodOptions } from "./api/patchMethod"; import { DeleteMethodOptions } from "./api/deleteMethod"; import { PostFileMethodOptions } from "./api/postFileMethod"; import { UploadAsyncMethodOptions } from "./api/uploadAsyncMethod"; export interface SimpleGetOptions extends Partial { headers?: { [key: string]: string; }; } export interface SimplePostOptions extends Partial { headers?: { [key: string]: string; }; } export interface SimplePutOptions extends Partial { headers?: { [key: string]: string; }; } export interface SimpleDeleteOptions extends Partial { headers?: { [key: string]: string; }; } export interface SimplePostFileOptions extends Partial { headers?: { [key: string]: string; }; } export interface SimpleUploadAsyncOptions extends Partial { headers?: { [key: string]: string; }; } export interface SimpleOptionsOptions extends Partial { headers?: { [key: string]: string; }; } export interface SimpleConnectOptions extends Partial { headers?: { [key: string]: string; }; } export interface SimpleTraceOptions extends Partial { headers?: { [key: string]: string; }; } export interface SimplePatchOptions extends Partial { headers?: { [key: string]: string; }; } export declare const get: (path: string, options?: SimpleGetOptions) => Promise; export declare const post: (path: string, body?: any, options?: SimplePostOptions) => Promise; export declare const put: (path: string, body?: any, options?: SimplePutOptions) => Promise; export declare const deleteMethod: (path: string, body?: any, options?: SimpleDeleteOptions) => Promise; export declare const options: (path: string, opts?: SimpleOptionsOptions) => Promise; export declare const connect: (path: string, opts?: SimpleConnectOptions) => Promise; export declare const trace: (path: string, opts?: SimpleTraceOptions) => Promise; export declare const patch: (path: string, body?: any, opts?: SimplePatchOptions) => Promise; export declare const postFileMethod: (path: string, file: File, options?: SimplePostFileOptions) => Promise; export declare const uploadAsyncMethod: (path: string, uri: string, options?: SimpleUploadAsyncOptions) => Promise;