/// <reference types="@nativescript/objc-node-api" />

declare const kCFStreamPropertyHTTPFinalRequest: interop.Pointer;

declare const kCFNetworkProxiesExceptionsList: interop.Pointer;

declare const kCFStreamSSLAllowsAnyRoot: interop.Pointer;

declare const kCFStreamSSLIsServer: interop.Pointer;

declare const kCFNetworkProxiesHTTPSProxy: interop.Pointer;

declare const kCFHTTPAuthenticationSchemeNTLM: interop.Pointer;

declare const kCFSOCKSVersionKey: interop.Pointer;

declare const kCFStreamPropertySSLPeerTrust: interop.Pointer;

declare const kCFNetworkProxiesRTSPPort: interop.Pointer;

declare const kCFStreamErrorDomainSystemConfiguration: number;

declare const kCFHTTPAuthenticationSchemeXMobileMeAuthToken: interop.Pointer;

declare const kCFNetworkProxiesFTPPassive: interop.Pointer;

declare const kCFNetworkProxiesGopherEnable: interop.Pointer;

declare const kCFNetworkProxiesProxyAutoConfigEnable: interop.Pointer;

declare const kCFProxyTypeHTTP: interop.Pointer;

declare const kCFStreamSSLAllowsExpiredRoots: interop.Pointer;

declare const kCFStreamErrorSOCKS4RequestFailed: number;

declare const kCFStreamErrorSOCKS4SubDomainResponse: number;

declare const kCFStreamErrorDomainFTP: number;

declare const kCFStreamErrorSOCKSUnknownClientVersion: number;

declare const kCFStreamErrorSOCKS5SubDomainUserPass: number;

declare const kCFStreamPropertyHTTPRequestBytesWrittenCount: interop.Pointer;

declare const kCFStreamNetworkServiceTypeAVStreaming: interop.Pointer;

declare const kCFFTPResourceMode: interop.Pointer;

declare const kCFNetworkProxiesProxyAutoDiscoveryEnable: interop.Pointer;

declare const kCFNetworkProxiesRTSPProxy: interop.Pointer;

declare const kCFNetworkProxiesHTTPSEnable: interop.Pointer;

declare const kCFNetworkProxiesHTTPEnable: interop.Pointer;

declare const kCFNetworkProxiesGopherProxy: interop.Pointer;

declare const kCFNetworkProxiesGopherPort: interop.Pointer;

declare const kCFProxyAutoConfigurationHTTPResponseKey: interop.Pointer;

declare const kCFProxyTypeNone: interop.Pointer;

declare const kCFProxyUsernameKey: interop.Pointer;

declare const kCFProxyAutoConfigurationJavaScriptKey: interop.Pointer;

declare const kCFProxyAutoConfigurationURLKey: interop.Pointer;

declare const kCFProxyPortNumberKey: interop.Pointer;

declare const kCFProxyTypeKey: interop.Pointer;

declare const kCFHTTPAuthenticationPassword: interop.Pointer;

declare const kCFHTTPAuthenticationUsername: interop.Pointer;

declare const kCFStreamPropertyHTTPSProxyPort: interop.Pointer;

declare const kCFStreamPropertyHTTPProxyHost: interop.Pointer;

declare const kCFStreamPropertyHTTPProxy: interop.Pointer;

declare const kCFNetworkProxiesRTSPEnable: interop.Pointer;

declare const kCFStreamPropertyHTTPFinalURL: interop.Pointer;

declare const kCFStreamErrorDomainHTTP: number;

declare const kCFHTTPAuthenticationSchemeKerberos: interop.Pointer;

declare const kCFHTTPAuthenticationSchemeDigest: interop.Pointer;

declare const kCFHTTPAuthenticationSchemeBasic: interop.Pointer;

declare const kCFHTTPVersion2_0: interop.Pointer;

declare const kCFStreamPropertySocketExtendedBackgroundIdleMode: interop.Pointer;

declare const kCFFTPResourceLink: interop.Pointer;

declare const kCFFTPResourceOwner: interop.Pointer;

declare const kCFStreamPropertyFTPProxyPassword: interop.Pointer;

declare const kCFStreamPropertyFTPProxy: interop.Pointer;

declare const kCFStreamPropertyFTPAttemptPersistentConnection: interop.Pointer;

declare const kCFNetworkProxiesFTPProxy: interop.Pointer;

