import "exports"; import Deferred = require("../Deferred"); declare class Util { private static c; private static l; private static f; deepCopy, S extends Record>(target: T, source: S): T & S; deepCopyArray(t: T[]): T[]; deepCreate, P extends Record>(source: T, properties?: P): T & P; deferred(response: DojoJS.Response, cancel: (def: Deferred>, response: DojoJS.Response) => void, isValid: (response: DojoJS.Response) => boolean, isReady: (response: DojoJS.Response) => boolean, last?: boolean): DojoJS.RequestDeferred>; addCommonMethods(provider: T, methods: string[]): T; parseArgs(url: string, options: DojoJS.BaseOptions, skipData?: boolean): ParsedArgs; checkStatus(): boolean; } interface ParsedArgs { url: string; options: DojoJS.RequestOptions; getHeader(headerName: string): string; } declare global { namespace DojoJS { interface Response extends ParsedArgs { xhr?: XMLHttpRequest; requestOptions?: DojoJS.BaseOptions & { socketPath?: string; headers?: { [header: string]: string; }; agent?: string; pfx?: any; key?: string; passphrase?: string; cert?: any; ca?: any; ciphers?: string; rejectUnauthorized?: boolean; path?: string; auth?: string; username?: string; password?: string; socketOptions?: { timeout: number; noDelay: number; keepAlive: number; }; }; clientRequest?: any; hasSocket?: boolean; clientResponse?: any; status?: number; text?: string; data?: T; } interface RequestOptions extends BaseOptions, MethodOptions { } interface Request { /** * Send a request using the default transport for the current platform. */ (url: string, options?: RequestOptions): Promise; /** * Send an HTTP GET request using the default transport for the current platform. */ get(url: string, options?: BaseOptions): Promise; /** * Send an HTTP POST request using the default transport for the current platform. */ post(url: string, options?: BaseOptions): Promise; /** * Send an HTTP PUT request using the default transport for the current platform. */ put(url: string, options?: BaseOptions): Promise; /** * Send an HTTP DELETE request using the default transport for the current platform. */ del(url: string, options?: BaseOptions): Promise; } } } declare const _default: Util; export = _default; //# sourceMappingURL=util.d.ts.map