declare namespace ObjC{ namespace classes{ export class NSURLConnection extends NSObject{ initWithRequest_delegate_startImmediately_(request:NSURLRequest|NativePointer,delegate:NSObject|NativePointer,startImmediately:number|NativePointer):NSURLConnection; initWithRequest_delegate_(request:NSURLRequest|NativePointer,delegate:NSObject|NativePointer):NSURLConnection; static connectionWithRequest_delegate_(request:NSURLRequest|NativePointer,delegate:NSObject|NativePointer):NSURLConnection; start():any; cancel():any; scheduleInRunLoop_forMode_(aRunLoop:NSRunLoop|NativePointer,mode:any|NativePointer):any; unscheduleFromRunLoop_forMode_(aRunLoop:NSRunLoop|NativePointer,mode:any|NativePointer):any; setDelegateQueue_(queue:NSOperationQueue|NativePointer):any; static canHandleRequest_(request:NSURLRequest|NativePointer):number; originalRequest():NSURLRequest; currentRequest():NSURLRequest; static sendAsynchronousRequest_queue_completionHandler_(request:NSURLRequest|NativePointer,queue:NSOperationQueue|NativePointer,handler:NativePointer|NativePointer):any; static sendSynchronousRequest_returningResponse_error_(request:NSURLRequest|NativePointer,response:NSURLResponse|NativePointer,error:NSError|NativePointer):NSData; } } }