declare const kCFStreamPropertyFTPFileTransferOffset: interop.Pointer;

declare const kCFStreamPropertyFTPFetchResourceInfo: interop.Pointer;

declare const kCFStreamPropertyFTPResourceSize: interop.Pointer;

declare const kCFStreamPropertySocketRemoteHost: interop.Pointer;

declare const kSOCKS5NoAcceptableMethod: number;

declare const kCFStreamErrorSOCKS5SubDomainMethod: number;

declare const kCFStreamNetworkServiceTypeResponsiveData: interop.Pointer;

declare const kCFStreamNetworkServiceTypeBackground: interop.Pointer;

declare const kCFStreamNetworkServiceTypeVideo: interop.Pointer;

declare const kCFStreamSSLPeerName: interop.Pointer;

declare const kCFStreamPropertySSLContext: interop.Pointer;

declare const kCFStreamErrorDomainMach: number;

declare const kCFFTPStatusCodeKey: interop.Pointer;

declare const kCFSOCKSNegotiationMethodKey: interop.Pointer;

declare const kCFSOCKSStatusCodeKey: interop.Pointer;

declare const kCFURLErrorFailingURLStringErrorKey: interop.Pointer;

declare const kCFURLErrorFailingURLErrorKey: interop.Pointer;

declare const kCFNetworkProxiesHTTPPort: interop.Pointer;

declare const kCFStreamPropertyConnectionIsCellular: interop.Pointer;

declare const kCFProxyHostNameKey: interop.Pointer;

declare const kCFStreamPropertyHTTPShouldAutoredirect: interop.Pointer;

declare const kCFNetworkProxiesSOCKSPort: interop.Pointer;

declare const kCFProxyTypeHTTPS: interop.Pointer;

declare const kCFStreamPropertyFTPPassword: interop.Pointer;

declare const kCFProxyTypeSOCKS: interop.Pointer;

declare const kCFHTTPAuthenticationAccountDomain: interop.Pointer;

declare const kCFStreamNetworkServiceType: interop.Pointer;

declare const kCFStreamNetworkServiceTypeResponsiveAV: interop.Pointer;

declare const kCFNetworkProxiesHTTPSPort: interop.Pointer;

declare const kCFStreamSSLValidatesCertificateChain: interop.Pointer;

declare const kCFStreamErrorSOCKS5SubDomainResponse: number;

declare const kCFProxyTypeFTP: interop.Pointer;

declare const kCFStreamSSLLevel: interop.Pointer;

declare const kCFStreamErrorSOCKSSubDomainNone: number;

declare const kCFStreamNetworkServiceTypeVoIP: interop.Pointer;

declare const kCFStreamPropertyHTTPSProxyHost: interop.Pointer;

declare const kCFStreamErrorSOCKS4IdentdFailed: number;

declare const kCFHTTPVersion1_0: interop.Pointer;

declare const kCFStreamSSLCertificates: interop.Pointer;

declare const kCFStreamSSLAllowsExpiredCertificates: interop.Pointer;

declare const kCFNetworkProxiesSOCKSEnable: interop.Pointer;

declare const kCFFTPResourceType: interop.Pointer;

declare const kCFHTTPAuthenticationSchemeNegotiate: interop.Pointer;

declare const kCFStreamPropertySSLSettings: interop.Pointer;

declare const kCFStreamPropertyNoCellular: interop.Pointer;

declare const kCFHTTPAuthenticationSchemeNegotiate2: interop.Pointer;

declare const kCFNetworkProxiesProxyAutoConfigURLString: interop.Pointer;

declare const kCFStreamErrorDomainWinSock: number;

declare const kCFStreamPropertyHTTPProxyPort: interop.Pointer;

declare const kCFGetAddrInfoFailureKey: interop.Pointer;

declare const kCFStreamPropertySSLPeerCertificates: interop.Pointer;

declare const kCFProxyTypeAutoConfigurationURL: interop.Pointer;

declare const kCFStreamErrorSOCKS4IdConflict: number;

declare const kCFStreamPropertyHTTPResponseHeader: interop.Pointer;

declare const kCFStreamPropertyFTPUsePassiveMode: interop.Pointer;

declare const kCFNetworkProxiesExcludeSimpleHostnames: interop.Pointer;

declare const kCFFTPResourceGroup: interop.Pointer;

declare const kCFFTPResourceSize: interop.Pointer;

