declare function OMGFormURLEncode(parameters: NSDictionary): string; declare class OMGHTTPURLRQ extends NSObject { static DELETEError(url: string, parameters: NSDictionary): NSMutableURLRequest; static GETError(url: string, parameters: NSDictionary): NSMutableURLRequest; static PATCHJSONError(url: string, JSONObject: any): NSMutableURLRequest; static POSTError(url: string, parametersOrMultipartFormData: any): NSMutableURLRequest; static POSTJSONError(url: string, JSONObject: any): NSMutableURLRequest; static PUTError(url: string, parameters: NSDictionary): NSMutableURLRequest; static PUTJSONError(url: string, JSONObject: any): NSMutableURLRequest; static alloc(): OMGHTTPURLRQ; // inherited from NSObject static new(): OMGHTTPURLRQ; // inherited from NSObject } declare var OMGHTTPURLRQVersionNumber: number; declare var OMGHTTPURLRQVersionNumberVar: number; declare var OMGHTTPURLRQVersionString: interop.Reference; declare var OMGHTTPURLRQVersionStringVar: interop.Reference; declare class OMGMultipartFormData extends NSObject { static alloc(): OMGMultipartFormData; // inherited from NSObject static new(): OMGMultipartFormData; // inherited from NSObject addFileParameterNameFilenameContentType(data: NSData, parameterName: string, filename: string, contentType: string): void; addParameters(parameters: NSDictionary): void; addTextParameterName(text: string, parameterName: string): void; } declare function OMGUserAgent(): string;