declare const kCFStreamPropertyConnectionIsExpensive: interop.Pointer;

declare const kCFStreamPropertyAllowExpensiveNetworkAccess: interop.Pointer;

declare const kCFNetworkProxiesFTPEnable: interop.Pointer;

declare const kCFStreamErrorDomainNetDB: number;

declare const kCFNetworkProxiesHTTPProxy: interop.Pointer;

declare const kCFHTTPVersion1_1: interop.Pointer;

declare const kCFStreamErrorSOCKS5BadResponseAddr: number;

declare const kCFHTTPVersion3_0: interop.Pointer;

declare const kCFProxyTypeAutoConfigurationJavaScript: interop.Pointer;

declare const kCFErrorDomainWinSock: interop.Pointer;

declare const kCFStreamPropertyFTPProxyUser: interop.Pointer;

declare const kCFStreamPropertyFTPUserName: interop.Pointer;

declare const kCFProxyPasswordKey: interop.Pointer;

declare const kCFFTPResourceModDate: interop.Pointer;

declare const kCFNetworkProxiesSOCKSProxy: interop.Pointer;

declare const kCFStreamPropertyFTPProxyPort: interop.Pointer;

declare const kCFStreamErrorSOCKSSubDomainVersionCode: number;

declare const kCFStreamNetworkServiceTypeVoice: interop.Pointer;

declare const kCFStreamNetworkServiceTypeCallSignaling: interop.Pointer;

declare const kCFStreamErrorSOCKS5BadState: number;

declare const kCFErrorDomainCFNetwork: interop.Pointer;

declare const kCFNetworkProxiesFTPPort: interop.Pointer;

declare const kCFStreamErrorDomainNetServices: number;

declare const kCFDNSServiceFailureKey: interop.Pointer;

declare const kCFStreamPropertyProxyLocalBypass: interop.Pointer;

declare const kCFStreamPropertyFTPProxyHost: interop.Pointer;

declare const kCFStreamPropertySocketRemoteNetService: interop.Pointer;

declare const kCFFTPResourceName: interop.Pointer;

declare const kCFStreamPropertyAllowConstrainedNetworkAccess: interop.Pointer;

declare const kCFNetworkProxiesProxyAutoConfigJavaScript: interop.Pointer;

declare const kCFStreamPropertyHTTPAttemptPersistentConnection: interop.Pointer;

declare const CFNetServiceBrowserFlags: {
  MoreComing: 1,
  IsDomain: 2,
  IsDefault: 4,
  IsRegistrationDomain: 4,
  Remove: 8,
};

declare const CFHostInfoType: {
  Addresses: 0,
  Names: 1,
  Reachability: 2,
};

declare const CFStreamErrorHTTP: {
  ParseFailure: -1,
  RedirectionLoop: -2,
  BadURL: -3,
};

declare const CFNetServiceMonitorType: {
  kCFNetServiceMonitorTXT: 1,
};

declare const CFNetworkErrors: {
  HostErrorHostNotFound: 1,
  HostErrorUnknown: 2,
  SOCKSErrorUnknownClientVersion: 100,
  SOCKSErrorUnsupportedServerVersion: 101,
  SOCKS4ErrorRequestFailed: 110,
  SOCKS4ErrorIdentdFailed: 111,
  SOCKS4ErrorIdConflict: 112,
  SOCKS4ErrorUnknownStatusCode: 113,
  SOCKS5ErrorBadState: 120,
  SOCKS5ErrorBadResponseAddr: 121,
  SOCKS5ErrorBadCredentials: 122,
  SOCKS5ErrorUnsupportedNegotiationMethod: 123,
  SOCKS5ErrorNoAcceptableMethod: 124,
  FTPErrorUnexpectedStatusCode: 200,
  ErrorHTTPAuthenticationTypeUnsupported: 300,
  ErrorHTTPBadCredentials: 301,
  ErrorHTTPConnectionLost: 302,
  ErrorHTTPParseFailure: 303,
  ErrorHTTPRedirectionLoopDetected: 304,
  ErrorHTTPBadURL: 305,
  ErrorHTTPProxyConnectionFailure: 306,
  ErrorHTTPBadProxyCredentials: 307,
  ErrorPACFileError: 308,
  ErrorPACFileAuth: 309,
  ErrorHTTPSProxyConnectionFailure: 310,
  StreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod: 311,
  URLErrorBackgroundSessionInUseByAnotherProcess: -996,
  URLErrorBackgroundSessionWasDisconnected: -997,
  URLErrorUnknown: -998,
  URLErrorCancelled: -999,
  URLErrorBadURL: -1000,
  URLErrorTimedOut: -1001,
  URLErrorUnsupportedURL: -1002,
  URLErrorCannotFindHost: -1003,
  URLErrorCannotConnectToHost: -1004,
  URLErrorNetworkConnectionLost: -1005,
  URLErrorDNSLookupFailed: -1006,
  URLErrorHTTPTooManyRedirects: -1007,
  URLErrorResourceUnavailable: -1008,
  URLErrorNotConnectedToInternet: -1009,
  URLErrorRedirectToNonExistentLocation: -1010,
  URLErrorBadServerResponse: -1011,
  URLErrorUserCancelledAuthentication: -1012,
  URLErrorUserAuthenticationRequired: -1013,
  URLErrorZeroByteResource: -1014,
  URLErrorCannotDecodeRawData: -1015,
  URLErrorCannotDecodeContentData: -1016,
  URLErrorCannotParseResponse: -1017,
  URLErrorInternationalRoamingOff: -1018,
  URLErrorCallIsActive: -1019,
  URLErrorDataNotAllowed: -1020,
  URLErrorRequestBodyStreamExhausted: -1021,
  URLErrorAppTransportSecurityRequiresSecureConnection: -1022,
  URLErrorFileDoesNotExist: -1100,
  URLErrorFileIsDirectory: -1101,
  URLErrorNoPermissionsToReadFile: -1102,
  URLErrorDataLengthExceedsMaximum: -1103,
  URLErrorFileOutsideSafeArea: -1104,
  URLErrorSecureConnectionFailed: -1200,
  URLErrorServerCertificateHasBadDate: -1201,
  URLErrorServerCertificateUntrusted: -1202,
  URLErrorServerCertificateHasUnknownRoot: -1203,
  URLErrorServerCertificateNotYetValid: -1204,
  URLErrorClientCertificateRejected: -1205,
  URLErrorClientCertificateRequired: -1206,
  URLErrorCannotLoadFromNetwork: -2000,
  URLErrorCannotCreateFile: -3000,
  URLErrorCannotOpenFile: -3001,
  URLErrorCannotCloseFile: -3002,
  URLErrorCannotWriteToFile: -3003,
  URLErrorCannotRemoveFile: -3004,
  URLErrorCannotMoveFile: -3005,
  URLErrorDownloadDecodingFailedMidStream: -3006,
  URLErrorDownloadDecodingFailedToComplete: -3007,
  HTTPCookieCannotParseCookieFile: -4000,
  NetServiceErrorUnknown: -72000,
  NetServiceErrorCollision: -72001,
  NetServiceErrorNotFound: -72002,
  NetServiceErrorInProgress: -72003,
  NetServiceErrorBadArgument: -72004,
  NetServiceErrorCancel: -72005,
  NetServiceErrorInvalid: -72006,
  NetServiceErrorTimeout: -72007,
  NetServiceErrorDNSServiceFailure: -73000,
};

declare const CFNetDiagnosticStatusValues: {
  NoErr: 0,
  Err: -66560,
  ConnectionUp: -66559,
  ConnectionIndeterminate: -66558,
  ConnectionDown: -66557,
};

declare const CFStreamErrorHTTPAuthentication: {
  TypeUnsupported: -1000,
  BadUserName: -1001,
  BadPassword: -1002,
};

declare const CFNetServiceRegisterFlags: {
  kCFNetServiceFlagNoAutoRename: 1,
};

declare const CFNetServicesError: {
  Unknown: -72000,
  Collision: -72001,
  NotFound: -72002,
  InProgress: -72003,
  BadArgument: -72004,
  Cancel: -72005,
  Invalid: -72006,
  Timeout: -72007,
  MissingRequiredConfiguration: -72008,
};

declare class __CFHTTPMessage {
  constructor(init?: __CFHTTPMessage);
}

declare class _CFHTTPAuthentication {
  constructor(init?: _CFHTTPAuthentication);
}

declare class __CFNetDiagnostic {
  constructor(init?: __CFNetDiagnostic);
}

declare class CFNetServiceClientContext {
  constructor(init?: CFNetServiceClientContext);
  version: number;
  info: interop.Pointer;
  retain: (p1: interop.PointerConvertible) => interop.Pointer | null;
  release: (p1: interop.PointerConvertible) => void | null;
  copyDescription: (p1: interop.PointerConvertible) => interop.Pointer | null;
}

declare class __CFNetServiceMonitor {
  constructor(init?: __CFNetServiceMonitor);
}

declare class __CFNetService {
  constructor(init?: __CFNetService);
}

declare class CFHostClientContext {
  constructor(init?: CFHostClientContext);
  version: number;
  info: interop.Pointer;
  retain: (p1: interop.PointerConvertible) => interop.Pointer | null;
  release: (p1: interop.PointerConvertible) => void | null;
  copyDescription: (p1: interop.PointerConvertible) => interop.Pointer | null;
}

declare class __CFHost {
  constructor(init?: __CFHost);
}

declare class __CFNetServiceBrowser {
  constructor(init?: __CFNetServiceBrowser);
}

declare function CFHostGetTypeID(): number;

declare function CFHostCreateWithName(allocator: interop.Object, hostname: interop.Object): interop.Object;

declare function CFHostCreateWithAddress(allocator: interop.Object, addr: interop.Object): interop.Object;

declare function CFHostCreateCopy(alloc: interop.Object, host: interop.Object): interop.Object;

declare function CFHostStartInfoResolution(theHost: interop.Object, info: interop.Enum<typeof CFHostInfoType>, error: interop.PointerConvertible): number;

declare function CFHostGetAddressing(theHost: interop.Object, hasBeenResolved: interop.PointerConvertible): interop.Object;

declare function CFHostGetNames(theHost: interop.Object, hasBeenResolved: interop.PointerConvertible): interop.Object;

declare function CFHostGetReachability(theHost: interop.Object, hasBeenResolved: interop.PointerConvertible): interop.Object;

declare function CFHostCancelInfoResolution(theHost: interop.Object, info: interop.Enum<typeof CFHostInfoType>): void;

declare function CFHostSetClient(theHost: interop.Object, clientCB: (p1: interop.PointerConvertible, p2: interop.Enum<typeof CFHostInfoType>, p3: interop.PointerConvertible, p4: interop.PointerConvertible) => void, clientContext: interop.PointerConvertible): number;

declare function CFHostScheduleWithRunLoop(theHost: interop.Object, runLoop: interop.Object, runLoopMode: interop.Object): void;

declare function CFHostUnscheduleFromRunLoop(theHost: interop.Object, runLoop: interop.Object, runLoopMode: interop.Object): void;

declare function CFNetServiceGetTypeID(): number;

declare function CFNetServiceMonitorGetTypeID(): number;

declare function CFNetServiceBrowserGetTypeID(): number;

declare function CFNetServiceCreate(alloc: interop.Object, domain: interop.Object, serviceType: interop.Object, name: interop.Object, port: number): interop.Object;

declare function CFNetServiceCreateCopy(alloc: interop.Object, service: interop.Object): interop.Object;

declare function CFNetServiceGetDomain(theService: interop.Object): interop.Object;

declare function CFNetServiceGetType(theService: interop.Object): interop.Object;

declare function CFNetServiceGetName(theService: interop.Object): interop.Object;

declare function CFNetServiceRegisterWithOptions(theService: interop.Object, options: number, error: interop.PointerConvertible): number;

declare function CFNetServiceResolveWithTimeout(theService: interop.Object, timeout: number, error: interop.PointerConvertible): number;

declare function CFNetServiceCancel(theService: interop.Object): void;

declare function CFNetServiceGetTargetHost(theService: interop.Object): interop.Object;

declare function CFNetServiceGetPortNumber(theService: interop.Object): number;

declare function CFNetServiceGetAddressing(theService: interop.Object): interop.Object;

declare function CFNetServiceGetTXTData(theService: interop.Object): interop.Object;

declare function CFNetServiceSetTXTData(theService: interop.Object, txtRecord: interop.Object): number;

declare function CFNetServiceCreateDictionaryWithTXTData(alloc: interop.Object, txtRecord: interop.Object): interop.Object;

declare function CFNetServiceCreateTXTDataWithDictionary(alloc: interop.Object, keyValuePairs: interop.Object): interop.Object;

declare function CFNetServiceSetClient(theService: interop.Object, clientCB: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: interop.PointerConvertible) => void, clientContext: interop.PointerConvertible): number;

declare function CFNetServiceScheduleWithRunLoop(theService: interop.Object, runLoop: interop.Object, runLoopMode: interop.Object): void;

declare function CFNetServiceUnscheduleFromRunLoop(theService: interop.Object, runLoop: interop.Object, runLoopMode: interop.Object): void;

declare function CFNetServiceMonitorCreate(alloc: interop.Object, theService: interop.Object, clientCB: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: interop.Enum<typeof CFNetServiceMonitorType>, p4: interop.PointerConvertible, p5: interop.PointerConvertible, p6: interop.PointerConvertible) => void, clientContext: interop.PointerConvertible): interop.Object;

declare function CFNetServiceMonitorInvalidate(monitor: interop.Object): void;

declare function CFNetServiceMonitorStart(monitor: interop.Object, recordType: interop.Enum<typeof CFNetServiceMonitorType>, error: interop.PointerConvertible): number;

declare function CFNetServiceMonitorStop(monitor: interop.Object, error: interop.PointerConvertible): void;

declare function CFNetServiceMonitorScheduleWithRunLoop(monitor: interop.Object, runLoop: interop.Object, runLoopMode: interop.Object): void;

declare function CFNetServiceMonitorUnscheduleFromRunLoop(monitor: interop.Object, runLoop: interop.Object, runLoopMode: interop.Object): void;

declare function CFNetServiceBrowserCreate(alloc: interop.Object, clientCB: (p1: interop.PointerConvertible, p2: number, p3: interop.PointerConvertible, p4: interop.PointerConvertible, p5: interop.PointerConvertible) => void, clientContext: interop.PointerConvertible): interop.Object;

declare function CFNetServiceBrowserInvalidate(browser: interop.Object): void;

declare function CFNetServiceBrowserSearchForDomains(browser: interop.Object, registrationDomains: number, error: interop.PointerConvertible): number;

declare function CFNetServiceBrowserSearchForServices(browser: interop.Object, domain: interop.Object, serviceType: interop.Object, error: interop.PointerConvertible): number;

declare function CFNetServiceBrowserStopSearch(browser: interop.Object, error: interop.PointerConvertible): void;

declare function CFNetServiceBrowserScheduleWithRunLoop(browser: interop.Object, runLoop: interop.Object, runLoopMode: interop.Object): void;

declare function CFNetServiceBrowserUnscheduleFromRunLoop(browser: interop.Object, runLoop: interop.Object, runLoopMode: interop.Object): void;

declare function CFNetServiceRegister(theService: interop.Object, error: interop.PointerConvertible): number;

declare function CFNetServiceResolve(theService: interop.Object, error: interop.PointerConvertible): number;

declare function CFStreamCreatePairWithSocketToCFHost(alloc: interop.Object, host: interop.Object, port: number, readStream: interop.PointerConvertible, writeStream: interop.PointerConvertible): void;

declare function CFStreamCreatePairWithSocketToNetService(alloc: interop.Object, service: interop.Object, readStream: interop.PointerConvertible, writeStream: interop.PointerConvertible): void;

declare function CFReadStreamCreateWithFTPURL(alloc: interop.Object, ftpURL: interop.Object): interop.Object;

declare function CFFTPCreateParsedResourceListing(alloc: interop.Object, buffer: interop.PointerConvertible, bufferLength: number, parsed: interop.PointerConvertible): number;

declare function CFWriteStreamCreateWithFTPURL(alloc: interop.Object, ftpURL: interop.Object): interop.Object;

declare function CFHTTPMessageGetTypeID(): number;

declare function CFHTTPMessageCreateRequest(alloc: interop.Object, requestMethod: interop.Object, url: interop.Object, httpVersion: interop.Object): interop.Object;

declare function CFHTTPMessageCreateResponse(alloc: interop.Object, statusCode: number, statusDescription: interop.Object, httpVersion: interop.Object): interop.Object;

declare function CFHTTPMessageCreateEmpty(alloc: interop.Object, isRequest: number): interop.Object;

declare function CFHTTPMessageCreateCopy(alloc: interop.Object, message: interop.Object): interop.Object;

declare function CFHTTPMessageIsRequest(message: interop.Object): number;

declare function CFHTTPMessageCopyVersion(message: interop.Object): interop.Object;

declare function CFHTTPMessageCopyBody(message: interop.Object): interop.Object;

declare function CFHTTPMessageSetBody(message: interop.Object, bodyData: interop.Object): void;

declare function CFHTTPMessageCopyHeaderFieldValue(message: interop.Object, headerField: interop.Object): interop.Object;

declare function CFHTTPMessageCopyAllHeaderFields(message: interop.Object): interop.Object;

declare function CFHTTPMessageSetHeaderFieldValue(message: interop.Object, headerField: interop.Object, value: interop.Object): void;

declare function CFHTTPMessageAppendBytes(message: interop.Object, newBytes: interop.PointerConvertible, numBytes: number): number;

declare function CFHTTPMessageIsHeaderComplete(message: interop.Object): number;

declare function CFHTTPMessageCopySerializedMessage(message: interop.Object): interop.Object;

declare function CFHTTPMessageCopyRequestURL(request: interop.Object): interop.Object;

declare function CFHTTPMessageCopyRequestMethod(request: interop.Object): interop.Object;

declare function CFHTTPMessageAddAuthentication(request: interop.Object, authenticationFailureResponse: interop.Object, username: interop.Object, password: interop.Object, authenticationScheme: interop.Object, forProxy: number): number;

declare function CFHTTPMessageGetResponseStatusCode(response: interop.Object): number;

declare function CFHTTPMessageCopyResponseStatusLine(response: interop.Object): interop.Object;

declare function CFReadStreamCreateForHTTPRequest(alloc: interop.Object, request: interop.Object): interop.Object;

declare function CFReadStreamCreateForStreamedHTTPRequest(alloc: interop.Object, requestHeaders: interop.Object, requestBody: interop.Object): interop.Object;

declare function CFHTTPAuthenticationGetTypeID(): number;

declare function CFHTTPAuthenticationCreateFromResponse(alloc: interop.Object, response: interop.Object): interop.Object;

declare function CFHTTPAuthenticationIsValid(auth: interop.Object, error: interop.PointerConvertible): number;

declare function CFHTTPAuthenticationAppliesToRequest(auth: interop.Object, request: interop.Object): number;

declare function CFHTTPAuthenticationRequiresOrderedRequests(auth: interop.Object): number;

declare function CFHTTPMessageApplyCredentials(request: interop.Object, auth: interop.Object, username: interop.Object, password: interop.Object, error: interop.PointerConvertible): number;

declare function CFHTTPMessageApplyCredentialDictionary(request: interop.Object, auth: interop.Object, dict: interop.Object, error: interop.PointerConvertible): number;

declare function CFHTTPAuthenticationCopyRealm(auth: interop.Object): interop.Object;

declare function CFHTTPAuthenticationCopyDomains(auth: interop.Object): interop.Object;

declare function CFHTTPAuthenticationCopyMethod(auth: interop.Object): interop.Object;

declare function CFHTTPAuthenticationRequiresUserNameAndPassword(auth: interop.Object): number;

declare function CFHTTPAuthenticationRequiresAccountDomain(auth: interop.Object): number;

declare function CFNetDiagnosticCreateWithStreams(alloc: interop.Object, readStream: interop.Object, writeStream: interop.Object): interop.Object;

declare function CFNetDiagnosticCreateWithURL(alloc: interop.Object, url: interop.Object): interop.Object;

declare function CFNetDiagnosticSetName(details: interop.Object, name: interop.Object): void;

declare function CFNetDiagnosticDiagnoseProblemInteractively(details: interop.Object): number;

declare function CFNetDiagnosticCopyNetworkStatusPassively(details: interop.Object, description: interop.PointerConvertible): number;

declare function CFNetworkCopySystemProxySettings(): interop.Object;

declare function CFNetworkCopyProxiesForURL(url: interop.Object, proxySettings: interop.Object): interop.Object;

declare function CFNetworkCopyProxiesForAutoConfigurationScript(proxyAutoConfigurationScript: interop.Object, targetURL: interop.Object, error: interop.PointerConvertible): interop.Object;

declare function CFNetworkExecuteProxyAutoConfigurationScript(proxyAutoConfigurationScript: interop.Object, targetURL: interop.Object, cb: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: interop.PointerConvertible) => void, clientContext: interop.PointerConvertible): interop.Object;

declare function CFNetworkExecuteProxyAutoConfigurationURL(proxyAutoConfigURL: interop.Object, targetURL: interop.Object, cb: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: interop.PointerConvertible) => void, clientContext: interop.PointerConvertible): interop.Object;

