From e0433c1acaabffd78f0b3aa1b3acd041806fce7d Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Thu, 12 Sep 2019 15:04:01 +0300 Subject: [PATCH 1/6] feat(platform-declarations): generate typings from iOS 13.0 SDK --- tns-platform-declarations/ios/ios.d.ts | 17 +- .../ios/objc-x86_64/objc!ARKit.d.ts | 593 +- .../ios/objc-x86_64/objc!AVFoundation.d.ts | 922 ++- .../ios/objc-x86_64/objc!AVKit.d.ts | 21 + .../objc-x86_64/objc!AppleTextureEncoder.d.ts | 54 +- .../ios/objc-x86_64/objc!AudioToolbox.d.ts | 399 +- .../objc!AuthenticationServices.d.ts | 597 +- .../ios/objc-x86_64/objc!BackgroundTasks.d.ts | 96 + .../ios/objc-x86_64/objc!CFNetwork.d.ts | 10 + .../ios/objc-x86_64/objc!CallKit.d.ts | 12 +- .../ios/objc-x86_64/objc!CarPlay.d.ts | 125 +- .../ios/objc-x86_64/objc!ClassKit.d.ts | 19 +- .../ios/objc-x86_64/objc!CloudKit.d.ts | 98 +- .../ios/objc-x86_64/objc!CommonCrypto.d.ts | 8 - .../ios/objc-x86_64/objc!Contacts.d.ts | 676 +- .../ios/objc-x86_64/objc!CoreAudioKit.d.ts | 4 +- ...oreAudio.d.ts => objc!CoreAudioTypes.d.ts} | 107 +- .../ios/objc-x86_64/objc!CoreBluetooth.d.ts | 43 + .../ios/objc-x86_64/objc!CoreData.d.ts | 169 +- .../ios/objc-x86_64/objc!CoreFoundation.d.ts | 10 +- .../ios/objc-x86_64/objc!CoreGraphics.d.ts | 135 + .../ios/objc-x86_64/objc!CoreHaptics.d.ts | 380 + .../ios/objc-x86_64/objc!CoreImage.d.ts | 3608 ++++++++-- .../ios/objc-x86_64/objc!CoreLocation.d.ts | 97 +- .../ios/objc-x86_64/objc!CoreMIDI.d.ts | 10 +- .../ios/objc-x86_64/objc!CoreML.d.ts | 344 +- .../ios/objc-x86_64/objc!CoreMedia.d.ts | 56 +- .../ios/objc-x86_64/objc!CoreMotion.d.ts | 24 +- .../ios/objc-x86_64/objc!CoreNFC.d.ts | 434 +- .../ios/objc-x86_64/objc!CoreSpotlight.d.ts | 16 +- .../ios/objc-x86_64/objc!CoreTelephony.d.ts | 17 +- .../ios/objc-x86_64/objc!CoreText.d.ts | 62 +- .../ios/objc-x86_64/objc!CoreVideo.d.ts | 38 + .../ios/objc-x86_64/objc!CryptoTokenKit.d.ts | 696 ++ .../ios/objc-x86_64/objc!Darwin.d.ts | 695 +- .../ios/objc-x86_64/objc!Dispatch.d.ts | 23 + .../ios/objc-x86_64/objc!EventKit.d.ts | 22 +- .../ios/objc-x86_64/objc!FileProvider.d.ts | 30 +- .../ios/objc-x86_64/objc!Foundation.d.ts | 930 ++- .../ios/objc-x86_64/objc!GLKit.d.ts | 24 +- .../ios/objc-x86_64/objc!GameController.d.ts | 93 + .../ios/objc-x86_64/objc!GameKit.d.ts | 44 +- .../ios/objc-x86_64/objc!GameplayKit.d.ts | 40 +- .../ios/objc-x86_64/objc!HealthKit.d.ts | 293 +- .../ios/objc-x86_64/objc!HomeKit.d.ts | 79 +- .../ios/objc-x86_64/objc!ICU.d.ts | 164 +- .../ios/objc-x86_64/objc!IOSurface.d.ts | 92 +- .../ios/objc-x86_64/objc!IdentityLookup.d.ts | 32 +- .../objc-x86_64/objc!ImageCaptureCore.d.ts | 590 ++ .../ios/objc-x86_64/objc!ImageIO.d.ts | 38 + .../ios/objc-x86_64/objc!Intents.d.ts | 2979 +++++++- .../ios/objc-x86_64/objc!IntentsUI.d.ts | 12 +- .../ios/objc-x86_64/objc!JavaScriptCore.d.ts | 30 +- .../objc-x86_64/objc!LinkPresentation.d.ts | 88 + .../objc-x86_64/objc!LocalAuthentication.d.ts | 10 +- .../objc!MDFInternationalization.d.ts | 18 + .../ios/objc-x86_64/objc!MachO.d.ts | 1 + .../ios/objc-x86_64/objc!MapKit.d.ts | 542 +- .../objc-x86_64/objc!MediaAccessibility.d.ts | 8 + .../ios/objc-x86_64/objc!MediaPlayer.d.ts | 24 +- .../ios/objc-x86_64/objc!Messages.d.ts | 8 +- .../ios/objc-x86_64/objc!Metal.d.ts | 450 +- .../ios/objc-x86_64/objc!MetalKit.d.ts | 14 +- .../objc!MetalPerformanceShaders.d.ts | 11 + .../ios/objc-x86_64/objc!MetricKit.d.ts | 371 + .../ios/objc-x86_64/objc!ModelIO.d.ts | 42 + .../objc!MultipeerConnectivity.d.ts | 4 +- .../ios/objc-x86_64/objc!NaturalLanguage.d.ts | 106 +- .../ios/objc-x86_64/objc!Network.d.ts | 463 +- .../objc-x86_64/objc!NetworkExtension.d.ts | 204 +- .../ios/objc-x86_64/objc!OSLog.d.ts | 256 + .../ios/objc-x86_64/objc!ObjectiveC.d.ts | 67 +- .../ios/objc-x86_64/objc!PDFKit.d.ts | 14 +- .../ios/objc-x86_64/objc!PassKit.d.ts | 81 + .../ios/objc-x86_64/objc!PencilKit.d.ts | 234 + .../ios/objc-x86_64/objc!Photos.d.ts | 111 +- .../objc-x86_64/objc!Pods_iostypingsprj.d.ts | 4 + .../ios/objc-x86_64/objc!QuartzCore.d.ts | 70 +- .../ios/objc-x86_64/objc!QuickLook.d.ts | 52 +- .../objc!QuickLookThumbnailing.d.ts | 135 + .../ios/objc-x86_64/objc!ReplayKit.d.ts | 40 +- .../ios/objc-x86_64/objc!SQLite3.d.ts | 7 + .../ios/objc-x86_64/objc!SceneKit.d.ts | 307 +- .../ios/objc-x86_64/objc!Security.d.ts | 159 +- .../ios/objc-x86_64/objc!SoundAnalysis.d.ts | 189 + .../ios/objc-x86_64/objc!Speech.d.ts | 68 +- .../ios/objc-x86_64/objc!SpriteKit.d.ts | 131 +- .../ios/objc-x86_64/objc!StoreKit.d.ts | 86 +- .../ios/objc-x86_64/objc!UIKit.d.ts | 3441 +++++++++- .../objc-x86_64/objc!UserNotifications.d.ts | 56 +- .../objc!VideoSubscriberAccount.d.ts | 10 +- .../ios/objc-x86_64/objc!VideoToolbox.d.ts | 32 + .../ios/objc-x86_64/objc!Vision.d.ts | 342 +- .../ios/objc-x86_64/objc!VisionKit.d.ts | 37 + .../objc-x86_64/objc!WatchConnectivity.d.ts | 10 +- .../ios/objc-x86_64/objc!WatchKit.d.ts | 512 -- .../ios/objc-x86_64/objc!WebKit.d.ts | 77 +- .../objc-x86_64/objc!_Builtin_intrinsics.d.ts | 4 +- .../ios/objc-x86_64/objc!dnssd.d.ts | 6 +- .../ios/objc-x86_64/objc!libxml2.d.ts | 6092 ++++++++++++----- .../ios/objc-x86_64/objc!libxslt.d.ts | 370 - .../ios/objc-x86_64/objc!os.d.ts | 2 + 102 files changed, 26678 insertions(+), 4795 deletions(-) create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!BackgroundTasks.d.ts rename tns-platform-declarations/ios/objc-x86_64/{objc!CoreAudio.d.ts => objc!CoreAudioTypes.d.ts} (89%) create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!CoreHaptics.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!CryptoTokenKit.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!ImageCaptureCore.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!LinkPresentation.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!MDFInternationalization.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!MetricKit.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!PencilKit.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!Pods_iostypingsprj.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!QuickLookThumbnailing.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!SoundAnalysis.d.ts create mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!VisionKit.d.ts delete mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!WatchKit.d.ts delete mode 100644 tns-platform-declarations/ios/objc-x86_64/objc!libxslt.d.ts diff --git a/tns-platform-declarations/ios/ios.d.ts b/tns-platform-declarations/ios/ios.d.ts index 9b3b38c924..44227c7e6b 100644 --- a/tns-platform-declarations/ios/ios.d.ts +++ b/tns-platform-declarations/ios/ios.d.ts @@ -11,6 +11,7 @@ /// /// /// +/// /// /// /// @@ -21,12 +22,13 @@ /// /// /// -/// /// +/// /// /// /// /// +/// /// /// /// @@ -39,6 +41,7 @@ /// /// /// +/// /// /// /// @@ -61,11 +64,14 @@ /// /// /// +/// /// /// /// /// +/// /// +/// /// /// /// @@ -76,6 +82,7 @@ /// /// /// +/// /// /// /// @@ -84,22 +91,27 @@ /// /// /// +/// /// /// /// /// /// +/// /// /// +/// /// /// /// +/// /// /// /// /// /// /// +/// /// /// /// @@ -112,8 +124,8 @@ /// /// /// +/// /// -/// /// /// /// @@ -121,7 +133,6 @@ /// /// /// -/// /// /// /// diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!ARKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!ARKit.d.ts index eb23b5cdbf..5898dc6556 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!ARKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!ARKit.d.ts @@ -9,6 +9,8 @@ declare class ARAnchor extends NSObject implements ARAnchorCopying, NSSecureCodi readonly name: string; + readonly sessionIdentifier: NSUUID; + readonly transform: simd_float4x4; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding @@ -23,11 +25,11 @@ declare class ARAnchor extends NSObject implements ARAnchorCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAnchor(anchor: ARAnchor): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNameTransform(name: string, transform: simd_float4x4): this; @@ -147,6 +149,87 @@ declare var ARBlendShapeLocationNoseSneerRight: string; declare var ARBlendShapeLocationTongueOut: string; +declare class ARBody2D extends NSObject { + + static alloc(): ARBody2D; // inherited from NSObject + + static new(): ARBody2D; // inherited from NSObject + + readonly skeleton: ARSkeleton2D; +} + +declare class ARBodyAnchor extends ARAnchor implements ARTrackable { + + static alloc(): ARBodyAnchor; // inherited from NSObject + + static new(): ARBodyAnchor; // inherited from NSObject + + readonly estimatedScaleFactor: number; + + readonly skeleton: ARSkeleton3D; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly isTracked: boolean; // inherited from ARTrackable + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class ARBodyTrackingConfiguration extends ARConfiguration { + + static alloc(): ARBodyTrackingConfiguration; // inherited from NSObject + + static new(): ARBodyTrackingConfiguration; // inherited from NSObject + + autoFocusEnabled: boolean; + + automaticImageScaleEstimationEnabled: boolean; + + automaticSkeletonScaleEstimationEnabled: boolean; + + detectionImages: NSSet; + + environmentTexturing: AREnvironmentTexturing; + + initialWorldMap: ARWorldMap; + + maximumNumberOfTrackedImages: number; + + planeDetection: ARPlaneDetection; + + wantsHDREnvironmentTextures: boolean; +} + declare class ARCamera extends NSObject implements NSCopying { static alloc(): ARCamera; // inherited from NSObject @@ -155,6 +238,10 @@ declare class ARCamera extends NSObject implements NSCopying { readonly eulerAngles: interop.Reference; + readonly exposureDuration: number; + + readonly exposureOffset: number; + readonly imageResolution: CGSize; readonly intrinsics: simd_float3x3; @@ -178,12 +265,97 @@ declare class ARCamera extends NSObject implements NSCopying { viewMatrixForOrientation(orientation: UIInterfaceOrientation): simd_float4x4; } +declare const enum ARCoachingGoal { + + Tracking = 0, + + HorizontalPlane = 1, + + VerticalPlane = 2, + + AnyPlane = 3 +} + +declare class ARCoachingOverlayView extends UIView { + + static alloc(): ARCoachingOverlayView; // inherited from NSObject + + static appearance(): ARCoachingOverlayView; // inherited from UIAppearance + + static appearanceForTraitCollection(trait: UITraitCollection): ARCoachingOverlayView; // inherited from UIAppearance + + static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): ARCoachingOverlayView; // inherited from UIAppearance + + static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): ARCoachingOverlayView; // inherited from UIAppearance + + static appearanceWhenContainedIn(ContainerClass: typeof NSObject): ARCoachingOverlayView; // inherited from UIAppearance + + static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): ARCoachingOverlayView; // inherited from UIAppearance + + static new(): ARCoachingOverlayView; // inherited from NSObject + + activatesAutomatically: boolean; + + delegate: ARCoachingOverlayViewDelegate; + + goal: ARCoachingGoal; + + readonly isActive: boolean; + + session: ARSession; + + sessionProvider: NSObject; + + setActiveAnimated(active: boolean, animated: boolean): void; +} + +interface ARCoachingOverlayViewDelegate extends NSObjectProtocol { + + coachingOverlayViewDidDeactivate?(coachingOverlayView: ARCoachingOverlayView): void; + + coachingOverlayViewDidRequestSessionReset?(coachingOverlayView: ARCoachingOverlayView): void; + + coachingOverlayViewWillActivate?(coachingOverlayView: ARCoachingOverlayView): void; +} +declare var ARCoachingOverlayViewDelegate: { + + prototype: ARCoachingOverlayViewDelegate; +}; + +declare class ARCollaborationData extends NSObject implements NSSecureCoding { + + static alloc(): ARCollaborationData; // inherited from NSObject + + static new(): ARCollaborationData; // inherited from NSObject + + readonly priority: ARCollaborationDataPriority; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare const enum ARCollaborationDataPriority { + + Critical = 0, + + Optional = 1 +} + declare class ARConfiguration extends NSObject implements NSCopying { static alloc(): ARConfiguration; // inherited from NSObject static new(): ARConfiguration; // inherited from NSObject + static supportsFrameSemantics(frameSemantics: ARFrameSemantics): boolean; + + frameSemantics: ARFrameSemantics; + lightEstimationEnabled: boolean; providesAudioData: boolean; @@ -262,6 +434,8 @@ declare const enum ARErrorCode { InvalidConfiguration = 303, + CollaborationDataUnavailable = 304, + InsufficientFeatures = 400, ObjectMergeFailed = 401, @@ -350,11 +524,11 @@ declare class ARFaceGeometry extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithBlendShapes(blendShapes: NSDictionary): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class ARFaceTrackingConfiguration extends ARConfiguration { @@ -362,6 +536,14 @@ declare class ARFaceTrackingConfiguration extends ARConfiguration { static alloc(): ARFaceTrackingConfiguration; // inherited from NSObject static new(): ARFaceTrackingConfiguration; // inherited from NSObject + + maximumNumberOfTrackedFaces: number; + + worldTrackingEnabled: boolean; + + static readonly supportedNumberOfTrackedFaces: number; + + static readonly supportsWorldTracking: boolean; } declare class ARFrame extends NSObject implements NSCopying { @@ -374,16 +556,26 @@ declare class ARFrame extends NSObject implements NSCopying { readonly camera: ARCamera; + readonly cameraGrainIntensity: number; + + readonly cameraGrainTexture: MTLTexture; + readonly capturedDepthData: AVDepthData; readonly capturedDepthDataTimestamp: number; readonly capturedImage: any; + readonly detectedBody: ARBody2D; + + readonly estimatedDepthData: any; + readonly lightEstimate: ARLightEstimate; readonly rawFeaturePoints: ARPointCloud; + readonly segmentationBuffer: any; + readonly timestamp: number; readonly worldMappingStatus: ARWorldMappingStatus; @@ -393,6 +585,19 @@ declare class ARFrame extends NSObject implements NSCopying { displayTransformForOrientationViewportSize(orientation: UIInterfaceOrientation, viewportSize: CGSize): CGAffineTransform; hitTestTypes(point: CGPoint, types: ARHitTestResultType): NSArray; + + raycastQueryFromPointAllowingTargetAlignment(point: CGPoint, target: ARRaycastTarget, alignment: ARRaycastTargetAlignment): ARRaycastQuery; +} + +declare const enum ARFrameSemantics { + + None = 0, + + PersonSegmentation = 1, + + PersonSegmentationWithDepth = 3, + + BodyDetection = 4 } declare class ARHitTestResult extends NSObject { @@ -433,6 +638,8 @@ declare class ARImageAnchor extends ARAnchor implements ARTrackable { static new(): ARImageAnchor; // inherited from NSObject + readonly estimatedScaleFactor: number; + readonly referenceImage: ARReferenceImage; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -496,6 +703,28 @@ declare class ARLightEstimate extends NSObject { readonly ambientIntensity: number; } +declare class ARMatteGenerator extends NSObject { + + static alloc(): ARMatteGenerator; // inherited from NSObject + + static new(): ARMatteGenerator; // inherited from NSObject + + constructor(o: { device: MTLDevice; matteResolution: ARMatteResolution; }); + + generateDilatedDepthFromFrameCommandBuffer(frame: ARFrame, commandBuffer: MTLCommandBuffer): MTLTexture; + + generateMatteFromFrameCommandBuffer(frame: ARFrame, commandBuffer: MTLCommandBuffer): MTLTexture; + + initWithDeviceMatteResolution(device: MTLDevice, matteResolution: ARMatteResolution): this; +} + +declare const enum ARMatteResolution { + + Full = 0, + + Half = 1 +} + declare class ARObjectAnchor extends ARAnchor { static alloc(): ARObjectAnchor; // inherited from NSObject @@ -525,6 +754,13 @@ declare class AROrientationTrackingConfiguration extends ARConfiguration { autoFocusEnabled: boolean; } +declare class ARParticipantAnchor extends ARAnchor { + + static alloc(): ARParticipantAnchor; // inherited from NSObject + + static new(): ARParticipantAnchor; // inherited from NSObject +} + declare class ARPlaneAnchor extends ARAnchor { static alloc(): ARPlaneAnchor; // inherited from NSObject @@ -565,7 +801,11 @@ declare const enum ARPlaneClassification { Table = 4, - Seat = 5 + Seat = 5, + + Window = 6, + + Door = 7 } declare const enum ARPlaneClassificationStatus { @@ -614,9 +854,9 @@ declare class ARPlaneGeometry extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class ARPointCloud extends NSObject implements NSSecureCoding { @@ -635,9 +875,125 @@ declare class ARPointCloud extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class ARPositionalTrackingConfiguration extends ARConfiguration { + + static alloc(): ARPositionalTrackingConfiguration; // inherited from NSObject + + static new(): ARPositionalTrackingConfiguration; // inherited from NSObject + + initialWorldMap: ARWorldMap; + + planeDetection: ARPlaneDetection; +} + +declare class ARQuickLookPreviewItem extends NSObject implements QLPreviewItem { + + static alloc(): ARQuickLookPreviewItem; // inherited from NSObject + + static new(): ARQuickLookPreviewItem; // inherited from NSObject + + allowsContentScaling: boolean; + + canonicalWebPageURL: NSURL; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly previewItemTitle: string; // inherited from QLPreviewItem + + readonly previewItemURL: NSURL; // inherited from QLPreviewItem + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + constructor(o: { fileAtURL: NSURL; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + initWithFileAtURL(url: NSURL): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class ARRaycastQuery extends NSObject { + + static alloc(): ARRaycastQuery; // inherited from NSObject + + static new(): ARRaycastQuery; // inherited from NSObject + + readonly direction: interop.Reference; + + readonly origin: interop.Reference; + + readonly target: ARRaycastTarget; - initWithCoder(aDecoder: NSCoder): this; + readonly targetAlignment: ARRaycastTargetAlignment; + + constructor(o: { origin: interop.Reference; direction: interop.Reference; allowingTarget: ARRaycastTarget; alignment: ARRaycastTargetAlignment; }); + + initWithOriginDirectionAllowingTargetAlignment(origin: interop.Reference, direction: interop.Reference, target: ARRaycastTarget, alignment: ARRaycastTargetAlignment): this; +} + +declare class ARRaycastResult extends NSObject { + + static alloc(): ARRaycastResult; // inherited from NSObject + + static new(): ARRaycastResult; // inherited from NSObject + + readonly anchor: ARAnchor; + + readonly target: ARRaycastTarget; + + readonly targetAlignment: ARRaycastTargetAlignment; + + readonly worldTransform: simd_float4x4; +} + +declare const enum ARRaycastTarget { + + ExistingPlaneGeometry = 0, + + ExistingPlaneInfinite = 1, + + EstimatedPlane = 2 +} + +declare const enum ARRaycastTargetAlignment { + + Horizontal = 0, + + Vertical = 1, + + Any = 2 } declare class ARReferenceImage extends NSObject { @@ -652,6 +1008,8 @@ declare class ARReferenceImage extends NSObject { readonly physicalSize: CGSize; + readonly resourceGroupName: string; + constructor(o: { CGImage: any; orientation: CGImagePropertyOrientation; physicalWidth: number; }); constructor(o: { pixelBuffer: any; orientation: CGImagePropertyOrientation; physicalWidth: number; }); @@ -659,6 +1017,8 @@ declare class ARReferenceImage extends NSObject { initWithCGImageOrientationPhysicalWidth(image: any, orientation: CGImagePropertyOrientation, physicalWidth: number): this; initWithPixelBufferOrientationPhysicalWidth(pixelBuffer: any, orientation: CGImagePropertyOrientation, physicalWidth: number): this; + + validateWithCompletionHandler(completionHandler: (p1: NSError) => void): void; } declare class ARReferenceObject extends NSObject implements NSSecureCoding { @@ -677,6 +1037,8 @@ declare class ARReferenceObject extends NSObject implements NSSecureCoding { readonly rawFeaturePoints: ARPointCloud; + readonly resourceGroupName: string; + readonly scale: interop.Reference; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding @@ -685,13 +1047,13 @@ declare class ARReferenceObject extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; exportObjectToURLPreviewImageError(url: NSURL, previewImage: UIImage): boolean; initWithArchiveURLError(url: NSURL): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; referenceObjectByApplyingTransform(transform: simd_float4x4): ARReferenceObject; @@ -740,7 +1102,7 @@ declare class ARSCNPlaneGeometry extends SCNGeometry { updateFromPlaneGeometry(planeGeometry: ARPlaneGeometry): void; } -declare class ARSCNView extends SCNView { +declare class ARSCNView extends SCNView implements ARSessionProviding { static alloc(): ARSCNView; // inherited from NSObject @@ -762,14 +1124,54 @@ declare class ARSCNView extends SCNView { delegate: ARSCNViewDelegate; + rendersCameraGrain: boolean; + + rendersMotionBlur: boolean; + session: ARSession; + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + anchorForNode(node: SCNNode): ARAnchor; + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + hitTestTypes(point: CGPoint, types: ARHitTestResultType): NSArray; + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + nodeForAnchor(anchor: ARAnchor): SCNNode; + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + raycastQueryFromPointAllowingTargetAlignment(point: CGPoint, target: ARRaycastTarget, alignment: ARRaycastTargetAlignment): ARRaycastQuery; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; + unprojectPointOntoPlaneWithTransform(point: CGPoint, planeTransform: simd_float4x4): interop.Reference; } @@ -790,7 +1192,7 @@ declare var ARSCNViewDelegate: { prototype: ARSCNViewDelegate; }; -declare class ARSKView extends SKView { +declare class ARSKView extends SKView implements ARSessionProviding { static alloc(): ARSKView; // inherited from NSObject @@ -812,11 +1214,45 @@ declare class ARSKView extends SKView { session: ARSession; + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + anchorForNode(node: SKNode): ARAnchor; + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + hitTestTypes(point: CGPoint, types: ARHitTestResultType): NSArray; + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + nodeForAnchor(anchor: ARAnchor): SKNode; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } interface ARSKViewDelegate extends ARSessionObserver, SKViewDelegate { @@ -836,6 +1272,13 @@ declare var ARSKViewDelegate: { prototype: ARSKViewDelegate; }; +declare const enum ARSegmentationClass { + + None = 0, + + Person = 255 +} + declare class ARSession extends NSObject { static alloc(): ARSession; // inherited from NSObject @@ -850,6 +1293,8 @@ declare class ARSession extends NSObject { delegateQueue: NSObject; + readonly identifier: NSUUID; + addAnchor(anchor: ARAnchor): void; createReferenceObjectWithTransformCenterExtentCompletionHandler(transform: simd_float4x4, center: interop.Reference, extent: interop.Reference, completionHandler: (p1: ARReferenceObject, p2: NSError) => void): void; @@ -858,6 +1303,8 @@ declare class ARSession extends NSObject { pause(): void; + raycast(query: ARRaycastQuery): NSArray; + removeAnchor(anchor: ARAnchor): void; runWithConfiguration(configuration: ARConfiguration): void; @@ -865,6 +1312,10 @@ declare class ARSession extends NSObject { runWithConfigurationOptions(configuration: ARConfiguration, options: ARSessionRunOptions): void; setWorldOrigin(relativeTransform: simd_float4x4): void; + + trackedRaycastUpdateHandler(query: ARRaycastQuery, updateHandler: (p1: NSArray) => void): ARTrackedRaycast; + + updateWithCollaborationData(collaborationData: ARCollaborationData): void; } interface ARSessionDelegate extends ARSessionObserver { @@ -890,6 +1341,8 @@ interface ARSessionObserver extends NSObjectProtocol { sessionDidOutputAudioSampleBuffer?(session: ARSession, audioSampleBuffer: any): void; + sessionDidOutputCollaborationData?(session: ARSession, data: ARCollaborationData): void; + sessionInterruptionEnded?(session: ARSession): void; sessionShouldAttemptRelocalization?(session: ARSession): boolean; @@ -901,13 +1354,100 @@ declare var ARSessionObserver: { prototype: ARSessionObserver; }; +interface ARSessionProviding extends NSObjectProtocol { + + session: ARSession; +} +declare var ARSessionProviding: { + + prototype: ARSessionProviding; +}; + declare const enum ARSessionRunOptions { ResetTracking = 1, - RemoveExistingAnchors = 2 + RemoveExistingAnchors = 2, + + StopTrackedRaycasts = 4 } +declare class ARSkeleton extends NSObject { + + static alloc(): ARSkeleton; // inherited from NSObject + + static new(): ARSkeleton; // inherited from NSObject + + readonly definition: ARSkeletonDefinition; + + readonly jointCount: number; + + isJointTracked(jointIndex: number): boolean; +} + +declare class ARSkeleton2D extends ARSkeleton { + + static alloc(): ARSkeleton2D; // inherited from NSObject + + static new(): ARSkeleton2D; // inherited from NSObject + + readonly jointLandmarks: interop.Pointer | interop.Reference>; + + landmarkForJointNamed(jointName: string): interop.Reference; +} + +declare class ARSkeleton3D extends ARSkeleton { + + static alloc(): ARSkeleton3D; // inherited from NSObject + + static new(): ARSkeleton3D; // inherited from NSObject + + readonly jointLocalTransforms: interop.Pointer | interop.Reference; + + readonly jointModelTransforms: interop.Pointer | interop.Reference; + + localTransformForJointName(jointName: string): simd_float4x4; + + modelTransformForJointName(jointName: string): simd_float4x4; +} + +declare class ARSkeletonDefinition extends NSObject { + + static alloc(): ARSkeletonDefinition; // inherited from NSObject + + static new(): ARSkeletonDefinition; // inherited from NSObject + + readonly jointCount: number; + + readonly jointNames: NSArray; + + readonly neutralBodySkeleton3D: ARSkeleton3D; + + readonly parentIndices: NSArray; + + static readonly defaultBody2DSkeletonDefinition: ARSkeletonDefinition; + + static readonly defaultBody3DSkeletonDefinition: ARSkeletonDefinition; + + indexForJointName(jointName: string): number; +} + +declare var ARSkeletonJointNameHead: string; + +declare var ARSkeletonJointNameLeftFoot: string; + +declare var ARSkeletonJointNameLeftHand: string; + +declare var ARSkeletonJointNameLeftShoulder: string; + +declare var ARSkeletonJointNameRightFoot: string; + +declare var ARSkeletonJointNameRightHand: string; + +declare var ARSkeletonJointNameRightShoulder: string; + +declare var ARSkeletonJointNameRoot: string; + interface ARTrackable extends NSObjectProtocol { isTracked: boolean; @@ -917,6 +1457,15 @@ declare var ARTrackable: { prototype: ARTrackable; }; +declare class ARTrackedRaycast extends NSObject { + + static alloc(): ARTrackedRaycast; // inherited from NSObject + + static new(): ARTrackedRaycast; // inherited from NSObject + + stopTracking(): void; +} + declare const enum ARTrackingState { NotAvailable = 0, @@ -945,6 +1494,8 @@ declare class ARVideoFormat extends NSObject implements NSCopying { static new(): ARVideoFormat; // inherited from NSObject + readonly captureDevicePosition: AVCaptureDevicePosition; + readonly framesPerSecond: number; readonly imageResolution: CGSize; @@ -981,9 +1532,9 @@ declare class ARWorldMap extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum ARWorldMappingStatus { @@ -1005,6 +1556,10 @@ declare class ARWorldTrackingConfiguration extends ARConfiguration { autoFocusEnabled: boolean; + automaticImageScaleEstimationEnabled: boolean; + + collaborationEnabled: boolean; + detectionImages: NSSet; detectionObjects: NSSet; @@ -1016,4 +1571,10 @@ declare class ARWorldTrackingConfiguration extends ARConfiguration { maximumNumberOfTrackedImages: number; planeDetection: ARPlaneDetection; + + userFaceTrackingEnabled: boolean; + + wantsHDREnvironmentTextures: boolean; + + static readonly supportsUserFaceTracking: boolean; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!AVFoundation.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!AVFoundation.d.ts index 198a97ea17..9cab214415 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!AVFoundation.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!AVFoundation.d.ts @@ -48,6 +48,8 @@ declare class AVAsset extends NSObject implements AVAsynchronousKeyValueLoading, readonly metadata: NSArray; + readonly minimumTimeOffsetFromLive: CMTime; + readonly naturalSize: CGSize; readonly overallDurationHint: CMTime; @@ -176,6 +178,8 @@ declare class AVAssetDownloadTask extends NSURLSessionTask { declare var AVAssetDownloadTaskMediaSelectionKey: string; +declare var AVAssetDownloadTaskMediaSelectionPrefersMultichannelKey: string; + declare var AVAssetDownloadTaskMinimumRequiredMediaBitrateKey: string; declare class AVAssetDownloadURLSession extends NSURLSession { @@ -213,10 +217,16 @@ declare var AVAssetExportPresetAppleM4A: string; declare var AVAssetExportPresetHEVC1920x1080: string; +declare var AVAssetExportPresetHEVC1920x1080WithAlpha: string; + declare var AVAssetExportPresetHEVC3840x2160: string; +declare var AVAssetExportPresetHEVC3840x2160WithAlpha: string; + declare var AVAssetExportPresetHEVCHighestQuality: string; +declare var AVAssetExportPresetHEVCHighestQualityWithAlpha: string; + declare var AVAssetExportPresetHighestQuality: string; declare var AVAssetExportPresetLowQuality: string; @@ -287,6 +297,10 @@ declare class AVAssetExportSession extends NSObject { determineCompatibleFileTypesWithCompletionHandler(handler: (p1: NSArray) => void): void; + estimateMaximumDurationWithCompletionHandler(handler: (p1: CMTime, p2: NSError) => void): void; + + estimateOutputFileLengthWithCompletionHandler(handler: (p1: number, p2: NSError) => void): void; + exportAsynchronouslyWithCompletionHandler(handler: () => void): void; initWithAssetPresetName(asset: AVAsset, presetName: string): this; @@ -527,7 +541,9 @@ declare const enum AVAssetReferenceRestrictions { ForbidLocalReferenceToLocal = 8, - ForbidAll = 65535 + ForbidAll = 65535, + + DefaultPolicy = 2 } declare class AVAssetResourceLoader extends NSObject { @@ -671,6 +687,8 @@ declare class AVAssetTrack extends NSObject implements AVAsynchronousKeyValueLoa readonly formatDescriptions: NSArray; + readonly hasAudioSampleDependencies: boolean; + readonly languageCode: string; readonly mediaType: string; @@ -1033,6 +1051,8 @@ interface AVAudio3DMixing extends NSObjectProtocol { occlusion: number; + pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; + position: AVAudio3DPoint; rate: number; @@ -1040,12 +1060,21 @@ interface AVAudio3DMixing extends NSObjectProtocol { renderingAlgorithm: AVAudio3DMixingRenderingAlgorithm; reverbBlend: number; + + sourceMode: AVAudio3DMixingSourceMode; } declare var AVAudio3DMixing: { prototype: AVAudio3DMixing; }; +declare const enum AVAudio3DMixingPointSourceInHeadMode { + + Mono = 0, + + Bypass = 1 +} + declare const enum AVAudio3DMixingRenderingAlgorithm { EqualPowerPanning = 0, @@ -1058,7 +1087,20 @@ declare const enum AVAudio3DMixingRenderingAlgorithm { StereoPassThrough = 5, - HRTFHQ = 6 + HRTFHQ = 6, + + Auto = 7 +} + +declare const enum AVAudio3DMixingSourceMode { + + SpatializeIfMono = 0, + + Bypass = 1, + + PointSource = 2, + + AmbienceBed = 3 } interface AVAudio3DPoint { @@ -1123,9 +1165,9 @@ declare class AVAudioChannelLayout extends NSObject implements NSSecureCoding { constructor(o: { layoutTag: number; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithLayout(layout: interop.Pointer | interop.Reference): this; @@ -1283,6 +1325,8 @@ declare class AVAudioEngine extends NSObject { static new(): AVAudioEngine; // inherited from NSObject + readonly attachedNodes: NSSet; + autoShutdownEnabled: boolean; readonly inputNode: AVAudioInputNode; @@ -1429,6 +1473,8 @@ declare class AVAudioEnvironmentNode extends AVAudioNode implements AVAudioMixin readonly nextAvailableInputBus: number; + outputType: AVAudioEnvironmentOutputType; + outputVolume: number; readonly reverbParameters: AVAudioEnvironmentReverbParameters; @@ -1447,6 +1493,8 @@ declare class AVAudioEnvironmentNode extends AVAudioNode implements AVAudioMixin pan: number; // inherited from AVAudioStereoMixing + pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing + position: AVAudio3DPoint; // inherited from AVAudio3DMixing rate: number; // inherited from AVAudio3DMixing @@ -1455,6 +1503,8 @@ declare class AVAudioEnvironmentNode extends AVAudioNode implements AVAudioMixin reverbBlend: number; // inherited from AVAudio3DMixing + sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol volume: number; // inherited from AVAudioMixing @@ -1486,6 +1536,17 @@ declare class AVAudioEnvironmentNode extends AVAudioNode implements AVAudioMixin self(): this; } +declare const enum AVAudioEnvironmentOutputType { + + Auto = 0, + + Headphones = 1, + + BuiltInSpeakers = 2, + + ExternalSpeakers = 3 +} + declare class AVAudioEnvironmentReverbParameters extends NSObject { static alloc(): AVAudioEnvironmentReverbParameters; // inherited from NSObject @@ -1588,7 +1649,7 @@ declare class AVAudioFormat extends NSObject implements NSSecureCoding { constructor(o: { streamDescription: interop.Pointer | interop.Reference; channelLayout: AVAudioChannelLayout; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initStandardFormatWithSampleRateChannelLayout(sampleRate: number, layout: AVAudioChannelLayout): this; @@ -1596,7 +1657,7 @@ declare class AVAudioFormat extends NSObject implements NSSecureCoding { initWithCMAudioFormatDescription(formatDescription: any): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithCommonFormatSampleRateChannelsInterleaved(format: AVAudioCommonFormat, sampleRate: number, channels: number, interleaved: boolean): this; @@ -1618,6 +1679,10 @@ declare class AVAudioIONode extends AVAudioNode { readonly audioUnit: interop.Pointer | interop.Reference; readonly presentationLatency: number; + + readonly voiceProcessingEnabled: boolean; + + setVoiceProcessingEnabledError(enabled: boolean): boolean; } declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing { @@ -1626,6 +1691,12 @@ declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing { static new(): AVAudioInputNode; // inherited from NSObject + voiceProcessingAGCEnabled: boolean; + + voiceProcessingBypassed: boolean; + + voiceProcessingInputMuted: boolean; + readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol @@ -1640,6 +1711,8 @@ declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing { pan: number; // inherited from AVAudioStereoMixing + pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing + position: AVAudio3DPoint; // inherited from AVAudio3DMixing rate: number; // inherited from AVAudio3DMixing @@ -1648,6 +1721,8 @@ declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing { reverbBlend: number; // inherited from AVAudio3DMixing + sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol volume: number; // inherited from AVAudioMixing @@ -1737,6 +1812,8 @@ declare class AVAudioMixerNode extends AVAudioNode implements AVAudioMixing { pan: number; // inherited from AVAudioStereoMixing + pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing + position: AVAudio3DPoint; // inherited from AVAudio3DMixing rate: number; // inherited from AVAudio3DMixing @@ -1745,6 +1822,8 @@ declare class AVAudioMixerNode extends AVAudioNode implements AVAudioMixing { reverbBlend: number; // inherited from AVAudio3DMixing + sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol volume: number; // inherited from AVAudioMixing @@ -1809,6 +1888,8 @@ declare class AVAudioMixingDestination extends NSObject implements AVAudioMixing pan: number; // inherited from AVAudioStereoMixing + pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing + position: AVAudio3DPoint; // inherited from AVAudio3DMixing rate: number; // inherited from AVAudio3DMixing @@ -1817,6 +1898,8 @@ declare class AVAudioMixingDestination extends NSObject implements AVAudioMixing reverbBlend: number; // inherited from AVAudio3DMixing + sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol volume: number; // inherited from AVAudioMixing @@ -2029,6 +2112,8 @@ declare class AVAudioPlayerNode extends AVAudioNode implements AVAudioMixing { pan: number; // inherited from AVAudioStereoMixing + pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing + position: AVAudio3DPoint; // inherited from AVAudio3DMixing rate: number; // inherited from AVAudio3DMixing @@ -2037,6 +2122,8 @@ declare class AVAudioPlayerNode extends AVAudioNode implements AVAudioMixing { reverbBlend: number; // inherited from AVAudio3DMixing + sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol volume: number; // inherited from AVAudioMixing @@ -2260,6 +2347,8 @@ declare class AVAudioSession extends NSObject { readonly IOBufferDuration: number; + readonly allowHapticsAndSystemSoundsDuringRecording: boolean; + readonly availableCategories: NSArray; readonly availableInputs: NSArray; @@ -2326,6 +2415,8 @@ declare class AVAudioSession extends NSObject { readonly preferredSampleRate: number; + readonly promptStyle: AVAudioSessionPromptStyle; + readonly recordPermission: AVAudioSessionRecordPermission; readonly routeSharingPolicy: AVAudioSessionRouteSharingPolicy; @@ -2336,6 +2427,8 @@ declare class AVAudioSession extends NSObject { overrideOutputAudioPortError(portOverride: AVAudioSessionPortOverride): boolean; + prepareRouteSelectionForPlaybackWithCompletionHandler(completionHandler: (p1: boolean, p2: AVAudioSessionRouteSelection) => void): void; + requestRecordPermission(response: (p1: boolean) => void): void; setActiveError(active: boolean): boolean; @@ -2346,6 +2439,8 @@ declare class AVAudioSession extends NSObject { setAggregatedIOPreferenceError(inIOType: AVAudioSessionIOType): boolean; + setAllowHapticsAndSystemSoundsDuringRecordingError(inValue: boolean): boolean; + setCategoryError(category: string): boolean; setCategoryModeOptionsError(category: string, mode: string, options: AVAudioSessionCategoryOptions): boolean; @@ -2464,64 +2559,6 @@ declare var AVAudioSessionDelegate: { prototype: AVAudioSessionDelegate; }; -declare const enum AVAudioSessionErrorCode { - - // TODO: Remove the deprecated Code... values with the next typings update - // (should happen automatically when they are produced from the script) - CodeNone = 0, - - CodeMediaServicesFailed = 1836282486, - - CodeIsBusy = 560030580, - - CodeIncompatibleCategory = 560161140, - - CodeCannotInterruptOthers = 560557684, - - CodeMissingEntitlement = 1701737535, - - CodeSiriIsRecording = 1936290409, - - CodeCannotStartPlaying = 561015905, - - CodeCannotStartRecording = 561145187, - - CodeBadParam = -50, - - CodeResourceNotAvailable = 561145203, - - CodeUnspecified = 2003329396, - // /TODO - - None = 0, - - MediaServicesFailed = 1836282486, - - IsBusy = 560030580, - - IncompatibleCategory = 560161140, - - CannotInterruptOthers = 560557684, - - MissingEntitlement = 1701737535, - - SiriIsRecording = 1936290409, - - CannotStartPlaying = 561015905, - - CannotStartRecording = 561145187, - - BadParam = -50, - - InsufficientPriority = 561017449, - - ResourceNotAvailable = 561145203, - - Unspecified = 2003329396 -} - -declare const AVAudioSessionErrorInsufficientPriority: number; - declare const enum AVAudioSessionIOType { NotSpecified = 0, @@ -2655,6 +2692,15 @@ declare const enum AVAudioSessionPortOverride { declare var AVAudioSessionPortUSBAudio: string; +declare const enum AVAudioSessionPromptStyle { + + None = 1852796517, + + Short = 1936224884, + + Normal = 1852992876 +} + declare const enum AVAudioSessionRecordPermission { Undetermined = 1970168948, @@ -2704,9 +2750,13 @@ declare const enum AVAudioSessionRouteSharingPolicy { Default = 0, + LongFormAudio = 1, + LongForm = 1, - Independent = 2 + Independent = 2, + + LongFormVideo = 3 } declare const AVAudioSessionSetActiveFlags_NotifyOthersOnDeactivation: number; @@ -2727,6 +2777,88 @@ declare const enum AVAudioSessionSilenceSecondaryAudioHintType { declare var AVAudioSessionSilenceSecondaryAudioHintTypeKey: string; +declare class AVAudioSinkNode extends AVAudioNode { + + static alloc(): AVAudioSinkNode; // inherited from NSObject + + static new(): AVAudioSinkNode; // inherited from NSObject + + constructor(o: { receiverBlock: (p1: interop.Pointer | interop.Reference, p2: number, p3: interop.Pointer | interop.Reference) => number; }); + + initWithReceiverBlock(block: (p1: interop.Pointer | interop.Reference, p2: number, p3: interop.Pointer | interop.Reference) => number): this; +} + +declare class AVAudioSourceNode extends AVAudioNode implements AVAudioMixing { + + static alloc(): AVAudioSourceNode; // inherited from NSObject + + static new(): AVAudioSourceNode; // inherited from NSObject + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + obstruction: number; // inherited from AVAudio3DMixing + + occlusion: number; // inherited from AVAudio3DMixing + + pan: number; // inherited from AVAudioStereoMixing + + pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing + + position: AVAudio3DPoint; // inherited from AVAudio3DMixing + + rate: number; // inherited from AVAudio3DMixing + + renderingAlgorithm: AVAudio3DMixingRenderingAlgorithm; // inherited from AVAudio3DMixing + + reverbBlend: number; // inherited from AVAudio3DMixing + + sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + volume: number; // inherited from AVAudioMixing + + readonly // inherited from NSObjectProtocol + + constructor(o: { format: AVAudioFormat; renderBlock: (p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: interop.Pointer | interop.Reference) => number; }); + + constructor(o: { renderBlock: (p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: interop.Pointer | interop.Reference) => number; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination; + + initWithFormatRenderBlock(format: AVAudioFormat, block: (p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: interop.Pointer | interop.Reference) => number): this; + + initWithRenderBlock(block: (p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: interop.Pointer | interop.Reference) => number): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + interface AVAudioStereoMixing extends NSObjectProtocol { pan: number; @@ -2864,6 +2996,8 @@ declare class AVAudioUnitComponentManager extends NSObject { componentsPassingTest(testHandler: (p1: AVAudioUnitComponent, p2: interop.Pointer | interop.Reference) => boolean): NSArray; } +declare var AVAudioUnitComponentManagerRegistrationsChangedNotification: string; + declare var AVAudioUnitComponentTagsDidChangeNotification: string; declare class AVAudioUnitDelay extends AVAudioUnitEffect { @@ -3033,6 +3167,8 @@ declare class AVAudioUnitGenerator extends AVAudioUnit implements AVAudioMixing pan: number; // inherited from AVAudioStereoMixing + pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing + position: AVAudio3DPoint; // inherited from AVAudio3DMixing rate: number; // inherited from AVAudio3DMixing @@ -3041,6 +3177,8 @@ declare class AVAudioUnitGenerator extends AVAudioUnit implements AVAudioMixing reverbBlend: number; // inherited from AVAudio3DMixing + sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol volume: number; // inherited from AVAudioMixing @@ -3096,6 +3234,8 @@ declare class AVAudioUnitMIDIInstrument extends AVAudioUnit implements AVAudioMi pan: number; // inherited from AVAudioStereoMixing + pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing + position: AVAudio3DPoint; // inherited from AVAudio3DMixing rate: number; // inherited from AVAudio3DMixing @@ -3104,6 +3244,8 @@ declare class AVAudioUnitMIDIInstrument extends AVAudioUnit implements AVAudioMi reverbBlend: number; // inherited from AVAudio3DMixing + sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol volume: number; // inherited from AVAudioMixing @@ -3532,6 +3674,8 @@ declare class AVCaptureDevice extends NSObject { static devicesWithMediaType(mediaType: string): NSArray; + static extrinsicMatrixFromDeviceToDevice(fromDevice: AVCaptureDevice, toDevice: AVCaptureDevice): NSData; + static new(): AVCaptureDevice; // inherited from NSObject static requestAccessForMediaTypeCompletionHandler(mediaType: string, handler: (p1: boolean) => void): void; @@ -3568,6 +3712,8 @@ declare class AVCaptureDevice extends NSObject { readonly connected: boolean; + readonly constituentDevices: NSArray; + readonly deviceType: string; readonly deviceWhiteBalanceGains: AVCaptureWhiteBalanceGains; @@ -3600,6 +3746,12 @@ declare class AVCaptureDevice extends NSObject { readonly formats: NSArray; + geometricDistortionCorrectionEnabled: boolean; + + readonly geometricDistortionCorrectionSupported: boolean; + + globalToneMappingEnabled: boolean; + readonly grayWorldDeviceWhiteBalanceGains: AVCaptureWhiteBalanceGains; readonly hasFlash: boolean; @@ -3658,6 +3810,10 @@ declare class AVCaptureDevice extends NSObject { videoZoomFactor: number; + readonly virtualDevice: boolean; + + readonly virtualDeviceSwitchOverVideoZoomFactors: NSArray; + whiteBalanceMode: AVCaptureWhiteBalanceMode; cancelVideoZoomRamp(): void; @@ -3710,6 +3866,8 @@ declare class AVCaptureDeviceDiscoverySession extends NSObject { static new(): AVCaptureDeviceDiscoverySession; // inherited from NSObject readonly devices: NSArray; + + readonly supportedMultiCamDeviceSets: NSArray>; } declare class AVCaptureDeviceFormat extends NSObject { @@ -3722,8 +3880,14 @@ declare class AVCaptureDeviceFormat extends NSObject { readonly formatDescription: any; + readonly geometricDistortionCorrectedVideoFieldOfView: number; + + readonly globalToneMappingSupported: boolean; + readonly highResolutionStillImageDimensions: CMVideoDimensions; + readonly highestPhotoQualitySupported: boolean; + readonly maxExposureDuration: CMTime; readonly maxISO: number; @@ -3734,6 +3898,8 @@ declare class AVCaptureDeviceFormat extends NSObject { readonly minISO: number; + readonly multiCamSupported: boolean; + readonly portraitEffectsMatteStillImageDeliverySupported: boolean; readonly supportedColorSpaces: NSArray; @@ -3775,9 +3941,13 @@ declare class AVCaptureDeviceInput extends AVCaptureInput { unifiedAutoExposureDefaultsEnabled: boolean; + videoMinFrameDurationOverride: CMTime; + constructor(o: { device: AVCaptureDevice; }); initWithDeviceError(device: AVCaptureDevice): this; + + portsWithMediaTypeSourceDeviceTypeSourceDevicePosition(mediaType: string, sourceDeviceType: string, sourceDevicePosition: AVCaptureDevicePosition): NSArray; } declare const enum AVCaptureDevicePosition { @@ -3793,14 +3963,20 @@ declare var AVCaptureDeviceSubjectAreaDidChangeNotification: string; declare var AVCaptureDeviceTypeBuiltInDualCamera: string; +declare var AVCaptureDeviceTypeBuiltInDualWideCamera: string; + declare var AVCaptureDeviceTypeBuiltInDuoCamera: string; declare var AVCaptureDeviceTypeBuiltInMicrophone: string; declare var AVCaptureDeviceTypeBuiltInTelephotoCamera: string; +declare var AVCaptureDeviceTypeBuiltInTripleCamera: string; + declare var AVCaptureDeviceTypeBuiltInTrueDepthCamera: string; +declare var AVCaptureDeviceTypeBuiltInUltraWideCamera: string; + declare var AVCaptureDeviceTypeBuiltInWideAngleCamera: string; declare var AVCaptureDeviceWasConnectedNotification: string; @@ -3902,6 +4078,10 @@ declare class AVCaptureInputPort extends NSObject { readonly input: AVCaptureInput; readonly mediaType: string; + + readonly sourceDevicePosition: AVCaptureDevicePosition; + + readonly sourceDeviceType: string; } declare var AVCaptureInputPortFormatDescriptionDidChangeNotification: string; @@ -4002,6 +4182,19 @@ declare class AVCaptureMovieFileOutput extends AVCaptureFileOutput { supportedOutputSettingsKeysForConnection(connection: AVCaptureConnection): NSArray; } +declare class AVCaptureMultiCamSession extends AVCaptureSession { + + static alloc(): AVCaptureMultiCamSession; // inherited from NSObject + + static new(): AVCaptureMultiCamSession; // inherited from NSObject + + readonly hardwareCost: number; + + readonly systemPressureCost: number; + + static readonly multiCamSupported: boolean; +} + declare class AVCaptureOutput extends NSObject { static alloc(): AVCaptureOutput; // inherited from NSObject @@ -4075,6 +4268,8 @@ declare class AVCapturePhoto extends NSObject { fileDataRepresentationWithReplacementMetadataReplacementEmbeddedThumbnailPhotoFormatReplacementEmbeddedThumbnailPixelBufferReplacementDepthData(replacementMetadata: NSDictionary, replacementEmbeddedThumbnailPhotoFormat: NSDictionary, replacementEmbeddedThumbnailPixelBuffer: any, replacementDepthData: AVDepthData): NSData; previewCGImageRepresentation(): any; + + semanticSegmentationMatteForType(semanticSegmentationMatteType: string): AVSemanticSegmentationMatte; } declare class AVCapturePhotoBracketSettings extends AVCapturePhotoSettings { @@ -4138,6 +4333,8 @@ interface AVCapturePhotoFileDataRepresentationCustomizer extends NSObjectProtoco replacementMetadataForPhoto?(photo: AVCapturePhoto): NSDictionary; replacementPortraitEffectsMatteForPhoto?(photo: AVCapturePhoto): AVPortraitEffectsMatte; + + replacementSemanticSegmentationMatteOfTypeForPhoto?(semanticSegmentationMatteType: string, photo: AVCapturePhoto): AVSemanticSegmentationMatte; } declare var AVCapturePhotoFileDataRepresentationCustomizer: { @@ -4168,6 +4365,8 @@ declare class AVCapturePhotoOutput extends AVCaptureOutput { readonly availableRawPhotoPixelFormatTypes: NSArray; + readonly availableSemanticSegmentationMatteTypes: NSArray; + readonly cameraCalibrationDataDeliverySupported: boolean; depthDataDeliveryEnabled: boolean; @@ -4180,6 +4379,8 @@ declare class AVCapturePhotoOutput extends AVCaptureOutput { readonly dualCameraFusionSupported: boolean; + enabledSemanticSegmentationMatteTypes: NSArray; + highResolutionCaptureEnabled: boolean; readonly isFlashScene: boolean; @@ -4198,6 +4399,8 @@ declare class AVCapturePhotoOutput extends AVCaptureOutput { readonly maxBracketedCapturePhotoCount: number; + maxPhotoQualityPrioritization: AVCapturePhotoQualityPrioritization; + photoSettingsForSceneMonitoring: AVCapturePhotoSettings; portraitEffectsMatteDeliveryEnabled: boolean; @@ -4210,6 +4413,12 @@ declare class AVCapturePhotoOutput extends AVCaptureOutput { readonly supportedFlashModes: NSArray; + virtualDeviceConstituentPhotoDeliveryEnabled: boolean; + + readonly virtualDeviceConstituentPhotoDeliverySupported: boolean; + + readonly virtualDeviceFusionSupported: boolean; + capturePhotoWithSettingsDelegate(settings: AVCapturePhotoSettings, delegate: AVCapturePhotoCaptureDelegate): void; setPreparedPhotoSettingsArrayCompletionHandler(preparedPhotoSettingsArray: NSArray | AVCapturePhotoSettings[], completionHandler: (p1: boolean, p2: NSError) => void): void; @@ -4221,6 +4430,15 @@ declare class AVCapturePhotoOutput extends AVCaptureOutput { supportedRawPhotoPixelFormatTypesForFileType(fileType: string): NSArray; } +declare const enum AVCapturePhotoQualityPrioritization { + + Speed = 1, + + Balanced = 2, + + Quality = 3 +} + declare class AVCapturePhotoSettings extends NSObject implements NSCopying { static alloc(): AVCapturePhotoSettings; // inherited from NSObject @@ -4245,6 +4463,8 @@ declare class AVCapturePhotoSettings extends NSObject implements NSCopying { autoStillImageStabilizationEnabled: boolean; + autoVirtualDeviceFusionEnabled: boolean; + readonly availableEmbeddedThumbnailPhotoCodecTypes: NSArray; readonly availablePreviewPhotoPixelFormatTypes: NSArray; @@ -4265,6 +4485,10 @@ declare class AVCapturePhotoSettings extends NSObject implements NSCopying { embedsPortraitEffectsMatteInPhoto: boolean; + embedsSemanticSegmentationMattesInPhoto: boolean; + + enabledSemanticSegmentationMatteTypes: NSArray; + flashMode: AVCaptureFlashMode; readonly format: NSDictionary; @@ -4279,6 +4503,8 @@ declare class AVCapturePhotoSettings extends NSObject implements NSCopying { metadata: NSDictionary; + photoQualityPrioritization: AVCapturePhotoQualityPrioritization; + portraitEffectsMatteDeliveryEnabled: boolean; previewPhotoFormat: NSDictionary; @@ -4293,6 +4519,8 @@ declare class AVCapturePhotoSettings extends NSObject implements NSCopying { readonly uniqueID: number; + virtualDeviceConstituentPhotoDeliveryEnabledDevices: NSArray; + copyWithZone(zone: interop.Pointer | interop.Reference): any; } @@ -4314,6 +4542,8 @@ declare class AVCaptureResolvedPhotoSettings extends NSObject { readonly photoDimensions: CMVideoDimensions; + readonly photoProcessingTimeRange: CMTimeRange; + readonly portraitEffectsMatteDimensions: CMVideoDimensions; readonly previewDimensions: CMVideoDimensions; @@ -4327,6 +4557,10 @@ declare class AVCaptureResolvedPhotoSettings extends NSObject { readonly stillImageStabilizationEnabled: boolean; readonly uniqueID: number; + + readonly virtualDeviceFusionEnabled: boolean; + + dimensionsForSemanticSegmentationMatteOfType(semanticSegmentationMatteType: string): CMVideoDimensions; } declare class AVCaptureSession extends NSObject { @@ -4339,6 +4573,8 @@ declare class AVCaptureSession extends NSObject { automaticallyConfiguresCaptureDeviceForWideColor: boolean; + readonly connections: NSArray; + readonly inputs: NSArray; readonly interrupted: boolean; @@ -4583,10 +4819,14 @@ declare class AVCaptureVideoDataOutput extends AVCaptureOutput { alwaysDiscardsLateVideoFrames: boolean; + automaticallyConfiguresOutputBufferDimensions: boolean; + readonly availableVideoCVPixelFormatTypes: NSArray; readonly availableVideoCodecTypes: NSArray; + deliversPreviewSizedOutputBuffers: boolean; + minFrameDuration: CMTime; readonly sampleBufferCallbackQueue: NSObject; @@ -4650,6 +4890,8 @@ declare class AVCaptureVideoPreviewLayer extends CALayer { readonly orientationSupported: boolean; + readonly previewing: boolean; + session: AVCaptureSession; videoGravity: string; @@ -4683,6 +4925,8 @@ declare const enum AVCaptureVideoStabilizationMode { Cinematic = 2, + CinematicExtended = 3, + Auto = -1 } @@ -4739,9 +4983,30 @@ declare class AVCompositionTrack extends AVAssetTrack { static new(): AVCompositionTrack; // inherited from NSObject + readonly formatDescriptionReplacements: NSArray; + segmentForTrackTime(trackTime: CMTime): AVCompositionTrackSegment; } +declare class AVCompositionTrackFormatDescriptionReplacement extends NSObject implements NSSecureCoding { + + static alloc(): AVCompositionTrackFormatDescriptionReplacement; // inherited from NSObject + + static new(): AVCompositionTrackFormatDescriptionReplacement; // inherited from NSObject + + readonly originalFormatDescription: any; + + readonly replacementFormatDescription: any; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + declare class AVCompositionTrackSegment extends AVAssetTrackSegment { static alloc(): AVCompositionTrackSegment; // inherited from NSObject @@ -4788,6 +5053,8 @@ declare class AVContentKeyRequest extends NSObject { readonly initializationData: NSData; + readonly options: NSDictionary; + readonly renewsExpiringResponseData: boolean; readonly status: AVContentKeyRequestStatus; @@ -4805,6 +5072,8 @@ declare class AVContentKeyRequest extends NSObject { declare var AVContentKeyRequestProtocolVersionsKey: string; +declare var AVContentKeyRequestRequiresValidationDataInSecureTokenKey: string; + declare var AVContentKeyRequestRetryReasonReceivedObsoleteContentKey: string; declare var AVContentKeyRequestRetryReasonReceivedResponseWithExpiredLease: string; @@ -4830,6 +5099,8 @@ declare class AVContentKeyResponse extends NSObject { static alloc(): AVContentKeyResponse; // inherited from NSObject + static contentKeyResponseWithAuthorizationTokenData(authorizationTokenData: NSData): AVContentKeyResponse; + static contentKeyResponseWithClearKeyDataInitializationVector(keyData: NSData, initializationVector: NSData): AVContentKeyResponse; static contentKeyResponseWithFairPlayStreamingKeyResponseData(keyResponseData: NSData): AVContentKeyResponse; @@ -4867,6 +5138,10 @@ declare class AVContentKeySession extends NSObject { expire(): void; + invalidateAllPersistableContentKeysForAppOptionsCompletionHandler(appIdentifier: NSData, options: NSDictionary, handler: (p1: NSData, p2: NSError) => void): void; + + invalidatePersistableContentKeyOptionsCompletionHandler(persistableContentKeyData: NSData, options: NSDictionary, handler: (p1: NSData, p2: NSError) => void): void; + makeSecureTokenForExpirationDateOfPersistableContentKeyCompletionHandler(persistableContentKeyData: NSData, handler: (p1: NSData, p2: NSError) => void): void; processContentKeyRequestWithIdentifierInitializationDataOptions(identifier: any, initializationData: NSData, options: NSDictionary): void; @@ -4903,6 +5178,12 @@ declare var AVContentKeySessionDelegate: { prototype: AVContentKeySessionDelegate; }; +declare var AVContentKeySessionServerPlaybackContextOptionProtocolVersions: string; + +declare var AVContentKeySessionServerPlaybackContextOptionServerChallenge: string; + +declare var AVContentKeySystemAuthorizationToken: string; + declare var AVContentKeySystemClearKey: string; declare var AVContentKeySystemFairPlayStreaming: string; @@ -5109,6 +5390,8 @@ declare const enum AVError { RecordingAlreadyInProgress = -11859, + CreateContentKeyRequestFailed = -11860, + UnsupportedOutputSettings = -11861, OperationNotAllowed = -11862, @@ -5127,7 +5410,13 @@ declare const enum AVError { NoSourceTrack = -11869, - ExternalPlaybackNotSupportedForAsset = -11870 + ExternalPlaybackNotSupportedForAsset = -11870, + + OperationNotSupportedForPreset = -11871, + + SessionHardwareCostOverage = -11872, + + UnsupportedDeviceActiveFormat = -11873 } declare var AVErrorDeviceKey: string; @@ -5250,37 +5539,92 @@ declare class AVFragmentedAssetTrack extends AVAssetTrack { static new(): AVFragmentedAssetTrack; // inherited from NSObject } -declare class AVFrameRateRange extends NSObject { +declare class AVFragmentedMovie extends AVMovie implements AVFragmentMinding { - static alloc(): AVFrameRateRange; // inherited from NSObject + static alloc(): AVFragmentedMovie; // inherited from NSObject - static new(): AVFrameRateRange; // inherited from NSObject + static assetWithURL(URL: NSURL): AVFragmentedMovie; // inherited from AVAsset - readonly maxFrameDuration: CMTime; + static movieWithDataOptions(data: NSData, options: NSDictionary): AVFragmentedMovie; // inherited from AVMovie - readonly maxFrameRate: number; + static movieWithURLOptions(URL: NSURL, options: NSDictionary): AVFragmentedMovie; // inherited from AVMovie - readonly minFrameDuration: CMTime; + static new(): AVFragmentedMovie; // inherited from NSObject - readonly minFrameRate: number; + readonly associatedWithFragmentMinder: boolean; // inherited from AVFragmentMinding + + trackWithTrackID(trackID: number): AVFragmentedMovieTrack; } -declare const enum AVKeyValueStatus { +declare var AVFragmentedMovieContainsMovieFragmentsDidChangeNotification: string; - Unknown = 0, +declare var AVFragmentedMovieDurationDidChangeNotification: string; - Loading = 1, +declare class AVFragmentedMovieMinder extends AVFragmentedAssetMinder { - Loaded = 2, + static alloc(): AVFragmentedMovieMinder; // inherited from NSObject - Failed = 3, + static fragmentedAssetMinderWithAssetMindingInterval(asset: AVAsset, mindingInterval: number): AVFragmentedMovieMinder; // inherited from AVFragmentedAssetMinder - Cancelled = 4 -} + static fragmentedMovieMinderWithMovieMindingInterval(movie: AVFragmentedMovie, mindingInterval: number): AVFragmentedMovieMinder; -declare var AVLayerVideoGravityResize: string; + static new(): AVFragmentedMovieMinder; // inherited from NSObject -declare var AVLayerVideoGravityResizeAspect: string; + readonly movies: NSArray; + + constructor(o: { movie: AVFragmentedMovie; mindingInterval: number; }); + + addFragmentedMovie(movie: AVFragmentedMovie): void; + + initWithMovieMindingInterval(movie: AVFragmentedMovie, mindingInterval: number): this; + + removeFragmentedMovie(movie: AVFragmentedMovie): void; +} + +declare class AVFragmentedMovieTrack extends AVMovieTrack { + + static alloc(): AVFragmentedMovieTrack; // inherited from NSObject + + static new(): AVFragmentedMovieTrack; // inherited from NSObject +} + +declare var AVFragmentedMovieTrackSegmentsDidChangeNotification: string; + +declare var AVFragmentedMovieTrackTimeRangeDidChangeNotification: string; + +declare var AVFragmentedMovieWasDefragmentedNotification: string; + +declare class AVFrameRateRange extends NSObject { + + static alloc(): AVFrameRateRange; // inherited from NSObject + + static new(): AVFrameRateRange; // inherited from NSObject + + readonly maxFrameDuration: CMTime; + + readonly maxFrameRate: number; + + readonly minFrameDuration: CMTime; + + readonly minFrameRate: number; +} + +declare const enum AVKeyValueStatus { + + Unknown = 0, + + Loading = 1, + + Loaded = 2, + + Failed = 3, + + Cancelled = 4 +} + +declare var AVLayerVideoGravityResize: string; + +declare var AVLayerVideoGravityResizeAspect: string; declare var AVLayerVideoGravityResizeAspectFill: string; @@ -5325,6 +5669,8 @@ declare function AVMakeRectWithAspectRatioInsideRect(aspectRatio: CGSize, boundi declare var AVMediaCharacteristicAudible: string; +declare var AVMediaCharacteristicContainsAlphaChannel: string; + declare var AVMediaCharacteristicContainsOnlyForcedSubtitles: string; declare var AVMediaCharacteristicDescribesMusicAndSoundForAccessibility: string; @@ -5341,6 +5687,8 @@ declare var AVMediaCharacteristicIsAuxiliaryContent: string; declare var AVMediaCharacteristicIsMainProgramContent: string; +declare var AVMediaCharacteristicIsOriginalContent: string; + declare var AVMediaCharacteristicLanguageTranslation: string; declare var AVMediaCharacteristicLegible: string; @@ -5353,6 +5701,19 @@ declare var AVMediaCharacteristicVisual: string; declare var AVMediaCharacteristicVoiceOverTranslation: string; +declare class AVMediaDataStorage extends NSObject { + + static alloc(): AVMediaDataStorage; // inherited from NSObject + + static new(): AVMediaDataStorage; // inherited from NSObject + + constructor(o: { URL: NSURL; options: NSDictionary; }); + + URL(): NSURL; + + initWithURLOptions(URL: NSURL, options: NSDictionary): this; +} + declare class AVMediaSelection extends NSObject implements NSCopying, NSMutableCopying { static alloc(): AVMediaSelection; // inherited from NSObject @@ -5486,6 +5847,26 @@ declare var AVMetadata3GPUserDataKeyTitle: string; declare var AVMetadata3GPUserDataKeyUserRating: string; +declare class AVMetadataBodyObject extends AVMetadataObject implements NSCopying { + + static alloc(): AVMetadataBodyObject; // inherited from NSObject + + static new(): AVMetadataBodyObject; // inherited from NSObject + + readonly bodyID: number; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class AVMetadataCatBodyObject extends AVMetadataBodyObject implements NSCopying { + + static alloc(): AVMetadataCatBodyObject; // inherited from NSObject + + static new(): AVMetadataCatBodyObject; // inherited from NSObject + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + declare var AVMetadataCommonIdentifierAlbumName: string; declare var AVMetadataCommonIdentifierArtist: string; @@ -5578,6 +5959,15 @@ declare var AVMetadataCommonKeyTitle: string; declare var AVMetadataCommonKeyType: string; +declare class AVMetadataDogBodyObject extends AVMetadataBodyObject implements NSCopying { + + static alloc(): AVMetadataDogBodyObject; // inherited from NSObject + + static new(): AVMetadataDogBodyObject; // inherited from NSObject + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + declare var AVMetadataExtraAttributeBaseURIKey: string; declare var AVMetadataExtraAttributeInfoKey: string; @@ -5630,6 +6020,15 @@ declare class AVMetadataGroup extends NSObject { readonly uniqueID: string; } +declare class AVMetadataHumanBodyObject extends AVMetadataBodyObject implements NSCopying { + + static alloc(): AVMetadataHumanBodyObject; // inherited from NSObject + + static new(): AVMetadataHumanBodyObject; // inherited from NSObject + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + declare var AVMetadataID3MetadataKeyAlbumSortOrder: string; declare var AVMetadataID3MetadataKeyAlbumTitle: string; @@ -6062,6 +6461,8 @@ declare var AVMetadataIdentifierQuickTimeMetadataArtwork: string; declare var AVMetadataIdentifierQuickTimeMetadataAuthor: string; +declare var AVMetadataIdentifierQuickTimeMetadataAutoLivePhoto: string; + declare var AVMetadataIdentifierQuickTimeMetadataCameraFrameReadoutTime: string; declare var AVMetadataIdentifierQuickTimeMetadataCameraIdentifier: string; @@ -6082,8 +6483,16 @@ declare var AVMetadataIdentifierQuickTimeMetadataCredits: string; declare var AVMetadataIdentifierQuickTimeMetadataDescription: string; +declare var AVMetadataIdentifierQuickTimeMetadataDetectedCatBody: string; + +declare var AVMetadataIdentifierQuickTimeMetadataDetectedDogBody: string; + declare var AVMetadataIdentifierQuickTimeMetadataDetectedFace: string; +declare var AVMetadataIdentifierQuickTimeMetadataDetectedHumanBody: string; + +declare var AVMetadataIdentifierQuickTimeMetadataDetectedSalientObject: string; + declare var AVMetadataIdentifierQuickTimeMetadataDirectionFacing: string; declare var AVMetadataIdentifierQuickTimeMetadataDirectionMotion: string; @@ -6100,6 +6509,10 @@ declare var AVMetadataIdentifierQuickTimeMetadataInformation: string; declare var AVMetadataIdentifierQuickTimeMetadataKeywords: string; +declare var AVMetadataIdentifierQuickTimeMetadataLivePhotoVitalityScore: string; + +declare var AVMetadataIdentifierQuickTimeMetadataLivePhotoVitalityScoringVersion: string; + declare var AVMetadataIdentifierQuickTimeMetadataLocationBody: string; declare var AVMetadataIdentifierQuickTimeMetadataLocationDate: string; @@ -6132,6 +6545,10 @@ declare var AVMetadataIdentifierQuickTimeMetadataRatingUser: string; declare var AVMetadataIdentifierQuickTimeMetadataSoftware: string; +declare var AVMetadataIdentifierQuickTimeMetadataSpatialOverCaptureQualityScore: string; + +declare var AVMetadataIdentifierQuickTimeMetadataSpatialOverCaptureQualityScoringVersion: string; + declare var AVMetadataIdentifierQuickTimeMetadataTitle: string; declare var AVMetadataIdentifierQuickTimeMetadataVideoOrientation: string; @@ -6447,6 +6864,8 @@ declare class AVMetadataObject extends NSObject { declare var AVMetadataObjectTypeAztecCode: string; +declare var AVMetadataObjectTypeCatBody: string; + declare var AVMetadataObjectTypeCode128Code: string; declare var AVMetadataObjectTypeCode39Code: string; @@ -6457,12 +6876,16 @@ declare var AVMetadataObjectTypeCode93Code: string; declare var AVMetadataObjectTypeDataMatrixCode: string; +declare var AVMetadataObjectTypeDogBody: string; + declare var AVMetadataObjectTypeEAN13Code: string; declare var AVMetadataObjectTypeEAN8Code: string; declare var AVMetadataObjectTypeFace: string; +declare var AVMetadataObjectTypeHumanBody: string; + declare var AVMetadataObjectTypeITF14Code: string; declare var AVMetadataObjectTypeInterleaved2of5Code: string; @@ -6471,6 +6894,8 @@ declare var AVMetadataObjectTypePDF417Code: string; declare var AVMetadataObjectTypeQRCode: string; +declare var AVMetadataObjectTypeSalientObject: string; + declare var AVMetadataObjectTypeUPCECode: string; declare var AVMetadataQuickTimeMetadataKeyAlbum: string; @@ -6631,6 +7056,17 @@ declare var AVMetadataQuickTimeUserDataKeyWarning: string; declare var AVMetadataQuickTimeUserDataKeyWriter: string; +declare class AVMetadataSalientObject extends AVMetadataObject implements NSCopying { + + static alloc(): AVMetadataSalientObject; // inherited from NSObject + + static new(): AVMetadataSalientObject; // inherited from NSObject + + readonly objectID: number; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + declare var AVMetadataiTunesMetadataKeyAccountKind: string; declare var AVMetadataiTunesMetadataKeyAcknowledgement: string; @@ -6727,6 +7163,75 @@ declare var AVMetadataiTunesMetadataKeyUserComment: string; declare var AVMetadataiTunesMetadataKeyUserGenre: string; +declare class AVMovie extends AVAsset implements NSCopying, NSMutableCopying { + + static alloc(): AVMovie; // inherited from NSObject + + static assetWithURL(URL: NSURL): AVMovie; // inherited from AVAsset + + static movieTypes(): NSArray; + + static movieWithDataOptions(data: NSData, options: NSDictionary): AVMovie; + + static movieWithURLOptions(URL: NSURL, options: NSDictionary): AVMovie; + + static new(): AVMovie; // inherited from NSObject + + readonly URL: NSURL; + + readonly canContainMovieFragments: boolean; + + readonly containsMovieFragments: boolean; + + readonly data: NSData; + + readonly defaultMediaDataStorage: AVMediaDataStorage; + + constructor(o: { data: NSData; options: NSDictionary; }); + + constructor(o: { URL: NSURL; options: NSDictionary; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + initWithDataOptions(data: NSData, options: NSDictionary): this; + + initWithURLOptions(URL: NSURL, options: NSDictionary): this; + + isCompatibleWithFileType(fileType: string): boolean; + + movieHeaderWithFileTypeError(fileType: string): NSData; + + mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; + + trackWithTrackID(trackID: number): AVMovieTrack; + + writeMovieHeaderToURLFileTypeOptionsError(URL: NSURL, fileType: string, options: AVMovieWritingOptions): boolean; +} + +declare var AVMovieReferenceRestrictionsKey: string; + +declare class AVMovieTrack extends AVAssetTrack { + + static alloc(): AVMovieTrack; // inherited from NSObject + + static new(): AVMovieTrack; // inherited from NSObject + + readonly alternateGroupID: number; + + readonly mediaDataStorage: AVMediaDataStorage; + + readonly mediaDecodeTimeRange: CMTimeRange; + + readonly mediaPresentationTimeRange: CMTimeRange; +} + +declare const enum AVMovieWritingOptions { + + AddMovieHeaderToDestination = 0, + + TruncateDestinationToMovieHeaderOnly = 1 +} + declare const enum AVMusicSequenceLoadOptions { SMF_PreserveTracks = 0, @@ -6848,6 +7353,8 @@ declare class AVMutableCompositionTrack extends AVCompositionTrack { static new(): AVMutableCompositionTrack; // inherited from NSObject + enabled: boolean; + extendedLanguageTag: string; languageCode: string; @@ -6872,6 +7379,8 @@ declare class AVMutableCompositionTrack extends AVCompositionTrack { removeTrackAssociationToTrackType(compositionTrack: AVCompositionTrack, trackAssociationType: string): void; + replaceFormatDescriptionWithFormatDescription(originalFormatDescription: any, replacementFormatDescription: any): void; + scaleTimeRangeToDuration(timeRange: CMTimeRange, duration: CMTime): void; validateTrackSegmentsError(trackSegments: NSArray | AVCompositionTrackSegment[]): boolean; @@ -6930,6 +7439,136 @@ declare class AVMutableMetadataItem extends AVMetadataItem { value: any; } +declare class AVMutableMovie extends AVMovie { + + static alloc(): AVMutableMovie; // inherited from NSObject + + static assetWithURL(URL: NSURL): AVMutableMovie; // inherited from AVAsset + + static movieWithDataOptions(data: NSData, options: NSDictionary): AVMutableMovie; // inherited from AVMovie + + static movieWithDataOptionsError(data: NSData, options: NSDictionary): AVMutableMovie; + + static movieWithSettingsFromMovieOptionsError(movie: AVMovie, options: NSDictionary): AVMutableMovie; + + static movieWithURLOptions(URL: NSURL, options: NSDictionary): AVMutableMovie; // inherited from AVMovie + + static movieWithURLOptionsError(URL: NSURL, options: NSDictionary): AVMutableMovie; + + static new(): AVMutableMovie; // inherited from NSObject + + defaultMediaDataStorage: AVMediaDataStorage; + + interleavingPeriod: CMTime; + + metadata: NSArray; + + modified: boolean; + + preferredRate: number; + + preferredTransform: CGAffineTransform; + + preferredVolume: number; + + timescale: number; + + constructor(o: { data: NSData; options: NSDictionary; }); + + constructor(o: { settingsFromMovie: AVMovie; options: NSDictionary; }); + + constructor(o: { URL: NSURL; options: NSDictionary; }); + + addMutableTrackWithMediaTypeCopySettingsFromTrackOptions(mediaType: string, track: AVAssetTrack, options: NSDictionary): AVMutableMovieTrack; + + addMutableTracksCopyingSettingsFromTracksOptions(existingTracks: NSArray | AVAssetTrack[], options: NSDictionary): NSArray; + + initWithDataOptionsError(data: NSData, options: NSDictionary): this; + + initWithSettingsFromMovieOptionsError(movie: AVMovie, options: NSDictionary): this; + + initWithURLOptionsError(URL: NSURL, options: NSDictionary): this; + + insertEmptyTimeRange(timeRange: CMTimeRange): void; + + insertTimeRangeOfAssetAtTimeCopySampleDataError(timeRange: CMTimeRange, asset: AVAsset, startTime: CMTime, copySampleData: boolean): boolean; + + mutableTrackCompatibleWithTrack(track: AVAssetTrack): AVMutableMovieTrack; + + removeTimeRange(timeRange: CMTimeRange): void; + + removeTrack(track: AVMovieTrack): void; + + scaleTimeRangeToDuration(timeRange: CMTimeRange, duration: CMTime): void; + + trackWithTrackID(trackID: number): AVMutableMovieTrack; +} + +declare class AVMutableMovieTrack extends AVMovieTrack { + + static alloc(): AVMutableMovieTrack; // inherited from NSObject + + static new(): AVMutableMovieTrack; // inherited from NSObject + + alternateGroupID: number; + + cleanApertureDimensions: CGSize; + + enabled: boolean; + + encodedPixelsDimensions: CGSize; + + extendedLanguageTag: string; + + readonly hasProtectedContent: boolean; + + languageCode: string; + + layer: number; + + mediaDataStorage: AVMediaDataStorage; + + metadata: NSArray; + + modified: boolean; + + naturalSize: CGSize; + + preferredMediaChunkAlignment: number; + + preferredMediaChunkDuration: CMTime; + + preferredMediaChunkSize: number; + + preferredTransform: CGAffineTransform; + + preferredVolume: number; + + productionApertureDimensions: CGSize; + + sampleReferenceBaseURL: NSURL; + + timescale: number; + + addTrackAssociationToTrackType(movieTrack: AVMovieTrack, trackAssociationType: string): void; + + appendSampleBufferDecodeTimePresentationTimeError(sampleBuffer: any, outDecodeTime: interop.Pointer | interop.Reference, outPresentationTime: interop.Pointer | interop.Reference): boolean; + + insertEmptyTimeRange(timeRange: CMTimeRange): void; + + insertMediaTimeRangeIntoTimeRange(mediaTimeRange: CMTimeRange, trackTimeRange: CMTimeRange): boolean; + + insertTimeRangeOfTrackAtTimeCopySampleDataError(timeRange: CMTimeRange, track: AVAssetTrack, startTime: CMTime, copySampleData: boolean): boolean; + + removeTimeRange(timeRange: CMTimeRange): void; + + removeTrackAssociationToTrackType(movieTrack: AVMovieTrack, trackAssociationType: string): void; + + replaceFormatDescriptionWithFormatDescription(formatDescription: any, newFormatDescription: any): void; + + scaleTimeRangeToDuration(timeRange: CMTimeRange, duration: CMTime): void; +} + declare class AVMutableTimedMetadataGroup extends AVTimedMetadataGroup { static alloc(): AVMutableTimedMetadataGroup; // inherited from NSObject @@ -6951,6 +7590,8 @@ declare class AVMutableVideoComposition extends AVVideoComposition { static videoCompositionWithAssetApplyingCIFiltersWithHandler(asset: AVAsset, applier: (p1: AVAsynchronousCIImageFilteringRequest) => void): AVMutableVideoComposition; + static videoCompositionWithPropertiesOfAssetPrototypeInstruction(asset: AVAsset, prototypeInstruction: AVVideoCompositionInstruction): AVMutableVideoComposition; + animationTool: AVVideoCompositionCoreAnimationTool; colorPrimaries: string; @@ -7053,8 +7694,12 @@ declare var AVOutputSettingsPreset960x540: string; declare var AVOutputSettingsPresetHEVC1920x1080: string; +declare var AVOutputSettingsPresetHEVC1920x1080WithAlpha: string; + declare var AVOutputSettingsPresetHEVC3840x2160: string; +declare var AVOutputSettingsPresetHEVC3840x2160WithAlpha: string; + declare class AVPersistableContentKeyRequest extends AVContentKeyRequest { static alloc(): AVPersistableContentKeyRequest; // inherited from NSObject @@ -7209,10 +7854,14 @@ declare class AVPlayerItem extends NSObject implements NSCopying { audioMix: AVAudioMix; + audioSpatializationAllowed: boolean; + audioTimePitchAlgorithm: string; readonly automaticallyLoadedAssetKeys: NSArray; + automaticallyPreservesTimeOffsetFromLive: boolean; + readonly canPlayFastForward: boolean; readonly canPlayFastReverse: boolean; @@ -7229,6 +7878,8 @@ declare class AVPlayerItem extends NSObject implements NSCopying { canUseNetworkResourcesForLiveStreamingWhilePaused: boolean; + configuredTimeOffsetFromLive: CMTime; + readonly currentMediaSelection: AVMediaSelection; readonly customVideoCompositor: AVVideoCompositing; @@ -7237,6 +7888,8 @@ declare class AVPlayerItem extends NSObject implements NSCopying { readonly error: NSError; + externalMetadata: NSArray; + forwardPlaybackEndTime: CMTime; readonly loadedTimeRanges: NSArray; @@ -7259,6 +7912,8 @@ declare class AVPlayerItem extends NSObject implements NSCopying { readonly presentationSize: CGSize; + readonly recommendedTimeOffsetFromLive: CMTime; + reversePlaybackEndTime: CMTime; readonly seekableTimeRanges: NSArray; @@ -7495,6 +8150,8 @@ declare class AVPlayerItemMediaDataCollector extends NSObject { static new(): AVPlayerItemMediaDataCollector; // inherited from NSObject } +declare var AVPlayerItemMediaSelectionDidChangeNotification: string; + declare class AVPlayerItemMetadataCollector extends AVPlayerItemMediaDataCollector { static alloc(): AVPlayerItemMetadataCollector; // inherited from NSObject @@ -7588,6 +8245,8 @@ declare var AVPlayerItemOutputPushDelegate: { declare var AVPlayerItemPlaybackStalledNotification: string; +declare var AVPlayerItemRecommendedTimeOffsetFromLiveDidChangeNotification: string; + declare const enum AVPlayerItemStatus { Unknown = 0, @@ -7706,9 +8365,15 @@ declare class AVPlayerMediaSelectionCriteria extends NSObject { readonly preferredMediaCharacteristics: NSArray; + readonly principalMediaCharacteristics: NSArray; + constructor(o: { preferredLanguages: NSArray | string[]; preferredMediaCharacteristics: NSArray | string[]; }); + constructor(o: { principalMediaCharacteristics: NSArray | string[]; preferredLanguages: NSArray | string[]; preferredMediaCharacteristics: NSArray | string[]; }); + initWithPreferredLanguagesPreferredMediaCharacteristics(preferredLanguages: NSArray | string[], preferredMediaCharacteristics: NSArray | string[]): this; + + initWithPrincipalMediaCharacteristicsPreferredLanguagesPreferredMediaCharacteristics(principalMediaCharacteristics: NSArray | string[], preferredLanguages: NSArray | string[], preferredMediaCharacteristics: NSArray | string[]): this; } declare const enum AVPlayerStatus { @@ -7905,6 +8570,10 @@ declare class AVSampleBufferDisplayLayer extends CALayer implements AVQueuedSamp readonly error: NSError; + preventsCapture: boolean; + + preventsDisplaySleepDuringVideoPlayback: boolean; + readonly status: AVQueuedSampleBufferRenderingStatus; videoGravity: string; @@ -8003,6 +8672,33 @@ declare var AVSampleRateConverterAudioQualityKey: string; declare var AVSampleRateKey: string; +declare class AVSemanticSegmentationMatte extends NSObject { + + static alloc(): AVSemanticSegmentationMatte; // inherited from NSObject + + static new(): AVSemanticSegmentationMatte; // inherited from NSObject + + static semanticSegmentationMatteFromImageSourceAuxiliaryDataTypeDictionaryRepresentationError(imageSourceAuxiliaryDataType: string, imageSourceAuxiliaryDataInfoDictionary: NSDictionary): AVSemanticSegmentationMatte; + + readonly matteType: string; + + readonly mattingImage: any; + + readonly pixelFormatType: number; + + dictionaryRepresentationForAuxiliaryDataType(outAuxDataType: interop.Pointer | interop.Reference): NSDictionary; + + semanticSegmentationMatteByApplyingExifOrientation(exifOrientation: CGImagePropertyOrientation): this; + + semanticSegmentationMatteByReplacingSemanticSegmentationMatteWithPixelBufferError(pixelBuffer: any): this; +} + +declare var AVSemanticSegmentationMatteTypeHair: string; + +declare var AVSemanticSegmentationMatteTypeSkin: string; + +declare var AVSemanticSegmentationMatteTypeTeeth: string; + declare const enum AVSpeechBoundary { Immediate = 0, @@ -8026,6 +8722,10 @@ declare class AVSpeechSynthesisVoice extends NSObject implements NSSecureCoding static voiceWithLanguage(languageCode: string): AVSpeechSynthesisVoice; + readonly audioFileSettings: NSDictionary; + + readonly gender: AVSpeechSynthesisVoiceGender; + readonly identifier: string; readonly language: string; @@ -8038,9 +8738,18 @@ declare class AVSpeechSynthesisVoice extends NSObject implements NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare const enum AVSpeechSynthesisVoiceGender { + + Unspecified = 0, + + Male = 1, - initWithCoder(aDecoder: NSCoder): this; + Female = 2 } declare var AVSpeechSynthesisVoiceIdentifierAlex: string; @@ -8060,12 +8769,16 @@ declare class AVSpeechSynthesizer extends NSObject { delegate: AVSpeechSynthesizerDelegate; + mixToTelephonyUplink: boolean; + outputChannels: NSArray; readonly paused: boolean; readonly speaking: boolean; + usesApplicationAudioSession: boolean; + continueSpeaking(): boolean; pauseSpeakingAtBoundary(boundary: AVSpeechBoundary): boolean; @@ -8073,6 +8786,8 @@ declare class AVSpeechSynthesizer extends NSObject { speakUtterance(utterance: AVSpeechUtterance): void; stopSpeakingAtBoundary(boundary: AVSpeechBoundary): boolean; + + writeUtteranceToBufferCallback(utterance: AVSpeechUtterance, bufferCallback: (p1: AVAudioBuffer) => void): void; } interface AVSpeechSynthesizerDelegate extends NSObjectProtocol { @@ -8130,11 +8845,11 @@ declare class AVSpeechUtterance extends NSObject implements NSCopying, NSSecureC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAttributedString(string: NSAttributedString): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithString(string: string): this; } @@ -8259,6 +8974,10 @@ declare class AVURLAsset extends AVAsset implements AVContentKeyRecipient { declare var AVURLAssetAllowsCellularAccessKey: string; +declare var AVURLAssetAllowsConstrainedNetworkAccessKey: string; + +declare var AVURLAssetAllowsExpensiveNetworkAccessKey: string; + declare var AVURLAssetHTTPCookiesKey: string; declare var AVURLAssetPreferPreciseDurationAndTimingKey: string; @@ -8299,12 +9018,20 @@ declare var AVVideoCodecKey: string; declare var AVVideoCodecTypeAppleProRes422: string; +declare var AVVideoCodecTypeAppleProRes422HQ: string; + +declare var AVVideoCodecTypeAppleProRes422LT: string; + +declare var AVVideoCodecTypeAppleProRes422Proxy: string; + declare var AVVideoCodecTypeAppleProRes4444: string; declare var AVVideoCodecTypeH264: string; declare var AVVideoCodecTypeHEVC: string; +declare var AVVideoCodecTypeHEVCWithAlpha: string; + declare var AVVideoCodecTypeJPEG: string; declare var AVVideoColorPrimariesKey: string; @@ -8327,8 +9054,12 @@ interface AVVideoCompositing extends NSObjectProtocol { supportsWideColorSourceFrames?: boolean; + anticipateRenderingUsingHint?(renderHint: AVVideoCompositionRenderHint): void; + cancelAllPendingVideoCompositionRequests?(): void; + prerollForRenderingUsingHint?(renderHint: AVVideoCompositionRenderHint): void; + renderContextChanged(newRenderContext: AVVideoCompositionRenderContext): void; startVideoCompositionRequest(asyncVideoCompositionRequest: AVAsynchronousVideoCompositionRequest): void; @@ -8430,9 +9161,9 @@ declare class AVVideoCompositionInstruction extends NSObject implements AVVideoC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -8486,7 +9217,7 @@ declare class AVVideoCompositionLayerInstruction extends NSObject implements NSC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; getCropRectangleRampForTimeStartCropRectangleEndCropRectangleTimeRange(time: CMTime, startCropRectangle: interop.Pointer | interop.Reference, endCropRectangle: interop.Pointer | interop.Reference, timeRange: interop.Pointer | interop.Reference): boolean; @@ -8494,7 +9225,7 @@ declare class AVVideoCompositionLayerInstruction extends NSObject implements NSC getTransformRampForTimeStartTransformEndTransformTimeRange(time: CMTime, startTransform: interop.Pointer | interop.Reference, endTransform: interop.Pointer | interop.Reference, timeRange: interop.Pointer | interop.Reference): boolean; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } @@ -8522,6 +9253,17 @@ declare class AVVideoCompositionRenderContext extends NSObject { newPixelBuffer(): any; } +declare class AVVideoCompositionRenderHint extends NSObject { + + static alloc(): AVVideoCompositionRenderHint; // inherited from NSObject + + static new(): AVVideoCompositionRenderHint; // inherited from NSObject + + readonly endCompositionTime: CMTime; + + readonly startCompositionTime: CMTime; +} + interface AVVideoCompositionValidationHandling extends NSObjectProtocol { videoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange?(videoComposition: AVVideoComposition, timeRange: CMTimeRange): boolean; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!AVKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!AVKit.d.ts index 68595723ab..684bc11382 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!AVKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!AVKit.d.ts @@ -1,4 +1,13 @@ +declare const enum AVAudioSessionRouteSelection { + + None = 0, + + Local = 1, + + External = 2 +} + declare const enum AVKitError { Unknown = -1000, @@ -30,6 +39,10 @@ declare class AVPictureInPictureController extends NSObject { readonly playerLayer: AVPlayerLayer; + static readonly pictureInPictureButtonStartImage: UIImage; + + static readonly pictureInPictureButtonStopImage: UIImage; + constructor(o: { playerLayer: AVPlayerLayer; }); initWithPlayerLayer(playerLayer: AVPlayerLayer): this; @@ -76,6 +89,8 @@ declare class AVPlayerViewController extends UIViewController { exitsFullScreenWhenPlaybackEnds: boolean; + pixelBufferAttributes: NSDictionary; + player: AVPlayer; readonly readyForDisplay: boolean; @@ -105,6 +120,10 @@ interface AVPlayerViewControllerDelegate extends NSObjectProtocol { playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart?(playerViewController: AVPlayerViewController): boolean; + playerViewControllerWillBeginFullScreenPresentationWithAnimationCoordinator?(playerViewController: AVPlayerViewController, coordinator: UIViewControllerTransitionCoordinator): void; + + playerViewControllerWillEndFullScreenPresentationWithAnimationCoordinator?(playerViewController: AVPlayerViewController, coordinator: UIViewControllerTransitionCoordinator): void; + playerViewControllerWillStartPictureInPicture?(playerViewController: AVPlayerViewController): void; playerViewControllerWillStopPictureInPicture?(playerViewController: AVPlayerViewController): void; @@ -135,6 +154,8 @@ declare class AVRoutePickerView extends UIView { activeTintColor: UIColor; delegate: AVRoutePickerViewDelegate; + + prioritizesVideoDevices: boolean; } interface AVRoutePickerViewDelegate extends NSObjectProtocol { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!AppleTextureEncoder.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!AppleTextureEncoder.d.ts index fd5e02815f..f5309e65ee 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!AppleTextureEncoder.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!AppleTextureEncoder.d.ts @@ -56,7 +56,55 @@ declare const enum at_block_format_t { at_block_format_astc_12x12_ldr = 14, - at_block_format_count = 15 + at_block_format_astc_4x4_hdr = 17, + + at_block_format_astc_5x4_hdr = 18, + + at_block_format_astc_5x5_hdr = 19, + + at_block_format_astc_6x5_hdr = 20, + + at_block_format_astc_6x6_hdr = 21, + + at_block_format_astc_8x5_hdr = 22, + + at_block_format_astc_8x6_hdr = 23, + + at_block_format_astc_8x8_hdr = 24, + + at_block_format_astc_10x5_hdr = 25, + + at_block_format_astc_10x6_hdr = 26, + + at_block_format_astc_10x8_hdr = 27, + + at_block_format_astc_10x10_hdr = 28, + + at_block_format_astc_12x10_hdr = 29, + + at_block_format_astc_12x12_hdr = 30, + + at_block_format_bc1 = 33, + + at_block_format_bc2 = 34, + + at_block_format_bc3 = 35, + + at_block_format_bc4 = 36, + + at_block_format_bc4s = 37, + + at_block_format_bc5 = 38, + + at_block_format_bc5s = 39, + + at_block_format_bc6 = 40, + + at_block_format_bc6u = 41, + + at_block_format_bc7 = 42, + + at_block_format_count = 43 } declare function at_block_format_to_MTLPixelFormat(p1: at_block_format_t): number; @@ -99,7 +147,9 @@ declare const enum at_error_t { at_error_invalid_source_data = -3, - at_error_invalid_flag = -4 + at_error_invalid_flag = -4, + + at_error_hdr_block_format_required = -5 } declare const enum at_flags_t { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!AudioToolbox.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!AudioToolbox.d.ts index 9fd218e468..096d3df1ad 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!AudioToolbox.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!AudioToolbox.d.ts @@ -99,7 +99,7 @@ declare class AUAudioUnit extends NSObject { outputProvider: (p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: number, p5: interop.Pointer | interop.Reference) => number; - readonly parameterTree: AUParameterTree; + parameterTree: AUParameterTree; profileChangedBlock: (p1: number, p2: number, p3: MIDICIProfile, p4: boolean) => void; @@ -123,10 +123,14 @@ declare class AUAudioUnit extends NSObject { readonly supportsMPE: boolean; + readonly supportsUserPresets: boolean; + readonly tailTime: number; transportStateBlock: (p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference) => boolean; + readonly userPresets: NSArray; + readonly virtualMIDICableCount: number; constructor(o: { componentDescription: AudioComponentDescription; }); @@ -137,6 +141,8 @@ declare class AUAudioUnit extends NSObject { deallocateRenderResources(): void; + deleteUserPresetError(userPreset: AUAudioUnitPreset): boolean; + disableProfileCableOnChannelError(profile: MIDICIProfile, cable: number, channel: number): boolean; enableProfileCableOnChannelError(profile: MIDICIProfile, cable: number, channel: number): boolean; @@ -147,6 +153,8 @@ declare class AUAudioUnit extends NSObject { parametersForOverviewWithCount(count: number): NSArray; + presetStateForError(userPreset: AUAudioUnitPreset): NSDictionary; + profileStateForCableChannel(cable: number, channel: number): MIDICIProfileState; removeRenderObserver(token: number): void; @@ -155,6 +163,8 @@ declare class AUAudioUnit extends NSObject { reset(): void; + saveUserPresetError(userPreset: AUAudioUnitPreset): boolean; + selectViewConfiguration(viewConfiguration: AUAudioUnitViewConfiguration): void; setRenderResourcesAllocated(flag: boolean): void; @@ -270,9 +280,9 @@ declare class AUAudioUnitPreset extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class AUAudioUnitV2Bridge extends AUAudioUnit { @@ -404,9 +414,9 @@ declare class AUParameter extends AUParameterNode implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; setValueOriginator(value: number, originator: interop.Pointer | interop.Reference): void; @@ -458,9 +468,9 @@ declare class AUParameterGroup extends AUParameterNode implements NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class AUParameterNode extends NSObject { @@ -516,9 +526,9 @@ declare class AUParameterTree extends AUParameterGroup implements NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; parameterWithAddress(address: number): AUParameter; @@ -687,6 +697,38 @@ declare const enum AudioBytePacketTranslationFlags { kBytePacketTranslationFlag_IsEstimate = 1 } +declare function AudioCodecAppendInputBufferList(inCodec: interop.Pointer | interop.Reference, inBufferList: interop.Pointer | interop.Reference, ioNumberPackets: interop.Pointer | interop.Reference, inPacketDescription: interop.Pointer | interop.Reference, outBytesConsumed: interop.Pointer | interop.Reference): number; + +declare function AudioCodecAppendInputData(inCodec: interop.Pointer | interop.Reference, inInputData: interop.Pointer | interop.Reference, ioInputDataByteSize: interop.Pointer | interop.Reference, ioNumberPackets: interop.Pointer | interop.Reference, inPacketDescription: interop.Pointer | interop.Reference): number; + +declare function AudioCodecGetProperty(inCodec: interop.Pointer | interop.Reference, inPropertyID: number, ioPropertyDataSize: interop.Pointer | interop.Reference, outPropertyData: interop.Pointer | interop.Reference): number; + +declare function AudioCodecGetPropertyInfo(inCodec: interop.Pointer | interop.Reference, inPropertyID: number, outSize: interop.Pointer | interop.Reference, outWritable: string): number; + +declare function AudioCodecInitialize(inCodec: interop.Pointer | interop.Reference, inInputFormat: interop.Pointer | interop.Reference, inOutputFormat: interop.Pointer | interop.Reference, inMagicCookie: interop.Pointer | interop.Reference, inMagicCookieByteSize: number): number; + +interface AudioCodecMagicCookieInfo { + mMagicCookieSize: number; + mMagicCookie: interop.Pointer | interop.Reference; +} +declare var AudioCodecMagicCookieInfo: interop.StructType; + +interface AudioCodecPrimeInfo { + leadingFrames: number; + trailingFrames: number; +} +declare var AudioCodecPrimeInfo: interop.StructType; + +declare function AudioCodecProduceOutputBufferList(inCodec: interop.Pointer | interop.Reference, ioBufferList: interop.Pointer | interop.Reference, ioNumberPackets: interop.Pointer | interop.Reference, outPacketDescription: interop.Pointer | interop.Reference, outStatus: interop.Pointer | interop.Reference): number; + +declare function AudioCodecProduceOutputPackets(inCodec: interop.Pointer | interop.Reference, outOutputData: interop.Pointer | interop.Reference, ioOutputDataByteSize: interop.Pointer | interop.Reference, ioNumberPackets: interop.Pointer | interop.Reference, outPacketDescription: interop.Pointer | interop.Reference, outStatus: interop.Pointer | interop.Reference): number; + +declare function AudioCodecReset(inCodec: interop.Pointer | interop.Reference): number; + +declare function AudioCodecSetProperty(inCodec: interop.Pointer | interop.Reference, inPropertyID: number, inPropertyDataSize: number, inPropertyData: interop.Pointer | interop.Reference): number; + +declare function AudioCodecUninitialize(inCodec: interop.Pointer | interop.Reference): number; + declare function AudioComponentCopyName(inComponent: interop.Pointer | interop.Reference, outName: interop.Pointer | interop.Reference): number; declare function AudioComponentCount(inDesc: interop.Pointer | interop.Reference): number; @@ -956,12 +998,6 @@ interface AudioFormatInfo { } declare var AudioFormatInfo: interop.StructType; -interface AudioFormatListItem { - mASBD: AudioStreamBasicDescription; - mChannelLayoutTag: number; -} -declare var AudioFormatListItem: interop.StructType; - interface AudioFramePacketTranslation { mFrame: number; mPacket: number; @@ -969,6 +1005,12 @@ interface AudioFramePacketTranslation { } declare var AudioFramePacketTranslation: interop.StructType; +interface AudioIndependentPacketTranslation { + mPacket: number; + mIndependentlyDecodablePacket: number; +} +declare var AudioIndependentPacketTranslation: interop.StructType; + declare function AudioOutputUnitGetHostIcon(au: interop.Pointer | interop.Reference, desiredPointSize: number): UIImage; interface AudioOutputUnitMIDICallbacks { @@ -990,6 +1032,26 @@ declare var AudioOutputUnitStartAtTimeParams: interop.StructType): number; +interface AudioPacketDependencyInfoTranslation { + mPacket: number; + mIsIndependentlyDecodable: number; + mNumberPrerollPackets: number; +} +declare var AudioPacketDependencyInfoTranslation: interop.StructType; + +interface AudioPacketRangeByteCountTranslation { + mPacket: number; + mPacketCount: number; + mByteCountUpperBound: number; +} +declare var AudioPacketRangeByteCountTranslation: interop.StructType; + +interface AudioPacketRollDistanceTranslation { + mPacket: number; + mRollDistance: number; +} +declare var AudioPacketRollDistanceTranslation: interop.StructType; + interface AudioPanningInfo { mPanningMode: AudioPanningMode; mCoordinateFlags: number; @@ -1158,6 +1220,17 @@ declare function AudioSessionSetActiveWithFlags(active: boolean, inFlags: number declare function AudioSessionSetProperty(inID: number, inDataSize: number, inData: interop.Pointer | interop.Reference): number; +declare const enum AudioSettingsFlags { + + kAudioSettingsFlags_ExpertParameter = 1, + + kAudioSettingsFlags_InvisibleParameter = 2, + + kAudioSettingsFlags_MetaParameter = 4, + + kAudioSettingsFlags_UserInterfaceParameter = 8 +} + declare function AudioUnitAddPropertyListener(inUnit: interop.Pointer | interop.Reference, inID: number, inProc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: number, p5: number) => void>, inProcUserData: interop.Pointer | interop.Reference): number; declare function AudioUnitAddRenderNotify(inUnit: interop.Pointer | interop.Reference, inProc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: number, p5: number, p6: interop.Pointer | interop.Reference) => number>, inProcUserData: interop.Pointer | interop.Reference): number; @@ -1945,8 +2018,12 @@ declare var ScheduledAudioSlice: interop.StructType; declare const k3DMixerParam_Azimuth: number; +declare const k3DMixerParam_BusEnable: number; + declare const k3DMixerParam_Distance: number; +declare const k3DMixerParam_DryWetReverbBlend: number; + declare const k3DMixerParam_Elevation: number; declare const k3DMixerParam_Enable: number; @@ -1955,16 +2032,34 @@ declare const k3DMixerParam_Gain: number; declare const k3DMixerParam_GlobalReverbGain: number; +declare const k3DMixerParam_GlobalReverbGainInDecibels: number; + declare const k3DMixerParam_MaxGain: number; +declare const k3DMixerParam_MaxGainInDecibels: number; + declare const k3DMixerParam_MinGain: number; +declare const k3DMixerParam_MinGainInDecibels: number; + declare const k3DMixerParam_ObstructionAttenuation: number; +declare const k3DMixerParam_ObstructionAttenuationInDecibels: number; + declare const k3DMixerParam_OcclusionAttenuation: number; +declare const k3DMixerParam_OcclusionAttenuationInDecibels: number; + declare const k3DMixerParam_PlaybackRate: number; +declare const k3DMixerParam_PostAveragePower: number; + +declare const k3DMixerParam_PostPeakHoldLevel: number; + +declare const k3DMixerParam_PreAveragePower: number; + +declare const k3DMixerParam_PrePeakHoldLevel: number; + declare const k3DMixerParam_ReverbBlend: number; declare const kAUGraphErr_CannotDoInCurrentContext: number; @@ -2107,6 +2202,228 @@ declare const kAppleHardwareAudioCodecManufacturer: number; declare const kAppleSoftwareAudioCodecManufacturer: number; +declare const kAudioCodecAppendInputBufferListSelect: number; + +declare const kAudioCodecAppendInputDataSelect: number; + +declare const kAudioCodecBadDataError: number; + +declare const kAudioCodecBadPropertySizeError: number; + +declare const kAudioCodecBitRateControlMode_Constant: number; + +declare const kAudioCodecBitRateControlMode_LongTermAverage: number; + +declare const kAudioCodecBitRateControlMode_Variable: number; + +declare const kAudioCodecBitRateControlMode_VariableConstrained: number; + +declare const kAudioCodecBitRateFormat: number; + +declare const kAudioCodecBitRateFormat_ABR: number; + +declare const kAudioCodecBitRateFormat_CBR: number; + +declare const kAudioCodecBitRateFormat_VBR: number; + +declare const kAudioCodecDelayMode_Compatibility: number; + +declare const kAudioCodecDelayMode_Minimum: number; + +declare const kAudioCodecDelayMode_Optimal: number; + +declare const kAudioCodecDoesSampleRateConversion: number; + +declare const kAudioCodecExtendFrequencies: number; + +declare const kAudioCodecGetPropertyInfoSelect: number; + +declare const kAudioCodecGetPropertySelect: number; + +declare const kAudioCodecIllegalOperationError: number; + +declare const kAudioCodecInitializeSelect: number; + +declare const kAudioCodecInputFormatsForOutputFormat: number; + +declare const kAudioCodecNoError: number; + +declare const kAudioCodecNotEnoughBufferSpaceError: number; + +declare const kAudioCodecOutputFormatsForInputFormat: number; + +declare const kAudioCodecOutputPrecedence: number; + +declare const kAudioCodecOutputPrecedenceBitRate: number; + +declare const kAudioCodecOutputPrecedenceNone: number; + +declare const kAudioCodecOutputPrecedenceSampleRate: number; + +declare const kAudioCodecPrimeMethod_None: number; + +declare const kAudioCodecPrimeMethod_Normal: number; + +declare const kAudioCodecPrimeMethod_Pre: number; + +declare const kAudioCodecProduceOutputBufferListSelect: number; + +declare const kAudioCodecProduceOutputDataSelect: number; + +declare const kAudioCodecProduceOutputPacketAtEOF: number; + +declare const kAudioCodecProduceOutputPacketFailure: number; + +declare const kAudioCodecProduceOutputPacketNeedsMoreInputData: number; + +declare const kAudioCodecProduceOutputPacketSuccess: number; + +declare const kAudioCodecProduceOutputPacketSuccessHasMore: number; + +declare const kAudioCodecPropertyAdjustLocalQuality: number; + +declare const kAudioCodecPropertyApplicableBitRateRange: number; + +declare const kAudioCodecPropertyApplicableInputSampleRates: number; + +declare const kAudioCodecPropertyApplicableOutputSampleRates: number; + +declare const kAudioCodecPropertyAvailableBitRateRange: number; + +declare const kAudioCodecPropertyAvailableBitRates: number; + +declare const kAudioCodecPropertyAvailableInputChannelLayoutTags: number; + +declare const kAudioCodecPropertyAvailableInputChannelLayouts: number; + +declare const kAudioCodecPropertyAvailableInputSampleRates: number; + +declare const kAudioCodecPropertyAvailableNumberChannels: number; + +declare const kAudioCodecPropertyAvailableOutputChannelLayoutTags: number; + +declare const kAudioCodecPropertyAvailableOutputChannelLayouts: number; + +declare const kAudioCodecPropertyAvailableOutputSampleRates: number; + +declare const kAudioCodecPropertyBitRateControlMode: number; + +declare const kAudioCodecPropertyBitRateForVBR: number; + +declare const kAudioCodecPropertyCurrentInputChannelLayout: number; + +declare const kAudioCodecPropertyCurrentInputFormat: number; + +declare const kAudioCodecPropertyCurrentInputSampleRate: number; + +declare const kAudioCodecPropertyCurrentOutputChannelLayout: number; + +declare const kAudioCodecPropertyCurrentOutputFormat: number; + +declare const kAudioCodecPropertyCurrentOutputSampleRate: number; + +declare const kAudioCodecPropertyCurrentTargetBitRate: number; + +declare const kAudioCodecPropertyDelayMode: number; + +declare const kAudioCodecPropertyDoesSampleRateConversion: number; + +declare const kAudioCodecPropertyDynamicRangeControlMode: number; + +declare const kAudioCodecPropertyEmploysDependentPackets: number; + +declare const kAudioCodecPropertyFormatCFString: number; + +declare const kAudioCodecPropertyFormatInfo: number; + +declare const kAudioCodecPropertyFormatList: number; + +declare const kAudioCodecPropertyHasVariablePacketByteSizes: number; + +declare const kAudioCodecPropertyInputBufferSize: number; + +declare const kAudioCodecPropertyInputChannelLayout: number; + +declare const kAudioCodecPropertyInputFormatsForOutputFormat: number; + +declare const kAudioCodecPropertyIsInitialized: number; + +declare const kAudioCodecPropertyMagicCookie: number; + +declare const kAudioCodecPropertyManufacturerCFString: number; + +declare const kAudioCodecPropertyMaximumPacketByteSize: number; + +declare const kAudioCodecPropertyMinimumDelayMode: number; + +declare const kAudioCodecPropertyMinimumNumberInputPackets: number; + +declare const kAudioCodecPropertyMinimumNumberOutputPackets: number; + +declare const kAudioCodecPropertyNameCFString: number; + +declare const kAudioCodecPropertyOutputChannelLayout: number; + +declare const kAudioCodecPropertyOutputFormatsForInputFormat: number; + +declare const kAudioCodecPropertyPacketFrameSize: number; + +declare const kAudioCodecPropertyPacketSizeLimitForVBR: number; + +declare const kAudioCodecPropertyPaddedZeros: number; + +declare const kAudioCodecPropertyPrimeInfo: number; + +declare const kAudioCodecPropertyPrimeMethod: number; + +declare const kAudioCodecPropertyProgramTargetLevel: number; + +declare const kAudioCodecPropertyProgramTargetLevelConstant: number; + +declare const kAudioCodecPropertyQualitySetting: number; + +declare const kAudioCodecPropertyRecommendedBitRateRange: number; + +declare const kAudioCodecPropertyRequiresPacketDescription: number; + +declare const kAudioCodecPropertySettings: number; + +declare const kAudioCodecPropertySoundQualityForVBR: number; + +declare const kAudioCodecPropertySupportedInputFormats: number; + +declare const kAudioCodecPropertySupportedOutputFormats: number; + +declare const kAudioCodecPropertyUsedInputBufferSize: number; + +declare const kAudioCodecPropertyZeroFramesPadded: number; + +declare const kAudioCodecQuality_High: number; + +declare const kAudioCodecQuality_Low: number; + +declare const kAudioCodecQuality_Max: number; + +declare const kAudioCodecQuality_Medium: number; + +declare const kAudioCodecQuality_Min: number; + +declare const kAudioCodecResetSelect: number; + +declare const kAudioCodecSetPropertySelect: number; + +declare const kAudioCodecStateError: number; + +declare const kAudioCodecUninitializeSelect: number; + +declare const kAudioCodecUnknownPropertyError: number; + +declare const kAudioCodecUnspecifiedError: number; + +declare const kAudioCodecUnsupportedFormatError: number; + +declare const kAudioCodecUseRecommendedSampleRate: number; + declare const kAudioComponentErr_DuplicateDescription: number; declare const kAudioComponentErr_InitializationTimedOut: number; @@ -2305,8 +2622,12 @@ declare const kAudioFileInvalidChunkError: number; declare const kAudioFileInvalidFileError: number; +declare const kAudioFileInvalidPacketDependencyError: number; + declare const kAudioFileInvalidPacketOffsetError: number; +declare const kAudioFileLATMInLOASType: number; + declare const kAudioFileLoopDirection_Backward: number; declare const kAudioFileLoopDirection_Forward: number; @@ -2385,18 +2706,30 @@ declare const kAudioFilePropertyMarkerList: number; declare const kAudioFilePropertyMaximumPacketSize: number; +declare const kAudioFilePropertyNextIndependentPacket: number; + +declare const kAudioFilePropertyPacketRangeByteCountUpperBound: number; + declare const kAudioFilePropertyPacketSizeUpperBound: number; declare const kAudioFilePropertyPacketTableInfo: number; declare const kAudioFilePropertyPacketToByte: number; +declare const kAudioFilePropertyPacketToDependencyInfo: number; + declare const kAudioFilePropertyPacketToFrame: number; +declare const kAudioFilePropertyPacketToRollDistance: number; + +declare const kAudioFilePropertyPreviousIndependentPacket: number; + declare const kAudioFilePropertyRegionList: number; declare const kAudioFilePropertyReserveDuration: number; +declare const kAudioFilePropertyRestrictsRandomAccess: number; + declare const kAudioFilePropertySourceBitDepth: number; declare const kAudioFilePropertyUseAudioTrack: number; @@ -2457,16 +2790,26 @@ declare const kAudioFileStreamProperty_MagicCookieData: number; declare const kAudioFileStreamProperty_MaximumPacketSize: number; +declare const kAudioFileStreamProperty_NextIndependentPacket: number; + declare const kAudioFileStreamProperty_PacketSizeUpperBound: number; declare const kAudioFileStreamProperty_PacketTableInfo: number; declare const kAudioFileStreamProperty_PacketToByte: number; +declare const kAudioFileStreamProperty_PacketToDependencyInfo: number; + declare const kAudioFileStreamProperty_PacketToFrame: number; +declare const kAudioFileStreamProperty_PacketToRollDistance: number; + +declare const kAudioFileStreamProperty_PreviousIndependentPacket: number; + declare const kAudioFileStreamProperty_ReadyToProducePackets: number; +declare const kAudioFileStreamProperty_RestrictsRandomAccess: number; + declare const kAudioFileUnspecifiedError: number; declare const kAudioFileUnsupportedDataFormatError: number; @@ -2527,6 +2870,8 @@ declare const kAudioFormatProperty_Encoders: number; declare const kAudioFormatProperty_FirstPlayableFormatFromList: number; +declare const kAudioFormatProperty_FormatEmploysDependentPackets: number; + declare const kAudioFormatProperty_FormatInfo: number; declare const kAudioFormatProperty_FormatIsEncrypted: number; @@ -2965,6 +3310,8 @@ declare const kAudioUnitErr_InvalidElement: number; declare const kAudioUnitErr_InvalidFile: number; +declare const kAudioUnitErr_InvalidFilePath: number; + declare const kAudioUnitErr_InvalidOfflineRender: number; declare const kAudioUnitErr_InvalidParameter: number; @@ -2979,6 +3326,8 @@ declare const kAudioUnitErr_InvalidScope: number; declare const kAudioUnitErr_MIDIOutputBufferFull: number; +declare const kAudioUnitErr_MissingKey: number; + declare const kAudioUnitErr_NoConnection: number; declare const kAudioUnitErr_PropertyNotInUse: number; @@ -3465,6 +3814,12 @@ declare const kDistortionParam_SoftClipGain: number; declare const kDistortionParam_SquaredTerm: number; +declare const kDynamicRangeControlMode_Heavy: number; + +declare const kDynamicRangeControlMode_Light: number; + +declare const kDynamicRangeControlMode_None: number; + declare const kDynamicsProcessorParam_AttackTime: number; declare const kDynamicsProcessorParam_CompressionAmount: number; @@ -3543,6 +3898,12 @@ declare const kHighShelfParam_CutOffFrequency: number; declare const kHighShelfParam_Gain: number; +declare const kHintAdvanced: number; + +declare const kHintBasic: number; + +declare const kHintHidden: number; + declare const kHipassParam_CutoffFrequency: number; declare const kHipassParam_Resonance: number; @@ -3667,6 +4028,14 @@ declare const kParametricEQParam_Gain: number; declare const kParametricEQParam_Q: number; +declare const kProgramTargetLevel_Minus20dB: number; + +declare const kProgramTargetLevel_Minus23dB: number; + +declare const kProgramTargetLevel_Minus31dB: number; + +declare const kProgramTargetLevel_None: number; + declare const kRandomParam_BoundA: number; declare const kRandomParam_BoundB: number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!AuthenticationServices.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!AuthenticationServices.d.ts index 7eb0683da9..df134bed03 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!AuthenticationServices.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!AuthenticationServices.d.ts @@ -1,4 +1,525 @@ +declare class ASAuthorization extends NSObject { + + static alloc(): ASAuthorization; // inherited from NSObject + + static new(): ASAuthorization; // inherited from NSObject + + readonly credential: ASAuthorizationCredential; + + readonly provider: ASAuthorizationProvider; +} + +declare class ASAuthorizationAppleIDButton extends UIControl { + + static alloc(): ASAuthorizationAppleIDButton; // inherited from NSObject + + static appearance(): ASAuthorizationAppleIDButton; // inherited from UIAppearance + + static appearanceForTraitCollection(trait: UITraitCollection): ASAuthorizationAppleIDButton; // inherited from UIAppearance + + static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): ASAuthorizationAppleIDButton; // inherited from UIAppearance + + static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): ASAuthorizationAppleIDButton; // inherited from UIAppearance + + static appearanceWhenContainedIn(ContainerClass: typeof NSObject): ASAuthorizationAppleIDButton; // inherited from UIAppearance + + static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): ASAuthorizationAppleIDButton; // inherited from UIAppearance + + static buttonWithTypeStyle(type: ASAuthorizationAppleIDButtonType, style: ASAuthorizationAppleIDButtonStyle): ASAuthorizationAppleIDButton; + + static new(): ASAuthorizationAppleIDButton; // inherited from NSObject + + cornerRadius: number; + + constructor(o: { authorizationButtonType: ASAuthorizationAppleIDButtonType; authorizationButtonStyle: ASAuthorizationAppleIDButtonStyle; }); + + initWithAuthorizationButtonTypeAuthorizationButtonStyle(type: ASAuthorizationAppleIDButtonType, style: ASAuthorizationAppleIDButtonStyle): this; +} + +declare const enum ASAuthorizationAppleIDButtonStyle { + + White = 0, + + WhiteOutline = 1, + + Black = 2 +} + +declare const enum ASAuthorizationAppleIDButtonType { + + SignIn = 0, + + Continue = 1, + + Default = 0 +} + +declare class ASAuthorizationAppleIDCredential extends NSObject implements ASAuthorizationCredential { + + static alloc(): ASAuthorizationAppleIDCredential; // inherited from NSObject + + static new(): ASAuthorizationAppleIDCredential; // inherited from NSObject + + readonly authorizationCode: NSData; + + readonly authorizedScopes: NSArray; + + readonly email: string; + + readonly fullName: NSPersonNameComponents; + + readonly identityToken: NSData; + + readonly realUserStatus: ASUserDetectionStatus; + + readonly state: string; + + readonly user: string; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class ASAuthorizationAppleIDProvider extends NSObject implements ASAuthorizationProvider { + + static alloc(): ASAuthorizationAppleIDProvider; // inherited from NSObject + + static new(): ASAuthorizationAppleIDProvider; // inherited from NSObject + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + createRequest(): ASAuthorizationAppleIDRequest; + + getCredentialStateForUserIDCompletion(userID: string, completion: (p1: ASAuthorizationAppleIDProviderCredentialState, p2: NSError) => void): void; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare var ASAuthorizationAppleIDProviderCredentialRevokedNotification: string; + +declare const enum ASAuthorizationAppleIDProviderCredentialState { + + Revoked = 0, + + Authorized = 1, + + NotFound = 2, + + Transferred = 3 +} + +declare class ASAuthorizationAppleIDRequest extends ASAuthorizationOpenIDRequest { + + static alloc(): ASAuthorizationAppleIDRequest; // inherited from NSObject + + static new(): ASAuthorizationAppleIDRequest; // inherited from NSObject + + user: string; +} + +declare class ASAuthorizationController extends NSObject { + + static alloc(): ASAuthorizationController; // inherited from NSObject + + static new(): ASAuthorizationController; // inherited from NSObject + + readonly authorizationRequests: NSArray; + + delegate: ASAuthorizationControllerDelegate; + + presentationContextProvider: ASAuthorizationControllerPresentationContextProviding; + + constructor(o: { authorizationRequests: NSArray | ASAuthorizationRequest[]; }); + + initWithAuthorizationRequests(authorizationRequests: NSArray | ASAuthorizationRequest[]): this; + + performRequests(): void; +} + +interface ASAuthorizationControllerDelegate extends NSObjectProtocol { + + authorizationControllerDidCompleteWithAuthorization?(controller: ASAuthorizationController, authorization: ASAuthorization): void; + + authorizationControllerDidCompleteWithError?(controller: ASAuthorizationController, error: NSError): void; +} +declare var ASAuthorizationControllerDelegate: { + + prototype: ASAuthorizationControllerDelegate; +}; + +interface ASAuthorizationControllerPresentationContextProviding extends NSObjectProtocol { + + presentationAnchorForAuthorizationController(controller: ASAuthorizationController): UIWindow; +} +declare var ASAuthorizationControllerPresentationContextProviding: { + + prototype: ASAuthorizationControllerPresentationContextProviding; +}; + +interface ASAuthorizationCredential extends NSCopying, NSObjectProtocol, NSSecureCoding { +} +declare var ASAuthorizationCredential: { + + prototype: ASAuthorizationCredential; +}; + +declare const enum ASAuthorizationError { + + Unknown = 1000, + + Canceled = 1001, + + InvalidResponse = 1002, + + NotHandled = 1003, + + Failed = 1004 +} + +declare var ASAuthorizationErrorDomain: string; + +declare class ASAuthorizationOpenIDRequest extends ASAuthorizationRequest { + + static alloc(): ASAuthorizationOpenIDRequest; // inherited from NSObject + + static new(): ASAuthorizationOpenIDRequest; // inherited from NSObject + + nonce: string; + + requestedOperation: string; + + requestedScopes: NSArray; + + state: string; +} + +declare var ASAuthorizationOperationImplicit: string; + +declare var ASAuthorizationOperationLogin: string; + +declare var ASAuthorizationOperationLogout: string; + +declare var ASAuthorizationOperationRefresh: string; + +declare class ASAuthorizationPasswordProvider extends NSObject implements ASAuthorizationProvider { + + static alloc(): ASAuthorizationPasswordProvider; // inherited from NSObject + + static new(): ASAuthorizationPasswordProvider; // inherited from NSObject + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + createRequest(): ASAuthorizationPasswordRequest; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class ASAuthorizationPasswordRequest extends ASAuthorizationRequest { + + static alloc(): ASAuthorizationPasswordRequest; // inherited from NSObject + + static new(): ASAuthorizationPasswordRequest; // inherited from NSObject +} + +interface ASAuthorizationProvider extends NSObjectProtocol { +} +declare var ASAuthorizationProvider: { + + prototype: ASAuthorizationProvider; +}; + +declare class ASAuthorizationProviderExtensionAuthorizationRequest extends NSObject { + + static alloc(): ASAuthorizationProviderExtensionAuthorizationRequest; // inherited from NSObject + + static new(): ASAuthorizationProviderExtensionAuthorizationRequest; // inherited from NSObject + + readonly authorizationOptions: NSDictionary; + + readonly callerBundleIdentifier: string; + + readonly extensionData: NSDictionary; + + readonly httpBody: NSData; + + readonly httpHeaders: NSDictionary; + + readonly realm: string; + + readonly requestedOperation: string; + + readonly url: NSURL; + + cancel(): void; + + complete(): void; + + completeWithError(error: NSError): void; + + completeWithHTTPAuthorizationHeaders(httpAuthorizationHeaders: NSDictionary): void; + + completeWithHTTPResponseHttpBody(httpResponse: NSHTTPURLResponse, httpBody: NSData): void; + + doNotHandle(): void; + + presentAuthorizationViewControllerWithCompletion(completion: (p1: boolean, p2: NSError) => void): void; +} + +interface ASAuthorizationProviderExtensionAuthorizationRequestHandler extends NSObjectProtocol { + + beginAuthorizationWithRequest(request: ASAuthorizationProviderExtensionAuthorizationRequest): void; + + cancelAuthorizationWithRequest?(request: ASAuthorizationProviderExtensionAuthorizationRequest): void; +} +declare var ASAuthorizationProviderExtensionAuthorizationRequestHandler: { + + prototype: ASAuthorizationProviderExtensionAuthorizationRequestHandler; +}; + +declare class ASAuthorizationRequest extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): ASAuthorizationRequest; // inherited from NSObject + + static new(): ASAuthorizationRequest; // inherited from NSObject + + readonly provider: ASAuthorizationProvider; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare var ASAuthorizationScopeEmail: string; + +declare var ASAuthorizationScopeFullName: string; + +declare class ASAuthorizationSingleSignOnCredential extends NSObject implements ASAuthorizationCredential { + + static alloc(): ASAuthorizationSingleSignOnCredential; // inherited from NSObject + + static new(): ASAuthorizationSingleSignOnCredential; // inherited from NSObject + + readonly accessToken: NSData; + + readonly authenticatedResponse: NSHTTPURLResponse; + + readonly authorizedScopes: NSArray; + + readonly identityToken: NSData; + + readonly state: string; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class ASAuthorizationSingleSignOnProvider extends NSObject implements ASAuthorizationProvider { + + static alloc(): ASAuthorizationSingleSignOnProvider; // inherited from NSObject + + static authorizationProviderWithIdentityProviderURL(url: NSURL): ASAuthorizationSingleSignOnProvider; + + static new(): ASAuthorizationSingleSignOnProvider; // inherited from NSObject + + readonly canPerformAuthorization: boolean; + + readonly url: NSURL; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + createRequest(): ASAuthorizationSingleSignOnRequest; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class ASAuthorizationSingleSignOnRequest extends ASAuthorizationOpenIDRequest { + + static alloc(): ASAuthorizationSingleSignOnRequest; // inherited from NSObject + + static new(): ASAuthorizationSingleSignOnRequest; // inherited from NSObject + + authorizationOptions: NSArray; +} + declare class ASCredentialIdentityStore extends NSObject { static alloc(): ASCredentialIdentityStore; // inherited from NSObject @@ -86,9 +607,9 @@ declare class ASCredentialServiceIdentifier extends NSObject implements NSCopyin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIdentifierType(identifier: string, type: ASCredentialServiceIdentifierType): this; } @@ -113,7 +634,7 @@ declare const enum ASExtensionErrorCode { declare var ASExtensionErrorDomain: string; -declare class ASPasswordCredential extends NSObject implements NSCopying, NSSecureCoding { +declare class ASPasswordCredential extends NSObject implements ASAuthorizationCredential { static alloc(): ASPasswordCredential; // inherited from NSObject @@ -125,19 +646,53 @@ declare class ASPasswordCredential extends NSObject implements NSCopying, NSSecu readonly user: string; + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { user: string; password: string; }); + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithUserPassword(user: string, password: string): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } declare class ASPasswordCredentialIdentity extends NSObject implements NSCopying, NSSecureCoding { @@ -164,19 +719,41 @@ declare class ASPasswordCredentialIdentity extends NSObject implements NSCopying copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithServiceIdentifierUserRecordIdentifier(serviceIdentifier: ASCredentialServiceIdentifier, user: string, recordIdentifier: string): this; } +declare const enum ASUserDetectionStatus { + + Unsupported = 0, + + Unknown = 1, + + LikelyReal = 2 +} + +interface ASWebAuthenticationPresentationContextProviding extends NSObjectProtocol { + + presentationAnchorForWebAuthenticationSession(session: ASWebAuthenticationSession): UIWindow; +} +declare var ASWebAuthenticationPresentationContextProviding: { + + prototype: ASWebAuthenticationPresentationContextProviding; +}; + declare class ASWebAuthenticationSession extends NSObject { static alloc(): ASWebAuthenticationSession; // inherited from NSObject static new(): ASWebAuthenticationSession; // inherited from NSObject + prefersEphemeralWebBrowserSession: boolean; + + presentationContextProvider: ASWebAuthenticationPresentationContextProviding; + constructor(o: { URL: NSURL; callbackURLScheme: string; completionHandler: (p1: NSURL, p2: NSError) => void; }); cancel(): void; @@ -188,7 +765,11 @@ declare class ASWebAuthenticationSession extends NSObject { declare const enum ASWebAuthenticationSessionErrorCode { - CanceledLogin = 1 + CanceledLogin = 1, + + PresentationContextNotProvided = 2, + + PresentationContextInvalid = 3 } declare var ASWebAuthenticationSessionErrorDomain: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!BackgroundTasks.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!BackgroundTasks.d.ts new file mode 100644 index 0000000000..02097adf6e --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!BackgroundTasks.d.ts @@ -0,0 +1,96 @@ + +declare class BGAppRefreshTask extends BGTask { + + static alloc(): BGAppRefreshTask; // inherited from NSObject + + static new(): BGAppRefreshTask; // inherited from NSObject +} + +declare class BGAppRefreshTaskRequest extends BGTaskRequest { + + static alloc(): BGAppRefreshTaskRequest; // inherited from NSObject + + static new(): BGAppRefreshTaskRequest; // inherited from NSObject + + constructor(o: { identifier: string; }); + + initWithIdentifier(identifier: string): this; +} + +declare class BGProcessingTask extends BGTask { + + static alloc(): BGProcessingTask; // inherited from NSObject + + static new(): BGProcessingTask; // inherited from NSObject +} + +declare class BGProcessingTaskRequest extends BGTaskRequest { + + static alloc(): BGProcessingTaskRequest; // inherited from NSObject + + static new(): BGProcessingTaskRequest; // inherited from NSObject + + requiresExternalPower: boolean; + + requiresNetworkConnectivity: boolean; + + constructor(o: { identifier: string; }); + + initWithIdentifier(identifier: string): this; +} + +declare class BGTask extends NSObject { + + static alloc(): BGTask; // inherited from NSObject + + static new(): BGTask; // inherited from NSObject + + expirationHandler: () => void; + + readonly identifier: string; + + setTaskCompletedWithSuccess(success: boolean): void; +} + +declare class BGTaskRequest extends NSObject implements NSCopying { + + static alloc(): BGTaskRequest; // inherited from NSObject + + static new(): BGTaskRequest; // inherited from NSObject + + earliestBeginDate: Date; + + readonly identifier: string; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class BGTaskScheduler extends NSObject { + + static alloc(): BGTaskScheduler; // inherited from NSObject + + static new(): BGTaskScheduler; // inherited from NSObject + + static readonly sharedScheduler: BGTaskScheduler; + + cancelAllTaskRequests(): void; + + cancelTaskRequestWithIdentifier(identifier: string): void; + + getPendingTaskRequestsWithCompletionHandler(completionHandler: (p1: NSArray) => void): void; + + registerForTaskWithIdentifierUsingQueueLaunchHandler(identifier: string, queue: NSObject, launchHandler: (p1: BGTask) => void): boolean; + + submitTaskRequestError(taskRequest: BGTaskRequest): boolean; +} + +declare const enum BGTaskSchedulerErrorCode { + + Unavailable = 1, + + TooManyPendingTaskRequests = 2, + + NotPermitted = 3 +} + +declare var BGTaskSchedulerErrorDomain: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CFNetwork.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CFNetwork.d.ts index 0ce4ad6017..0abc242cc6 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CFNetwork.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CFNetwork.d.ts @@ -600,10 +600,14 @@ declare const kCFStreamErrorSOCKSUnknownClientVersion: number; declare var kCFStreamNetworkServiceType: string; +declare var kCFStreamNetworkServiceTypeAVStreaming: string; + declare var kCFStreamNetworkServiceTypeBackground: string; declare var kCFStreamNetworkServiceTypeCallSignaling: string; +declare var kCFStreamNetworkServiceTypeResponsiveAV: string; + declare var kCFStreamNetworkServiceTypeResponsiveData: string; declare var kCFStreamNetworkServiceTypeVideo: string; @@ -612,8 +616,14 @@ declare var kCFStreamNetworkServiceTypeVoIP: string; declare var kCFStreamNetworkServiceTypeVoice: string; +declare var kCFStreamPropertyAllowConstrainedNetworkAccess: string; + +declare var kCFStreamPropertyAllowExpensiveNetworkAccess: string; + declare var kCFStreamPropertyConnectionIsCellular: string; +declare var kCFStreamPropertyConnectionIsExpensive: string; + declare var kCFStreamPropertyFTPAttemptPersistentConnection: string; declare var kCFStreamPropertyFTPFetchResourceInfo: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CallKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CallKit.d.ts index 6de4055106..f620f517d2 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CallKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CallKit.d.ts @@ -17,13 +17,13 @@ declare class CXAction extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; fail(): void; fulfill(): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class CXAnswerCallAction extends CXCallAction { @@ -336,9 +336,9 @@ declare class CXHandle extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTypeValue(type: CXHandleType, value: string): this; @@ -553,11 +553,11 @@ declare class CXTransaction extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAction(action: CXAction): this; initWithActions(actions: NSArray | CXAction[]): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CarPlay.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CarPlay.d.ts index d7433a8a5c..d0d0cc620d 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CarPlay.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CarPlay.d.ts @@ -34,9 +34,9 @@ declare class CPAlertAction extends NSObject implements NSSecureCoding { constructor(o: { title: string; style: CPAlertActionStyle; handler: (p1: CPAlertAction) => void; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTitleStyleHandler(title: string, style: CPAlertActionStyle, handler: (p1: CPAlertAction) => void): this; } @@ -100,15 +100,17 @@ declare class CPBarButton extends NSObject implements NSSecureCoding { constructor(o: { type: CPBarButtonType; handler: (p1: CPBarButton) => void; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTypeHandler(type: CPBarButtonType, handler: (p1: CPBarButton) => void): this; } interface CPBarButtonProviding extends NSObjectProtocol { + backButton: CPBarButton; + leadingNavigationBarButtons: NSArray; trailingNavigationBarButtons: NSArray; @@ -125,6 +127,13 @@ declare const enum CPBarButtonType { Image = 1 } +declare const enum CPContentStyle { + + Light = 1, + + Dark = 2 +} + declare class CPGridButton extends NSObject implements NSSecureCoding { static alloc(): CPGridButton; // inherited from NSObject @@ -143,9 +152,9 @@ declare class CPGridButton extends NSObject implements NSSecureCoding { constructor(o: { titleVariants: NSArray | string[]; image: UIImage; handler: (p1: CPGridButton) => void; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTitleVariantsImageHandler(titleVariants: NSArray | string[], image: UIImage, handler: (p1: CPGridButton) => void): this; } @@ -160,6 +169,8 @@ declare class CPGridTemplate extends CPTemplate implements CPBarButtonProviding readonly title: string; + backButton: CPBarButton; // inherited from CPBarButtonProviding + readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol @@ -219,9 +230,9 @@ declare class CPImageSet extends NSObject implements NSSecureCoding { constructor(o: { lightContentImage: UIImage; darkContentImage: UIImage; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithLightContentImageDarkContentImage(lightImage: UIImage, darkImage: UIImage): this; } @@ -234,6 +245,8 @@ declare class CPInterfaceController extends NSObject { delegate: CPInterfaceControllerDelegate; + prefersDarkUserInterfaceStyle: boolean; + readonly presentedTemplate: CPTemplate; readonly rootTemplate: CPTemplate; @@ -305,9 +318,9 @@ declare class CPListItem extends NSObject implements NSSecureCoding { constructor(o: { text: string; detailText: string; image: UIImage; showsDisclosureIndicator: boolean; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTextDetailText(text: string, detailText: string): this; @@ -336,9 +349,9 @@ declare class CPListSection extends NSObject implements NSSecureCoding { constructor(o: { items: NSArray | CPListItem[]; header: string; sectionIndexTitle: string; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithItems(items: NSArray | CPListItem[]): this; @@ -357,6 +370,8 @@ declare class CPListTemplate extends CPTemplate implements CPBarButtonProviding readonly title: string; + backButton: CPBarButton; // inherited from CPBarButtonProviding + readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol @@ -423,6 +438,10 @@ declare class CPManeuver extends NSObject implements NSCopying, NSSecureCoding { instructionVariants: NSArray; + junctionImage: UIImage; + + symbolImage: UIImage; + symbolSet: CPImageSet; userInfo: any; @@ -433,9 +452,9 @@ declare class CPManeuver extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum CPManeuverDisplayStyle { @@ -471,9 +490,9 @@ declare class CPMapButton extends NSObject implements NSSecureCoding { constructor(o: { handler: (p1: CPMapButton) => void; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithHandler(handler: (p1: CPMapButton) => void): this; } @@ -500,6 +519,8 @@ declare class CPMapTemplate extends CPTemplate implements CPBarButtonProviding { tripEstimateStyle: CPTripEstimateStyle; + backButton: CPBarButton; // inherited from CPBarButtonProviding + readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol @@ -616,6 +637,8 @@ declare class CPNavigationAlert extends NSObject implements NSSecureCoding { readonly duration: number; + readonly image: UIImage; + readonly imageSet: CPImageSet; readonly primaryAction: CPAlertAction; @@ -630,11 +653,15 @@ declare class CPNavigationAlert extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding + constructor(o: { titleVariants: NSArray | string[]; subtitleVariants: NSArray | string[]; image: UIImage; primaryAction: CPAlertAction; secondaryAction: CPAlertAction; duration: number; }); + constructor(o: { titleVariants: NSArray | string[]; subtitleVariants: NSArray | string[]; imageSet: CPImageSet; primaryAction: CPAlertAction; secondaryAction: CPAlertAction; duration: number; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; - initWithCoder(aDecoder: NSCoder): this; + initWithTitleVariantsSubtitleVariantsImagePrimaryActionSecondaryActionDuration(titleVariants: NSArray | string[], subtitleVariants: NSArray | string[], image: UIImage, primaryAction: CPAlertAction, secondaryAction: CPAlertAction, duration: number): this; initWithTitleVariantsSubtitleVariantsImageSetPrimaryActionSecondaryActionDuration(titleVariants: NSArray | string[], subtitleVariants: NSArray | string[], imageSet: CPImageSet, primaryAction: CPAlertAction, secondaryAction: CPAlertAction, duration: number): this; @@ -706,9 +733,9 @@ declare class CPRouteChoice extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithSummaryVariantsAdditionalInformationVariantsSelectionSummaryVariants(summaryVariants: NSArray | string[], additionalInformationVariants: NSArray | string[], selectionSummaryVariants: NSArray | string[]): this; } @@ -741,6 +768,8 @@ declare class CPSessionConfiguration extends NSObject { static new(): CPSessionConfiguration; // inherited from NSObject + readonly contentStyle: CPContentStyle; + delegate: CPSessionConfigurationDelegate; readonly limitedUserInterfaces: CPLimitableUserInterface; @@ -752,7 +781,9 @@ declare class CPSessionConfiguration extends NSObject { interface CPSessionConfigurationDelegate extends NSObjectProtocol { - sessionConfigurationLimitedUserInterfacesChanged(sessionConfiguration: CPSessionConfiguration, limitedUserInterfaces: CPLimitableUserInterface): void; + sessionConfigurationContentStyleChanged?(sessionConfiguration: CPSessionConfiguration, contentStyle: CPContentStyle): void; + + sessionConfigurationLimitedUserInterfacesChanged?(sessionConfiguration: CPSessionConfiguration, limitedUserInterfaces: CPLimitableUserInterface): void; } declare var CPSessionConfigurationDelegate: { @@ -771,11 +802,41 @@ declare class CPTemplate extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } +declare class CPTemplateApplicationScene extends UIScene { + + static alloc(): CPTemplateApplicationScene; // inherited from NSObject + + static new(): CPTemplateApplicationScene; // inherited from NSObject + + readonly carWindow: CPWindow; + + delegate: CPTemplateApplicationSceneDelegate; + + readonly interfaceController: CPInterfaceController; +} + +interface CPTemplateApplicationSceneDelegate extends UISceneDelegate { + + templateApplicationSceneDidConnectInterfaceControllerToWindow?(templateApplicationScene: CPTemplateApplicationScene, interfaceController: CPInterfaceController, window: CPWindow): void; + + templateApplicationSceneDidDisconnectInterfaceControllerFromWindow?(templateApplicationScene: CPTemplateApplicationScene, interfaceController: CPInterfaceController, window: CPWindow): void; + + templateApplicationSceneDidSelectManeuver?(templateApplicationScene: CPTemplateApplicationScene, maneuver: CPManeuver): void; + + templateApplicationSceneDidSelectNavigationAlert?(templateApplicationScene: CPTemplateApplicationScene, navigationAlert: CPNavigationAlert): void; +} +declare var CPTemplateApplicationSceneDelegate: { + + prototype: CPTemplateApplicationSceneDelegate; +}; + +declare var CPTemplateApplicationSceneSessionRoleApplication: string; + declare const enum CPTimeRemainingColor { Default = 0, @@ -803,9 +864,9 @@ declare class CPTravelEstimates extends NSObject implements NSSecureCoding { constructor(o: { distanceRemaining: NSMeasurement; timeRemaining: number; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDistanceRemainingTimeRemaining(distance: NSMeasurement, time: number): this; } @@ -830,9 +891,9 @@ declare class CPTrip extends NSObject implements NSSecureCoding { constructor(o: { origin: MKMapItem; destination: MKMapItem; routeChoices: NSArray | CPRouteChoice[]; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithOriginDestinationRouteChoices(origin: MKMapItem, destination: MKMapItem, routeChoices: NSArray | CPRouteChoice[]): this; } @@ -875,9 +936,9 @@ declare class CPTripPreviewTextConfiguration extends NSObject implements NSSecur constructor(o: { startButtonTitle: string; additionalRoutesButtonTitle: string; overviewButtonTitle: string; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithStartButtonTitleAdditionalRoutesButtonTitleOverviewButtonTitle(startButtonTitle: string, additionalRoutesButtonTitle: string, overviewButtonTitle: string): this; } @@ -902,9 +963,9 @@ declare class CPVoiceControlState extends NSObject implements NSSecureCoding { constructor(o: { identifier: string; titleVariants: NSArray | string[]; image: UIImage; repeats: boolean; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIdentifierTitleVariantsImageRepeats(identifier: string, titleVariants: NSArray | string[], image: UIImage, repeats: boolean): this; } @@ -945,4 +1006,6 @@ declare class CPWindow extends UIWindow { static new(): CPWindow; // inherited from NSObject readonly mapButtonSafeAreaLayoutGuide: UILayoutGuide; + + templateApplicationScene: CPTemplateApplicationScene; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!ClassKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!ClassKit.d.ts index 06a116d59a..64ab6368d5 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!ClassKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!ClassKit.d.ts @@ -56,7 +56,9 @@ declare const enum CLSBinaryValueType { PassFail = 1, - YesNo = 2 + YesNo = 2, + + CorrectIncorrect = 3 } declare class CLSContext extends CLSObject { @@ -100,6 +102,15 @@ declare class CLSContext extends CLSObject { resignActive(): void; } +interface CLSContextProvider { + + updateDescendantsOfContextCompletion(context: CLSContext, completion: (p1: NSError) => void): void; +} +declare var CLSContextProvider: { + + prototype: CLSContextProvider; +}; + declare var CLSContextTopicArtsAndMusic: string; declare var CLSContextTopicComputerScienceAndEngineering: string; @@ -167,6 +178,8 @@ declare class CLSDataStore extends NSObject { static readonly shared: CLSDataStore; + completeAllAssignedActivitiesMatching(contextPath: NSArray | string[]): void; + contextsMatchingIdentifierPathCompletion(identifierPath: NSArray | string[], completion: (p1: NSArray, p2: NSError) => void): void; contextsMatchingPredicateCompletion(predicate: NSPredicate, completion: (p1: NSArray, p2: NSError) => void): void; @@ -228,9 +241,9 @@ declare class CLSObject extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var CLSPredicateKeyPathDateCreated: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CloudKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CloudKit.d.ts index 2ac96f2dab..b32d43ce23 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CloudKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CloudKit.d.ts @@ -233,9 +233,9 @@ declare class CKDatabaseSubscription extends CKSubscription implements NSCopying copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithSubscriptionID(subscriptionID: string): this; } @@ -479,9 +479,9 @@ declare class CKFetchRecordZoneChangesConfiguration extends NSObject implements copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class CKFetchRecordZoneChangesOperation extends CKDatabaseOperation { @@ -535,9 +535,9 @@ declare class CKFetchRecordZoneChangesOptions extends NSObject implements NSCopy copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class CKFetchRecordZonesOperation extends CKDatabaseOperation { @@ -670,9 +670,9 @@ declare class CKLocationSortDescriptor extends NSSortDescriptor implements NSSec constructor(o: { key: string; relativeLocation: CLLocation; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithKeyRelativeLocation(key: string, relativeLocation: CLLocation): this; } @@ -827,9 +827,9 @@ declare class CKNotificationID extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class CKNotificationInfo extends NSObject implements NSCopying, NSSecureCoding { @@ -880,9 +880,9 @@ declare class CKNotificationInfo extends NSObject implements NSCopying, NSSecure copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum CKNotificationType { @@ -962,9 +962,9 @@ declare class CKOperationGroup extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum CKOperationGroupTransferSize { @@ -1010,9 +1010,9 @@ declare class CKQuery extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithRecordTypePredicate(recordType: string, predicate: NSPredicate): this; } @@ -1029,9 +1029,9 @@ declare class CKQueryCursor extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class CKQueryNotification extends CKNotification { @@ -1107,9 +1107,9 @@ declare class CKQuerySubscription extends CKSubscription implements NSCopying, N copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum CKQuerySubscriptionOptions { @@ -1183,9 +1183,9 @@ declare class CKRecord extends NSObject implements CKRecordKeyValueSetting, NSCo encodeSystemFieldsWithCoder(coder: NSCoder): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithRecordType(recordType: string): this; @@ -1250,9 +1250,9 @@ declare class CKRecordID extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithRecordName(recordName: string): this; @@ -1324,9 +1324,9 @@ declare class CKRecordZone extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithZoneID(zoneID: CKRecordZoneID): this; @@ -1362,9 +1362,9 @@ declare class CKRecordZoneID extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithZoneNameOwnerName(zoneName: string, ownerName: string): this; } @@ -1402,9 +1402,9 @@ declare class CKRecordZoneSubscription extends CKSubscription implements NSCopyi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithZoneID(zoneID: CKRecordZoneID): this; @@ -1447,9 +1447,9 @@ declare class CKReference extends NSObject implements CKRecordValue, NSCopying, copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithRecordAction(record: CKRecord, action: CKReferenceAction): this; @@ -1493,12 +1493,12 @@ declare class CKServerChangeToken extends NSObject implements NSCopying, NSSecur copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } -declare class CKShare extends CKRecord { +declare class CKShare extends CKRecord implements NSSecureCoding { static alloc(): CKShare; // inherited from NSObject @@ -1514,12 +1514,20 @@ declare class CKShare extends CKRecord { publicPermission: CKShareParticipantPermission; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + constructor(o: { rootRecord: CKRecord; }); constructor(o: { rootRecord: CKRecord; shareID: CKRecordID; }); addParticipant(participant: CKShareParticipant): void; + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + initWithRootRecord(rootRecord: CKRecord): this; initWithRootRecordShareID(rootRecord: CKRecord, shareID: CKRecordID): this; @@ -1557,9 +1565,9 @@ declare class CKShareMetadata extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class CKShareParticipant extends NSObject implements NSCopying, NSSecureCoding { @@ -1584,9 +1592,9 @@ declare class CKShareParticipant extends NSObject implements NSCopying, NSSecure copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum CKShareParticipantAcceptanceStatus { @@ -1673,9 +1681,9 @@ declare class CKSubscription extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithRecordTypePredicateOptions(recordType: string, predicate: NSPredicate, subscriptionOptions: CKSubscriptionOptions): this; @@ -1728,9 +1736,9 @@ declare class CKUserIdentity extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class CKUserIdentityLookupInfo extends NSObject implements NSCopying, NSSecureCoding { @@ -1763,9 +1771,9 @@ declare class CKUserIdentityLookupInfo extends NSObject implements NSCopying, NS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithEmailAddress(emailAddress: string): this; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CommonCrypto.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CommonCrypto.d.ts index 1e6b07cf1a..6bccc43703 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CommonCrypto.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CommonCrypto.d.ts @@ -279,20 +279,12 @@ declare const kCCModeCTR: number; declare const kCCModeECB: number; -declare const kCCModeF8: number; - -declare const kCCModeLRW: number; - declare const kCCModeOFB: number; declare const kCCModeOptionCTR_BE: number; -declare const kCCModeOptionCTR_LE: number; - declare const kCCModeRC4: number; -declare const kCCModeXTS: number; - declare const kCCOptionECBMode: number; declare const kCCOptionPKCS7Padding: number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Contacts.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Contacts.d.ts index f82778689f..84f26b17cf 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Contacts.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Contacts.d.ts @@ -10,6 +10,190 @@ declare const enum CNAuthorizationStatus { Authorized = 3 } +declare class CNChangeHistoryAddContactEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryAddContactEvent; // inherited from NSObject + + static new(): CNChangeHistoryAddContactEvent; // inherited from NSObject + + readonly contact: CNContact; + + readonly containerIdentifier: string; +} + +declare class CNChangeHistoryAddGroupEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryAddGroupEvent; // inherited from NSObject + + static new(): CNChangeHistoryAddGroupEvent; // inherited from NSObject + + readonly containerIdentifier: string; + + readonly group: CNGroup; +} + +declare class CNChangeHistoryAddMemberToGroupEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryAddMemberToGroupEvent; // inherited from NSObject + + static new(): CNChangeHistoryAddMemberToGroupEvent; // inherited from NSObject + + readonly group: CNGroup; + + readonly member: CNContact; +} + +declare class CNChangeHistoryAddSubgroupToGroupEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryAddSubgroupToGroupEvent; // inherited from NSObject + + static new(): CNChangeHistoryAddSubgroupToGroupEvent; // inherited from NSObject + + readonly group: CNGroup; + + readonly subgroup: CNGroup; +} + +declare class CNChangeHistoryDeleteContactEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryDeleteContactEvent; // inherited from NSObject + + static new(): CNChangeHistoryDeleteContactEvent; // inherited from NSObject + + readonly contactIdentifier: string; +} + +declare class CNChangeHistoryDeleteGroupEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryDeleteGroupEvent; // inherited from NSObject + + static new(): CNChangeHistoryDeleteGroupEvent; // inherited from NSObject + + readonly groupIdentifier: string; +} + +declare class CNChangeHistoryDropEverythingEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryDropEverythingEvent; // inherited from NSObject + + static new(): CNChangeHistoryDropEverythingEvent; // inherited from NSObject +} + +declare class CNChangeHistoryEvent extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): CNChangeHistoryEvent; // inherited from NSObject + + static new(): CNChangeHistoryEvent; // inherited from NSObject + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + acceptEventVisitor(visitor: CNChangeHistoryEventVisitor): void; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +interface CNChangeHistoryEventVisitor extends NSObjectProtocol { + + visitAddContactEvent(event: CNChangeHistoryAddContactEvent): void; + + visitAddGroupEvent?(event: CNChangeHistoryAddGroupEvent): void; + + visitAddMemberToGroupEvent?(event: CNChangeHistoryAddMemberToGroupEvent): void; + + visitAddSubgroupToGroupEvent?(event: CNChangeHistoryAddSubgroupToGroupEvent): void; + + visitDeleteContactEvent(event: CNChangeHistoryDeleteContactEvent): void; + + visitDeleteGroupEvent?(event: CNChangeHistoryDeleteGroupEvent): void; + + visitDropEverythingEvent(event: CNChangeHistoryDropEverythingEvent): void; + + visitRemoveMemberFromGroupEvent?(event: CNChangeHistoryRemoveMemberFromGroupEvent): void; + + visitRemoveSubgroupFromGroupEvent?(event: CNChangeHistoryRemoveSubgroupFromGroupEvent): void; + + visitUpdateContactEvent(event: CNChangeHistoryUpdateContactEvent): void; + + visitUpdateGroupEvent?(event: CNChangeHistoryUpdateGroupEvent): void; +} +declare var CNChangeHistoryEventVisitor: { + + prototype: CNChangeHistoryEventVisitor; +}; + +declare class CNChangeHistoryFetchRequest extends CNFetchRequest implements NSSecureCoding { + + static alloc(): CNChangeHistoryFetchRequest; // inherited from NSObject + + static new(): CNChangeHistoryFetchRequest; // inherited from NSObject + + additionalContactKeyDescriptors: NSArray; + + excludedTransactionAuthors: NSArray; + + includeGroupChanges: boolean; + + mutableObjects: boolean; + + shouldUnifyResults: boolean; + + startingToken: NSData; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class CNChangeHistoryRemoveMemberFromGroupEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryRemoveMemberFromGroupEvent; // inherited from NSObject + + static new(): CNChangeHistoryRemoveMemberFromGroupEvent; // inherited from NSObject + + readonly group: CNGroup; + + readonly member: CNContact; +} + +declare class CNChangeHistoryRemoveSubgroupFromGroupEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryRemoveSubgroupFromGroupEvent; // inherited from NSObject + + static new(): CNChangeHistoryRemoveSubgroupFromGroupEvent; // inherited from NSObject + + readonly group: CNGroup; + + readonly subgroup: CNGroup; +} + +declare class CNChangeHistoryUpdateContactEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryUpdateContactEvent; // inherited from NSObject + + static new(): CNChangeHistoryUpdateContactEvent; // inherited from NSObject + + readonly contact: CNContact; +} + +declare class CNChangeHistoryUpdateGroupEvent extends CNChangeHistoryEvent { + + static alloc(): CNChangeHistoryUpdateGroupEvent; // inherited from NSObject + + static new(): CNChangeHistoryUpdateGroupEvent; // inherited from NSObject + + readonly group: CNGroup; +} + declare class CNContact extends NSObject implements NSCopying, NSItemProviderReading, NSItemProviderWriting, NSMutableCopying, NSSecureCoding { static alloc(): CNContact; // inherited from NSObject @@ -128,9 +312,9 @@ declare class CNContact extends NSObject implements NSCopying, NSItemProviderRea copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -180,7 +364,7 @@ declare var CNContactEmailAddressesKey: string; declare var CNContactFamilyNameKey: string; -declare class CNContactFetchRequest extends NSObject implements NSSecureCoding { +declare class CNContactFetchRequest extends CNFetchRequest implements NSSecureCoding { static alloc(): CNContactFetchRequest; // inherited from NSObject @@ -202,9 +386,9 @@ declare class CNContactFetchRequest extends NSObject implements NSSecureCoding { constructor(o: { keysToFetch: NSArray | CNKeyDescriptor[]; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithKeysToFetch(keysToFetch: NSArray | CNKeyDescriptor[]): this; } @@ -233,9 +417,9 @@ declare class CNContactFormatter extends NSFormatter implements NSSecureCoding { attributedStringFromContactDefaultAttributes(contact: CNContact, attributes: NSDictionary): NSAttributedString; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; stringFromContact(contact: CNContact): string; } @@ -309,9 +493,9 @@ declare class CNContactProperty extends NSObject implements NSCopying, NSSecureC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var CNContactPropertyAttribute: string; @@ -336,9 +520,9 @@ declare class CNContactRelation extends NSObject implements NSCopying, NSSecureC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithName(name: string): this; } @@ -366,12 +550,18 @@ declare class CNContactStore extends NSObject { static new(): CNContactStore; // inherited from NSObject + readonly currentHistoryToken: NSData; + containersMatchingPredicateError(predicate: NSPredicate): NSArray; defaultContainerIdentifier(): string; enumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest: CNContactFetchRequest, error: interop.Pointer | interop.Reference, block: (p1: CNContact, p2: interop.Pointer | interop.Reference) => void): boolean; + enumeratorForChangeHistoryFetchRequestError(request: CNChangeHistoryFetchRequest): CNFetchResult>; + + enumeratorForContactFetchRequestError(request: CNContactFetchRequest): CNFetchResult>; + executeSaveRequestError(saveRequest: CNSaveRequest): boolean; groupsMatchingPredicateError(predicate: NSPredicate): NSArray; @@ -448,9 +638,9 @@ declare class CNContainer extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var CNContainerIdentifierKey: string; @@ -485,6 +675,10 @@ declare const enum CNErrorCode { NoAccessableWritableContainers = 101, + UnauthorizedKeys = 102, + + FeatureDisabledByUser = 103, + RecordDoesNotExist = 200, InsertedRecordAlreadyExists = 201, @@ -497,6 +691,10 @@ declare const enum CNErrorCode { RecordIdentifierInvalid = 205, + RecordNotWritable = 206, + + ParentContainerNotWritable = 207, + ValidationMultipleErrors = 300, ValidationTypeMismatch = 301, @@ -511,6 +709,12 @@ declare const enum CNErrorCode { ClientIdentifierDoesNotExist = 601, + ClientIdentifierCollision = 602, + + ChangeHistoryExpired = 603, + + ChangeHistoryInvalidAnchor = 604, + VCardMalformed = 700, VCardSummarizationError = 701 @@ -526,6 +730,24 @@ declare var CNErrorUserInfoKeyPathsKey: string; declare var CNErrorUserInfoValidationErrorsKey: string; +declare class CNFetchRequest extends NSObject { + + static alloc(): CNFetchRequest; // inherited from NSObject + + static new(): CNFetchRequest; // inherited from NSObject +} + +declare class CNFetchResult extends NSObject { + + static alloc(): CNFetchResult; // inherited from NSObject + + static new(): CNFetchResult; // inherited from NSObject + + readonly currentHistoryToken: NSData; + + readonly value: ValueType; +} + declare class CNGroup extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): CNGroup; // inherited from NSObject @@ -546,9 +768,9 @@ declare class CNGroup extends NSObject implements NSCopying, NSMutableCopying, N copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } @@ -579,9 +801,9 @@ declare class CNInstantMessageAddress extends NSObject implements NSCopying, NSS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithUsernameService(username: string, service: string): this; } @@ -619,30 +841,432 @@ declare var CNKeyDescriptor: { declare var CNLabelContactRelationAssistant: string; +declare var CNLabelContactRelationAunt: string; + +declare var CNLabelContactRelationAuntFathersBrothersWife: string; + +declare var CNLabelContactRelationAuntFathersElderBrothersWife: string; + +declare var CNLabelContactRelationAuntFathersElderSister: string; + +declare var CNLabelContactRelationAuntFathersSister: string; + +declare var CNLabelContactRelationAuntFathersYoungerBrothersWife: string; + +declare var CNLabelContactRelationAuntFathersYoungerSister: string; + +declare var CNLabelContactRelationAuntMothersBrothersWife: string; + +declare var CNLabelContactRelationAuntMothersElderSister: string; + +declare var CNLabelContactRelationAuntMothersSister: string; + +declare var CNLabelContactRelationAuntMothersYoungerSister: string; + +declare var CNLabelContactRelationAuntParentsElderSister: string; + +declare var CNLabelContactRelationAuntParentsSister: string; + +declare var CNLabelContactRelationAuntParentsYoungerSister: string; + +declare var CNLabelContactRelationBoyfriend: string; + declare var CNLabelContactRelationBrother: string; +declare var CNLabelContactRelationBrotherInLaw: string; + +declare var CNLabelContactRelationBrotherInLawElderSistersHusband: string; + +declare var CNLabelContactRelationBrotherInLawHusbandsBrother: string; + +declare var CNLabelContactRelationBrotherInLawHusbandsSistersHusband: string; + +declare var CNLabelContactRelationBrotherInLawSistersHusband: string; + +declare var CNLabelContactRelationBrotherInLawSpousesBrother: string; + +declare var CNLabelContactRelationBrotherInLawWifesBrother: string; + +declare var CNLabelContactRelationBrotherInLawWifesSistersHusband: string; + +declare var CNLabelContactRelationBrotherInLawYoungerSistersHusband: string; + declare var CNLabelContactRelationChild: string; +declare var CNLabelContactRelationChildInLaw: string; + +declare var CNLabelContactRelationCoBrotherInLaw: string; + +declare var CNLabelContactRelationCoFatherInLaw: string; + +declare var CNLabelContactRelationCoMotherInLaw: string; + +declare var CNLabelContactRelationCoParentInLaw: string; + +declare var CNLabelContactRelationCoSiblingInLaw: string; + +declare var CNLabelContactRelationCoSisterInLaw: string; + +declare var CNLabelContactRelationColleague: string; + +declare var CNLabelContactRelationCousin: string; + +declare var CNLabelContactRelationCousinFathersBrothersDaughter: string; + +declare var CNLabelContactRelationCousinFathersBrothersSon: string; + +declare var CNLabelContactRelationCousinFathersSistersDaughter: string; + +declare var CNLabelContactRelationCousinFathersSistersSon: string; + +declare var CNLabelContactRelationCousinGrandparentsSiblingsChild: string; + +declare var CNLabelContactRelationCousinGrandparentsSiblingsDaughter: string; + +declare var CNLabelContactRelationCousinGrandparentsSiblingsSon: string; + +declare var CNLabelContactRelationCousinMothersBrothersDaughter: string; + +declare var CNLabelContactRelationCousinMothersBrothersSon: string; + +declare var CNLabelContactRelationCousinMothersSistersDaughter: string; + +declare var CNLabelContactRelationCousinMothersSistersSon: string; + +declare var CNLabelContactRelationCousinOrSiblingsChild: string; + +declare var CNLabelContactRelationCousinParentsSiblingsChild: string; + +declare var CNLabelContactRelationCousinParentsSiblingsDaughter: string; + +declare var CNLabelContactRelationCousinParentsSiblingsSon: string; + declare var CNLabelContactRelationDaughter: string; +declare var CNLabelContactRelationDaughterInLaw: string; + +declare var CNLabelContactRelationDaughterInLawOrSisterInLaw: string; + +declare var CNLabelContactRelationDaughterInLawOrStepdaughter: string; + +declare var CNLabelContactRelationElderBrother: string; + +declare var CNLabelContactRelationElderBrotherInLaw: string; + +declare var CNLabelContactRelationElderCousin: string; + +declare var CNLabelContactRelationElderCousinFathersBrothersDaughter: string; + +declare var CNLabelContactRelationElderCousinFathersBrothersSon: string; + +declare var CNLabelContactRelationElderCousinFathersSistersDaughter: string; + +declare var CNLabelContactRelationElderCousinFathersSistersSon: string; + +declare var CNLabelContactRelationElderCousinMothersBrothersDaughter: string; + +declare var CNLabelContactRelationElderCousinMothersBrothersSon: string; + +declare var CNLabelContactRelationElderCousinMothersSiblingsDaughterOrFathersSistersDaughter: string; + +declare var CNLabelContactRelationElderCousinMothersSiblingsSonOrFathersSistersSon: string; + +declare var CNLabelContactRelationElderCousinMothersSistersDaughter: string; + +declare var CNLabelContactRelationElderCousinMothersSistersSon: string; + +declare var CNLabelContactRelationElderCousinParentsSiblingsDaughter: string; + +declare var CNLabelContactRelationElderCousinParentsSiblingsSon: string; + +declare var CNLabelContactRelationElderSibling: string; + +declare var CNLabelContactRelationElderSiblingInLaw: string; + +declare var CNLabelContactRelationElderSister: string; + +declare var CNLabelContactRelationElderSisterInLaw: string; + +declare var CNLabelContactRelationEldestBrother: string; + +declare var CNLabelContactRelationEldestSister: string; + declare var CNLabelContactRelationFather: string; +declare var CNLabelContactRelationFatherInLaw: string; + +declare var CNLabelContactRelationFatherInLawHusbandsFather: string; + +declare var CNLabelContactRelationFatherInLawOrStepfather: string; + +declare var CNLabelContactRelationFatherInLawWifesFather: string; + +declare var CNLabelContactRelationFemaleCousin: string; + +declare var CNLabelContactRelationFemaleFriend: string; + +declare var CNLabelContactRelationFemalePartner: string; + declare var CNLabelContactRelationFriend: string; +declare var CNLabelContactRelationGirlfriend: string; + +declare var CNLabelContactRelationGirlfriendOrBoyfriend: string; + +declare var CNLabelContactRelationGrandaunt: string; + +declare var CNLabelContactRelationGrandchild: string; + +declare var CNLabelContactRelationGrandchildOrSiblingsChild: string; + +declare var CNLabelContactRelationGranddaughter: string; + +declare var CNLabelContactRelationGranddaughterDaughtersDaughter: string; + +declare var CNLabelContactRelationGranddaughterSonsDaughter: string; + +declare var CNLabelContactRelationGrandfather: string; + +declare var CNLabelContactRelationGrandfatherFathersFather: string; + +declare var CNLabelContactRelationGrandfatherMothersFather: string; + +declare var CNLabelContactRelationGrandmother: string; + +declare var CNLabelContactRelationGrandmotherFathersMother: string; + +declare var CNLabelContactRelationGrandmotherMothersMother: string; + +declare var CNLabelContactRelationGrandnephew: string; + +declare var CNLabelContactRelationGrandnephewBrothersGrandson: string; + +declare var CNLabelContactRelationGrandnephewSistersGrandson: string; + +declare var CNLabelContactRelationGrandniece: string; + +declare var CNLabelContactRelationGrandnieceBrothersGranddaughter: string; + +declare var CNLabelContactRelationGrandnieceSistersGranddaughter: string; + +declare var CNLabelContactRelationGrandparent: string; + +declare var CNLabelContactRelationGrandson: string; + +declare var CNLabelContactRelationGrandsonDaughtersSon: string; + +declare var CNLabelContactRelationGrandsonSonsSon: string; + +declare var CNLabelContactRelationGranduncle: string; + +declare var CNLabelContactRelationGreatGrandchild: string; + +declare var CNLabelContactRelationGreatGrandchildOrSiblingsGrandchild: string; + +declare var CNLabelContactRelationGreatGranddaughter: string; + +declare var CNLabelContactRelationGreatGrandfather: string; + +declare var CNLabelContactRelationGreatGrandmother: string; + +declare var CNLabelContactRelationGreatGrandparent: string; + +declare var CNLabelContactRelationGreatGrandson: string; + +declare var CNLabelContactRelationHusband: string; + +declare var CNLabelContactRelationMaleCousin: string; + +declare var CNLabelContactRelationMaleFriend: string; + +declare var CNLabelContactRelationMalePartner: string; + declare var CNLabelContactRelationManager: string; declare var CNLabelContactRelationMother: string; +declare var CNLabelContactRelationMotherInLaw: string; + +declare var CNLabelContactRelationMotherInLawHusbandsMother: string; + +declare var CNLabelContactRelationMotherInLawOrStepmother: string; + +declare var CNLabelContactRelationMotherInLawWifesMother: string; + +declare var CNLabelContactRelationNephew: string; + +declare var CNLabelContactRelationNephewBrothersSon: string; + +declare var CNLabelContactRelationNephewBrothersSonOrHusbandsSiblingsSon: string; + +declare var CNLabelContactRelationNephewOrCousin: string; + +declare var CNLabelContactRelationNephewSistersSon: string; + +declare var CNLabelContactRelationNephewSistersSonOrWifesSiblingsSon: string; + +declare var CNLabelContactRelationNiece: string; + +declare var CNLabelContactRelationNieceBrothersDaughter: string; + +declare var CNLabelContactRelationNieceBrothersDaughterOrHusbandsSiblingsDaughter: string; + +declare var CNLabelContactRelationNieceOrCousin: string; + +declare var CNLabelContactRelationNieceSistersDaughter: string; + +declare var CNLabelContactRelationNieceSistersDaughterOrWifesSiblingsDaughter: string; + declare var CNLabelContactRelationParent: string; +declare var CNLabelContactRelationParentInLaw: string; + +declare var CNLabelContactRelationParentsElderSibling: string; + +declare var CNLabelContactRelationParentsSibling: string; + +declare var CNLabelContactRelationParentsSiblingFathersElderSibling: string; + +declare var CNLabelContactRelationParentsSiblingFathersSibling: string; + +declare var CNLabelContactRelationParentsSiblingFathersYoungerSibling: string; + +declare var CNLabelContactRelationParentsSiblingMothersElderSibling: string; + +declare var CNLabelContactRelationParentsSiblingMothersSibling: string; + +declare var CNLabelContactRelationParentsSiblingMothersYoungerSibling: string; + +declare var CNLabelContactRelationParentsYoungerSibling: string; + declare var CNLabelContactRelationPartner: string; +declare var CNLabelContactRelationSibling: string; + +declare var CNLabelContactRelationSiblingInLaw: string; + +declare var CNLabelContactRelationSiblingsChild: string; + declare var CNLabelContactRelationSister: string; +declare var CNLabelContactRelationSisterInLaw: string; + +declare var CNLabelContactRelationSisterInLawBrothersWife: string; + +declare var CNLabelContactRelationSisterInLawElderBrothersWife: string; + +declare var CNLabelContactRelationSisterInLawHusbandsBrothersWife: string; + +declare var CNLabelContactRelationSisterInLawHusbandsSister: string; + +declare var CNLabelContactRelationSisterInLawSpousesSister: string; + +declare var CNLabelContactRelationSisterInLawWifesBrothersWife: string; + +declare var CNLabelContactRelationSisterInLawWifesSister: string; + +declare var CNLabelContactRelationSisterInLawYoungerBrothersWife: string; + declare var CNLabelContactRelationSon: string; +declare var CNLabelContactRelationSonInLaw: string; + +declare var CNLabelContactRelationSonInLawOrBrotherInLaw: string; + +declare var CNLabelContactRelationSonInLawOrStepson: string; + declare var CNLabelContactRelationSpouse: string; +declare var CNLabelContactRelationStepbrother: string; + +declare var CNLabelContactRelationStepchild: string; + +declare var CNLabelContactRelationStepdaughter: string; + +declare var CNLabelContactRelationStepfather: string; + +declare var CNLabelContactRelationStepmother: string; + +declare var CNLabelContactRelationStepparent: string; + +declare var CNLabelContactRelationStepsister: string; + +declare var CNLabelContactRelationStepson: string; + +declare var CNLabelContactRelationTeacher: string; + +declare var CNLabelContactRelationUncle: string; + +declare var CNLabelContactRelationUncleFathersBrother: string; + +declare var CNLabelContactRelationUncleFathersElderBrother: string; + +declare var CNLabelContactRelationUncleFathersElderSistersHusband: string; + +declare var CNLabelContactRelationUncleFathersSistersHusband: string; + +declare var CNLabelContactRelationUncleFathersYoungerBrother: string; + +declare var CNLabelContactRelationUncleFathersYoungerSistersHusband: string; + +declare var CNLabelContactRelationUncleMothersBrother: string; + +declare var CNLabelContactRelationUncleMothersElderBrother: string; + +declare var CNLabelContactRelationUncleMothersSistersHusband: string; + +declare var CNLabelContactRelationUncleMothersYoungerBrother: string; + +declare var CNLabelContactRelationUncleParentsBrother: string; + +declare var CNLabelContactRelationUncleParentsElderBrother: string; + +declare var CNLabelContactRelationUncleParentsYoungerBrother: string; + +declare var CNLabelContactRelationWife: string; + +declare var CNLabelContactRelationYoungerBrother: string; + +declare var CNLabelContactRelationYoungerBrotherInLaw: string; + +declare var CNLabelContactRelationYoungerCousin: string; + +declare var CNLabelContactRelationYoungerCousinFathersBrothersDaughter: string; + +declare var CNLabelContactRelationYoungerCousinFathersBrothersSon: string; + +declare var CNLabelContactRelationYoungerCousinFathersSistersDaughter: string; + +declare var CNLabelContactRelationYoungerCousinFathersSistersSon: string; + +declare var CNLabelContactRelationYoungerCousinMothersBrothersDaughter: string; + +declare var CNLabelContactRelationYoungerCousinMothersBrothersSon: string; + +declare var CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter: string; + +declare var CNLabelContactRelationYoungerCousinMothersSiblingsSonOrFathersSistersSon: string; + +declare var CNLabelContactRelationYoungerCousinMothersSistersDaughter: string; + +declare var CNLabelContactRelationYoungerCousinMothersSistersSon: string; + +declare var CNLabelContactRelationYoungerCousinParentsSiblingsDaughter: string; + +declare var CNLabelContactRelationYoungerCousinParentsSiblingsSon: string; + +declare var CNLabelContactRelationYoungerSibling: string; + +declare var CNLabelContactRelationYoungerSiblingInLaw: string; + +declare var CNLabelContactRelationYoungerSister: string; + +declare var CNLabelContactRelationYoungerSisterInLaw: string; + +declare var CNLabelContactRelationYoungestBrother: string; + +declare var CNLabelContactRelationYoungestSister: string; + declare var CNLabelDateAnniversary: string; declare var CNLabelEmailiCloud: string; @@ -665,6 +1289,8 @@ declare var CNLabelPhoneNumberWorkFax: string; declare var CNLabelPhoneNumberiPhone: string; +declare var CNLabelSchool: string; + declare var CNLabelURLAddressHomePage: string; declare var CNLabelWork: string; @@ -693,9 +1319,9 @@ declare class CNLabeledValue extends NSObject implements NSCopying, N copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithLabelValue(label: string, value: ValueType): this; @@ -819,9 +1445,9 @@ declare class CNPhoneNumber extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithStringValue(string: string): this; } @@ -856,9 +1482,9 @@ declare class CNPostalAddress extends NSObject implements NSCopying, NSMutableCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } @@ -954,9 +1580,9 @@ declare class CNSocialProfile extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithUrlStringUsernameUserIdentifierService(urlString: string, username: string, userIdentifier: string, service: string): this; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreAudioKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreAudioKit.d.ts index 20543270ec..9adafcf009 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreAudioKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreAudioKit.d.ts @@ -17,9 +17,9 @@ declare class AUAudioUnitViewConfiguration extends NSObject implements NSSecureC constructor(o: { width: number; height: number; hostHasController: boolean; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithWidthHeightHostHasController(width: number, height: number, hostHasController: boolean): this; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreAudio.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreAudioTypes.d.ts similarity index 89% rename from tns-platform-declarations/ios/objc-x86_64/objc!CoreAudio.d.ts rename to tns-platform-declarations/ios/objc-x86_64/objc!CoreAudioTypes.d.ts index f28d232f0c..a44b542ac8 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreAudio.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreAudioTypes.d.ts @@ -1,4 +1,39 @@ +declare const enum AVAudioSessionErrorCode { + + None = 0, + + MediaServicesFailed = 1836282486, + + IsBusy = 560030580, + + IncompatibleCategory = 560161140, + + CannotInterruptOthers = 560557684, + + MissingEntitlement = 1701737535, + + SiriIsRecording = 1936290409, + + CannotStartPlaying = 561015905, + + CannotStartRecording = 561145187, + + BadParam = -50, + + InsufficientPriority = 561017449, + + ResourceNotAvailable = 561145203, + + Unspecified = 2003329396, + + ExpiredSession = 561210739, + + SessionNotActive = 1768841571 +} + +declare const AVAudioSessionErrorInsufficientPriority: number; + interface _AudioBuffer { mNumberChannels: number; mDataByteSize: number; @@ -48,7 +83,25 @@ declare const enum AudioChannelBitmap { kAudioChannelBit_TopBackCenter = 65536, - kAudioChannelBit_TopBackRight = 131072 + kAudioChannelBit_TopBackRight = 131072, + + kAudioChannelBit_LeftTopFront = 262144, + + kAudioChannelBit_CenterTopFront = 524288, + + kAudioChannelBit_RightTopFront = 1048576, + + kAudioChannelBit_LeftTopMiddle = 2097152, + + kAudioChannelBit_CenterTopMiddle = 4194304, + + kAudioChannelBit_RightTopMiddle = 8388608, + + kAudioChannelBit_LeftTopRear = 16777216, + + kAudioChannelBit_CenterTopRear = 33554432, + + kAudioChannelBit_RightTopRear = 67108864 } declare const enum AudioChannelCoordinateIndex { @@ -99,6 +152,12 @@ interface AudioClassDescription { } declare var AudioClassDescription: interop.StructType; +interface AudioFormatListItem { + mASBD: AudioStreamBasicDescription; + mChannelLayoutTag: number; +} +declare var AudioFormatListItem: interop.StructType; + interface AudioStreamBasicDescription { mSampleRate: number; mFormatID: number; @@ -259,6 +318,12 @@ declare const kAudioChannelLabel_CenterSurround: number; declare const kAudioChannelLabel_CenterSurroundDirect: number; +declare const kAudioChannelLabel_CenterTopFront: number; + +declare const kAudioChannelLabel_CenterTopMiddle: number; + +declare const kAudioChannelLabel_CenterTopRear: number; + declare const kAudioChannelLabel_ClickTrack: number; declare const kAudioChannelLabel_DialogCentricMix: number; @@ -359,6 +424,12 @@ declare const kAudioChannelLabel_LeftSurround: number; declare const kAudioChannelLabel_LeftSurroundDirect: number; +declare const kAudioChannelLabel_LeftTopFront: number; + +declare const kAudioChannelLabel_LeftTopMiddle: number; + +declare const kAudioChannelLabel_LeftTopRear: number; + declare const kAudioChannelLabel_LeftTotal: number; declare const kAudioChannelLabel_LeftWide: number; @@ -383,6 +454,12 @@ declare const kAudioChannelLabel_RightSurround: number; declare const kAudioChannelLabel_RightSurroundDirect: number; +declare const kAudioChannelLabel_RightTopFront: number; + +declare const kAudioChannelLabel_RightTopMiddle: number; + +declare const kAudioChannelLabel_RightTopRear: number; + declare const kAudioChannelLabel_RightTotal: number; declare const kAudioChannelLabel_RightWide: number; @@ -449,6 +526,12 @@ declare const kAudioChannelLayoutTag_AC3_3_1_1: number; declare const kAudioChannelLayoutTag_Ambisonic_B_Format: number; +declare const kAudioChannelLayoutTag_Atmos_5_1_2: number; + +declare const kAudioChannelLayoutTag_Atmos_7_1_4: number; + +declare const kAudioChannelLayoutTag_Atmos_9_1_6: number; + declare const kAudioChannelLayoutTag_AudioUnit_4: number; declare const kAudioChannelLayoutTag_AudioUnit_5: number; @@ -671,6 +754,26 @@ declare const kAudioChannelLayoutTag_UseChannelBitmap: number; declare const kAudioChannelLayoutTag_UseChannelDescriptions: number; +declare const kAudioChannelLayoutTag_WAVE_2_1: number; + +declare const kAudioChannelLayoutTag_WAVE_3_0: number; + +declare const kAudioChannelLayoutTag_WAVE_4_0_A: number; + +declare const kAudioChannelLayoutTag_WAVE_4_0_B: number; + +declare const kAudioChannelLayoutTag_WAVE_5_0_A: number; + +declare const kAudioChannelLayoutTag_WAVE_5_0_B: number; + +declare const kAudioChannelLayoutTag_WAVE_5_1_A: number; + +declare const kAudioChannelLayoutTag_WAVE_5_1_B: number; + +declare const kAudioChannelLayoutTag_WAVE_6_1: number; + +declare const kAudioChannelLayoutTag_WAVE_7_1: number; + declare const kAudioChannelLayoutTag_XY: number; declare const kAudioFormat60958AC3: number; @@ -751,6 +854,8 @@ declare const kAudioFormatMPEG4HVXC: number; declare const kAudioFormatMPEG4TwinVQ: number; +declare const kAudioFormatMPEGD_USAC: number; + declare const kAudioFormatMPEGLayer1: number; declare const kAudioFormatMPEGLayer2: number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreBluetooth.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreBluetooth.d.ts index c2c4dfb57c..3093c1249e 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreBluetooth.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreBluetooth.d.ts @@ -106,6 +106,8 @@ declare class CBCentralManager extends CBManager { static new(): CBCentralManager; // inherited from NSObject + static supportsFeatures(features: CBCentralManagerFeature): boolean; + delegate: CBCentralManagerDelegate; readonly isScanning: boolean; @@ -122,6 +124,8 @@ declare class CBCentralManager extends CBManager { initWithDelegateQueueOptions(delegate: CBCentralManagerDelegate, queue: NSObject, options: NSDictionary): this; + registerForConnectionEventsWithOptions(options: NSDictionary): void; + retrieveConnectedPeripheralsWithServices(serviceUUIDs: NSArray | CBUUID[]): NSArray; retrievePeripheralsWithIdentifiers(identifiers: NSArray | NSUUID[]): NSArray; @@ -133,6 +137,8 @@ declare class CBCentralManager extends CBManager { interface CBCentralManagerDelegate extends NSObjectProtocol { + centralManagerConnectionEventDidOccurForPeripheral?(central: CBCentralManager, event: CBConnectionEvent, peripheral: CBPeripheral): void; + centralManagerDidConnectPeripheral?(central: CBCentralManager, peripheral: CBPeripheral): void; centralManagerDidDisconnectPeripheralError?(central: CBCentralManager, peripheral: CBPeripheral, error: NSError): void; @@ -141,6 +147,8 @@ interface CBCentralManagerDelegate extends NSObjectProtocol { centralManagerDidFailToConnectPeripheralError?(central: CBCentralManager, peripheral: CBPeripheral, error: NSError): void; + centralManagerDidUpdateANCSAuthorizationForPeripheral?(central: CBCentralManager, peripheral: CBPeripheral): void; + centralManagerDidUpdateState(central: CBCentralManager): void; centralManagerWillRestoreState?(central: CBCentralManager, dict: NSDictionary): void; @@ -150,6 +158,11 @@ declare var CBCentralManagerDelegate: { prototype: CBCentralManagerDelegate; }; +declare const enum CBCentralManagerFeature { + + ExtendedScanAndConnect = 1 +} + declare var CBCentralManagerOptionRestoreIdentifierKey: string; declare var CBCentralManagerOptionShowPowerAlertKey: string; @@ -228,14 +241,29 @@ declare const enum CBCharacteristicWriteType { WithoutResponse = 1 } +declare var CBConnectPeripheralOptionEnableTransportBridgingKey: string; + declare var CBConnectPeripheralOptionNotifyOnConnectionKey: string; declare var CBConnectPeripheralOptionNotifyOnDisconnectionKey: string; declare var CBConnectPeripheralOptionNotifyOnNotificationKey: string; +declare var CBConnectPeripheralOptionRequiresANCS: string; + declare var CBConnectPeripheralOptionStartDelayKey: string; +declare const enum CBConnectionEvent { + + PeerDisconnected = 0, + + PeerConnected = 1 +} + +declare var CBConnectionEventMatchingOptionPeripheralUUIDs: string; + +declare var CBConnectionEventMatchingOptionServiceUUIDs: string; + declare class CBDescriptor extends CBAttribute { static alloc(): CBDescriptor; // inherited from NSObject @@ -303,9 +331,22 @@ declare class CBManager extends NSObject { static new(): CBManager; // inherited from NSObject + readonly authorization: CBManagerAuthorization; + readonly state: CBManagerState; } +declare const enum CBManagerAuthorization { + + NotDetermined = 0, + + Restricted = 1, + + Denied = 2, + + AllowedAlways = 3 +} + declare const enum CBManagerState { Unknown = 0, @@ -387,6 +428,8 @@ declare class CBPeripheral extends CBPeer { readonly RSSI: number; + readonly ancsAuthorized: boolean; + readonly canSendWriteWithoutResponse: boolean; delegate: CBPeripheralDelegate; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreData.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreData.d.ts index ade6a24c76..fd65f04ffd 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreData.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreData.d.ts @@ -91,6 +91,8 @@ declare class NSAttributeDescription extends NSPropertyDescription { defaultValue: any; + preservesValueInHistoryOnDeletion: boolean; + valueTransformerName: string; } @@ -166,6 +168,51 @@ declare class NSBatchDeleteResult extends NSPersistentStoreResult { readonly resultType: NSBatchDeleteRequestResultType; } +declare class NSBatchInsertRequest extends NSPersistentStoreRequest { + + static alloc(): NSBatchInsertRequest; // inherited from NSObject + + static batchInsertRequestWithEntityNameObjects(entityName: string, dictionaries: NSArray> | NSDictionary[]): NSBatchInsertRequest; + + static new(): NSBatchInsertRequest; // inherited from NSObject + + readonly entity: NSEntityDescription; + + readonly entityName: string; + + objectsToInsert: NSArray>; + + resultType: NSBatchInsertRequestResultType; + + constructor(o: { entityName: string; objects: NSArray> | NSDictionary[]; }); + + constructor(o: { entity: NSEntityDescription; objects: NSArray> | NSDictionary[]; }); + + initWithEntityNameObjects(entityName: string, dictionaries: NSArray> | NSDictionary[]): this; + + initWithEntityObjects(entity: NSEntityDescription, dictionaries: NSArray> | NSDictionary[]): this; +} + +declare const enum NSBatchInsertRequestResultType { + + StatusOnly = 0, + + ObjectIDs = 1, + + Count = 2 +} + +declare class NSBatchInsertResult extends NSPersistentStoreResult { + + static alloc(): NSBatchInsertResult; // inherited from NSObject + + static new(): NSBatchInsertResult; // inherited from NSObject + + readonly result: any; + + readonly resultType: NSBatchInsertRequestResultType; +} + declare class NSBatchUpdateRequest extends NSPersistentStoreRequest { static alloc(): NSBatchUpdateRequest; // inherited from NSObject @@ -284,6 +331,15 @@ declare const enum NSDeleteRule { declare var NSDeletedObjectsKey: string; +declare class NSDerivedAttributeDescription extends NSAttributeDescription { + + static alloc(): NSDerivedAttributeDescription; // inherited from NSObject + + static new(): NSDerivedAttributeDescription; // inherited from NSObject + + derivationExpression: NSExpression; +} + declare var NSDetailedErrorsKey: string; declare class NSEntityDescription extends NSObject implements NSCoding, NSCopying, NSFastEnumeration { @@ -339,9 +395,9 @@ declare class NSEntityDescription extends NSObject implements NSCoding, NSCopyin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isKindOfEntity(entity: NSEntityDescription): boolean; @@ -450,9 +506,9 @@ declare class NSFetchIndexDescription extends NSObject implements NSCoding { constructor(o: { name: string; elements: NSArray | NSFetchIndexElementDescription[]; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNameElements(name: string, elements: NSArray | NSFetchIndexElementDescription[]): this; } @@ -477,9 +533,9 @@ declare class NSFetchIndexElementDescription extends NSObject implements NSCodin constructor(o: { property: NSPropertyDescription; collationType: NSFetchIndexElementType; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithPropertyCollationType(property: NSPropertyDescription, collationType: NSFetchIndexElementType): this; } @@ -539,11 +595,11 @@ declare class NSFetchRequest extends NSPersistentStoreRequest implem constructor(o: { entityName: string; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; execute(): NSArray; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithEntityName(entityName: string): this; } @@ -646,6 +702,10 @@ interface NSFetchedResultsControllerDelegate extends NSObjectProtocol { controllerDidChangeContent?(controller: NSFetchedResultsController): void; + controllerDidChangeContentWithDifference?(controller: NSFetchedResultsController, diff: NSOrderedCollectionDifference): void; + + controllerDidChangeContentWithSnapshot?(controller: NSFetchedResultsController, snapshot: NSDiffableDataSourceSnapshot): void; + controllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath?(controller: NSFetchedResultsController, anObject: any, indexPath: NSIndexPath, type: NSFetchedResultsChangeType, newIndexPath: NSIndexPath): void; controllerDidChangeSectionAtIndexForChangeType?(controller: NSFetchedResultsController, sectionInfo: NSFetchedResultsSectionInfo, sectionIndex: number, type: NSFetchedResultsChangeType): void; @@ -909,7 +969,7 @@ declare class NSManagedObjectContext extends NSObject implements NSCoding, NSLoc detectConflictsForObject(object: NSManagedObject): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; executeFetchRequestError(request: NSFetchRequest): NSArray; @@ -917,7 +977,7 @@ declare class NSManagedObjectContext extends NSObject implements NSCoding, NSLoc existingObjectWithIDError(objectID: NSManagedObjectID): NSManagedObject; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithConcurrencyType(ct: NSManagedObjectContextConcurrencyType): this; @@ -1071,7 +1131,7 @@ declare class NSManagedObjectModel extends NSObject implements NSCoding, NSCopyi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; entitiesForConfiguration(configuration: string): NSArray; @@ -1079,7 +1139,7 @@ declare class NSManagedObjectModel extends NSObject implements NSCoding, NSCopyi fetchRequestTemplateForName(name: string): NSFetchRequest; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithContentsOfURL(url: NSURL): this; @@ -1263,6 +1323,49 @@ declare var NSOverwriteMergePolicy: any; declare var NSOverwriteMergePolicyVar: any; +declare class NSPersistentCloudKitContainer extends NSPersistentContainer { + + static alloc(): NSPersistentCloudKitContainer; // inherited from NSObject + + static new(): NSPersistentCloudKitContainer; // inherited from NSObject + + static persistentContainerWithName(name: string): NSPersistentCloudKitContainer; // inherited from NSPersistentContainer + + static persistentContainerWithNameManagedObjectModel(name: string, model: NSManagedObjectModel): NSPersistentCloudKitContainer; // inherited from NSPersistentContainer + + initializeCloudKitSchemaWithOptionsError(options: NSPersistentCloudKitContainerSchemaInitializationOptions): boolean; + + recordForManagedObjectID(managedObjectID: NSManagedObjectID): CKRecord; + + recordIDForManagedObjectID(managedObjectID: NSManagedObjectID): CKRecordID; + + recordIDsForManagedObjectIDs(managedObjectIDs: NSArray | NSManagedObjectID[]): NSDictionary; + + recordsForManagedObjectIDs(managedObjectIDs: NSArray | NSManagedObjectID[]): NSDictionary; +} + +declare class NSPersistentCloudKitContainerOptions extends NSObject { + + static alloc(): NSPersistentCloudKitContainerOptions; // inherited from NSObject + + static new(): NSPersistentCloudKitContainerOptions; // inherited from NSObject + + readonly containerIdentifier: string; + + constructor(o: { containerIdentifier: string; }); + + initWithContainerIdentifier(containerIdentifier: string): this; +} + +declare const enum NSPersistentCloudKitContainerSchemaInitializationOptions { + + None = 0, + + DryRun = 2, + + PrintSchema = 4 +} + declare class NSPersistentContainer extends NSObject { static alloc(): NSPersistentContainer; // inherited from NSObject @@ -1304,6 +1407,8 @@ declare class NSPersistentHistoryChange extends NSObject implements NSCopying { static alloc(): NSPersistentHistoryChange; // inherited from NSObject + static entityDescriptionWithContext(context: NSManagedObjectContext): NSEntityDescription; + static new(): NSPersistentHistoryChange; // inherited from NSObject readonly changeID: number; @@ -1318,6 +1423,10 @@ declare class NSPersistentHistoryChange extends NSObject implements NSCopying { readonly updatedProperties: NSSet; + static readonly entityDescription: NSEntityDescription; + + static readonly fetchRequest: NSFetchRequest; + copyWithZone(zone: interop.Pointer | interop.Reference): any; } @@ -1337,8 +1446,12 @@ declare class NSPersistentHistoryChangeRequest extends NSPersistentStoreRequest static fetchHistoryAfterTransaction(transaction: NSPersistentHistoryTransaction): NSPersistentHistoryChangeRequest; + static fetchHistoryWithFetchRequest(fetchRequest: NSFetchRequest): NSPersistentHistoryChangeRequest; + static new(): NSPersistentHistoryChangeRequest; // inherited from NSObject + fetchRequest: NSFetchRequest; + resultType: NSPersistentHistoryResultType; readonly token: NSPersistentHistoryToken; @@ -1391,19 +1504,23 @@ declare class NSPersistentHistoryToken extends NSObject implements NSCopying, NS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const NSPersistentHistoryTokenExpiredError: number; +declare var NSPersistentHistoryTokenKey: string; + declare var NSPersistentHistoryTrackingKey: string; declare class NSPersistentHistoryTransaction extends NSObject implements NSCopying { static alloc(): NSPersistentHistoryTransaction; // inherited from NSObject + static entityDescriptionWithContext(context: NSManagedObjectContext): NSEntityDescription; + static new(): NSPersistentHistoryTransaction; // inherited from NSObject readonly author: string; @@ -1424,6 +1541,10 @@ declare class NSPersistentHistoryTransaction extends NSObject implements NSCopyi readonly transactionNumber: number; + static readonly entityDescription: NSEntityDescription; + + static readonly fetchRequest: NSFetchRequest; + copyWithZone(zone: interop.Pointer | interop.Reference): any; objectIDNotification(): NSNotification; @@ -1521,6 +1642,8 @@ declare class NSPersistentStoreCoordinator extends NSObject implements NSLocking addPersistentStoreWithTypeConfigurationURLOptionsError(storeType: string, configuration: string, storeURL: NSURL, options: NSDictionary): NSPersistentStore; + currentPersistentHistoryTokenFromStores(stores: NSArray | any[]): NSPersistentHistoryToken; + destroyPersistentStoreAtURLWithTypeOptionsError(url: NSURL, storeType: string, options: NSDictionary): boolean; executeRequestWithContextError(request: NSPersistentStoreRequest, context: NSManagedObjectContext): any; @@ -1572,6 +1695,8 @@ declare class NSPersistentStoreDescription extends NSObject implements NSCopying URL: NSURL; + cloudKitContainerOptions: NSPersistentCloudKitContainerOptions; + configuration: string; readonly options: NSDictionary; @@ -1623,6 +1748,10 @@ declare const NSPersistentStoreOperationError: number; declare var NSPersistentStoreRebuildFromUbiquitousContentOption: string; +declare var NSPersistentStoreRemoteChangeNotification: string; + +declare var NSPersistentStoreRemoteChangeNotificationPostOptionKey: string; + declare var NSPersistentStoreRemoveUbiquitousMetadataOption: string; declare class NSPersistentStoreRequest extends NSObject implements NSCopying { @@ -1644,6 +1773,8 @@ declare const enum NSPersistentStoreRequestType { SaveRequestType = 2, + BatchInsertRequestType = 5, + BatchUpdateRequestType = 6, BatchDeleteRequestType = 7 @@ -1668,6 +1799,8 @@ declare var NSPersistentStoreTimeoutOption: string; declare const NSPersistentStoreTypeMismatchError: number; +declare var NSPersistentStoreURLKey: string; + declare var NSPersistentStoreUbiquitousContainerIdentifierKey: string; declare var NSPersistentStoreUbiquitousContentNameKey: string; @@ -1727,9 +1860,9 @@ declare class NSPropertyDescription extends NSObject implements NSCoding, NSCopy copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; setValidationPredicatesWithValidationWarnings(validationPredicates: NSArray | NSPredicate[], validationWarnings: NSArray | string[]): void; } @@ -1761,9 +1894,9 @@ declare class NSQueryGenerationToken extends NSObject implements NSCopying, NSSe copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var NSReadOnlyPersistentStoreOption: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreFoundation.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreFoundation.d.ts index cd5a8266a3..ea7f279eba 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreFoundation.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreFoundation.d.ts @@ -269,8 +269,6 @@ declare function CFBooleanGetTypeID(): number; declare function CFBooleanGetValue(boolean: number): boolean; -declare function CFBundleCloseBundleResourceMap(bundle: any, refNum: number): void; - declare function CFBundleCopyAuxiliaryExecutableURL(bundle: any, executableName: string): NSURL; declare function CFBundleCopyBuiltInPlugInsURL(bundle: any): NSURL; @@ -363,10 +361,6 @@ declare function CFBundleLoadExecutable(bundle: any): boolean; declare function CFBundleLoadExecutableAndReturnError(bundle: any, error: interop.Pointer | interop.Reference): boolean; -declare function CFBundleOpenBundleResourceFiles(bundle: any, refNum: interop.Pointer | interop.Reference, localizedRefNum: interop.Pointer | interop.Reference): number; - -declare function CFBundleOpenBundleResourceMap(bundle: any): number; - declare function CFBundlePreflightExecutable(bundle: any, error: interop.Pointer | interop.Reference): boolean; declare function CFBundleUnloadExecutable(bundle: any): void; @@ -2483,7 +2477,9 @@ declare const enum CFURLEnumeratorOptions { kCFURLEnumeratorIncludeDirectoriesPreOrder = 16, - kCFURLEnumeratorIncludeDirectoriesPostOrder = 32 + kCFURLEnumeratorIncludeDirectoriesPostOrder = 32, + + kCFURLEnumeratorGenerateRelativePathURLs = 64 } declare const enum CFURLEnumeratorResult { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreGraphics.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreGraphics.d.ts index 93c62bc2ae..af68662cc0 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreGraphics.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreGraphics.d.ts @@ -139,6 +139,8 @@ declare const enum CGBlendMode { declare function CGColorConversionInfoCreate(src: any, dst: any): any; +declare function CGColorConversionInfoCreateWithOptions(src: any, dst: any, options: NSDictionary): any; + declare function CGColorConversionInfoGetTypeID(): number; declare const enum CGColorConversionInfoTransformType { @@ -158,6 +160,10 @@ declare function CGColorCreateCopyByMatchingToColorSpace(p1: any, intent: CGColo declare function CGColorCreateCopyWithAlpha(color: any, alpha: number): any; +declare function CGColorCreateGenericGrayGamma2_2(gray: number, alpha: number): any; + +declare function CGColorCreateSRGB(red: number, green: number, blue: number, alpha: number): any; + declare function CGColorCreateWithPattern(space: any, pattern: any, components: interop.Pointer | interop.Reference): any; declare function CGColorEqualToColor(color1: any, color2: any): boolean; @@ -241,6 +247,8 @@ declare function CGColorSpaceGetNumberOfComponents(space: any): number; declare function CGColorSpaceGetTypeID(): number; +declare function CGColorSpaceIsHDR(p1: any): boolean; + declare function CGColorSpaceIsWideGamutRGB(p1: any): boolean; declare const enum CGColorSpaceModel { @@ -923,6 +931,8 @@ declare function CGPDFContextAddDocumentMetadata(context: any, metadata: NSData) declare function CGPDFContextBeginPage(context: any, pageInfo: NSDictionary): void; +declare function CGPDFContextBeginTag(context: any, tagType: CGPDFTagType, tagProperties: NSDictionary): void; + declare function CGPDFContextClose(context: any): void; declare function CGPDFContextCreate(consumer: any, mediaBox: interop.Pointer | interop.Reference, auxiliaryInfo: NSDictionary): any; @@ -931,6 +941,8 @@ declare function CGPDFContextCreateWithURL(url: NSURL, mediaBox: interop.Pointer declare function CGPDFContextEndPage(context: any): void; +declare function CGPDFContextEndTag(context: any): void; + declare function CGPDFContextSetDestinationForRect(context: any, name: string, rect: CGRect): void; declare function CGPDFContextSetOutline(context: any, outline: NSDictionary): void; @@ -1097,6 +1109,109 @@ declare function CGPDFStringGetBytePtr(string: interop.Pointer | interop.Referen declare function CGPDFStringGetLength(string: interop.Pointer | interop.Reference): number; +declare const enum CGPDFTagType { + + Document = 100, + + Part = 101, + + Art = 102, + + Section = 103, + + Div = 104, + + BlockQuote = 105, + + Caption = 106, + + TOC = 107, + + TOCI = 108, + + Index = 109, + + NonStructure = 110, + + Private = 111, + + Paragraph = 200, + + Header = 201, + + Header1 = 202, + + Header2 = 203, + + Header3 = 204, + + Header4 = 205, + + Header5 = 206, + + Header6 = 207, + + List = 300, + + ListItem = 301, + + Label = 302, + + ListBody = 303, + + Table = 400, + + TableRow = 401, + + TableHeaderCell = 402, + + TableDataCell = 403, + + TableHeader = 404, + + TableBody = 405, + + TableFooter = 406, + + Span = 500, + + Quote = 501, + + Note = 502, + + Reference = 503, + + Bibliography = 504, + + Code = 505, + + Link = 506, + + Annotation = 507, + + Ruby = 600, + + RubyBaseText = 601, + + RubyAnnotationText = 602, + + RubyPunctuation = 603, + + Warichu = 604, + + WarichuText = 605, + + WarichuPunctiation = 606, + + Figure = 700, + + Formula = 701, + + Form = 702 +} + +declare function CGPDFTagTypeGetName(tagType: CGPDFTagType): string; + declare function CGPathAddArc(path: any, m: interop.Pointer | interop.Reference, x: number, y: number, radius: number, startAngle: number, endAngle: number, clockwise: boolean): void; declare function CGPathAddArcToPoint(path: any, m: interop.Pointer | interop.Reference, x1: number, y1: number, x2: number, y2: number, radius: number): void; @@ -1392,10 +1507,18 @@ declare var kCGColorSpaceDCIP3: string; declare var kCGColorSpaceDisplayP3: string; +declare var kCGColorSpaceDisplayP3_HLG: string; + +declare var kCGColorSpaceDisplayP3_PQ_EOTF: string; + declare var kCGColorSpaceExtendedGray: string; +declare var kCGColorSpaceExtendedLinearDisplayP3: string; + declare var kCGColorSpaceExtendedLinearGray: string; +declare var kCGColorSpaceExtendedLinearITUR_2020: string; + declare var kCGColorSpaceExtendedLinearSRGB: string; declare var kCGColorSpaceExtendedSRGB: string; @@ -1416,6 +1539,10 @@ declare var kCGColorSpaceGenericXYZ: string; declare var kCGColorSpaceITUR_2020: string; +declare var kCGColorSpaceITUR_2020_HLG: string; + +declare var kCGColorSpaceITUR_2020_PQ_EOTF: string; + declare var kCGColorSpaceITUR_709: string; declare var kCGColorSpaceLinearGray: string; @@ -1479,3 +1606,11 @@ declare var kCGPDFOutlineDestination: string; declare var kCGPDFOutlineDestinationRect: string; declare var kCGPDFOutlineTitle: string; + +declare var kCGPDFTagPropertyActualText: any; + +declare var kCGPDFTagPropertyAlternativeText: any; + +declare var kCGPDFTagPropertyLanguageText: any; + +declare var kCGPDFTagPropertyTitleText: any; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreHaptics.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreHaptics.d.ts new file mode 100644 index 0000000000..c49764ead7 --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreHaptics.d.ts @@ -0,0 +1,380 @@ + +interface CHHapticAdvancedPatternPlayer extends CHHapticPatternPlayer { + + completionHandler: (p1: NSError) => void; + + loopEnabled: boolean; + + loopEnd: number; + + playbackRate: number; + + pauseAtTimeError(time: number): boolean; + + resumeAtTimeError(time: number): boolean; + + seekToOffsetError(offsetTime: number): boolean; +} +declare var CHHapticAdvancedPatternPlayer: { + + prototype: CHHapticAdvancedPatternPlayer; +}; + +interface CHHapticDeviceCapability { + + supportsAudio: boolean; + + supportsHaptics: boolean; + + attributesForDynamicParameterError(inParameter: string): CHHapticParameterAttributes; + + attributesForEventParameterEventTypeError(inParameter: string, type: string): CHHapticParameterAttributes; +} +declare var CHHapticDeviceCapability: { + + prototype: CHHapticDeviceCapability; +}; + +declare class CHHapticDynamicParameter extends NSObject { + + static alloc(): CHHapticDynamicParameter; // inherited from NSObject + + static new(): CHHapticDynamicParameter; // inherited from NSObject + + readonly parameterID: string; + + relativeTime: number; + + value: number; + + constructor(o: { parameterID: string; value: number; relativeTime: number; }); + + initWithParameterIDValueRelativeTime(parameterID: string, value: number, time: number): this; +} + +declare var CHHapticDynamicParameterIDAudioAttackTimeControl: string; + +declare var CHHapticDynamicParameterIDAudioBrightnessControl: string; + +declare var CHHapticDynamicParameterIDAudioDecayTimeControl: string; + +declare var CHHapticDynamicParameterIDAudioPanControl: string; + +declare var CHHapticDynamicParameterIDAudioPitchControl: string; + +declare var CHHapticDynamicParameterIDAudioReleaseTimeControl: string; + +declare var CHHapticDynamicParameterIDAudioVolumeControl: string; + +declare var CHHapticDynamicParameterIDHapticAttackTimeControl: string; + +declare var CHHapticDynamicParameterIDHapticDecayTimeControl: string; + +declare var CHHapticDynamicParameterIDHapticIntensityControl: string; + +declare var CHHapticDynamicParameterIDHapticReleaseTimeControl: string; + +declare var CHHapticDynamicParameterIDHapticSharpnessControl: string; + +declare class CHHapticEngine extends NSObject { + + static alloc(): CHHapticEngine; // inherited from NSObject + + static capabilitiesForHardware(): CHHapticDeviceCapability; + + static new(): CHHapticEngine; // inherited from NSObject + + autoShutdownEnabled: boolean; + + readonly currentTime: number; + + isMutedForAudio: boolean; + + isMutedForHaptics: boolean; + + playsHapticsOnly: boolean; + + resetHandler: () => void; + + stoppedHandler: (p1: CHHapticEngineStoppedReason) => void; + + constructor(); + + constructor(o: { audioSession: AVAudioSession; }); + + createAdvancedPlayerWithPatternError(pattern: CHHapticPattern): CHHapticAdvancedPatternPlayer; + + createPlayerWithPatternError(pattern: CHHapticPattern): CHHapticPatternPlayer; + + initAndReturnError(): this; + + initWithAudioSessionError(audioSession: AVAudioSession): this; + + notifyWhenPlayersFinished(finishedHandler: (p1: NSError) => CHHapticEngineFinishedAction): void; + + playPatternFromDataError(data: NSData): boolean; + + playPatternFromURLError(fileURL: NSURL): boolean; + + registerAudioResourceOptionsError(resourceURL: NSURL, options: NSDictionary): number; + + startAndReturnError(): boolean; + + startWithCompletionHandler(completionHandler: (p1: NSError) => void): void; + + stopWithCompletionHandler(completionHandler: (p1: NSError) => void): void; + + unregisterAudioResourceError(resourceID: number): boolean; +} + +declare const enum CHHapticEngineFinishedAction { + + StopEngine = 1, + + LeaveEngineRunning = 2 +} + +declare const enum CHHapticEngineStoppedReason { + + AudioSessionInterrupt = 1, + + ApplicationSuspended = 2, + + IdleTimeout = 3, + + NotifyWhenFinished = 4, + + SystemError = -1 +} + +declare const enum CHHapticErrorCode { + + EngineNotRunning = -4805, + + OperationNotPermitted = -4806, + + EngineStartTimeout = -4808, + + NotSupported = -4809, + + ServerInitFailed = -4810, + + ServerInterrupted = -4811, + + InvalidPatternPlayer = -4812, + + InvalidPatternData = -4813, + + InvalidPatternDictionary = -4814, + + InvalidAudioSession = -4815, + + InvalidParameterType = -4820, + + InvalidEventType = -4821, + + InvalidEventTime = -4822, + + InvalidEventDuration = -4823, + + InvalidAudioResource = -4824, + + ResourceNotAvailable = -4825, + + BadEventEntry = -4830, + + BadParameterEntry = -4831, + + InvalidTime = -4840, + + UnknownError = -4898, + + MemoryError = -4899 +} + +declare class CHHapticEvent extends NSObject { + + static alloc(): CHHapticEvent; // inherited from NSObject + + static new(): CHHapticEvent; // inherited from NSObject + + duration: number; + + readonly eventParameters: NSArray; + + relativeTime: number; + + readonly type: string; + + constructor(o: { audioResourceID: number; parameters: NSArray | CHHapticEventParameter[]; relativeTime: number; }); + + constructor(o: { audioResourceID: number; parameters: NSArray | CHHapticEventParameter[]; relativeTime: number; duration: number; }); + + constructor(o: { eventType: string; parameters: NSArray | CHHapticEventParameter[]; relativeTime: number; }); + + constructor(o: { eventType: string; parameters: NSArray | CHHapticEventParameter[]; relativeTime: number; duration: number; }); + + initWithAudioResourceIDParametersRelativeTime(resID: number, eventParams: NSArray | CHHapticEventParameter[], time: number): this; + + initWithAudioResourceIDParametersRelativeTimeDuration(resID: number, eventParams: NSArray | CHHapticEventParameter[], time: number, duration: number): this; + + initWithEventTypeParametersRelativeTime(type: string, eventParams: NSArray | CHHapticEventParameter[], time: number): this; + + initWithEventTypeParametersRelativeTimeDuration(type: string, eventParams: NSArray | CHHapticEventParameter[], time: number, duration: number): this; +} + +declare class CHHapticEventParameter extends NSObject { + + static alloc(): CHHapticEventParameter; // inherited from NSObject + + static new(): CHHapticEventParameter; // inherited from NSObject + + readonly parameterID: string; + + value: number; + + constructor(o: { parameterID: string; value: number; }); + + initWithParameterIDValue(parameterID: string, value: number): this; +} + +declare var CHHapticEventParameterIDAttackTime: string; + +declare var CHHapticEventParameterIDAudioBrightness: string; + +declare var CHHapticEventParameterIDAudioPan: string; + +declare var CHHapticEventParameterIDAudioPitch: string; + +declare var CHHapticEventParameterIDAudioVolume: string; + +declare var CHHapticEventParameterIDDecayTime: string; + +declare var CHHapticEventParameterIDHapticIntensity: string; + +declare var CHHapticEventParameterIDHapticSharpness: string; + +declare var CHHapticEventParameterIDReleaseTime: string; + +declare var CHHapticEventParameterIDSustained: string; + +declare var CHHapticEventTypeAudioContinuous: string; + +declare var CHHapticEventTypeAudioCustom: string; + +declare var CHHapticEventTypeHapticContinuous: string; + +declare var CHHapticEventTypeHapticTransient: string; + +interface CHHapticParameterAttributes extends NSObjectProtocol { + + defaultValue: number; + + maxValue: number; + + minValue: number; +} +declare var CHHapticParameterAttributes: { + + prototype: CHHapticParameterAttributes; +}; + +declare class CHHapticParameterCurve extends NSObject { + + static alloc(): CHHapticParameterCurve; // inherited from NSObject + + static new(): CHHapticParameterCurve; // inherited from NSObject + + readonly controlPoints: NSArray; + + readonly parameterID: string; + + relativeTime: number; + + constructor(o: { parameterID: string; controlPoints: NSArray | CHHapticParameterCurveControlPoint[]; relativeTime: number; }); + + initWithParameterIDControlPointsRelativeTime(parameterID: string, controlPoints: NSArray | CHHapticParameterCurveControlPoint[], relativeTime: number): this; +} + +declare class CHHapticParameterCurveControlPoint extends NSObject { + + static alloc(): CHHapticParameterCurveControlPoint; // inherited from NSObject + + static new(): CHHapticParameterCurveControlPoint; // inherited from NSObject + + relativeTime: number; + + value: number; + + constructor(o: { relativeTime: number; value: number; }); + + initWithRelativeTimeValue(time: number, value: number): this; +} + +declare class CHHapticPattern extends NSObject { + + static alloc(): CHHapticPattern; // inherited from NSObject + + static new(): CHHapticPattern; // inherited from NSObject + + readonly duration: number; + + constructor(o: { dictionary: NSDictionary; }); + + constructor(o: { events: NSArray | CHHapticEvent[]; parameterCurves: NSArray | CHHapticParameterCurve[]; }); + + constructor(o: { events: NSArray | CHHapticEvent[]; parameters: NSArray | CHHapticDynamicParameter[]; }); + + exportDictionaryAndReturnError(): NSDictionary; + + initWithDictionaryError(patternDict: NSDictionary): this; + + initWithEventsParameterCurvesError(events: NSArray | CHHapticEvent[], parameterCurves: NSArray | CHHapticParameterCurve[]): this; + + initWithEventsParametersError(events: NSArray | CHHapticEvent[], parameters: NSArray | CHHapticDynamicParameter[]): this; +} + +declare var CHHapticPatternKeyEvent: string; + +declare var CHHapticPatternKeyEventDuration: string; + +declare var CHHapticPatternKeyEventParameters: string; + +declare var CHHapticPatternKeyEventType: string; + +declare var CHHapticPatternKeyEventWaveformPath: string; + +declare var CHHapticPatternKeyParameter: string; + +declare var CHHapticPatternKeyParameterCurve: string; + +declare var CHHapticPatternKeyParameterCurveControlPoints: string; + +declare var CHHapticPatternKeyParameterID: string; + +declare var CHHapticPatternKeyParameterValue: string; + +declare var CHHapticPatternKeyPattern: string; + +declare var CHHapticPatternKeyTime: string; + +declare var CHHapticPatternKeyVersion: string; + +interface CHHapticPatternPlayer extends NSObjectProtocol { + + isMuted: boolean; + + cancelAndReturnError(): boolean; + + scheduleParameterCurveAtTimeError(parameterCurve: CHHapticParameterCurve, time: number): boolean; + + sendParametersAtTimeError(parameters: NSArray | CHHapticDynamicParameter[], time: number): boolean; + + startAtTimeError(time: number): boolean; + + stopAtTimeError(time: number): boolean; +} +declare var CHHapticPatternPlayer: { + + prototype: CHHapticPatternPlayer; +}; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreImage.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreImage.d.ts index bcba28f513..20e5f60180 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreImage.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreImage.d.ts @@ -1,4 +1,58 @@ +interface CIAccordionFoldTransition extends CITransitionFilter { + + bottomHeight: number; + + foldShadowAmount: number; + + numberOfFolds: number; +} +declare var CIAccordionFoldTransition: { + + prototype: CIAccordionFoldTransition; + + customAttributes?(): NSDictionary; +}; + +interface CIAffineClamp extends CIFilterProtocol { + + inputImage: CIImage; + + transform: CGAffineTransform; +} +declare var CIAffineClamp: { + + prototype: CIAffineClamp; + + customAttributes?(): NSDictionary; +}; + +interface CIAffineTile extends CIFilterProtocol { + + inputImage: CIImage; + + transform: CGAffineTransform; +} +declare var CIAffineTile: { + + prototype: CIAffineTile; + + customAttributes?(): NSDictionary; +}; + +interface CIAttributedTextImageGenerator extends CIFilterProtocol { + + scaleFactor: number; + + text: NSAttributedString; +} +declare var CIAttributedTextImageGenerator: { + + prototype: CIAttributedTextImageGenerator; + + customAttributes?(): NSDictionary; +}; + declare class CIAztecCodeDescriptor extends CIBarcodeDescriptor { static alloc(): CIAztecCodeDescriptor; // inherited from NSObject @@ -20,6 +74,23 @@ declare class CIAztecCodeDescriptor extends CIBarcodeDescriptor { initWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload: NSData, isCompact: boolean, layerCount: number, dataCodewordCount: number): this; } +interface CIAztecCodeGenerator extends CIFilterProtocol { + + compactStyle: number; + + correctionLevel: number; + + layers: number; + + message: NSData; +} +declare var CIAztecCodeGenerator: { + + prototype: CIAztecCodeGenerator; + + customAttributes?(): NSDictionary; +}; + declare class CIBarcodeDescriptor extends NSObject implements NSCopying, NSSecureCoding { static alloc(): CIBarcodeDescriptor; // inherited from NSObject @@ -32,10 +103,55 @@ declare class CIBarcodeDescriptor extends NSObject implements NSCopying, NSSecur copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +interface CIBarcodeGenerator extends CIFilterProtocol { + + barcodeDescriptor: CIBarcodeDescriptor; +} +declare var CIBarcodeGenerator: { + + prototype: CIBarcodeGenerator; + + customAttributes?(): NSDictionary; +}; + +interface CIBarsSwipeTransition extends CITransitionFilter { + + angle: number; - initWithCoder(aDecoder: NSCoder): this; + barOffset: number; + + width: number; +} +declare var CIBarsSwipeTransition: { + + prototype: CIBarsSwipeTransition; + + customAttributes?(): NSDictionary; +}; + +interface CIBicubicScaleTransform extends CIFilterProtocol { + + aspectRatio: number; + + inputImage: CIImage; + + parameterB: number; + + parameterC: number; + + scale: number; } +declare var CIBicubicScaleTransform: { + + prototype: CIBicubicScaleTransform; + + customAttributes?(): NSDictionary; +}; declare class CIBlendKernel extends CIColorKernel { @@ -132,7 +248,145 @@ declare class CIBlendKernel extends CIColorKernel { static readonly vividLight: CIBlendKernel; applyWithForegroundBackground(foreground: CIImage, background: CIImage): CIImage; + + applyWithForegroundBackgroundColorSpace(foreground: CIImage, background: CIImage, colorSpace: any): CIImage; +} + +interface CIBlendWithMask extends CIFilterProtocol { + + backgroundImage: CIImage; + + inputImage: CIImage; + + maskImage: CIImage; +} +declare var CIBlendWithMask: { + + prototype: CIBlendWithMask; + + customAttributes?(): NSDictionary; +}; + +interface CIBloom extends CIFilterProtocol { + + inputImage: CIImage; + + intensity: number; + + radius: number; +} +declare var CIBloom: { + + prototype: CIBloom; + + customAttributes?(): NSDictionary; +}; + +interface CIBokehBlur extends CIFilterProtocol { + + inputImage: CIImage; + + radius: number; + + ringAmount: number; + + ringSize: number; + + softness: number; +} +declare var CIBokehBlur: { + + prototype: CIBokehBlur; + + customAttributes?(): NSDictionary; +}; + +interface CIBoxBlur extends CIFilterProtocol { + + inputImage: CIImage; + + radius: number; +} +declare var CIBoxBlur: { + + prototype: CIBoxBlur; + + customAttributes?(): NSDictionary; +}; + +interface CICMYKHalftone extends CIFilterProtocol { + + angle: number; + + center: CGPoint; + + grayComponentReplacement: number; + + inputImage: CIImage; + + sharpness: number; + + underColorRemoval: number; + + width: number; +} +declare var CICMYKHalftone: { + + prototype: CICMYKHalftone; + + customAttributes?(): NSDictionary; +}; + +interface CICheckerboardGenerator extends CIFilterProtocol { + + center: CGPoint; + + color0: CIColor; + + color1: CIColor; + + sharpness: number; + + width: number; +} +declare var CICheckerboardGenerator: { + + prototype: CICheckerboardGenerator; + + customAttributes?(): NSDictionary; +}; + +interface CICircularScreen extends CIFilterProtocol { + + center: CGPoint; + + inputImage: CIImage; + + sharpness: number; + + width: number; +} +declare var CICircularScreen: { + + prototype: CICircularScreen; + + customAttributes?(): NSDictionary; +}; + +interface CICode128BarcodeGenerator extends CIFilterProtocol { + + barcodeHeight: number; + + message: NSData; + + quietSpace: number; } +declare var CICode128BarcodeGenerator: { + + prototype: CICode128BarcodeGenerator; + + customAttributes?(): NSDictionary; +}; declare class CIColor extends NSObject implements NSCopying, NSSecureCoding { @@ -206,11 +460,11 @@ declare class CIColor extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithCGColor(c: any): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithColor(color: UIColor): this; @@ -223,876 +477,3242 @@ declare class CIColor extends NSObject implements NSCopying, NSSecureCoding { initWithRedGreenBlueColorSpace(r: number, g: number, b: number, colorSpace: any): this; } -declare class CIColorKernel extends CIKernel { +interface CIColorClamp extends CIFilterProtocol { - static alloc(): CIColorKernel; // inherited from NSObject + inputImage: CIImage; - static kernelWithFunctionNameFromMetalLibraryDataError(name: string, data: NSData): CIColorKernel; // inherited from CIKernel + maxComponents: CIVector; - static kernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name: string, data: NSData, format: number): CIColorKernel; // inherited from CIKernel + minComponents: CIVector; +} +declare var CIColorClamp: { - static kernelWithString(string: string): CIColorKernel; // inherited from CIKernel + prototype: CIColorClamp; - static new(): CIColorKernel; // inherited from NSObject + customAttributes?(): NSDictionary; +}; - applyWithExtentArguments(extent: CGRect, args: NSArray | any[]): CIImage; -} +interface CIColorControls extends CIFilterProtocol { -declare class CIContext extends NSObject { + brightness: number; - static alloc(): CIContext; // inherited from NSObject + contrast: number; - static context(): CIContext; + inputImage: CIImage; - static contextWithCGContextOptions(cgctx: any, options: NSDictionary): CIContext; + saturation: number; +} +declare var CIColorControls: { - static contextWithEAGLContext(eaglContext: EAGLContext): CIContext; + prototype: CIColorControls; - static contextWithEAGLContextOptions(eaglContext: EAGLContext, options: NSDictionary): CIContext; + customAttributes?(): NSDictionary; +}; - static contextWithMTLDevice(device: MTLDevice): CIContext; +interface CIColorCrossPolynomial extends CIFilterProtocol { - static contextWithMTLDeviceOptions(device: MTLDevice, options: NSDictionary): CIContext; + blueCoefficients: CIVector; - static contextWithOptions(options: NSDictionary): CIContext; + greenCoefficients: CIVector; - static new(): CIContext; // inherited from NSObject + inputImage: CIImage; - readonly workingColorSpace: any; + redCoefficients: CIVector; +} +declare var CIColorCrossPolynomial: { - readonly workingFormat: number; + prototype: CIColorCrossPolynomial; - constructor(o: { options: NSDictionary; }); + customAttributes?(): NSDictionary; +}; - HEIFRepresentationOfImageFormatColorSpaceOptions(image: CIImage, format: number, colorSpace: any, options: NSDictionary): NSData; +interface CIColorCube extends CIFilterProtocol { - JPEGRepresentationOfImageColorSpaceOptions(image: CIImage, colorSpace: any, options: NSDictionary): NSData; + cubeData: NSData; - PNGRepresentationOfImageFormatColorSpaceOptions(image: CIImage, format: number, colorSpace: any, options: NSDictionary): NSData; + cubeDimension: number; - TIFFRepresentationOfImageFormatColorSpaceOptions(image: CIImage, format: number, colorSpace: any, options: NSDictionary): NSData; + inputImage: CIImage; +} +declare var CIColorCube: { - clearCaches(): void; + prototype: CIColorCube; - createCGImageFromRect(image: CIImage, fromRect: CGRect): any; + customAttributes?(): NSDictionary; +}; - createCGImageFromRectFormatColorSpace(image: CIImage, fromRect: CGRect, format: number, colorSpace: any): any; +interface CIColorCubeWithColorSpace extends CIFilterProtocol { - createCGImageFromRectFormatColorSpaceDeferred(image: CIImage, fromRect: CGRect, format: number, colorSpace: any, deferred: boolean): any; + colorSpace: any; - depthBlurEffectFilterForImageDataOptions(data: NSData, options: NSDictionary): CIFilter; + cubeData: NSData; - depthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteOrientationOptions(image: CIImage, disparityImage: CIImage, portraitEffectsMatte: CIImage, orientation: CGImagePropertyOrientation, options: NSDictionary): CIFilter; + cubeDimension: number; - depthBlurEffectFilterForImageURLOptions(url: NSURL, options: NSDictionary): CIFilter; + inputImage: CIImage; +} +declare var CIColorCubeWithColorSpace: { - drawImageAtPointFromRect(image: CIImage, atPoint: CGPoint, fromRect: CGRect): void; + prototype: CIColorCubeWithColorSpace; - drawImageInRectFromRect(image: CIImage, inRect: CGRect, fromRect: CGRect): void; + customAttributes?(): NSDictionary; +}; - initWithOptions(options: NSDictionary): this; +interface CIColorCubesMixedWithMask extends CIFilterProtocol { - inputImageMaximumSize(): CGSize; + colorSpace: any; - outputImageMaximumSize(): CGSize; + cube0Data: NSData; - prepareRenderFromRectToDestinationAtPointError(image: CIImage, fromRect: CGRect, destination: CIRenderDestination, atPoint: CGPoint): boolean; + cube1Data: NSData; - renderToBitmapRowBytesBoundsFormatColorSpace(image: CIImage, data: interop.Pointer | interop.Reference, rowBytes: number, bounds: CGRect, format: number, colorSpace: any): void; + cubeDimension: number; - renderToCVPixelBuffer(image: CIImage, buffer: any): void; + inputImage: CIImage; - renderToCVPixelBufferBoundsColorSpace(image: CIImage, buffer: any, bounds: CGRect, colorSpace: any): void; + maskImage: CIImage; +} +declare var CIColorCubesMixedWithMask: { - renderToMTLTextureCommandBufferBoundsColorSpace(image: CIImage, texture: MTLTexture, commandBuffer: MTLCommandBuffer, bounds: CGRect, colorSpace: any): void; + prototype: CIColorCubesMixedWithMask; - startTaskToClearError(destination: CIRenderDestination): CIRenderTask; + customAttributes?(): NSDictionary; +}; - startTaskToRenderFromRectToDestinationAtPointError(image: CIImage, fromRect: CGRect, destination: CIRenderDestination, atPoint: CGPoint): CIRenderTask; +interface CIColorCurves extends CIFilterProtocol { - startTaskToRenderToDestinationError(image: CIImage, destination: CIRenderDestination): CIRenderTask; + colorSpace: any; - writeHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError(image: CIImage, url: NSURL, format: number, colorSpace: any, options: NSDictionary): boolean; + curvesData: NSData; - writeJPEGRepresentationOfImageToURLColorSpaceOptionsError(image: CIImage, url: NSURL, colorSpace: any, options: NSDictionary): boolean; + curvesDomain: CIVector; - writePNGRepresentationOfImageToURLFormatColorSpaceOptionsError(image: CIImage, url: NSURL, format: number, colorSpace: any, options: NSDictionary): boolean; + inputImage: CIImage; +} +declare var CIColorCurves: { - writeTIFFRepresentationOfImageToURLFormatColorSpaceOptionsError(image: CIImage, url: NSURL, format: number, colorSpace: any, options: NSDictionary): boolean; + prototype: CIColorCurves; + + customAttributes?(): NSDictionary; +}; + +interface CIColorInvert extends CIFilterProtocol { + + inputImage: CIImage; } +declare var CIColorInvert: { -declare class CIDataMatrixCodeDescriptor extends CIBarcodeDescriptor { + prototype: CIColorInvert; - static alloc(): CIDataMatrixCodeDescriptor; // inherited from NSObject + customAttributes?(): NSDictionary; +}; - static descriptorWithPayloadRowCountColumnCountEccVersion(errorCorrectedPayload: NSData, rowCount: number, columnCount: number, eccVersion: CIDataMatrixCodeECCVersion): CIDataMatrixCodeDescriptor; +declare class CIColorKernel extends CIKernel { - static new(): CIDataMatrixCodeDescriptor; // inherited from NSObject + static alloc(): CIColorKernel; // inherited from NSObject - readonly columnCount: number; + static kernelWithFunctionNameFromMetalLibraryDataError(name: string, data: NSData): CIColorKernel; // inherited from CIKernel - readonly eccVersion: CIDataMatrixCodeECCVersion; + static kernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name: string, data: NSData, format: number): CIColorKernel; // inherited from CIKernel - readonly errorCorrectedPayload: NSData; + static kernelWithString(string: string): CIColorKernel; // inherited from CIKernel - readonly rowCount: number; + static new(): CIColorKernel; // inherited from NSObject - constructor(o: { payload: NSData; rowCount: number; columnCount: number; eccVersion: CIDataMatrixCodeECCVersion; }); + applyWithExtentArguments(extent: CGRect, args: NSArray | any[]): CIImage; +} - initWithPayloadRowCountColumnCountEccVersion(errorCorrectedPayload: NSData, rowCount: number, columnCount: number, eccVersion: CIDataMatrixCodeECCVersion): this; +interface CIColorMap extends CIFilterProtocol { + + gradientImage: CIImage; + + inputImage: CIImage; } +declare var CIColorMap: { -declare const enum CIDataMatrixCodeECCVersion { + prototype: CIColorMap; - Version000 = 0, + customAttributes?(): NSDictionary; +}; - Version050 = 50, +interface CIColorMatrix extends CIFilterProtocol { - Version080 = 80, + AVector: CIVector; - Version100 = 100, + BVector: CIVector; - Version140 = 140, + GVector: CIVector; - Version200 = 200 + RVector: CIVector; + + biasVector: CIVector; + + inputImage: CIImage; } +declare var CIColorMatrix: { -declare class CIDetector extends NSObject { + prototype: CIColorMatrix; - static alloc(): CIDetector; // inherited from NSObject + customAttributes?(): NSDictionary; +}; - static detectorOfTypeContextOptions(type: string, context: CIContext, options: NSDictionary): CIDetector; +interface CIColorMonochrome extends CIFilterProtocol { - static new(): CIDetector; // inherited from NSObject + color: CIColor; - featuresInImage(image: CIImage): NSArray; + inputImage: CIImage; - featuresInImageOptions(image: CIImage, options: NSDictionary): NSArray; + intensity: number; } +declare var CIColorMonochrome: { -declare var CIDetectorAccuracy: string; + prototype: CIColorMonochrome; -declare var CIDetectorAccuracyHigh: string; + customAttributes?(): NSDictionary; +}; -declare var CIDetectorAccuracyLow: string; +interface CIColorPolynomial extends CIFilterProtocol { -declare var CIDetectorAspectRatio: string; + alphaCoefficients: CIVector; -declare var CIDetectorEyeBlink: string; + blueCoefficients: CIVector; -declare var CIDetectorFocalLength: string; + greenCoefficients: CIVector; -declare var CIDetectorImageOrientation: string; + inputImage: CIImage; -declare var CIDetectorMaxFeatureCount: string; + redCoefficients: CIVector; +} +declare var CIColorPolynomial: { -declare var CIDetectorMinFeatureSize: string; + prototype: CIColorPolynomial; -declare var CIDetectorNumberOfAngles: string; + customAttributes?(): NSDictionary; +}; -declare var CIDetectorReturnSubFeatures: string; +interface CIColorPosterize extends CIFilterProtocol { -declare var CIDetectorSmile: string; - -declare var CIDetectorTracking: string; + inputImage: CIImage; -declare var CIDetectorTypeFace: string; + levels: number; +} +declare var CIColorPosterize: { -declare var CIDetectorTypeQRCode: string; + prototype: CIColorPosterize; -declare var CIDetectorTypeRectangle: string; + customAttributes?(): NSDictionary; +}; -declare var CIDetectorTypeText: string; +interface CIComicEffect extends CIFilterProtocol { -declare class CIFaceFeature extends CIFeature { + inputImage: CIImage; +} +declare var CIComicEffect: { - static alloc(): CIFaceFeature; // inherited from NSObject + prototype: CIComicEffect; - static new(): CIFaceFeature; // inherited from NSObject + customAttributes?(): NSDictionary; +}; - readonly faceAngle: number; +interface CICompositeOperation extends CIFilterProtocol { - readonly hasFaceAngle: boolean; + backgroundImage: CIImage; - readonly hasLeftEyePosition: boolean; + inputImage: CIImage; +} +declare var CICompositeOperation: { - readonly hasMouthPosition: boolean; + prototype: CICompositeOperation; - readonly hasRightEyePosition: boolean; + customAttributes?(): NSDictionary; +}; - readonly hasSmile: boolean; +declare class CIContext extends NSObject { - readonly hasTrackingFrameCount: boolean; + static alloc(): CIContext; // inherited from NSObject - readonly hasTrackingID: boolean; + static context(): CIContext; - readonly leftEyeClosed: boolean; + static contextWithCGContextOptions(cgctx: any, options: NSDictionary): CIContext; - readonly leftEyePosition: CGPoint; + static contextWithEAGLContext(eaglContext: EAGLContext): CIContext; - readonly mouthPosition: CGPoint; + static contextWithEAGLContextOptions(eaglContext: EAGLContext, options: NSDictionary): CIContext; - readonly rightEyeClosed: boolean; + static contextWithMTLCommandQueue(commandQueue: MTLCommandQueue): CIContext; - readonly rightEyePosition: CGPoint; + static contextWithMTLCommandQueueOptions(commandQueue: MTLCommandQueue, options: NSDictionary): CIContext; - readonly trackingFrameCount: number; + static contextWithMTLDevice(device: MTLDevice): CIContext; - readonly trackingID: number; -} + static contextWithMTLDeviceOptions(device: MTLDevice, options: NSDictionary): CIContext; -declare class CIFeature extends NSObject { + static contextWithOptions(options: NSDictionary): CIContext; - static alloc(): CIFeature; // inherited from NSObject + static new(): CIContext; // inherited from NSObject - static new(): CIFeature; // inherited from NSObject + readonly workingColorSpace: any; - readonly bounds: CGRect; + readonly workingFormat: number; - readonly type: string; -} + constructor(o: { options: NSDictionary; }); -declare var CIFeatureTypeFace: string; + HEIFRepresentationOfImageFormatColorSpaceOptions(image: CIImage, format: number, colorSpace: any, options: NSDictionary): NSData; -declare var CIFeatureTypeQRCode: string; + JPEGRepresentationOfImageColorSpaceOptions(image: CIImage, colorSpace: any, options: NSDictionary): NSData; -declare var CIFeatureTypeRectangle: string; + PNGRepresentationOfImageFormatColorSpaceOptions(image: CIImage, format: number, colorSpace: any, options: NSDictionary): NSData; -declare var CIFeatureTypeText: string; + TIFFRepresentationOfImageFormatColorSpaceOptions(image: CIImage, format: number, colorSpace: any, options: NSDictionary): NSData; -declare class CIFilter extends NSObject implements NSCopying, NSSecureCoding { + clearCaches(): void; - static alloc(): CIFilter; // inherited from NSObject + createCGImageFromRect(image: CIImage, fromRect: CGRect): any; - static filterArrayFromSerializedXMPInputImageExtentError(xmpData: NSData, extent: CGRect): NSArray; + createCGImageFromRectFormatColorSpace(image: CIImage, fromRect: CGRect, format: number, colorSpace: any): any; - static filterNamesInCategories(categories: NSArray | string[]): NSArray; + createCGImageFromRectFormatColorSpaceDeferred(image: CIImage, fromRect: CGRect, format: number, colorSpace: any, deferred: boolean): any; - static filterNamesInCategory(category: string): NSArray; + depthBlurEffectFilterForImageDataOptions(data: NSData, options: NSDictionary): CIFilter; - static filterWithCVPixelBufferPropertiesOptions(pixelBuffer: any, properties: NSDictionary, options: NSDictionary): CIFilter; + depthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationOrientationOptions(image: CIImage, disparityImage: CIImage, portraitEffectsMatte: CIImage, hairSemanticSegmentation: CIImage, orientation: CGImagePropertyOrientation, options: NSDictionary): CIFilter; - static filterWithImageDataOptions(data: NSData, options: NSDictionary): CIFilter; + depthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteOrientationOptions(image: CIImage, disparityImage: CIImage, portraitEffectsMatte: CIImage, orientation: CGImagePropertyOrientation, options: NSDictionary): CIFilter; - static filterWithImageURLOptions(url: NSURL, options: NSDictionary): CIFilter; + depthBlurEffectFilterForImageURLOptions(url: NSURL, options: NSDictionary): CIFilter; - static filterWithName(name: string): CIFilter; + drawImageAtPointFromRect(image: CIImage, atPoint: CGPoint, fromRect: CGRect): void; - static filterWithNameKeysAndValues(name: string, key0: any): CIFilter; + drawImageInRectFromRect(image: CIImage, inRect: CGRect, fromRect: CGRect): void; - static filterWithNameWithInputParameters(name: string, params: NSDictionary): CIFilter; + initWithOptions(options: NSDictionary): this; - static localizedDescriptionForFilterName(filterName: string): string; + inputImageMaximumSize(): CGSize; - static localizedNameForCategory(category: string): string; + outputImageMaximumSize(): CGSize; - static localizedNameForFilterName(filterName: string): string; + prepareRenderFromRectToDestinationAtPointError(image: CIImage, fromRect: CGRect, destination: CIRenderDestination, atPoint: CGPoint): boolean; - static localizedReferenceDocumentationForFilterName(filterName: string): NSURL; + renderToBitmapRowBytesBoundsFormatColorSpace(image: CIImage, data: interop.Pointer | interop.Reference, rowBytes: number, bounds: CGRect, format: number, colorSpace: any): void; - static new(): CIFilter; // inherited from NSObject + renderToCVPixelBuffer(image: CIImage, buffer: any): void; - static registerFilterNameConstructorClassAttributes(name: string, anObject: CIFilterConstructor, attributes: NSDictionary): void; + renderToCVPixelBufferBoundsColorSpace(image: CIImage, buffer: any, bounds: CGRect, colorSpace: any): void; - static serializedXMPFromFiltersInputImageExtent(filters: NSArray | CIFilter[], extent: CGRect): NSData; + renderToIOSurfaceBoundsColorSpace(image: CIImage, surface: any, bounds: CGRect, colorSpace: any): void; - readonly attributes: NSDictionary; + renderToMTLTextureCommandBufferBoundsColorSpace(image: CIImage, texture: MTLTexture, commandBuffer: MTLCommandBuffer, bounds: CGRect, colorSpace: any): void; - readonly inputKeys: NSArray; + startTaskToClearError(destination: CIRenderDestination): CIRenderTask; - name: string; + startTaskToRenderFromRectToDestinationAtPointError(image: CIImage, fromRect: CGRect, destination: CIRenderDestination, atPoint: CGPoint): CIRenderTask; - readonly outputImage: CIImage; + startTaskToRenderToDestinationError(image: CIImage, destination: CIRenderDestination): CIRenderTask; - readonly outputKeys: NSArray; + writeHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError(image: CIImage, url: NSURL, format: number, colorSpace: any, options: NSDictionary): boolean; - static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + writeJPEGRepresentationOfImageToURLColorSpaceOptionsError(image: CIImage, url: NSURL, colorSpace: any, options: NSDictionary): boolean; - constructor(o: { coder: NSCoder; }); // inherited from NSCoding + writePNGRepresentationOfImageToURLFormatColorSpaceOptionsError(image: CIImage, url: NSURL, format: number, colorSpace: any, options: NSDictionary): boolean; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + writeTIFFRepresentationOfImageToURLFormatColorSpaceOptionsError(image: CIImage, url: NSURL, format: number, colorSpace: any, options: NSDictionary): boolean; +} - encodeWithCoder(aCoder: NSCoder): void; +interface CIConvolution extends CIFilterProtocol { - initWithCoder(aDecoder: NSCoder): this; + bias: number; - setDefaults(): void; + inputImage: CIImage; - setName(aString: string): void; + weights: CIVector; } +declare var CIConvolution: { -interface CIFilterConstructor { - - filterWithName(name: string): CIFilter; -} -declare var CIFilterConstructor: { + prototype: CIConvolution; - prototype: CIFilterConstructor; + customAttributes?(): NSDictionary; }; -declare class CIFilterShape extends NSObject implements NSCopying { - - static alloc(): CIFilterShape; // inherited from NSObject +interface CICopyMachineTransition extends CITransitionFilter { - static new(): CIFilterShape; // inherited from NSObject + angle: number; - static shapeWithRect(r: CGRect): CIFilterShape; + color: CIColor; - readonly extent: CGRect; + extent: CGRect; - constructor(o: { rect: CGRect; }); + opacity: number; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + width: number; +} +declare var CICopyMachineTransition: { - initWithRect(r: CGRect): this; + prototype: CICopyMachineTransition; - insetByXY(dx: number, dy: number): CIFilterShape; + customAttributes?(): NSDictionary; +}; - intersectWith(s2: CIFilterShape): CIFilterShape; +interface CICoreMLModel extends CIFilterProtocol { - intersectWithRect(r: CGRect): CIFilterShape; + headIndex: number; - transformByInterior(m: CGAffineTransform, flag: boolean): CIFilterShape; + inputImage: CIImage; - unionWith(s2: CIFilterShape): CIFilterShape; + model: MLModel; - unionWithRect(r: CGRect): CIFilterShape; + softmaxNormalization: boolean; } +declare var CICoreMLModel: { -declare class CIImage extends NSObject implements NSCopying, NSSecureCoding { + prototype: CICoreMLModel; - static alloc(): CIImage; // inherited from NSObject + customAttributes?(): NSDictionary; +}; - static emptyImage(): CIImage; +interface CICrystallize extends CIFilterProtocol { - static imageWithBitmapDataBytesPerRowSizeFormatColorSpace(data: NSData, bytesPerRow: number, size: CGSize, format: number, colorSpace: any): CIImage; + center: CGPoint; - static imageWithCGImage(image: any): CIImage; + inputImage: CIImage; - static imageWithCGImageOptions(image: any, options: NSDictionary): CIImage; + radius: number; +} +declare var CICrystallize: { - static imageWithCVImageBuffer(imageBuffer: any): CIImage; + prototype: CICrystallize; - static imageWithCVImageBufferOptions(imageBuffer: any, options: NSDictionary): CIImage; + customAttributes?(): NSDictionary; +}; - static imageWithCVPixelBuffer(pixelBuffer: any): CIImage; +declare class CIDataMatrixCodeDescriptor extends CIBarcodeDescriptor { - static imageWithCVPixelBufferOptions(pixelBuffer: any, options: NSDictionary): CIImage; + static alloc(): CIDataMatrixCodeDescriptor; // inherited from NSObject - static imageWithColor(color: CIColor): CIImage; + static descriptorWithPayloadRowCountColumnCountEccVersion(errorCorrectedPayload: NSData, rowCount: number, columnCount: number, eccVersion: CIDataMatrixCodeECCVersion): CIDataMatrixCodeDescriptor; - static imageWithContentsOfURL(url: NSURL): CIImage; + static new(): CIDataMatrixCodeDescriptor; // inherited from NSObject - static imageWithContentsOfURLOptions(url: NSURL, options: NSDictionary): CIImage; + readonly columnCount: number; - static imageWithData(data: NSData): CIImage; + readonly eccVersion: CIDataMatrixCodeECCVersion; - static imageWithDataOptions(data: NSData, options: NSDictionary): CIImage; + readonly errorCorrectedPayload: NSData; - static imageWithDepthData(data: AVDepthData): CIImage; + readonly rowCount: number; - static imageWithDepthDataOptions(data: AVDepthData, options: NSDictionary): CIImage; + constructor(o: { payload: NSData; rowCount: number; columnCount: number; eccVersion: CIDataMatrixCodeECCVersion; }); - static imageWithImageProviderSizeFormatColorSpaceOptions(p: any, width: number, height: number, f: number, cs: any, options: NSDictionary): CIImage; + initWithPayloadRowCountColumnCountEccVersion(errorCorrectedPayload: NSData, rowCount: number, columnCount: number, eccVersion: CIDataMatrixCodeECCVersion): this; +} - static imageWithMTLTextureOptions(texture: MTLTexture, options: NSDictionary): CIImage; +declare const enum CIDataMatrixCodeECCVersion { - static imageWithPortaitEffectsMatte(matte: AVPortraitEffectsMatte): CIImage; + Version000 = 0, - static imageWithPortaitEffectsMatteOptions(matte: AVPortraitEffectsMatte, options: NSDictionary): CIImage; + Version050 = 50, - static imageWithTextureSizeFlippedColorSpace(name: number, size: CGSize, flipped: boolean, colorSpace: any): CIImage; + Version080 = 80, - static new(): CIImage; // inherited from NSObject + Version100 = 100, - readonly CGImage: any; + Version140 = 140, - readonly colorSpace: any; + Version200 = 200 +} - readonly depthData: AVDepthData; +interface CIDepthOfField extends CIFilterProtocol { - readonly extent: CGRect; + inputImage: CIImage; - readonly pixelBuffer: any; + point0: CGPoint; - readonly portraitEffectsMatte: AVPortraitEffectsMatte; + point1: CGPoint; - readonly properties: NSDictionary; + radius: number; - readonly url: NSURL; + saturation: number; - static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + unsharpMaskIntensity: number; - constructor(o: { bitmapData: NSData; bytesPerRow: number; size: CGSize; format: number; colorSpace: any; }); + unsharpMaskRadius: number; +} +declare var CIDepthOfField: { - constructor(o: { CGImage: any; }); + prototype: CIDepthOfField; - constructor(o: { CGImage: any; options: NSDictionary; }); + customAttributes?(): NSDictionary; +}; - constructor(o: { CVImageBuffer: any; }); +interface CIDepthToDisparity extends CIFilterProtocol { - constructor(o: { CVImageBuffer: any; options: NSDictionary; }); + inputImage: CIImage; +} +declare var CIDepthToDisparity: { - constructor(o: { CVPixelBuffer: any; }); + prototype: CIDepthToDisparity; - constructor(o: { CVPixelBuffer: any; options: NSDictionary; }); + customAttributes?(): NSDictionary; +}; - constructor(o: { coder: NSCoder; }); // inherited from NSCoding +declare class CIDetector extends NSObject { - constructor(o: { color: CIColor; }); + static alloc(): CIDetector; // inherited from NSObject - constructor(o: { contentsOfURL: NSURL; }); + static detectorOfTypeContextOptions(type: string, context: CIContext, options: NSDictionary): CIDetector; - constructor(o: { contentsOfURL: NSURL; options: NSDictionary; }); + static new(): CIDetector; // inherited from NSObject - constructor(o: { data: NSData; }); + featuresInImage(image: CIImage): NSArray; - constructor(o: { data: NSData; options: NSDictionary; }); + featuresInImageOptions(image: CIImage, options: NSDictionary): NSArray; +} - constructor(o: { depthData: AVDepthData; }); +declare var CIDetectorAccuracy: string; - constructor(o: { depthData: AVDepthData; options: NSDictionary; }); +declare var CIDetectorAccuracyHigh: string; - constructor(o: { image: UIImage; }); +declare var CIDetectorAccuracyLow: string; - constructor(o: { image: UIImage; options: NSDictionary; }); +declare var CIDetectorAspectRatio: string; - constructor(o: { imageProvider: any; size: number; format: number; colorSpace: number; options: any; }); +declare var CIDetectorEyeBlink: string; - constructor(o: { MTLTexture: MTLTexture; options: NSDictionary; }); +declare var CIDetectorFocalLength: string; - constructor(o: { portaitEffectsMatte: AVPortraitEffectsMatte; }); +declare var CIDetectorImageOrientation: string; - constructor(o: { portaitEffectsMatte: AVPortraitEffectsMatte; options: NSDictionary; }); +declare var CIDetectorMaxFeatureCount: string; - constructor(o: { texture: number; size: CGSize; flipped: boolean; colorSpace: any; }); +declare var CIDetectorMinFeatureSize: string; - autoAdjustmentFilters(): NSArray; +declare var CIDetectorNumberOfAngles: string; - autoAdjustmentFiltersWithOptions(options: NSDictionary): NSArray; +declare var CIDetectorReturnSubFeatures: string; - copyWithZone(zone: interop.Pointer | interop.Reference): any; +declare var CIDetectorSmile: string; - encodeWithCoder(aCoder: NSCoder): void; +declare var CIDetectorTracking: string; - imageByApplyingCGOrientation(orientation: CGImagePropertyOrientation): CIImage; +declare var CIDetectorTypeFace: string; - imageByApplyingFilter(filterName: string): CIImage; +declare var CIDetectorTypeQRCode: string; - imageByApplyingFilterWithInputParameters(filterName: string, params: NSDictionary): CIImage; +declare var CIDetectorTypeRectangle: string; - imageByApplyingGaussianBlurWithSigma(sigma: number): CIImage; +declare var CIDetectorTypeText: string; - imageByApplyingOrientation(orientation: number): CIImage; +interface CIDiscBlur extends CIFilterProtocol { - imageByApplyingTransform(matrix: CGAffineTransform): CIImage; + inputImage: CIImage; - imageByClampingToExtent(): CIImage; + radius: number; +} +declare var CIDiscBlur: { - imageByClampingToRect(rect: CGRect): CIImage; + prototype: CIDiscBlur; - imageByColorMatchingColorSpaceToWorkingSpace(colorSpace: any): CIImage; + customAttributes?(): NSDictionary; +}; - imageByColorMatchingWorkingSpaceToColorSpace(colorSpace: any): CIImage; +interface CIDisintegrateWithMaskTransition extends CITransitionFilter { - imageByCompositingOverImage(dest: CIImage): CIImage; + maskImage: CIImage; - imageByCroppingToRect(rect: CGRect): CIImage; + shadowDensity: number; + + shadowOffset: CGPoint; + + shadowRadius: number; +} +declare var CIDisintegrateWithMaskTransition: { + + prototype: CIDisintegrateWithMaskTransition; + + customAttributes?(): NSDictionary; +}; + +interface CIDisparityToDepth extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CIDisparityToDepth: { + + prototype: CIDisparityToDepth; + + customAttributes?(): NSDictionary; +}; + +interface CIDissolveTransition extends CITransitionFilter { +} +declare var CIDissolveTransition: { + + prototype: CIDissolveTransition; + + customAttributes?(): NSDictionary; +}; + +interface CIDither extends CIFilterProtocol { + + inputImage: CIImage; + + intensity: number; +} +declare var CIDither: { + + prototype: CIDither; + + customAttributes?(): NSDictionary; +}; + +interface CIDocumentEnhancer extends CIFilterProtocol { + + amount: number; + + inputImage: CIImage; +} +declare var CIDocumentEnhancer: { + + prototype: CIDocumentEnhancer; + + customAttributes?(): NSDictionary; +}; + +interface CIDotScreen extends CIFilterProtocol { + + angle: number; + + center: CGPoint; + + inputImage: CIImage; + + sharpness: number; + + width: number; +} +declare var CIDotScreen: { + + prototype: CIDotScreen; + + customAttributes?(): NSDictionary; +}; + +interface CIEdgePreserveUpsample extends CIFilterProtocol { + + inputImage: CIImage; + + lumaSigma: number; + + smallImage: CIImage; + + spatialSigma: number; +} +declare var CIEdgePreserveUpsample: { + + prototype: CIEdgePreserveUpsample; + + customAttributes?(): NSDictionary; +}; + +interface CIEdgeWork extends CIFilterProtocol { + + inputImage: CIImage; + + radius: number; +} +declare var CIEdgeWork: { + + prototype: CIEdgeWork; + + customAttributes?(): NSDictionary; +}; + +interface CIEdges extends CIFilterProtocol { + + inputImage: CIImage; + + intensity: number; +} +declare var CIEdges: { + + prototype: CIEdges; + + customAttributes?(): NSDictionary; +}; + +interface CIEightfoldReflectedTile extends CIFilterProtocol { + + angle: number; + + center: CGPoint; + + inputImage: CIImage; + + width: number; +} +declare var CIEightfoldReflectedTile: { + + prototype: CIEightfoldReflectedTile; + + customAttributes?(): NSDictionary; +}; + +interface CIExposureAdjust extends CIFilterProtocol { + + EV: number; + + inputImage: CIImage; +} +declare var CIExposureAdjust: { + + prototype: CIExposureAdjust; + + customAttributes?(): NSDictionary; +}; + +declare class CIFaceFeature extends CIFeature { + + static alloc(): CIFaceFeature; // inherited from NSObject + + static new(): CIFaceFeature; // inherited from NSObject + + readonly faceAngle: number; + + readonly hasFaceAngle: boolean; + + readonly hasLeftEyePosition: boolean; + + readonly hasMouthPosition: boolean; + + readonly hasRightEyePosition: boolean; + + readonly hasSmile: boolean; + + readonly hasTrackingFrameCount: boolean; + + readonly hasTrackingID: boolean; + + readonly leftEyeClosed: boolean; + + readonly leftEyePosition: CGPoint; + + readonly mouthPosition: CGPoint; + + readonly rightEyeClosed: boolean; + + readonly rightEyePosition: CGPoint; + + readonly trackingFrameCount: number; + + readonly trackingID: number; +} + +interface CIFalseColor extends CIFilterProtocol { + + color0: CIColor; + + color1: CIColor; + + inputImage: CIImage; +} +declare var CIFalseColor: { + + prototype: CIFalseColor; + + customAttributes?(): NSDictionary; +}; + +declare class CIFeature extends NSObject { + + static alloc(): CIFeature; // inherited from NSObject + + static new(): CIFeature; // inherited from NSObject + + readonly bounds: CGRect; + + readonly type: string; +} + +declare var CIFeatureTypeFace: string; + +declare var CIFeatureTypeQRCode: string; + +declare var CIFeatureTypeRectangle: string; + +declare var CIFeatureTypeText: string; + +declare class CIFilter extends NSObject implements NSCopying, NSSecureCoding { + + static CMYKHalftone(): CIFilter; + + static LabDeltaE(): CIFilter; + + static PDF417BarcodeGenerator(): CIFilter; + + static QRCodeGenerator(): CIFilter; + + static accordionFoldTransitionFilter(): CIFilter; + + static additionCompositingFilter(): CIFilter; + + static affineClampFilter(): CIFilter; + + static affineTileFilter(): CIFilter; + + static alloc(): CIFilter; // inherited from NSObject + + static attributedTextImageGeneratorFilter(): CIFilter; + + static aztecCodeGeneratorFilter(): CIFilter; + + static barcodeGeneratorFilter(): CIFilter; + + static barsSwipeTransitionFilter(): CIFilter; + + static bicubicScaleTransformFilter(): CIFilter; + + static blendWithAlphaMaskFilter(): CIFilter; + + static blendWithBlueMaskFilter(): CIFilter; + + static blendWithMaskFilter(): CIFilter; + + static blendWithRedMaskFilter(): CIFilter; + + static bloomFilter(): CIFilter; + + static bokehBlurFilter(): CIFilter; + + static boxBlurFilter(): CIFilter; + + static checkerboardGeneratorFilter(): CIFilter; + + static circularScreenFilter(): CIFilter; + + static code128BarcodeGeneratorFilter(): CIFilter; + + static colorBlendModeFilter(): CIFilter; + + static colorBurnBlendModeFilter(): CIFilter; + + static colorClampFilter(): CIFilter; + + static colorControlsFilter(): CIFilter; + + static colorCrossPolynomialFilter(): CIFilter; + + static colorCubeFilter(): CIFilter; + + static colorCubeWithColorSpaceFilter(): CIFilter; + + static colorCubesMixedWithMaskFilter(): CIFilter; + + static colorCurvesFilter(): CIFilter; + + static colorDodgeBlendModeFilter(): CIFilter; + + static colorInvertFilter(): CIFilter; + + static colorMapFilter(): CIFilter; + + static colorMatrixFilter(): CIFilter; + + static colorMonochromeFilter(): CIFilter; + + static colorPolynomialFilter(): CIFilter; + + static colorPosterizeFilter(): CIFilter; + + static comicEffectFilter(): CIFilter; + + static convolution3X3Filter(): CIFilter; + + static convolution5X5Filter(): CIFilter; + + static convolution7X7Filter(): CIFilter; + + static convolution9HorizontalFilter(): CIFilter; + + static convolution9VerticalFilter(): CIFilter; + + static copyMachineTransitionFilter(): CIFilter; + + static coreMLModelFilter(): CIFilter; + + static crystallizeFilter(): CIFilter; + + static darkenBlendModeFilter(): CIFilter; + + static depthOfFieldFilter(): CIFilter; + + static depthToDisparityFilter(): CIFilter; + + static differenceBlendModeFilter(): CIFilter; + + static discBlurFilter(): CIFilter; + + static disintegrateWithMaskTransitionFilter(): CIFilter; + + static disparityToDepthFilter(): CIFilter; + + static dissolveTransitionFilter(): CIFilter; + + static ditherFilter(): CIFilter; + + static divideBlendModeFilter(): CIFilter; + + static documentEnhancerFilter(): CIFilter; + + static dotScreenFilter(): CIFilter; + + static edgePreserveUpsampleFilter(): CIFilter; + + static edgeWorkFilter(): CIFilter; + + static edgesFilter(): CIFilter; + + static eightfoldReflectedTileFilter(): CIFilter; + + static exclusionBlendModeFilter(): CIFilter; + + static exposureAdjustFilter(): CIFilter; + + static falseColorFilter(): CIFilter; + + static filterArrayFromSerializedXMPInputImageExtentError(xmpData: NSData, extent: CGRect): NSArray; + + static filterNamesInCategories(categories: NSArray | string[]): NSArray; + + static filterNamesInCategory(category: string): NSArray; + + static filterWithCVPixelBufferPropertiesOptions(pixelBuffer: any, properties: NSDictionary, options: NSDictionary): CIFilter; + + static filterWithImageDataOptions(data: NSData, options: NSDictionary): CIFilter; + + static filterWithImageURLOptions(url: NSURL, options: NSDictionary): CIFilter; + + static filterWithName(name: string): CIFilter; + + static filterWithNameKeysAndValues(name: string, key0: any): CIFilter; + + static filterWithNameWithInputParameters(name: string, params: NSDictionary): CIFilter; + + static flashTransitionFilter(): CIFilter; + + static fourfoldReflectedTileFilter(): CIFilter; + + static fourfoldRotatedTileFilter(): CIFilter; + + static fourfoldTranslatedTileFilter(): CIFilter; + + static gaborGradientsFilter(): CIFilter; + + static gammaAdjustFilter(): CIFilter; + + static gaussianBlurFilter(): CIFilter; + + static gaussianGradientFilter(): CIFilter; + + static glideReflectedTileFilter(): CIFilter; + + static gloomFilter(): CIFilter; + + static hardLightBlendModeFilter(): CIFilter; + + static hatchedScreenFilter(): CIFilter; + + static heightFieldFromMaskFilter(): CIFilter; + + static hexagonalPixellateFilter(): CIFilter; + + static highlightShadowAdjustFilter(): CIFilter; + + static hueAdjustFilter(): CIFilter; + + static hueBlendModeFilter(): CIFilter; + + static hueSaturationValueGradientFilter(): CIFilter; + + static kaleidoscopeFilter(): CIFilter; + + static keystoneCorrectionCombinedFilter(): CIFilter; + + static keystoneCorrectionHorizontalFilter(): CIFilter; + + static keystoneCorrectionVerticalFilter(): CIFilter; + + static lanczosScaleTransformFilter(): CIFilter; + + static lenticularHaloGeneratorFilter(): CIFilter; + + static lightenBlendModeFilter(): CIFilter; + + static lineOverlayFilter(): CIFilter; + + static lineScreenFilter(): CIFilter; + + static linearBurnBlendModeFilter(): CIFilter; + + static linearDodgeBlendModeFilter(): CIFilter; + + static linearGradientFilter(): CIFilter; + + static linearToSRGBToneCurveFilter(): CIFilter; + + static localizedDescriptionForFilterName(filterName: string): string; + + static localizedNameForCategory(category: string): string; + + static localizedNameForFilterName(filterName: string): string; + + static localizedReferenceDocumentationForFilterName(filterName: string): NSURL; + + static luminosityBlendModeFilter(): CIFilter; + + static maskToAlphaFilter(): CIFilter; + + static maskedVariableBlurFilter(): CIFilter; + + static maximumComponentFilter(): CIFilter; + + static maximumCompositingFilter(): CIFilter; + + static medianFilter(): CIFilter; + + static meshGeneratorFilter(): CIFilter; + + static minimumComponentFilter(): CIFilter; + + static minimumCompositingFilter(): CIFilter; + + static mixFilter(): CIFilter; + + static modTransitionFilter(): CIFilter; + + static morphologyGradientFilter(): CIFilter; + + static morphologyMaximumFilter(): CIFilter; + + static morphologyMinimumFilter(): CIFilter; + + static morphologyRectangleMaximumFilter(): CIFilter; + + static morphologyRectangleMinimumFilter(): CIFilter; + + static motionBlurFilter(): CIFilter; + + static multiplyBlendModeFilter(): CIFilter; + + static multiplyCompositingFilter(): CIFilter; + + static new(): CIFilter; // inherited from NSObject + + static noiseReductionFilter(): CIFilter; + + static opTileFilter(): CIFilter; + + static overlayBlendModeFilter(): CIFilter; + + static pageCurlTransitionFilter(): CIFilter; + + static pageCurlWithShadowTransitionFilter(): CIFilter; + + static paletteCentroidFilter(): CIFilter; + + static palettizeFilter(): CIFilter; + + static parallelogramTileFilter(): CIFilter; + + static perspectiveCorrectionFilter(): CIFilter; + + static perspectiveRotateFilter(): CIFilter; + + static perspectiveTileFilter(): CIFilter; + + static perspectiveTransformFilter(): CIFilter; + + static perspectiveTransformWithExtentFilter(): CIFilter; + + static photoEffectChromeFilter(): CIFilter; + + static photoEffectFadeFilter(): CIFilter; + + static photoEffectInstantFilter(): CIFilter; + + static photoEffectMonoFilter(): CIFilter; + + static photoEffectNoirFilter(): CIFilter; + + static photoEffectProcessFilter(): CIFilter; + + static photoEffectTonalFilter(): CIFilter; + + static photoEffectTransferFilter(): CIFilter; + + static pinLightBlendModeFilter(): CIFilter; + + static pixellateFilter(): CIFilter; + + static pointillizeFilter(): CIFilter; + + static radialGradientFilter(): CIFilter; + + static randomGeneratorFilter(): CIFilter; + + static registerFilterNameConstructorClassAttributes(name: string, anObject: CIFilterConstructor, attributes: NSDictionary): void; + + static rippleTransitionFilter(): CIFilter; + + static roundedRectangleGeneratorFilter(): CIFilter; + + static sRGBToneCurveToLinearFilter(): CIFilter; + + static saliencyMapFilter(): CIFilter; + + static saturationBlendModeFilter(): CIFilter; + + static screenBlendModeFilter(): CIFilter; + + static sepiaToneFilter(): CIFilter; + + static serializedXMPFromFiltersInputImageExtent(filters: NSArray | CIFilter[], extent: CGRect): NSData; + + static shadedMaterialFilter(): CIFilter; + + static sharpenLuminanceFilter(): CIFilter; + + static sixfoldReflectedTileFilter(): CIFilter; + + static sixfoldRotatedTileFilter(): CIFilter; + + static smoothLinearGradientFilter(): CIFilter; + + static softLightBlendModeFilter(): CIFilter; + + static sourceAtopCompositingFilter(): CIFilter; + + static sourceInCompositingFilter(): CIFilter; + + static sourceOutCompositingFilter(): CIFilter; + + static sourceOverCompositingFilter(): CIFilter; + + static spotColorFilter(): CIFilter; + + static spotLightFilter(): CIFilter; + + static starShineGeneratorFilter(): CIFilter; + + static straightenFilter(): CIFilter; + + static stripesGeneratorFilter(): CIFilter; + + static subtractBlendModeFilter(): CIFilter; + + static sunbeamsGeneratorFilter(): CIFilter; + + static supportedRawCameraModels(): NSArray; + + static swipeTransitionFilter(): CIFilter; + + static temperatureAndTintFilter(): CIFilter; + + static textImageGeneratorFilter(): CIFilter; + + static thermalFilter(): CIFilter; + + static toneCurveFilter(): CIFilter; + + static triangleKaleidoscopeFilter(): CIFilter; + + static triangleTileFilter(): CIFilter; + + static twelvefoldReflectedTileFilter(): CIFilter; + + static unsharpMaskFilter(): CIFilter; + + static vibranceFilter(): CIFilter; + + static vignetteEffectFilter(): CIFilter; + + static vignetteFilter(): CIFilter; + + static whitePointAdjustFilter(): CIFilter; + + static xRayFilter(): CIFilter; + + static zoomBlurFilter(): CIFilter; + + readonly attributes: NSDictionary; + + readonly inputKeys: NSArray; + + name: string; + + readonly outputImage: CIImage; + + readonly outputKeys: NSArray; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + setDefaults(): void; + + setName(aString: string): void; +} + +interface CIFilterConstructor { + + filterWithName(name: string): CIFilter; +} +declare var CIFilterConstructor: { + + prototype: CIFilterConstructor; +}; + +interface CIFilterProtocol { + + outputImage: CIImage; +} +declare var CIFilterProtocol: { + + prototype: CIFilterProtocol; + + customAttributes?(): NSDictionary; +}; + +declare class CIFilterShape extends NSObject implements NSCopying { + + static alloc(): CIFilterShape; // inherited from NSObject + + static new(): CIFilterShape; // inherited from NSObject + + static shapeWithRect(r: CGRect): CIFilterShape; + + readonly extent: CGRect; + + constructor(o: { rect: CGRect; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + initWithRect(r: CGRect): this; + + insetByXY(dx: number, dy: number): CIFilterShape; + + intersectWith(s2: CIFilterShape): CIFilterShape; + + intersectWithRect(r: CGRect): CIFilterShape; + + transformByInterior(m: CGAffineTransform, flag: boolean): CIFilterShape; + + unionWith(s2: CIFilterShape): CIFilterShape; + + unionWithRect(r: CGRect): CIFilterShape; +} + +interface CIFlashTransition extends CITransitionFilter { + + center: CGPoint; + + color: CIColor; + + extent: CGRect; + + fadeThreshold: number; + + maxStriationRadius: number; + + striationContrast: number; + + striationStrength: number; +} +declare var CIFlashTransition: { + + prototype: CIFlashTransition; + + customAttributes?(): NSDictionary; +}; + +interface CIFourCoordinateGeometryFilter extends CIFilterProtocol { + + bottomLeft: CGPoint; + + bottomRight: CGPoint; + + inputImage: CIImage; + + topLeft: CGPoint; + + topRight: CGPoint; +} +declare var CIFourCoordinateGeometryFilter: { + + prototype: CIFourCoordinateGeometryFilter; + + customAttributes?(): NSDictionary; +}; + +interface CIFourfoldReflectedTile extends CIFilterProtocol { + + acuteAngle: number; + + angle: number; + + center: CGPoint; + + inputImage: CIImage; + + width: number; +} +declare var CIFourfoldReflectedTile: { + + prototype: CIFourfoldReflectedTile; + + customAttributes?(): NSDictionary; +}; + +interface CIFourfoldRotatedTile extends CIFilterProtocol { + + angle: number; + + center: CGPoint; + + inputImage: CIImage; + + width: number; +} +declare var CIFourfoldRotatedTile: { + + prototype: CIFourfoldRotatedTile; + + customAttributes?(): NSDictionary; +}; + +interface CIFourfoldTranslatedTile extends CIFilterProtocol { + + acuteAngle: number; + + angle: number; + + center: CGPoint; + + inputImage: CIImage; + + width: number; +} +declare var CIFourfoldTranslatedTile: { + + prototype: CIFourfoldTranslatedTile; + + customAttributes?(): NSDictionary; +}; + +interface CIGaborGradients extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CIGaborGradients: { + + prototype: CIGaborGradients; + + customAttributes?(): NSDictionary; +}; + +interface CIGammaAdjust extends CIFilterProtocol { + + inputImage: CIImage; + + power: number; +} +declare var CIGammaAdjust: { + + prototype: CIGammaAdjust; + + customAttributes?(): NSDictionary; +}; + +interface CIGaussianBlur extends CIFilterProtocol { + + inputImage: CIImage; + + radius: number; +} +declare var CIGaussianBlur: { + + prototype: CIGaussianBlur; + + customAttributes?(): NSDictionary; +}; + +interface CIGaussianGradient extends CIFilterProtocol { + + center: CGPoint; + + color0: CIColor; + + color1: CIColor; + + radius: number; +} +declare var CIGaussianGradient: { + + prototype: CIGaussianGradient; + + customAttributes?(): NSDictionary; +}; + +interface CIGlideReflectedTile extends CIFilterProtocol { + + angle: number; + + center: CGPoint; + + inputImage: CIImage; + + width: number; +} +declare var CIGlideReflectedTile: { + + prototype: CIGlideReflectedTile; + + customAttributes?(): NSDictionary; +}; + +interface CIGloom extends CIFilterProtocol { + + inputImage: CIImage; + + intensity: number; + + radius: number; +} +declare var CIGloom: { + + prototype: CIGloom; + + customAttributes?(): NSDictionary; +}; + +interface CIHatchedScreen extends CIFilterProtocol { + + angle: number; + + center: CGPoint; + + inputImage: CIImage; + + sharpness: number; + + width: number; +} +declare var CIHatchedScreen: { + + prototype: CIHatchedScreen; + + customAttributes?(): NSDictionary; +}; + +interface CIHeightFieldFromMask extends CIFilterProtocol { + + inputImage: CIImage; + + radius: number; +} +declare var CIHeightFieldFromMask: { + + prototype: CIHeightFieldFromMask; + + customAttributes?(): NSDictionary; +}; + +interface CIHexagonalPixellate extends CIFilterProtocol { + + center: CGPoint; + + inputImage: CIImage; + + scale: number; +} +declare var CIHexagonalPixellate: { + + prototype: CIHexagonalPixellate; + + customAttributes?(): NSDictionary; +}; + +interface CIHighlightShadowAdjust extends CIFilterProtocol { + + highlightAmount: number; + + inputImage: CIImage; + + radius: number; + + shadowAmount: number; +} +declare var CIHighlightShadowAdjust: { + + prototype: CIHighlightShadowAdjust; + + customAttributes?(): NSDictionary; +}; + +interface CIHueAdjust extends CIFilterProtocol { + + angle: number; + + inputImage: CIImage; +} +declare var CIHueAdjust: { + + prototype: CIHueAdjust; + + customAttributes?(): NSDictionary; +}; + +interface CIHueSaturationValueGradient extends CIFilterProtocol { + + colorSpace: any; + + dither: number; + + radius: number; + + softness: number; + + value: number; +} +declare var CIHueSaturationValueGradient: { + + prototype: CIHueSaturationValueGradient; + + customAttributes?(): NSDictionary; +}; + +declare class CIImage extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): CIImage; // inherited from NSObject + + static emptyImage(): CIImage; + + static imageWithBitmapDataBytesPerRowSizeFormatColorSpace(data: NSData, bytesPerRow: number, size: CGSize, format: number, colorSpace: any): CIImage; + + static imageWithCGImage(image: any): CIImage; + + static imageWithCGImageOptions(image: any, options: NSDictionary): CIImage; + + static imageWithCGImageSourceIndexOptions(source: any, index: number, dict: NSDictionary): CIImage; + + static imageWithCVImageBuffer(imageBuffer: any): CIImage; + + static imageWithCVImageBufferOptions(imageBuffer: any, options: NSDictionary): CIImage; + + static imageWithCVPixelBuffer(pixelBuffer: any): CIImage; + + static imageWithCVPixelBufferOptions(pixelBuffer: any, options: NSDictionary): CIImage; + + static imageWithColor(color: CIColor): CIImage; + + static imageWithContentsOfURL(url: NSURL): CIImage; + + static imageWithContentsOfURLOptions(url: NSURL, options: NSDictionary): CIImage; + + static imageWithData(data: NSData): CIImage; + + static imageWithDataOptions(data: NSData, options: NSDictionary): CIImage; + + static imageWithDepthData(data: AVDepthData): CIImage; + + static imageWithDepthDataOptions(data: AVDepthData, options: NSDictionary): CIImage; + + static imageWithIOSurface(surface: any): CIImage; + + static imageWithIOSurfaceOptions(surface: any, options: NSDictionary): CIImage; + + static imageWithImageProviderSizeFormatColorSpaceOptions(p: any, width: number, height: number, f: number, cs: any, options: NSDictionary): CIImage; + + static imageWithMTLTextureOptions(texture: MTLTexture, options: NSDictionary): CIImage; + + static imageWithPortaitEffectsMatte(matte: AVPortraitEffectsMatte): CIImage; + + static imageWithPortaitEffectsMatteOptions(matte: AVPortraitEffectsMatte, options: NSDictionary): CIImage; + + static imageWithSemanticSegmentationMatte(matte: AVSemanticSegmentationMatte): CIImage; + + static imageWithSemanticSegmentationMatteOptions(matte: AVSemanticSegmentationMatte, options: NSDictionary): CIImage; + + static imageWithTextureSizeFlippedColorSpace(name: number, size: CGSize, flipped: boolean, colorSpace: any): CIImage; + + static new(): CIImage; // inherited from NSObject + + readonly CGImage: any; + + readonly colorSpace: any; + + readonly depthData: AVDepthData; + + readonly extent: CGRect; + + readonly pixelBuffer: any; + + readonly portraitEffectsMatte: AVPortraitEffectsMatte; + + readonly properties: NSDictionary; + + readonly semanticSegmentationMatte: AVSemanticSegmentationMatte; + + readonly url: NSURL; + + static readonly blackImage: CIImage; + + static readonly blueImage: CIImage; + + static readonly clearImage: CIImage; + + static readonly cyanImage: CIImage; + + static readonly grayImage: CIImage; + + static readonly greenImage: CIImage; + + static readonly magentaImage: CIImage; + + static readonly redImage: CIImage; + + static readonly whiteImage: CIImage; + + static readonly yellowImage: CIImage; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { bitmapData: NSData; bytesPerRow: number; size: CGSize; format: number; colorSpace: any; }); + + constructor(o: { CGImage: any; }); + + constructor(o: { CGImage: any; options: NSDictionary; }); + + constructor(o: { CGImageSource: any; index: number; options: NSDictionary; }); + + constructor(o: { CVImageBuffer: any; }); + + constructor(o: { CVImageBuffer: any; options: NSDictionary; }); + + constructor(o: { CVPixelBuffer: any; }); + + constructor(o: { CVPixelBuffer: any; options: NSDictionary; }); + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { color: CIColor; }); + + constructor(o: { contentsOfURL: NSURL; }); + + constructor(o: { contentsOfURL: NSURL; options: NSDictionary; }); + + constructor(o: { data: NSData; }); + + constructor(o: { data: NSData; options: NSDictionary; }); + + constructor(o: { depthData: AVDepthData; }); + + constructor(o: { depthData: AVDepthData; options: NSDictionary; }); + + constructor(o: { IOSurface: any; }); + + constructor(o: { IOSurface: any; options: NSDictionary; }); + + constructor(o: { image: UIImage; }); + + constructor(o: { image: UIImage; options: NSDictionary; }); + + constructor(o: { imageProvider: any; size: number; format: number; colorSpace: number; options: any; }); + + constructor(o: { MTLTexture: MTLTexture; options: NSDictionary; }); + + constructor(o: { portaitEffectsMatte: AVPortraitEffectsMatte; }); + + constructor(o: { portaitEffectsMatte: AVPortraitEffectsMatte; options: NSDictionary; }); + + constructor(o: { semanticSegmentationMatte: AVSemanticSegmentationMatte; }); + + constructor(o: { semanticSegmentationMatte: AVSemanticSegmentationMatte; options: NSDictionary; }); + + constructor(o: { texture: number; size: CGSize; flipped: boolean; colorSpace: any; }); + + autoAdjustmentFilters(): NSArray; + + autoAdjustmentFiltersWithOptions(options: NSDictionary): NSArray; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + imageByApplyingCGOrientation(orientation: CGImagePropertyOrientation): CIImage; + + imageByApplyingFilter(filterName: string): CIImage; + + imageByApplyingFilterWithInputParameters(filterName: string, params: NSDictionary): CIImage; + + imageByApplyingGaussianBlurWithSigma(sigma: number): CIImage; + + imageByApplyingOrientation(orientation: number): CIImage; + + imageByApplyingTransform(matrix: CGAffineTransform): CIImage; + + imageByApplyingTransformHighQualityDownsample(matrix: CGAffineTransform, highQualityDownsample: boolean): CIImage; + + imageByClampingToExtent(): CIImage; + + imageByClampingToRect(rect: CGRect): CIImage; + + imageByColorMatchingColorSpaceToWorkingSpace(colorSpace: any): CIImage; + + imageByColorMatchingWorkingSpaceToColorSpace(colorSpace: any): CIImage; + + imageByCompositingOverImage(dest: CIImage): CIImage; + + imageByCroppingToRect(rect: CGRect): CIImage; imageByInsertingIntermediate(cache: boolean): CIImage; - imageByPremultiplyingAlpha(): CIImage; + imageByPremultiplyingAlpha(): CIImage; + + imageBySamplingLinear(): CIImage; + + imageBySamplingNearest(): CIImage; + + imageBySettingAlphaOneInExtent(extent: CGRect): CIImage; + + imageBySettingProperties(properties: NSDictionary): CIImage; + + imageByUnpremultiplyingAlpha(): CIImage; + + imageTransformForCGOrientation(orientation: CGImagePropertyOrientation): CGAffineTransform; + + imageTransformForOrientation(orientation: number): CGAffineTransform; + + initWithBitmapDataBytesPerRowSizeFormatColorSpace(data: NSData, bytesPerRow: number, size: CGSize, format: number, colorSpace: any): this; + + initWithCGImage(image: any): this; + + initWithCGImageOptions(image: any, options: NSDictionary): this; + + initWithCGImageSourceIndexOptions(source: any, index: number, dict: NSDictionary): this; + + initWithCVImageBuffer(imageBuffer: any): this; + + initWithCVImageBufferOptions(imageBuffer: any, options: NSDictionary): this; + + initWithCVPixelBuffer(pixelBuffer: any): this; + + initWithCVPixelBufferOptions(pixelBuffer: any, options: NSDictionary): this; + + initWithCoder(coder: NSCoder): this; + + initWithColor(color: CIColor): this; + + initWithContentsOfURL(url: NSURL): this; + + initWithContentsOfURLOptions(url: NSURL, options: NSDictionary): this; + + initWithData(data: NSData): this; + + initWithDataOptions(data: NSData, options: NSDictionary): this; + + initWithDepthData(data: AVDepthData): this; + + initWithDepthDataOptions(data: AVDepthData, options: NSDictionary): this; + + initWithIOSurface(surface: any): this; + + initWithIOSurfaceOptions(surface: any, options: NSDictionary): this; + + initWithImage(image: UIImage): this; + + initWithImageOptions(image: UIImage, options: NSDictionary): this; + + initWithImageProviderSizeFormatColorSpaceOptions(p: any, width: number, height: number, f: number, cs: any, options: NSDictionary): this; + + initWithMTLTextureOptions(texture: MTLTexture, options: NSDictionary): this; + + initWithPortaitEffectsMatte(matte: AVPortraitEffectsMatte): this; + + initWithPortaitEffectsMatteOptions(matte: AVPortraitEffectsMatte, options: NSDictionary): this; + + initWithSemanticSegmentationMatte(matte: AVSemanticSegmentationMatte): this; + + initWithSemanticSegmentationMatteOptions(matte: AVSemanticSegmentationMatte, options: NSDictionary): this; + + initWithTextureSizeFlippedColorSpace(name: number, size: CGSize, flipped: boolean, colorSpace: any): this; + + regionOfInterestForImageInRect(image: CIImage, rect: CGRect): CGRect; +} + +declare class CIImageAccumulator extends NSObject { + + static alloc(): CIImageAccumulator; // inherited from NSObject + + static imageAccumulatorWithExtentFormat(extent: CGRect, format: number): CIImageAccumulator; + + static imageAccumulatorWithExtentFormatColorSpace(extent: CGRect, format: number, colorSpace: any): CIImageAccumulator; + + static new(): CIImageAccumulator; // inherited from NSObject + + readonly extent: CGRect; + + readonly format: number; + + constructor(o: { extent: CGRect; format: number; }); + + constructor(o: { extent: CGRect; format: number; colorSpace: any; }); + + clear(): void; + + image(): CIImage; + + initWithExtentFormat(extent: CGRect, format: number): this; + + initWithExtentFormatColorSpace(extent: CGRect, format: number, colorSpace: any): this; + + setImage(image: CIImage): void; + + setImageDirtyRect(image: CIImage, dirtyRect: CGRect): void; +} + +interface CIImageProcessorInput { + + baseAddress: interop.Pointer | interop.Reference; + + bytesPerRow: number; + + format: number; + + metalTexture: MTLTexture; + + pixelBuffer: any; + + region: CGRect; + + surface: any; +} +declare var CIImageProcessorInput: { + + prototype: CIImageProcessorInput; +}; + +declare class CIImageProcessorKernel extends NSObject { + + static alloc(): CIImageProcessorKernel; // inherited from NSObject + + static applyWithExtentInputsArgumentsError(extent: CGRect, inputs: NSArray | CIImage[], args: NSDictionary): CIImage; + + static formatForInputAtIndex(input: number): number; + + static new(): CIImageProcessorKernel; // inherited from NSObject + + static processWithInputsArgumentsOutputError(inputs: NSArray | CIImageProcessorInput[], _arguments: NSDictionary, output: CIImageProcessorOutput): boolean; + + static roiForInputArgumentsOutputRect(input: number, _arguments: NSDictionary, outputRect: CGRect): CGRect; + + static readonly outputFormat: number; + + static readonly outputIsOpaque: boolean; + + static readonly synchronizeInputs: boolean; +} + +interface CIImageProcessorOutput { + + baseAddress: interop.Pointer | interop.Reference; + + bytesPerRow: number; + + format: number; + + metalCommandBuffer: MTLCommandBuffer; + + metalTexture: MTLTexture; + + pixelBuffer: any; + + region: CGRect; + + surface: any; +} +declare var CIImageProcessorOutput: { + + prototype: CIImageProcessorOutput; +}; + +interface CIKaleidoscope extends CIFilterProtocol { + + angle: number; + + center: CGPoint; + + count: number; + + inputImage: CIImage; +} +declare var CIKaleidoscope: { + + prototype: CIKaleidoscope; + + customAttributes?(): NSDictionary; +}; + +declare class CIKernel extends NSObject { + + static alloc(): CIKernel; // inherited from NSObject + + static kernelWithFunctionNameFromMetalLibraryDataError(name: string, data: NSData): CIKernel; + + static kernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name: string, data: NSData, format: number): CIKernel; + + static kernelWithString(string: string): CIKernel; + + static kernelsWithString(string: string): NSArray; + + static new(): CIKernel; // inherited from NSObject + + readonly name: string; + + applyWithExtentRoiCallbackArguments(extent: CGRect, callback: (p1: number, p2: CGRect) => CGRect, args: NSArray | any[]): CIImage; + + setROISelector(method: string): void; +} + +interface CIKeystoneCorrectionCombined extends CIFourCoordinateGeometryFilter { + + focalLength: number; +} +declare var CIKeystoneCorrectionCombined: { + + prototype: CIKeystoneCorrectionCombined; + + customAttributes?(): NSDictionary; +}; + +interface CIKeystoneCorrectionHorizontal extends CIFourCoordinateGeometryFilter { + + focalLength: number; +} +declare var CIKeystoneCorrectionHorizontal: { + + prototype: CIKeystoneCorrectionHorizontal; + + customAttributes?(): NSDictionary; +}; + +interface CIKeystoneCorrectionVertical extends CIFourCoordinateGeometryFilter { + + focalLength: number; +} +declare var CIKeystoneCorrectionVertical: { + + prototype: CIKeystoneCorrectionVertical; + + customAttributes?(): NSDictionary; +}; + +interface CILabDeltaE extends CIFilterProtocol { + + image2: CIImage; + + inputImage: CIImage; +} +declare var CILabDeltaE: { + + prototype: CILabDeltaE; + + customAttributes?(): NSDictionary; +}; + +interface CILanczosScaleTransform extends CIFilterProtocol { + + aspectRatio: number; + + inputImage: CIImage; + + scale: number; +} +declare var CILanczosScaleTransform: { + + prototype: CILanczosScaleTransform; + + customAttributes?(): NSDictionary; +}; + +interface CILenticularHaloGenerator extends CIFilterProtocol { + + center: CGPoint; + + color: CIColor; + + haloOverlap: number; + + haloRadius: number; + + haloWidth: number; + + striationContrast: number; + + striationStrength: number; + + time: number; +} +declare var CILenticularHaloGenerator: { + + prototype: CILenticularHaloGenerator; + + customAttributes?(): NSDictionary; +}; + +interface CILineOverlay extends CIFilterProtocol { + + NRNoiseLevel: number; + + NRSharpness: number; + + contrast: number; + + edgeIntensity: number; + + inputImage: CIImage; + + threshold: number; +} +declare var CILineOverlay: { + + prototype: CILineOverlay; + + customAttributes?(): NSDictionary; +}; + +interface CILineScreen extends CIFilterProtocol { + + angle: number; + + center: CGPoint; + + inputImage: CIImage; + + sharpness: number; + + width: number; +} +declare var CILineScreen: { + + prototype: CILineScreen; + + customAttributes?(): NSDictionary; +}; + +interface CILinearGradient extends CIFilterProtocol { + + color0: CIColor; + + color1: CIColor; + + point0: CGPoint; + + point1: CGPoint; +} +declare var CILinearGradient: { + + prototype: CILinearGradient; + + customAttributes?(): NSDictionary; +}; + +interface CILinearToSRGBToneCurve extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CILinearToSRGBToneCurve: { + + prototype: CILinearToSRGBToneCurve; + + customAttributes?(): NSDictionary; +}; + +interface CIMaskToAlpha extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CIMaskToAlpha: { + + prototype: CIMaskToAlpha; + + customAttributes?(): NSDictionary; +}; + +interface CIMaskedVariableBlur extends CIFilterProtocol { + + inputImage: CIImage; + + mask: CIImage; + + radius: number; +} +declare var CIMaskedVariableBlur: { + + prototype: CIMaskedVariableBlur; + + customAttributes?(): NSDictionary; +}; + +interface CIMaximumComponent extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CIMaximumComponent: { + + prototype: CIMaximumComponent; + + customAttributes?(): NSDictionary; +}; + +interface CIMedian extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CIMedian: { + + prototype: CIMedian; + + customAttributes?(): NSDictionary; +}; + +interface CIMeshGenerator extends CIFilterProtocol { + + color: CIColor; + + mesh: NSArray; + + width: number; +} +declare var CIMeshGenerator: { + + prototype: CIMeshGenerator; + + customAttributes?(): NSDictionary; +}; + +interface CIMinimumComponent extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CIMinimumComponent: { + + prototype: CIMinimumComponent; + + customAttributes?(): NSDictionary; +}; + +interface CIMix extends CIFilterProtocol { + + amount: number; + + backgroundImage: CIImage; + + inputImage: CIImage; +} +declare var CIMix: { + + prototype: CIMix; + + customAttributes?(): NSDictionary; +}; + +interface CIModTransition extends CITransitionFilter { + + angle: number; + + center: CGPoint; + + compression: number; + + radius: number; +} +declare var CIModTransition: { + + prototype: CIModTransition; + + customAttributes?(): NSDictionary; +}; + +interface CIMorphologyGradient extends CIFilterProtocol { + + inputImage: CIImage; + + radius: number; +} +declare var CIMorphologyGradient: { + + prototype: CIMorphologyGradient; + + customAttributes?(): NSDictionary; +}; + +interface CIMorphologyMaximum extends CIFilterProtocol { + + inputImage: CIImage; + + radius: number; +} +declare var CIMorphologyMaximum: { + + prototype: CIMorphologyMaximum; + + customAttributes?(): NSDictionary; +}; + +interface CIMorphologyMinimum extends CIFilterProtocol { + + inputImage: CIImage; + + radius: number; +} +declare var CIMorphologyMinimum: { + + prototype: CIMorphologyMinimum; + + customAttributes?(): NSDictionary; +}; + +interface CIMorphologyRectangleMaximum extends CIFilterProtocol { + + height: number; + + inputImage: CIImage; + + width: number; +} +declare var CIMorphologyRectangleMaximum: { + + prototype: CIMorphologyRectangleMaximum; + + customAttributes?(): NSDictionary; +}; + +interface CIMorphologyRectangleMinimum extends CIFilterProtocol { + + height: number; + + inputImage: CIImage; + + width: number; +} +declare var CIMorphologyRectangleMinimum: { + + prototype: CIMorphologyRectangleMinimum; + + customAttributes?(): NSDictionary; +}; + +interface CIMotionBlur extends CIFilterProtocol { + + angle: number; + + inputImage: CIImage; + + radius: number; +} +declare var CIMotionBlur: { + + prototype: CIMotionBlur; + + customAttributes?(): NSDictionary; +}; + +interface CINoiseReduction extends CIFilterProtocol { + + inputImage: CIImage; + + noiseLevel: number; + + sharpness: number; +} +declare var CINoiseReduction: { + + prototype: CINoiseReduction; + + customAttributes?(): NSDictionary; +}; + +interface CIOpTile extends CIFilterProtocol { + + angle: number; + + center: CGPoint; + + inputImage: CIImage; + + scale: number; + + width: number; +} +declare var CIOpTile: { + + prototype: CIOpTile; + + customAttributes?(): NSDictionary; +}; + +interface CIPDF417BarcodeGenerator extends CIFilterProtocol { + + alwaysSpecifyCompaction: number; + + compactStyle: number; + + compactionMode: number; + + correctionLevel: number; + + dataColumns: number; + + maxHeight: number; + + maxWidth: number; + + message: NSData; + + minHeight: number; + + minWidth: number; + + preferredAspectRatio: number; + + rows: number; +} +declare var CIPDF417BarcodeGenerator: { + + prototype: CIPDF417BarcodeGenerator; + + customAttributes?(): NSDictionary; +}; + +declare class CIPDF417CodeDescriptor extends CIBarcodeDescriptor { + + static alloc(): CIPDF417CodeDescriptor; // inherited from NSObject + + static descriptorWithPayloadIsCompactRowCountColumnCount(errorCorrectedPayload: NSData, isCompact: boolean, rowCount: number, columnCount: number): CIPDF417CodeDescriptor; + + static new(): CIPDF417CodeDescriptor; // inherited from NSObject + + readonly columnCount: number; + + readonly errorCorrectedPayload: NSData; + + readonly isCompact: boolean; + + readonly rowCount: number; + + constructor(o: { payload: NSData; isCompact: boolean; rowCount: number; columnCount: number; }); + + initWithPayloadIsCompactRowCountColumnCount(errorCorrectedPayload: NSData, isCompact: boolean, rowCount: number, columnCount: number): this; +} + +interface CIPageCurlTransition extends CITransitionFilter { + + angle: number; + + backsideImage: CIImage; + + extent: CGRect; + + radius: number; + + shadingImage: CIImage; +} +declare var CIPageCurlTransition: { + + prototype: CIPageCurlTransition; + + customAttributes?(): NSDictionary; +}; + +interface CIPageCurlWithShadowTransition extends CITransitionFilter { + + angle: number; + + backsideImage: CIImage; + + extent: CGRect; + + radius: number; + + shadowAmount: number; + + shadowExtent: CGRect; + + shadowSize: number; +} +declare var CIPageCurlWithShadowTransition: { + + prototype: CIPageCurlWithShadowTransition; + + customAttributes?(): NSDictionary; +}; + +interface CIPaletteCentroid extends CIFilterProtocol { + + inputImage: CIImage; + + paletteImage: CIImage; + + perceptual: boolean; +} +declare var CIPaletteCentroid: { + + prototype: CIPaletteCentroid; + + customAttributes?(): NSDictionary; +}; + +interface CIPalettize extends CIFilterProtocol { + + inputImage: CIImage; + + paletteImage: CIImage; + + perceptual: boolean; +} +declare var CIPalettize: { + + prototype: CIPalettize; + + customAttributes?(): NSDictionary; +}; + +interface CIParallelogramTile extends CIFilterProtocol { + + acuteAngle: number; + + angle: number; + + center: CGPoint; + + inputImage: CIImage; + + width: number; +} +declare var CIParallelogramTile: { + + prototype: CIParallelogramTile; + + customAttributes?(): NSDictionary; +}; + +interface CIPerspectiveCorrection extends CIFourCoordinateGeometryFilter { + + crop: boolean; +} +declare var CIPerspectiveCorrection: { + + prototype: CIPerspectiveCorrection; + + customAttributes?(): NSDictionary; +}; + +interface CIPerspectiveRotate extends CIFilterProtocol { + + focalLength: number; + + inputImage: CIImage; + + pitch: number; + + roll: number; + + yaw: number; +} +declare var CIPerspectiveRotate: { + + prototype: CIPerspectiveRotate; + + customAttributes?(): NSDictionary; +}; + +interface CIPerspectiveTile extends CIFilterProtocol { + + bottomLeft: CGPoint; + + bottomRight: CGPoint; + + inputImage: CIImage; + + topLeft: CGPoint; + + topRight: CGPoint; +} +declare var CIPerspectiveTile: { + + prototype: CIPerspectiveTile; + + customAttributes?(): NSDictionary; +}; + +interface CIPerspectiveTransform extends CIFourCoordinateGeometryFilter { +} +declare var CIPerspectiveTransform: { + + prototype: CIPerspectiveTransform; + + customAttributes?(): NSDictionary; +}; + +interface CIPerspectiveTransformWithExtent extends CIFourCoordinateGeometryFilter { + + extent: CGRect; +} +declare var CIPerspectiveTransformWithExtent: { + + prototype: CIPerspectiveTransformWithExtent; + + customAttributes?(): NSDictionary; +}; + +interface CIPhotoEffect extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CIPhotoEffect: { + + prototype: CIPhotoEffect; + + customAttributes?(): NSDictionary; +}; + +interface CIPixellate extends CIFilterProtocol { + + center: CGPoint; + + inputImage: CIImage; + + scale: number; +} +declare var CIPixellate: { + + prototype: CIPixellate; + + customAttributes?(): NSDictionary; +}; + +interface CIPointillize extends CIFilterProtocol { + + center: CGPoint; + + inputImage: CIImage; + + radius: number; +} +declare var CIPointillize: { + + prototype: CIPointillize; - imageBySamplingLinear(): CIImage; + customAttributes?(): NSDictionary; +}; - imageBySamplingNearest(): CIImage; +declare class CIQRCodeDescriptor extends CIBarcodeDescriptor { - imageBySettingAlphaOneInExtent(extent: CGRect): CIImage; + static alloc(): CIQRCodeDescriptor; // inherited from NSObject - imageBySettingProperties(properties: NSDictionary): CIImage; + static descriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload: NSData, symbolVersion: number, maskPattern: number, errorCorrectionLevel: CIQRCodeErrorCorrectionLevel): CIQRCodeDescriptor; - imageByUnpremultiplyingAlpha(): CIImage; + static new(): CIQRCodeDescriptor; // inherited from NSObject - imageTransformForCGOrientation(orientation: CGImagePropertyOrientation): CGAffineTransform; + readonly errorCorrectedPayload: NSData; - imageTransformForOrientation(orientation: number): CGAffineTransform; + readonly errorCorrectionLevel: CIQRCodeErrorCorrectionLevel; - initWithBitmapDataBytesPerRowSizeFormatColorSpace(data: NSData, bytesPerRow: number, size: CGSize, format: number, colorSpace: any): this; + readonly maskPattern: number; - initWithCGImage(image: any): this; + readonly symbolVersion: number; - initWithCGImageOptions(image: any, options: NSDictionary): this; + constructor(o: { payload: NSData; symbolVersion: number; maskPattern: number; errorCorrectionLevel: CIQRCodeErrorCorrectionLevel; }); - initWithCVImageBuffer(imageBuffer: any): this; + initWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload: NSData, symbolVersion: number, maskPattern: number, errorCorrectionLevel: CIQRCodeErrorCorrectionLevel): this; +} - initWithCVImageBufferOptions(imageBuffer: any, options: NSDictionary): this; +declare const enum CIQRCodeErrorCorrectionLevel { - initWithCVPixelBuffer(pixelBuffer: any): this; + L = 76, - initWithCVPixelBufferOptions(pixelBuffer: any, options: NSDictionary): this; + M = 77, - initWithCoder(aDecoder: NSCoder): this; + Q = 81, - initWithColor(color: CIColor): this; + H = 72 +} - initWithContentsOfURL(url: NSURL): this; +declare class CIQRCodeFeature extends CIFeature implements NSCopying, NSSecureCoding { - initWithContentsOfURLOptions(url: NSURL, options: NSDictionary): this; + static alloc(): CIQRCodeFeature; // inherited from NSObject - initWithData(data: NSData): this; + static new(): CIQRCodeFeature; // inherited from NSObject - initWithDataOptions(data: NSData, options: NSDictionary): this; + readonly bottomLeft: CGPoint; - initWithDepthData(data: AVDepthData): this; + readonly bottomRight: CGPoint; - initWithDepthDataOptions(data: AVDepthData, options: NSDictionary): this; + readonly messageString: string; - initWithImage(image: UIImage): this; + readonly symbolDescriptor: CIQRCodeDescriptor; - initWithImageOptions(image: UIImage, options: NSDictionary): this; + readonly topLeft: CGPoint; - initWithImageProviderSizeFormatColorSpaceOptions(p: any, width: number, height: number, f: number, cs: any, options: NSDictionary): this; + readonly topRight: CGPoint; - initWithMTLTextureOptions(texture: MTLTexture, options: NSDictionary): this; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding - initWithPortaitEffectsMatte(matte: AVPortraitEffectsMatte): this; + constructor(o: { coder: NSCoder; }); // inherited from NSCoding - initWithPortaitEffectsMatteOptions(matte: AVPortraitEffectsMatte, options: NSDictionary): this; + copyWithZone(zone: interop.Pointer | interop.Reference): any; - initWithTextureSizeFlippedColorSpace(name: number, size: CGSize, flipped: boolean, colorSpace: any): this; + encodeWithCoder(coder: NSCoder): void; - regionOfInterestForImageInRect(image: CIImage, rect: CGRect): CGRect; + initWithCoder(coder: NSCoder): this; } -declare class CIImageAccumulator extends NSObject { +interface CIQRCodeGenerator extends CIFilterProtocol { - static alloc(): CIImageAccumulator; // inherited from NSObject + correctionLevel: string; - static imageAccumulatorWithExtentFormat(extent: CGRect, format: number): CIImageAccumulator; + message: NSData; +} +declare var CIQRCodeGenerator: { + + prototype: CIQRCodeGenerator; + + customAttributes?(): NSDictionary; +}; + +interface CIRadialGradient extends CIFilterProtocol { + + center: CGPoint; + + color0: CIColor; + + color1: CIColor; + + radius0: number; + + radius1: number; +} +declare var CIRadialGradient: { + + prototype: CIRadialGradient; + + customAttributes?(): NSDictionary; +}; + +interface CIRandomGenerator extends CIFilterProtocol { +} +declare var CIRandomGenerator: { + + prototype: CIRandomGenerator; + + customAttributes?(): NSDictionary; +}; + +declare class CIRectangleFeature extends CIFeature { + + static alloc(): CIRectangleFeature; // inherited from NSObject + + static new(): CIRectangleFeature; // inherited from NSObject + + readonly bottomLeft: CGPoint; + + readonly bottomRight: CGPoint; + + readonly topLeft: CGPoint; + + readonly topRight: CGPoint; +} + +declare class CIRenderDestination extends NSObject { + + static alloc(): CIRenderDestination; // inherited from NSObject + + static new(): CIRenderDestination; // inherited from NSObject + + alphaMode: CIRenderDestinationAlphaMode; + + blendKernel: CIBlendKernel; + + blendsInDestinationColorSpace: boolean; + + clamped: boolean; + + colorSpace: any; + + dithered: boolean; + + flipped: boolean; + + readonly height: number; + + readonly width: number; + + constructor(o: { bitmapData: interop.Pointer | interop.Reference; width: number; height: number; bytesPerRow: number; format: number; }); + + constructor(o: { GLTexture: number; target: number; width: number; height: number; }); + + constructor(o: { IOSurface: IOSurface; }); + + constructor(o: { MTLTexture: MTLTexture; commandBuffer: MTLCommandBuffer; }); + + constructor(o: { pixelBuffer: any; }); + + constructor(o: { width: number; height: number; pixelFormat: MTLPixelFormat; commandBuffer: MTLCommandBuffer; mtlTextureProvider: () => MTLTexture; }); + + initWithBitmapDataWidthHeightBytesPerRowFormat(data: interop.Pointer | interop.Reference, width: number, height: number, bytesPerRow: number, format: number): this; + + initWithGLTextureTargetWidthHeight(texture: number, target: number, width: number, height: number): this; + + initWithIOSurface(surface: IOSurface): this; + + initWithMTLTextureCommandBuffer(texture: MTLTexture, commandBuffer: MTLCommandBuffer): this; + + initWithPixelBuffer(pixelBuffer: any): this; + + initWithWidthHeightPixelFormatCommandBufferMtlTextureProvider(width: number, height: number, pixelFormat: MTLPixelFormat, commandBuffer: MTLCommandBuffer, block: () => MTLTexture): this; +} + +declare const enum CIRenderDestinationAlphaMode { + + None = 0, + + Premultiplied = 1, + + Unpremultiplied = 2 +} + +declare class CIRenderInfo extends NSObject { + + static alloc(): CIRenderInfo; // inherited from NSObject + + static new(): CIRenderInfo; // inherited from NSObject + + readonly kernelExecutionTime: number; + + readonly passCount: number; + + readonly pixelsProcessed: number; +} + +declare class CIRenderTask extends NSObject { + + static alloc(): CIRenderTask; // inherited from NSObject + + static new(): CIRenderTask; // inherited from NSObject + + waitUntilCompletedAndReturnError(): CIRenderInfo; +} + +interface CIRippleTransition extends CITransitionFilter { + + center: CGPoint; + + extent: CGRect; + + scale: number; + + shadingImage: CIImage; + + width: number; +} +declare var CIRippleTransition: { + + prototype: CIRippleTransition; + + customAttributes?(): NSDictionary; +}; + +interface CIRoundedRectangleGenerator extends CIFilterProtocol { + + color: CIColor; + + extent: CGRect; + + radius: number; +} +declare var CIRoundedRectangleGenerator: { + + prototype: CIRoundedRectangleGenerator; + + customAttributes?(): NSDictionary; +}; + +interface CISRGBToneCurveToLinear extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CISRGBToneCurveToLinear: { + + prototype: CISRGBToneCurveToLinear; + + customAttributes?(): NSDictionary; +}; + +interface CISaliencyMap extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CISaliencyMap: { + + prototype: CISaliencyMap; + + customAttributes?(): NSDictionary; +}; + +declare class CISampler extends NSObject implements NSCopying { + + static alloc(): CISampler; // inherited from NSObject + + static new(): CISampler; // inherited from NSObject + + static samplerWithImage(im: CIImage): CISampler; + + static samplerWithImageKeysAndValues(im: CIImage, key0: any): CISampler; + + static samplerWithImageOptions(im: CIImage, dict: NSDictionary): CISampler; + + readonly definition: CIFilterShape; + + readonly extent: CGRect; + + constructor(o: { image: CIImage; }); + + constructor(o: { image: CIImage; options: NSDictionary; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + initWithImage(im: CIImage): this; + + initWithImageOptions(im: CIImage, dict: NSDictionary): this; +} + +interface CISepiaTone extends CIFilterProtocol { + + inputImage: CIImage; + + intensity: number; +} +declare var CISepiaTone: { + + prototype: CISepiaTone; + + customAttributes?(): NSDictionary; +}; + +interface CIShadedMaterial extends CIFilterProtocol { + + inputImage: CIImage; + + scale: number; + + shadingImage: CIImage; +} +declare var CIShadedMaterial: { + + prototype: CIShadedMaterial; + + customAttributes?(): NSDictionary; +}; + +interface CISharpenLuminance extends CIFilterProtocol { + + inputImage: CIImage; + + radius: number; + + sharpness: number; +} +declare var CISharpenLuminance: { + + prototype: CISharpenLuminance; + + customAttributes?(): NSDictionary; +}; - static imageAccumulatorWithExtentFormatColorSpace(extent: CGRect, format: number, colorSpace: any): CIImageAccumulator; +interface CISixfoldReflectedTile extends CIFilterProtocol { - static new(): CIImageAccumulator; // inherited from NSObject + angle: number; - readonly extent: CGRect; + center: CGPoint; - readonly format: number; + inputImage: CIImage; - constructor(o: { extent: CGRect; format: number; }); + width: number; +} +declare var CISixfoldReflectedTile: { - constructor(o: { extent: CGRect; format: number; colorSpace: any; }); + prototype: CISixfoldReflectedTile; - clear(): void; + customAttributes?(): NSDictionary; +}; - image(): CIImage; +interface CISixfoldRotatedTile extends CIFilterProtocol { - initWithExtentFormat(extent: CGRect, format: number): this; + angle: number; - initWithExtentFormatColorSpace(extent: CGRect, format: number, colorSpace: any): this; + center: CGPoint; - setImage(image: CIImage): void; + inputImage: CIImage; - setImageDirtyRect(image: CIImage, dirtyRect: CGRect): void; + width: number; } +declare var CISixfoldRotatedTile: { -interface CIImageProcessorInput { + prototype: CISixfoldRotatedTile; - baseAddress: interop.Pointer | interop.Reference; + customAttributes?(): NSDictionary; +}; - bytesPerRow: number; +interface CISmoothLinearGradient extends CIFilterProtocol { - format: number; + color0: CIColor; - metalTexture: MTLTexture; + color1: CIColor; - pixelBuffer: any; + point0: CGPoint; - region: CGRect; + point1: CGPoint; } -declare var CIImageProcessorInput: { +declare var CISmoothLinearGradient: { - prototype: CIImageProcessorInput; + prototype: CISmoothLinearGradient; + + customAttributes?(): NSDictionary; }; -declare class CIImageProcessorKernel extends NSObject { +interface CISpotColor extends CIFilterProtocol { - static alloc(): CIImageProcessorKernel; // inherited from NSObject + centerColor1: CIColor; - static applyWithExtentInputsArgumentsError(extent: CGRect, inputs: NSArray | CIImage[], args: NSDictionary): CIImage; + centerColor2: CIColor; - static formatForInputAtIndex(input: number): number; + centerColor3: CIColor; - static new(): CIImageProcessorKernel; // inherited from NSObject + closeness1: number; - static processWithInputsArgumentsOutputError(inputs: NSArray | CIImageProcessorInput[], _arguments: NSDictionary, output: CIImageProcessorOutput): boolean; + closeness2: number; - static roiForInputArgumentsOutputRect(input: number, _arguments: NSDictionary, outputRect: CGRect): CGRect; + closeness3: number; - static readonly outputFormat: number; + contrast1: number; - static readonly outputIsOpaque: boolean; + contrast2: number; - static readonly synchronizeInputs: boolean; -} + contrast3: number; -interface CIImageProcessorOutput { + inputImage: CIImage; - baseAddress: interop.Pointer | interop.Reference; + replacementColor1: CIColor; - bytesPerRow: number; + replacementColor2: CIColor; - format: number; + replacementColor3: CIColor; +} +declare var CISpotColor: { - metalCommandBuffer: MTLCommandBuffer; + prototype: CISpotColor; - metalTexture: MTLTexture; + customAttributes?(): NSDictionary; +}; - pixelBuffer: any; +interface CISpotLight extends CIFilterProtocol { - region: CGRect; -} -declare var CIImageProcessorOutput: { + brightness: number; - prototype: CIImageProcessorOutput; -}; + color: CIColor; -declare class CIKernel extends NSObject { + concentration: number; - static alloc(): CIKernel; // inherited from NSObject + inputImage: CIImage; - static kernelWithFunctionNameFromMetalLibraryDataError(name: string, data: NSData): CIKernel; + lightPointsAt: CIVector; - static kernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name: string, data: NSData, format: number): CIKernel; + lightPosition: CIVector; +} +declare var CISpotLight: { - static kernelWithString(string: string): CIKernel; + prototype: CISpotLight; - static kernelsWithString(string: string): NSArray; + customAttributes?(): NSDictionary; +}; - static new(): CIKernel; // inherited from NSObject +interface CIStarShineGenerator extends CIFilterProtocol { - readonly name: string; + center: CGPoint; - applyWithExtentRoiCallbackArguments(extent: CGRect, callback: (p1: number, p2: CGRect) => CGRect, args: NSArray | any[]): CIImage; + color: CIColor; - setROISelector(method: string): void; -} + crossAngle: number; -declare class CIPDF417CodeDescriptor extends CIBarcodeDescriptor { + crossOpacity: number; - static alloc(): CIPDF417CodeDescriptor; // inherited from NSObject + crossScale: number; - static descriptorWithPayloadIsCompactRowCountColumnCount(errorCorrectedPayload: NSData, isCompact: boolean, rowCount: number, columnCount: number): CIPDF417CodeDescriptor; + crossWidth: number; - static new(): CIPDF417CodeDescriptor; // inherited from NSObject + epsilon: number; - readonly columnCount: number; + radius: number; +} +declare var CIStarShineGenerator: { - readonly errorCorrectedPayload: NSData; + prototype: CIStarShineGenerator; - readonly isCompact: boolean; + customAttributes?(): NSDictionary; +}; - readonly rowCount: number; +interface CIStraighten extends CIFilterProtocol { - constructor(o: { payload: NSData; isCompact: boolean; rowCount: number; columnCount: number; }); + angle: number; - initWithPayloadIsCompactRowCountColumnCount(errorCorrectedPayload: NSData, isCompact: boolean, rowCount: number, columnCount: number): this; + inputImage: CIImage; } +declare var CIStraighten: { -declare class CIQRCodeDescriptor extends CIBarcodeDescriptor { + prototype: CIStraighten; - static alloc(): CIQRCodeDescriptor; // inherited from NSObject + customAttributes?(): NSDictionary; +}; - static descriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload: NSData, symbolVersion: number, maskPattern: number, errorCorrectionLevel: CIQRCodeErrorCorrectionLevel): CIQRCodeDescriptor; +interface CIStripesGenerator extends CIFilterProtocol { - static new(): CIQRCodeDescriptor; // inherited from NSObject + center: CGPoint; - readonly errorCorrectedPayload: NSData; + color0: CIColor; - readonly errorCorrectionLevel: CIQRCodeErrorCorrectionLevel; + color1: CIColor; - readonly maskPattern: number; + sharpness: number; - readonly symbolVersion: number; + width: number; +} +declare var CIStripesGenerator: { - constructor(o: { payload: NSData; symbolVersion: number; maskPattern: number; errorCorrectionLevel: CIQRCodeErrorCorrectionLevel; }); + prototype: CIStripesGenerator; - initWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload: NSData, symbolVersion: number, maskPattern: number, errorCorrectionLevel: CIQRCodeErrorCorrectionLevel): this; -} + customAttributes?(): NSDictionary; +}; -declare const enum CIQRCodeErrorCorrectionLevel { +interface CISunbeamsGenerator extends CIFilterProtocol { - L = 76, + center: CGPoint; - M = 77, + color: CIColor; - Q = 81, + maxStriationRadius: number; - H = 72 + striationContrast: number; + + striationStrength: number; + + sunRadius: number; + + time: number; } +declare var CISunbeamsGenerator: { -declare class CIQRCodeFeature extends CIFeature implements NSCopying, NSSecureCoding { + prototype: CISunbeamsGenerator; - static alloc(): CIQRCodeFeature; // inherited from NSObject + customAttributes?(): NSDictionary; +}; - static new(): CIQRCodeFeature; // inherited from NSObject +interface CISwipeTransition extends CITransitionFilter { - readonly bottomLeft: CGPoint; + angle: number; - readonly bottomRight: CGPoint; + color: CIColor; - readonly messageString: string; + extent: CGRect; - readonly symbolDescriptor: CIQRCodeDescriptor; + opacity: number; - readonly topLeft: CGPoint; + width: number; +} +declare var CISwipeTransition: { - readonly topRight: CGPoint; + prototype: CISwipeTransition; - static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + customAttributes?(): NSDictionary; +}; - constructor(o: { coder: NSCoder; }); // inherited from NSCoding +interface CITemperatureAndTint extends CIFilterProtocol { - copyWithZone(zone: interop.Pointer | interop.Reference): any; + inputImage: CIImage; - encodeWithCoder(aCoder: NSCoder): void; + neutral: CIVector; - initWithCoder(aDecoder: NSCoder): this; + targetNeutral: CIVector; } +declare var CITemperatureAndTint: { -declare class CIRectangleFeature extends CIFeature { + prototype: CITemperatureAndTint; - static alloc(): CIRectangleFeature; // inherited from NSObject + customAttributes?(): NSDictionary; +}; - static new(): CIRectangleFeature; // inherited from NSObject +declare class CITextFeature extends CIFeature { + + static alloc(): CITextFeature; // inherited from NSObject + + static new(): CITextFeature; // inherited from NSObject readonly bottomLeft: CGPoint; readonly bottomRight: CGPoint; + readonly subFeatures: NSArray; + readonly topLeft: CGPoint; readonly topRight: CGPoint; } -declare class CIRenderDestination extends NSObject { - - static alloc(): CIRenderDestination; // inherited from NSObject - - static new(): CIRenderDestination; // inherited from NSObject - - alphaMode: CIRenderDestinationAlphaMode; - - blendKernel: CIBlendKernel; +interface CITextImageGenerator extends CIFilterProtocol { - blendsInDestinationColorSpace: boolean; + fontName: string; - clamped: boolean; + fontSize: number; - colorSpace: any; + scaleFactor: number; - dithered: boolean; + text: string; +} +declare var CITextImageGenerator: { - flipped: boolean; + prototype: CITextImageGenerator; - readonly height: number; + customAttributes?(): NSDictionary; +}; - readonly width: number; +interface CIThermal extends CIFilterProtocol { - constructor(o: { bitmapData: interop.Pointer | interop.Reference; width: number; height: number; bytesPerRow: number; format: number; }); + inputImage: CIImage; +} +declare var CIThermal: { - constructor(o: { GLTexture: number; target: number; width: number; height: number; }); + prototype: CIThermal; - constructor(o: { MTLTexture: MTLTexture; commandBuffer: MTLCommandBuffer; }); + customAttributes?(): NSDictionary; +}; - constructor(o: { pixelBuffer: any; }); +interface CIToneCurve extends CIFilterProtocol { - constructor(o: { width: number; height: number; pixelFormat: MTLPixelFormat; commandBuffer: MTLCommandBuffer; mtlTextureProvider: () => MTLTexture; }); + inputImage: CIImage; - initWithBitmapDataWidthHeightBytesPerRowFormat(data: interop.Pointer | interop.Reference, width: number, height: number, bytesPerRow: number, format: number): this; + point0: CGPoint; - initWithGLTextureTargetWidthHeight(texture: number, target: number, width: number, height: number): this; + point1: CGPoint; - initWithMTLTextureCommandBuffer(texture: MTLTexture, commandBuffer: MTLCommandBuffer): this; + point2: CGPoint; - initWithPixelBuffer(pixelBuffer: any): this; + point3: CGPoint; - initWithWidthHeightPixelFormatCommandBufferMtlTextureProvider(width: number, height: number, pixelFormat: MTLPixelFormat, commandBuffer: MTLCommandBuffer, block: () => MTLTexture): this; + point4: CGPoint; } +declare var CIToneCurve: { -declare const enum CIRenderDestinationAlphaMode { + prototype: CIToneCurve; - None = 0, + customAttributes?(): NSDictionary; +}; - Premultiplied = 1, +interface CITransitionFilter extends CIFilterProtocol { - Unpremultiplied = 2 -} + inputImage: CIImage; -declare class CIRenderInfo extends NSObject { + targetImage: CIImage; - static alloc(): CIRenderInfo; // inherited from NSObject + time: number; +} +declare var CITransitionFilter: { - static new(): CIRenderInfo; // inherited from NSObject + prototype: CITransitionFilter; - readonly kernelExecutionTime: number; + customAttributes?(): NSDictionary; +}; - readonly passCount: number; +interface CITriangleKaleidoscope extends CIFilterProtocol { - readonly pixelsProcessed: number; -} + decay: number; -declare class CIRenderTask extends NSObject { + inputImage: CIImage; - static alloc(): CIRenderTask; // inherited from NSObject + point: CGPoint; - static new(): CIRenderTask; // inherited from NSObject + rotation: number; - waitUntilCompletedAndReturnError(): CIRenderInfo; + size: number; } +declare var CITriangleKaleidoscope: { -declare class CISampler extends NSObject implements NSCopying { + prototype: CITriangleKaleidoscope; - static alloc(): CISampler; // inherited from NSObject + customAttributes?(): NSDictionary; +}; - static new(): CISampler; // inherited from NSObject +interface CITriangleTile extends CIFilterProtocol { - static samplerWithImage(im: CIImage): CISampler; + angle: number; - static samplerWithImageKeysAndValues(im: CIImage, key0: any): CISampler; + center: CGPoint; - static samplerWithImageOptions(im: CIImage, dict: NSDictionary): CISampler; + inputImage: CIImage; - readonly definition: CIFilterShape; + width: number; +} +declare var CITriangleTile: { - readonly extent: CGRect; + prototype: CITriangleTile; - constructor(o: { image: CIImage; }); + customAttributes?(): NSDictionary; +}; - constructor(o: { image: CIImage; options: NSDictionary; }); +interface CITwelvefoldReflectedTile extends CIFilterProtocol { - copyWithZone(zone: interop.Pointer | interop.Reference): any; + angle: number; - initWithImage(im: CIImage): this; + center: CGPoint; - initWithImageOptions(im: CIImage, dict: NSDictionary): this; + inputImage: CIImage; + + width: number; } +declare var CITwelvefoldReflectedTile: { -declare class CITextFeature extends CIFeature { + prototype: CITwelvefoldReflectedTile; - static alloc(): CITextFeature; // inherited from NSObject + customAttributes?(): NSDictionary; +}; - static new(): CITextFeature; // inherited from NSObject +interface CIUnsharpMask extends CIFilterProtocol { - readonly bottomLeft: CGPoint; + inputImage: CIImage; - readonly bottomRight: CGPoint; + intensity: number; - readonly subFeatures: NSArray; + radius: number; +} +declare var CIUnsharpMask: { - readonly topLeft: CGPoint; + prototype: CIUnsharpMask; - readonly topRight: CGPoint; -} + customAttributes?(): NSDictionary; +}; declare class CIVector extends NSObject implements NSCopying, NSSecureCoding { @@ -1160,7 +3780,7 @@ declare class CIVector extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithCGAffineTransform(r: CGAffineTransform): this; @@ -1168,7 +3788,7 @@ declare class CIVector extends NSObject implements NSCopying, NSSecureCoding { initWithCGRect(r: CGRect): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithString(representation: string): this; @@ -1185,6 +3805,53 @@ declare class CIVector extends NSObject implements NSCopying, NSSecureCoding { valueAtIndex(index: number): number; } +interface CIVibrance extends CIFilterProtocol { + + amount: number; + + inputImage: CIImage; +} +declare var CIVibrance: { + + prototype: CIVibrance; + + customAttributes?(): NSDictionary; +}; + +interface CIVignette extends CIFilterProtocol { + + inputImage: CIImage; + + intensity: number; + + radius: number; +} +declare var CIVignette: { + + prototype: CIVignette; + + customAttributes?(): NSDictionary; +}; + +interface CIVignetteEffect extends CIFilterProtocol { + + center: CGPoint; + + falloff: number; + + inputImage: CIImage; + + intensity: number; + + radius: number; +} +declare var CIVignetteEffect: { + + prototype: CIVignetteEffect; + + customAttributes?(): NSDictionary; +}; + declare class CIWarpKernel extends CIKernel { static alloc(): CIWarpKernel; // inherited from NSObject @@ -1200,6 +3867,45 @@ declare class CIWarpKernel extends CIKernel { applyWithExtentRoiCallbackInputImageArguments(extent: CGRect, callback: (p1: number, p2: CGRect) => CGRect, image: CIImage, args: NSArray | any[]): CIImage; } +interface CIWhitePointAdjust extends CIFilterProtocol { + + color: CIColor; + + inputImage: CIImage; +} +declare var CIWhitePointAdjust: { + + prototype: CIWhitePointAdjust; + + customAttributes?(): NSDictionary; +}; + +interface CIXRay extends CIFilterProtocol { + + inputImage: CIImage; +} +declare var CIXRay: { + + prototype: CIXRay; + + customAttributes?(): NSDictionary; +}; + +interface CIZoomBlur extends CIFilterProtocol { + + amount: number; + + center: CGPoint; + + inputImage: CIImage; +} +declare var CIZoomBlur: { + + prototype: CIZoomBlur; + + customAttributes?(): NSDictionary; +}; + declare var kCIActiveKeys: string; declare var kCIAttributeClass: string; @@ -1310,6 +4016,8 @@ declare var kCICategoryTransition: string; declare var kCICategoryVideo: string; +declare var kCIContextAllowLowPower: string; + declare var kCIContextCacheIntermediates: string; declare var kCIContextHighQualityDownsample: string; @@ -1398,6 +4106,12 @@ declare var kCIImageAuxiliaryDisparity: string; declare var kCIImageAuxiliaryPortraitEffectsMatte: string; +declare var kCIImageAuxiliarySemanticSegmentationHairMatte: string; + +declare var kCIImageAuxiliarySemanticSegmentationSkinMatte: string; + +declare var kCIImageAuxiliarySemanticSegmentationTeethMatte: string; + declare var kCIImageColorSpace: string; declare var kCIImageNearestSampling: string; @@ -1412,12 +4126,20 @@ declare var kCIImageRepresentationAVDepthData: string; declare var kCIImageRepresentationAVPortraitEffectsMatte: string; +declare var kCIImageRepresentationAVSemanticSegmentationMattes: string; + declare var kCIImageRepresentationDepthImage: string; declare var kCIImageRepresentationDisparityImage: string; declare var kCIImageRepresentationPortraitEffectsMatteImage: string; +declare var kCIImageRepresentationSemanticSegmentationHairMatteImage: string; + +declare var kCIImageRepresentationSemanticSegmentationSkinMatteImage: string; + +declare var kCIImageRepresentationSemanticSegmentationTeethMatteImage: string; + declare var kCIInputAllowDraftModeKey: string; declare var kCIInputAmountKey: string; @@ -1458,6 +4180,8 @@ declare var kCIInputEVKey: string; declare var kCIInputEnableChromaticNoiseTrackingKey: string; +declare var kCIInputEnableEDRModeKey: string; + declare var kCIInputEnableSharpeningKey: string; declare var kCIInputEnableVendorLensCorrectionKey: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreLocation.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreLocation.d.ts index dcbe39a379..e5193b8160 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreLocation.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreLocation.d.ts @@ -33,6 +33,8 @@ declare class CLBeacon extends NSObject implements NSCopying, NSSecureCoding { static new(): CLBeacon; // inherited from NSObject + readonly UUID: NSUUID; + readonly accuracy: number; readonly major: number; @@ -45,15 +47,52 @@ declare class CLBeacon extends NSObject implements NSCopying, NSSecureCoding { readonly rssi: number; + readonly timestamp: Date; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; +} + +declare class CLBeaconIdentityConstraint extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): CLBeaconIdentityConstraint; // inherited from NSObject + + static new(): CLBeaconIdentityConstraint; // inherited from NSObject + + readonly UUID: NSUUID; + + readonly major: number; + + readonly minor: number; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { UUID: NSUUID; }); + + constructor(o: { UUID: NSUUID; major: number; }); + + constructor(o: { UUID: NSUUID; major: number; minor: number; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithUUID(uuid: NSUUID): this; + + initWithUUIDMajor(uuid: NSUUID, major: number): this; + + initWithUUIDMajorMinor(uuid: NSUUID, major: number, minor: number): this; } declare class CLBeaconRegion extends CLRegion { @@ -62,6 +101,10 @@ declare class CLBeaconRegion extends CLRegion { static new(): CLBeaconRegion; // inherited from NSObject + readonly UUID: NSUUID; + + readonly beaconIdentityConstraint: CLBeaconIdentityConstraint; + readonly major: number; readonly minor: number; @@ -70,18 +113,34 @@ declare class CLBeaconRegion extends CLRegion { readonly proximityUUID: NSUUID; + constructor(o: { beaconIdentityConstraint: CLBeaconIdentityConstraint; identifier: string; }); + constructor(o: { proximityUUID: NSUUID; identifier: string; }); constructor(o: { proximityUUID: NSUUID; major: number; identifier: string; }); constructor(o: { proximityUUID: NSUUID; major: number; minor: number; identifier: string; }); + constructor(o: { UUID: NSUUID; identifier: string; }); + + constructor(o: { UUID: NSUUID; major: number; identifier: string; }); + + constructor(o: { UUID: NSUUID; major: number; minor: number; identifier: string; }); + + initWithBeaconIdentityConstraintIdentifier(beaconIdentityConstraint: CLBeaconIdentityConstraint, identifier: string): this; + initWithProximityUUIDIdentifier(proximityUUID: NSUUID, identifier: string): this; initWithProximityUUIDMajorIdentifier(proximityUUID: NSUUID, major: number, identifier: string): this; initWithProximityUUIDMajorMinorIdentifier(proximityUUID: NSUUID, major: number, minor: number, identifier: string): this; + initWithUUIDIdentifier(uuid: NSUUID, identifier: string): this; + + initWithUUIDMajorIdentifier(uuid: NSUUID, major: number, identifier: string): this; + + initWithUUIDMajorMinorIdentifier(uuid: NSUUID, major: number, minor: number, identifier: string): this; + peripheralDataWithMeasuredPower(measuredPower: number): NSMutableDictionary; } @@ -166,9 +225,9 @@ declare class CLFloor extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class CLGeocoder extends NSObject { @@ -224,9 +283,9 @@ declare class CLHeading extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class CLLocation extends NSObject implements CKRecordValue, NSCopying, NSSecureCoding { @@ -281,11 +340,11 @@ declare class CLLocation extends NSObject implements CKRecordValue, NSCopying, N distanceFromLocation(location: CLLocation): number; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; getDistanceFrom(location: CLLocation): number; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp(coordinate: CLLocationCoordinate2D, altitude: number, hAccuracy: number, vAccuracy: number, course: number, speed: number, timestamp: Date): this; @@ -378,6 +437,8 @@ declare class CLLocationManager extends NSObject { purpose: string; + readonly rangedBeaconConstraints: NSSet; + readonly rangedRegions: NSSet; showsBackgroundLocationIndicator: boolean; @@ -406,6 +467,8 @@ declare class CLLocationManager extends NSObject { startRangingBeaconsInRegion(region: CLBeaconRegion): void; + startRangingBeaconsSatisfyingConstraint(constraint: CLBeaconIdentityConstraint): void; + startUpdatingHeading(): void; startUpdatingLocation(): void; @@ -418,6 +481,8 @@ declare class CLLocationManager extends NSObject { stopRangingBeaconsInRegion(region: CLBeaconRegion): void; + stopRangingBeaconsSatisfyingConstraint(constraint: CLBeaconIdentityConstraint): void; + stopUpdatingHeading(): void; stopUpdatingLocation(): void; @@ -433,6 +498,8 @@ interface CLLocationManagerDelegate extends NSObjectProtocol { locationManagerDidExitRegion?(manager: CLLocationManager, region: CLRegion): void; + locationManagerDidFailRangingBeaconsForConstraintError?(manager: CLLocationManager, beaconConstraint: CLBeaconIdentityConstraint, error: NSError): void; + locationManagerDidFailWithError?(manager: CLLocationManager, error: NSError): void; locationManagerDidFinishDeferredUpdatesWithError?(manager: CLLocationManager, error: NSError): void; @@ -441,6 +508,8 @@ interface CLLocationManagerDelegate extends NSObjectProtocol { locationManagerDidRangeBeaconsInRegion?(manager: CLLocationManager, beacons: NSArray | CLBeacon[], region: CLBeaconRegion): void; + locationManagerDidRangeBeaconsSatisfyingConstraint?(manager: CLLocationManager, beacons: NSArray | CLBeacon[], beaconConstraint: CLBeaconIdentityConstraint): void; + locationManagerDidResumeLocationUpdates?(manager: CLLocationManager): void; locationManagerDidStartMonitoringForRegion?(manager: CLLocationManager, region: CLRegion): void; @@ -516,9 +585,9 @@ declare class CLPlacemark extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithPlacemark(placemark: CLPlacemark): this; } @@ -560,11 +629,11 @@ declare class CLRegion extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initCircularRegionWithCenterRadiusIdentifier(center: CLLocationCoordinate2D, radius: number, identifier: string): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum CLRegionState { @@ -598,9 +667,9 @@ declare class CLVisit extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var kCLDistanceFilterNone: number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreMIDI.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreMIDI.d.ts index dd8e6c1cd2..3ba3103172 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreMIDI.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreMIDI.d.ts @@ -24,9 +24,9 @@ declare class MIDICIProfile extends NSObject implements NSSecureCoding { constructor(o: { data: NSData; name: string; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDataName(data: NSData, inName: string): this; } @@ -47,9 +47,9 @@ declare class MIDICIProfileState extends NSObject implements NSSecureCoding { constructor(o: { enabledProfiles: NSArray | MIDICIProfile[]; disabledProfiles: NSArray | MIDICIProfile[]; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithEnabledProfilesDisabledProfiles(enabled: NSArray | MIDICIProfile[], disabled: NSArray | MIDICIProfile[]): this; } @@ -583,6 +583,8 @@ declare var kMIDIPropertyName: string; declare var kMIDIPropertyNameConfiguration: string; +declare var kMIDIPropertyNameConfigurationDictionary: string; + declare var kMIDIPropertyOffline: string; declare var kMIDIPropertyPanDisruptsStereo: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreML.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreML.d.ts index 66e5f37153..b12692e2d1 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreML.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreML.d.ts @@ -70,13 +70,21 @@ declare var MLCustomModel: { prototype: MLCustomModel; }; -declare class MLDictionaryConstraint extends NSObject { +declare class MLDictionaryConstraint extends NSObject implements NSSecureCoding { static alloc(): MLDictionaryConstraint; // inherited from NSObject static new(): MLDictionaryConstraint; // inherited from NSObject readonly keyType: MLFeatureType; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } declare class MLDictionaryFeatureProvider extends NSObject implements MLFeatureProvider, NSFastEnumeration { @@ -99,7 +107,7 @@ declare class MLDictionaryFeatureProvider extends NSObject implements MLFeatureP objectForKeyedSubscript(featureName: string): MLFeatureValue; } -declare class MLFeatureDescription extends NSObject implements NSCopying { +declare class MLFeatureDescription extends NSObject implements NSCopying, NSSecureCoding { static alloc(): MLFeatureDescription; // inherited from NSObject @@ -119,8 +127,16 @@ declare class MLFeatureDescription extends NSObject implements NSCopying { readonly type: MLFeatureType; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + copyWithZone(zone: interop.Pointer | interop.Reference): any; + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + isAllowedValue(value: MLFeatureValue): boolean; } @@ -158,10 +174,26 @@ declare class MLFeatureValue extends NSObject implements NSCopying { static alloc(): MLFeatureValue; // inherited from NSObject + static featureValueWithCGImageConstraintOptionsError(cgImage: any, constraint: MLImageConstraint, options: NSDictionary): MLFeatureValue; + + static featureValueWithCGImageOrientationConstraintOptionsError(cgImage: any, orientation: CGImagePropertyOrientation, constraint: MLImageConstraint, options: NSDictionary): MLFeatureValue; + + static featureValueWithCGImageOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage: any, orientation: CGImagePropertyOrientation, pixelsWide: number, pixelsHigh: number, pixelFormatType: number, options: NSDictionary): MLFeatureValue; + + static featureValueWithCGImagePixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage: any, pixelsWide: number, pixelsHigh: number, pixelFormatType: number, options: NSDictionary): MLFeatureValue; + static featureValueWithDictionaryError(value: NSDictionary): MLFeatureValue; static featureValueWithDouble(value: number): MLFeatureValue; + static featureValueWithImageAtURLConstraintOptionsError(url: NSURL, constraint: MLImageConstraint, options: NSDictionary): MLFeatureValue; + + static featureValueWithImageAtURLOrientationConstraintOptionsError(url: NSURL, orientation: CGImagePropertyOrientation, constraint: MLImageConstraint, options: NSDictionary): MLFeatureValue; + + static featureValueWithImageAtURLOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(url: NSURL, orientation: CGImagePropertyOrientation, pixelsWide: number, pixelsHigh: number, pixelFormatType: number, options: NSDictionary): MLFeatureValue; + + static featureValueWithImageAtURLPixelsWidePixelsHighPixelFormatTypeOptionsError(url: NSURL, pixelsWide: number, pixelsHigh: number, pixelFormatType: number, options: NSDictionary): MLFeatureValue; + static featureValueWithInt64(value: number): MLFeatureValue; static featureValueWithMultiArray(value: MLMultiArray): MLFeatureValue; @@ -199,7 +231,11 @@ declare class MLFeatureValue extends NSObject implements NSCopying { isEqualToFeatureValue(value: MLFeatureValue): boolean; } -declare class MLImageConstraint extends NSObject { +declare var MLFeatureValueImageOptionCropAndScale: string; + +declare var MLFeatureValueImageOptionCropRect: string; + +declare class MLImageConstraint extends NSObject implements NSSecureCoding { static alloc(): MLImageConstraint; // inherited from NSObject @@ -212,9 +248,17 @@ declare class MLImageConstraint extends NSObject { readonly pixelsWide: number; readonly sizeConstraint: MLImageSizeConstraint; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } -declare class MLImageSize extends NSObject { +declare class MLImageSize extends NSObject implements NSSecureCoding { static alloc(): MLImageSize; // inherited from NSObject @@ -223,9 +267,17 @@ declare class MLImageSize extends NSObject { readonly pixelsHigh: number; readonly pixelsWide: number; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } -declare class MLImageSizeConstraint extends NSObject { +declare class MLImageSizeConstraint extends NSObject implements NSSecureCoding { static alloc(): MLImageSizeConstraint; // inherited from NSObject @@ -238,6 +290,14 @@ declare class MLImageSizeConstraint extends NSObject { readonly pixelsWideRange: NSRange; readonly type: MLImageSizeConstraintType; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } declare const enum MLImageSizeConstraintType { @@ -249,6 +309,40 @@ declare const enum MLImageSizeConstraintType { Range = 3 } +declare class MLKey extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): MLKey; // inherited from NSObject + + static new(): MLKey; // inherited from NSObject + + readonly name: string; + + readonly scope: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MLMetricKey extends MLKey { + + static alloc(): MLMetricKey; // inherited from NSObject + + static new(): MLMetricKey; // inherited from NSObject + + static readonly epochIndex: MLMetricKey; + + static readonly lossValue: MLMetricKey; + + static readonly miniBatchIndex: MLMetricKey; +} + declare class MLModel extends NSObject { static alloc(): MLModel; // inherited from NSObject @@ -265,29 +359,47 @@ declare class MLModel extends NSObject { readonly modelDescription: MLModelDescription; + parameterValueForKeyError(key: MLParameterKey): any; + predictionFromFeaturesError(input: MLFeatureProvider): MLFeatureProvider; predictionFromFeaturesOptionsError(input: MLFeatureProvider, options: MLPredictionOptions): MLFeatureProvider; + predictionsFromBatchError(inputBatch: MLBatchProvider): MLBatchProvider; + predictionsFromBatchOptionsError(inputBatch: MLBatchProvider, options: MLPredictionOptions): MLBatchProvider; } declare var MLModelAuthorKey: string; -declare class MLModelConfiguration extends NSObject implements NSCopying { +declare class MLModelConfiguration extends NSObject implements NSCopying, NSSecureCoding { static alloc(): MLModelConfiguration; // inherited from NSObject static new(): MLModelConfiguration; // inherited from NSObject + allowLowPrecisionAccumulationOnGPU: boolean; + computeUnits: MLComputeUnits; + parameters: NSDictionary; + + preferredMetalDevice: MTLDevice; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } declare var MLModelCreatorDefinedKey: string; -declare class MLModelDescription extends NSObject { +declare class MLModelDescription extends NSObject implements NSSecureCoding { static alloc(): MLModelDescription; // inherited from NSObject @@ -295,13 +407,27 @@ declare class MLModelDescription extends NSObject { readonly inputDescriptionsByName: NSDictionary; + readonly isUpdatable: boolean; + readonly metadata: NSDictionary; readonly outputDescriptionsByName: NSDictionary; + readonly parameterDescriptionsByKey: NSDictionary; + readonly predictedFeatureName: string; readonly predictedProbabilitiesName: string; + + readonly trainingInputDescriptionsByName: NSDictionary; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } declare var MLModelDescriptionKey: string; @@ -316,7 +442,11 @@ declare const enum MLModelError { CustomLayer = 4, - CustomModel = 5 + CustomModel = 5, + + Update = 6, + + Parameters = 7 } declare var MLModelErrorDomain: string; @@ -359,7 +489,7 @@ declare class MLMultiArray extends NSObject { setObjectForKeyedSubscript(obj: number, key: NSArray | number[]): void; } -declare class MLMultiArrayConstraint extends NSObject { +declare class MLMultiArrayConstraint extends NSObject implements NSSecureCoding { static alloc(): MLMultiArrayConstraint; // inherited from NSObject @@ -370,6 +500,14 @@ declare class MLMultiArrayConstraint extends NSObject { readonly shape: NSArray; readonly shapeConstraint: MLMultiArrayShapeConstraint; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } declare const enum MLMultiArrayDataType { @@ -381,7 +519,7 @@ declare const enum MLMultiArrayDataType { Int32 = 131104 } -declare class MLMultiArrayShapeConstraint extends NSObject { +declare class MLMultiArrayShapeConstraint extends NSObject implements NSSecureCoding { static alloc(): MLMultiArrayShapeConstraint; // inherited from NSObject @@ -392,6 +530,14 @@ declare class MLMultiArrayShapeConstraint extends NSObject { readonly sizeRangeForDimension: NSArray; readonly type: MLMultiArrayShapeConstraintType; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } declare const enum MLMultiArrayShapeConstraintType { @@ -403,6 +549,85 @@ declare const enum MLMultiArrayShapeConstraintType { Range = 3 } +declare class MLNumericConstraint extends NSObject implements NSSecureCoding { + + static alloc(): MLNumericConstraint; // inherited from NSObject + + static new(): MLNumericConstraint; // inherited from NSObject + + readonly enumeratedNumbers: NSSet; + + readonly maxNumber: number; + + readonly minNumber: number; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MLParameterDescription extends NSObject implements NSSecureCoding { + + static alloc(): MLParameterDescription; // inherited from NSObject + + static new(): MLParameterDescription; // inherited from NSObject + + readonly defaultValue: any; + + readonly key: MLParameterKey; + + readonly numericConstraint: MLNumericConstraint; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MLParameterKey extends MLKey { + + static alloc(): MLParameterKey; // inherited from NSObject + + static new(): MLParameterKey; // inherited from NSObject + + static readonly beta1: MLParameterKey; + + static readonly beta2: MLParameterKey; + + static readonly biases: MLParameterKey; + + static readonly epochs: MLParameterKey; + + static readonly eps: MLParameterKey; + + static readonly learningRate: MLParameterKey; + + static readonly linkedModelFileName: MLParameterKey; + + static readonly linkedModelSearchPath: MLParameterKey; + + static readonly miniBatchSize: MLParameterKey; + + static readonly momentum: MLParameterKey; + + static readonly numberOfNeighbors: MLParameterKey; + + static readonly seed: MLParameterKey; + + static readonly shuffle: MLParameterKey; + + static readonly weights: MLParameterKey; + + scopedTo(scope: string): MLParameterKey; +} + declare class MLPredictionOptions extends NSObject { static alloc(): MLPredictionOptions; // inherited from NSObject @@ -431,7 +656,7 @@ declare class MLSequence extends NSObject { readonly type: MLFeatureType; } -declare class MLSequenceConstraint extends NSObject { +declare class MLSequenceConstraint extends NSObject implements NSSecureCoding { static alloc(): MLSequenceConstraint; // inherited from NSObject @@ -440,4 +665,101 @@ declare class MLSequenceConstraint extends NSObject { readonly countRange: NSRange; readonly valueDescription: MLFeatureDescription; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MLTask extends NSObject { + + static alloc(): MLTask; // inherited from NSObject + + static new(): MLTask; // inherited from NSObject + + readonly error: NSError; + + readonly state: MLTaskState; + + readonly taskIdentifier: string; + + cancel(): void; + + resume(): void; +} + +declare const enum MLTaskState { + + Suspended = 1, + + Running = 2, + + Cancelling = 3, + + Completed = 4, + + Failed = 5 +} + +declare class MLUpdateContext extends NSObject { + + static alloc(): MLUpdateContext; // inherited from NSObject + + static new(): MLUpdateContext; // inherited from NSObject + + readonly event: MLUpdateProgressEvent; + + readonly metrics: NSDictionary; + + readonly model: MLModel; + + readonly parameters: NSDictionary; + + readonly task: MLUpdateTask; +} + +declare const enum MLUpdateProgressEvent { + + TrainingBegin = 1, + + EpochEnd = 2, + + MiniBatchEnd = 4 } + +declare class MLUpdateProgressHandlers extends NSObject { + + static alloc(): MLUpdateProgressHandlers; // inherited from NSObject + + static new(): MLUpdateProgressHandlers; // inherited from NSObject + + constructor(o: { forEvents: MLUpdateProgressEvent; progressHandler: (p1: MLUpdateContext) => void; completionHandler: (p1: MLUpdateContext) => void; }); + + initForEventsProgressHandlerCompletionHandler(interestedEvents: MLUpdateProgressEvent, progressHandler: (p1: MLUpdateContext) => void, completionHandler: (p1: MLUpdateContext) => void): this; +} + +declare class MLUpdateTask extends MLTask { + + static alloc(): MLUpdateTask; // inherited from NSObject + + static new(): MLUpdateTask; // inherited from NSObject + + static updateTaskForModelAtURLTrainingDataConfigurationCompletionHandlerError(modelURL: NSURL, trainingData: MLBatchProvider, configuration: MLModelConfiguration, completionHandler: (p1: MLUpdateContext) => void): MLUpdateTask; + + static updateTaskForModelAtURLTrainingDataConfigurationProgressHandlersError(modelURL: NSURL, trainingData: MLBatchProvider, configuration: MLModelConfiguration, progressHandlers: MLUpdateProgressHandlers): MLUpdateTask; + + resumeWithParameters(updateParameters: NSDictionary): void; +} + +interface MLWritable extends NSObjectProtocol { + + writeToURLError(url: NSURL): boolean; +} +declare var MLWritable: { + + prototype: MLWritable; +}; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreMedia.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreMedia.d.ts index 064e635137..45fad12091 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreMedia.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreMedia.d.ts @@ -29,6 +29,8 @@ declare function CMAudioSampleBufferCreateReadyWithPacketDescriptions(allocator: declare function CMAudioSampleBufferCreateWithPacketDescriptions(allocator: any, dataBuffer: any, dataReady: boolean, makeDataReadyCallback: interop.FunctionReference<(p1: any, p2: interop.Pointer | interop.Reference) => number>, makeDataReadyRefcon: interop.Pointer | interop.Reference, formatDescription: any, numSamples: number, presentationTimeStamp: CMTime, packetDescriptions: interop.Pointer | interop.Reference, sampleBufferOut: interop.Pointer | interop.Reference): number; +declare function CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler(allocator: any, dataBuffer: any, dataReady: boolean, formatDescription: any, numSamples: number, presentationTimeStamp: CMTime, packetDescriptions: interop.Pointer | interop.Reference, sampleBufferOut: interop.Pointer | interop.Reference, makeDataReadyHandler: (p1: any) => number): number; + declare function CMBlockBufferAccessDataBytes(theBuffer: any, offset: number, length: number, temporaryBlock: interop.Pointer | interop.Reference, returnedPointerOut: interop.Pointer | interop.Reference): number; declare function CMBlockBufferAppendBufferReference(theBuffer: any, targetBBuf: any, offsetToData: number, dataLength: number, flags: number): number; @@ -82,12 +84,26 @@ interface CMBufferCallbacks { } declare var CMBufferCallbacks: interop.StructType; +interface CMBufferHandlers { + version: number; + getDecodeTimeStamp: (p1: any) => CMTime; + getPresentationTimeStamp: (p1: any) => CMTime; + getDuration: (p1: any) => CMTime; + isDataReady: (p1: any) => boolean; + compare: (p1: any, p2: any) => CFComparisonResult; + dataBecameReadyNotification: string; + getSize: (p1: any) => number; +} +declare var CMBufferHandlers: interop.StructType; + declare function CMBufferQueueCallForEachBuffer(queue: any, callback: interop.FunctionReference<(p1: any, p2: interop.Pointer | interop.Reference) => number>, refcon: interop.Pointer | interop.Reference): number; declare function CMBufferQueueContainsEndOfData(queue: any): boolean; declare function CMBufferQueueCreate(allocator: any, capacity: number, callbacks: interop.Pointer | interop.Reference, queueOut: interop.Pointer | interop.Reference): number; +declare function CMBufferQueueCreateWithHandlers(allocator: any, capacity: number, handlers: interop.Pointer | interop.Reference, queueOut: interop.Pointer | interop.Reference): number; + declare function CMBufferQueueDequeueAndRetain(queue: any): any; declare function CMBufferQueueDequeueIfDataReadyAndRetain(queue: any): any; @@ -122,6 +138,10 @@ declare function CMBufferQueueGetTypeID(): number; declare function CMBufferQueueInstallTrigger(queue: any, callback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void>, refcon: interop.Pointer | interop.Reference, condition: number, time: CMTime, triggerTokenOut: interop.Pointer | interop.Reference>): number; +declare function CMBufferQueueInstallTriggerHandler(queue: any, condition: number, time: CMTime, triggerTokenOut: interop.Pointer | interop.Reference>, handler: (p1: interop.Pointer | interop.Reference) => void): number; + +declare function CMBufferQueueInstallTriggerHandlerWithIntegerThreshold(queue: any, condition: number, threshold: number, triggerTokenOut: interop.Pointer | interop.Reference>, handler: (p1: interop.Pointer | interop.Reference) => void): number; + declare function CMBufferQueueInstallTriggerWithIntegerThreshold(queue: any, callback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void>, refcon: interop.Pointer | interop.Reference, condition: number, threshold: number, triggerTokenOut: interop.Pointer | interop.Reference>): number; declare function CMBufferQueueIsAtEndOfData(queue: any): boolean; @@ -138,6 +158,8 @@ declare function CMBufferQueueResetWithCallback(queue: any, callback: interop.Fu declare function CMBufferQueueSetValidationCallback(queue: any, callback: interop.FunctionReference<(p1: any, p2: any, p3: interop.Pointer | interop.Reference) => number>, refcon: interop.Pointer | interop.Reference): number; +declare function CMBufferQueueSetValidationHandler(queue: any, handler: (p1: any, p2: any) => number): number; + declare function CMBufferQueueTestTrigger(queue: any, triggerToken: interop.Pointer | interop.Reference): boolean; declare function CMClockConvertHostTimeToSystemUnits(hostTime: CMTime): number; @@ -260,17 +282,21 @@ declare function CMSampleBufferCreateCopyWithNewTiming(allocator: any, originalS declare function CMSampleBufferCreateForImageBuffer(allocator: any, imageBuffer: any, dataReady: boolean, makeDataReadyCallback: interop.FunctionReference<(p1: any, p2: interop.Pointer | interop.Reference) => number>, makeDataReadyRefcon: interop.Pointer | interop.Reference, formatDescription: any, sampleTiming: interop.Pointer | interop.Reference, sampleBufferOut: interop.Pointer | interop.Reference): number; +declare function CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler(allocator: any, imageBuffer: any, dataReady: boolean, formatDescription: any, sampleTiming: interop.Pointer | interop.Reference, sampleBufferOut: interop.Pointer | interop.Reference, makeDataReadyHandler: (p1: any) => number): number; + declare function CMSampleBufferCreateReady(allocator: any, dataBuffer: any, formatDescription: any, numSamples: number, numSampleTimingEntries: number, sampleTimingArray: interop.Pointer | interop.Reference, numSampleSizeEntries: number, sampleSizeArray: interop.Pointer | interop.Reference, sampleBufferOut: interop.Pointer | interop.Reference): number; declare function CMSampleBufferCreateReadyWithImageBuffer(allocator: any, imageBuffer: any, formatDescription: any, sampleTiming: interop.Pointer | interop.Reference, sampleBufferOut: interop.Pointer | interop.Reference): number; +declare function CMSampleBufferCreateWithMakeDataReadyHandler(allocator: any, dataBuffer: any, dataReady: boolean, formatDescription: any, numSamples: number, numSampleTimingEntries: number, sampleTimingArray: interop.Pointer | interop.Reference, numSampleSizeEntries: number, sampleSizeArray: interop.Pointer | interop.Reference, sampleBufferOut: interop.Pointer | interop.Reference, makeDataReadyHandler: (p1: any) => number): number; + declare function CMSampleBufferDataIsReady(sbuf: any): boolean; declare function CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer(sbuf: any, bufferListSizeNeededOut: interop.Pointer | interop.Reference, bufferListOut: interop.Pointer | interop.Reference, bufferListSize: number, blockBufferStructureAllocator: any, blockBufferBlockAllocator: any, flags: number, blockBufferOut: interop.Pointer | interop.Reference): number; declare function CMSampleBufferGetAudioStreamPacketDescriptions(sbuf: any, packetDescriptionsSize: number, packetDescriptionsOut: interop.Pointer | interop.Reference, packetDescriptionsSizeNeededOut: interop.Pointer | interop.Reference): number; -declare function CMSampleBufferGetAudioStreamPacketDescriptionsPtr(sbuf: any, packetDescriptionsPtrOut: interop.Pointer | interop.Reference>, packetDescriptionsSizeOut: interop.Pointer | interop.Reference): number; +declare function CMSampleBufferGetAudioStreamPacketDescriptionsPtr(sbuf: any, packetDescriptionsPointerOut: interop.Pointer | interop.Reference>, packetDescriptionsSizeOut: interop.Pointer | interop.Reference): number; declare function CMSampleBufferGetDataBuffer(sbuf: any): any; @@ -599,6 +625,10 @@ declare function CMTimebaseRemoveTimerDispatchSource(timebase: any, timerSource: declare function CMTimebaseSetAnchorTime(timebase: any, timebaseTime: CMTime, immediateMasterTime: CMTime): number; +declare function CMTimebaseSetMasterClock(timebase: any, newMasterClock: any): number; + +declare function CMTimebaseSetMasterTimebase(timebase: any, newMasterTimebase: any): number; + declare function CMTimebaseSetRate(timebase: any, rate: number): number; declare function CMTimebaseSetRateAndAnchorTime(timebase: any, rate: number, timebaseTime: CMTime, immediateMasterTime: CMTime): number; @@ -753,6 +783,10 @@ declare const kCMClosedCaptionFormatType_CEA608: number; declare const kCMClosedCaptionFormatType_CEA708: number; +declare var kCMFormatDescriptionAlphaChannelMode_PremultipliedAlpha: string; + +declare var kCMFormatDescriptionAlphaChannelMode_StraightAlpha: string; + declare const kCMFormatDescriptionBridgeError_AllocationFailed: number; declare const kCMFormatDescriptionBridgeError_IncompatibleFormatDescription: number; @@ -805,6 +839,12 @@ declare const kCMFormatDescriptionError_ValueNotAvailable: number; declare var kCMFormatDescriptionExtensionKey_MetadataKeyTable: string; +declare var kCMFormatDescriptionExtension_AlphaChannelMode: string; + +declare var kCMFormatDescriptionExtension_AlternativeTransferCharacteristics: string; + +declare var kCMFormatDescriptionExtension_AuxiliaryTypeInfo: string; + declare var kCMFormatDescriptionExtension_BytesPerRow: string; declare var kCMFormatDescriptionExtension_ChromaLocationBottomField: string; @@ -815,6 +855,8 @@ declare var kCMFormatDescriptionExtension_CleanAperture: string; declare var kCMFormatDescriptionExtension_ColorPrimaries: string; +declare var kCMFormatDescriptionExtension_ContainsAlphaChannel: string; + declare var kCMFormatDescriptionExtension_ContentLightLevelInfo: string; declare var kCMFormatDescriptionExtension_Depth: string; @@ -903,6 +945,8 @@ declare var kCMFormatDescriptionTransferFunction_SMPTE_ST_428_1: string; declare var kCMFormatDescriptionTransferFunction_UseGamma: string; +declare var kCMFormatDescriptionTransferFunction_sRGB: string; + declare var kCMFormatDescriptionVendor_Apple: string; declare var kCMFormatDescriptionYCbCrMatrix_ITU_R_2020: string; @@ -1045,6 +1089,8 @@ declare var kCMMetadataBaseDataType_JSON: string; declare var kCMMetadataBaseDataType_PNG: string; +declare var kCMMetadataBaseDataType_PerspectiveTransformF64: string; + declare var kCMMetadataBaseDataType_PointF32: string; declare var kCMMetadataBaseDataType_PolygonF32: string; @@ -1123,6 +1169,8 @@ declare var kCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInv declare const kCMMetadataFormatType_Boxed: number; +declare const kCMMetadataFormatType_EMSG: number; + declare const kCMMetadataFormatType_ICY: number; declare const kCMMetadataFormatType_ID3: number; @@ -1147,6 +1195,8 @@ declare const kCMMetadataIdentifierError_RequiredParameterMissing: number; declare var kCMMetadataIdentifier_QuickTimeMetadataDirection_Facing: string; +declare var kCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransform: string; + declare var kCMMetadataIdentifier_QuickTimeMetadataLocation_ISO6709: string; declare var kCMMetadataIdentifier_QuickTimeMetadataPreferredAffineTransform: string; @@ -1209,6 +1259,8 @@ declare const kCMPixelFormat_444YpCbCr8: number; declare const kCMPixelFormat_8IndexedGray_WhiteIsZero: number; +declare var kCMSampleAttachmentKey_AudioIndependentSampleDecoderRefreshCount: string; + declare var kCMSampleAttachmentKey_DependsOnOthers: string; declare var kCMSampleAttachmentKey_DisplayImmediately: string; @@ -1665,6 +1717,8 @@ declare const kCMVideoCodecType_H264: number; declare const kCMVideoCodecType_HEVC: number; +declare const kCMVideoCodecType_HEVCWithAlpha: number; + declare const kCMVideoCodecType_JPEG: number; declare const kCMVideoCodecType_JPEG_OpenDML: number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreMotion.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreMotion.d.ts index 1c893a8664..2dce2bdbb8 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreMotion.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreMotion.d.ts @@ -63,9 +63,9 @@ declare class CMAttitude extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; multiplyByInverseOfAttitude(attitude: CMAttitude): void; } @@ -137,9 +137,9 @@ declare class CMDyskineticSymptomResult extends NSObject implements NSCopying, N copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum CMError { @@ -194,9 +194,9 @@ declare class CMLogItem extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } interface CMMagneticField { @@ -409,9 +409,9 @@ declare class CMPedometerData extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class CMPedometerEvent extends NSObject implements NSCopying, NSSecureCoding { @@ -430,9 +430,9 @@ declare class CMPedometerEvent extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum CMPedometerEventType { @@ -549,7 +549,7 @@ declare class CMTremorResult extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreNFC.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreNFC.d.ts index b5b162c75b..a2d223d215 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreNFC.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreNFC.d.ts @@ -1,6 +1,44 @@ +declare const enum EncryptionId { + + AES = 79, + + AES_DES = 65 +} + declare var NFCErrorDomain: string; +interface NFCFeliCaTag extends NFCNDEFTag, NFCTag { + + currentIDm: NSData; + + currentSystemCode: NSData; + + pollingWithSystemCodeRequestCodeTimeSlotCompletionHandler(systemCode: NSData, requestCode: PollingRequestCode, timeSlot: PollingTimeSlot, completionHandler: (p1: NSData, p2: NSData, p3: NSError) => void): void; + + readWithoutEncryptionWithServiceCodeListBlockListCompletionHandler(serviceCodeList: NSArray | NSData[], blockList: NSArray | NSData[], completionHandler: (p1: number, p2: number, p3: NSArray, p4: NSError) => void): void; + + requestResponseWithCompletionHandler(completionHandler: (p1: number, p2: NSError) => void): void; + + requestServiceV2WithNodeCodeListCompletionHandler(nodeCodeList: NSArray | NSData[], completionHandler: (p1: number, p2: number, p3: EncryptionId, p4: NSArray, p5: NSArray, p6: NSError) => void): void; + + requestServiceWithNodeCodeListCompletionHandler(nodeCodeList: NSArray | NSData[], completionHandler: (p1: NSArray, p2: NSError) => void): void; + + requestSpecificationVersionWithCompletionHandler(completionHandler: (p1: number, p2: number, p3: NSData, p4: NSData, p5: NSError) => void): void; + + requestSystemCodeWithCompletionHandler(completionHandler: (p1: NSArray, p2: NSError) => void): void; + + resetModeWithCompletionHandler(completionHandler: (p1: number, p2: number, p3: NSError) => void): void; + + sendFeliCaCommandPacketCompletionHandler(commandPacket: NSData, completionHandler: (p1: NSData, p2: NSError) => void): void; + + writeWithoutEncryptionWithServiceCodeListBlockListBlockDataCompletionHandler(serviceCodeList: NSArray | NSData[], blockList: NSArray | NSData[], blockData: NSArray | NSData[], completionHandler: (p1: number, p2: number, p3: NSError) => void): void; +} +declare var NFCFeliCaTag: { + + prototype: NFCFeliCaTag; +}; + declare class NFCISO15693CustomCommandConfiguration extends NFCTagCommandConfiguration { static alloc(): NFCISO15693CustomCommandConfiguration; // inherited from NSObject @@ -47,8 +85,6 @@ declare class NFCISO15693ReaderSession extends NFCReaderSession { static new(): NFCISO15693ReaderSession; // inherited from NSObject - static readonly readingAvailable: boolean; - constructor(o: { delegate: NFCReaderSessionDelegate; queue: NSObject; }); initWithDelegateQueue(delegate: NFCReaderSessionDelegate, queue: NSObject): this; @@ -56,7 +92,7 @@ declare class NFCISO15693ReaderSession extends NFCReaderSession { restartPolling(): void; } -interface NFCISO15693Tag extends NFCTag { +interface NFCISO15693Tag extends NFCNDEFTag, NFCTag { icManufacturerCode: number; @@ -64,9 +100,47 @@ interface NFCISO15693Tag extends NFCTag { identifier: NSData; + customCommandWithRequestFlagCustomCommandCodeCustomRequestParametersCompletionHandler(flags: RequestFlag, customCommandCode: number, customRequestParameters: NSData, completionHandler: (p1: NSData, p2: NSError) => void): void; + + extendedLockBlockWithRequestFlagsBlockNumberCompletionHandler(flags: RequestFlag, blockNumber: number, completionHandler: (p1: NSError) => void): void; + + extendedReadMultipleBlocksWithRequestFlagsBlockRangeCompletionHandler(flags: RequestFlag, blockRange: NSRange, completionHandler: (p1: NSArray, p2: NSError) => void): void; + + extendedReadSingleBlockWithRequestFlagsBlockNumberCompletionHandler(flags: RequestFlag, blockNumber: number, completionHandler: (p1: NSData, p2: NSError) => void): void; + + extendedWriteSingleBlockWithRequestFlagsBlockNumberDataBlockCompletionHandler(flags: RequestFlag, blockNumber: number, dataBlock: NSData, completionHandler: (p1: NSError) => void): void; + + getMultipleBlockSecurityStatusWithRequestFlagBlockRangeCompletionHandler(flags: RequestFlag, blockRange: NSRange, completionHandler: (p1: NSArray, p2: NSError) => void): void; + + getSystemInfoWithRequestFlagCompletionHandler(flags: RequestFlag, completionHandler: (p1: number, p2: number, p3: number, p4: number, p5: number, p6: NSError) => void): void; + + lockAFIWithRequestFlagCompletionHandler(flags: RequestFlag, completionHandler: (p1: NSError) => void): void; + + lockBlockWithRequestFlagsBlockNumberCompletionHandler(flags: RequestFlag, blockNumber: number, completionHandler: (p1: NSError) => void): void; + + lockDFSIDWithRequestFlagCompletionHandler(flags: RequestFlag, completionHandler: (p1: NSError) => void): void; + readMultipleBlocksWithConfigurationCompletionHandler(readConfiguration: NFCISO15693ReadMultipleBlocksConfiguration, completionHandler: (p1: NSData, p2: NSError) => void): void; + readMultipleBlocksWithRequestFlagsBlockRangeCompletionHandler(flags: RequestFlag, blockRange: NSRange, completionHandler: (p1: NSArray, p2: NSError) => void): void; + + readSingleBlockWithRequestFlagsBlockNumberCompletionHandler(flags: RequestFlag, blockNumber: number, completionHandler: (p1: NSData, p2: NSError) => void): void; + + resetToReadyWithRequestFlagsCompletionHandler(flags: RequestFlag, completionHandler: (p1: NSError) => void): void; + + selectWithRequestFlagsCompletionHandler(flags: RequestFlag, completionHandler: (p1: NSError) => void): void; + sendCustomCommandWithConfigurationCompletionHandler(commandConfiguration: NFCISO15693CustomCommandConfiguration, completionHandler: (p1: NSData, p2: NSError) => void): void; + + stayQuietWithCompletionHandler(completionHandler: (p1: NSError) => void): void; + + writeAFIWithRequestFlagAfiCompletionHandler(flags: RequestFlag, afi: number, completionHandler: (p1: NSError) => void): void; + + writeDSFIDWithRequestFlagDsfidCompletionHandler(flags: RequestFlag, dsfid: number, completionHandler: (p1: NSError) => void): void; + + writeMultipleBlocksWithRequestFlagsBlockRangeDataBlocksCompletionHandler(flags: RequestFlag, blockRange: NSRange, dataBlocks: NSArray | NSData[], completionHandler: (p1: NSError) => void): void; + + writeSingleBlockWithRequestFlagsBlockNumberDataBlockCompletionHandler(flags: RequestFlag, blockNumber: number, dataBlock: NSData, completionHandler: (p1: NSError) => void): void; } declare var NFCISO15693Tag: { @@ -75,21 +149,105 @@ declare var NFCISO15693Tag: { declare var NFCISO15693TagResponseErrorKey: string; +declare class NFCISO7816APDU extends NSObject implements NSCopying { + + static alloc(): NFCISO7816APDU; // inherited from NSObject + + static new(): NFCISO7816APDU; // inherited from NSObject + + readonly data: NSData; + + readonly expectedResponseLength: number; + + readonly instructionClass: number; + + readonly instructionCode: number; + + readonly p1Parameter: number; + + readonly p2Parameter: number; + + constructor(o: { data: NSData; }); + + constructor(o: { instructionClass: number; instructionCode: number; p1Parameter: number; p2Parameter: number; data: NSData; expectedResponseLength: number; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + initWithData(data: NSData): this; + + initWithInstructionClassInstructionCodeP1ParameterP2ParameterDataExpectedResponseLength(instructionClass: number, instructionCode: number, p1Parameter: number, p2Parameter: number, data: NSData, expectedResponseLength: number): this; +} + +interface NFCISO7816Tag extends NFCNDEFTag, NFCTag { + + applicationData: NSData; + + historicalBytes: NSData; + + identifier: NSData; + + initialSelectedAID: string; + + proprietaryApplicationDataCoding: boolean; + + sendCommandAPDUCompletionHandler(apdu: NFCISO7816APDU, completionHandler: (p1: NSData, p2: number, p3: number, p4: NSError) => void): void; +} +declare var NFCISO7816Tag: { + + prototype: NFCISO7816Tag; +}; + +declare const enum NFCMiFareFamily { + + Unknown = 1, + + Ultralight = 2, + + Plus = 3, + + DESFire = 4 +} + +interface NFCMiFareTag extends NFCNDEFTag, NFCTag { + + historicalBytes: NSData; + + identifier: NSData; + + mifareFamily: NFCMiFareFamily; + + sendMiFareCommandCompletionHandler(command: NSData, completionHandler: (p1: NSData, p2: NSError) => void): void; + + sendMiFareISO7816CommandCompletionHandler(apdu: NFCISO7816APDU, completionHandler: (p1: NSData, p2: number, p3: number, p4: NSError) => void): void; +} +declare var NFCMiFareTag: { + + prototype: NFCMiFareTag; +}; + declare class NFCNDEFMessage extends NSObject implements NSSecureCoding { static alloc(): NFCNDEFMessage; // inherited from NSObject + static ndefMessageWithData(data: NSData): NFCNDEFMessage; + static new(): NFCNDEFMessage; // inherited from NSObject + readonly length: number; + records: NSArray; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + constructor(o: { NDEFRecords: NSArray | NFCNDEFPayload[]; }); + + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; + + initWithNDEFRecords(records: NSArray | NFCNDEFPayload[]): this; } declare class NFCNDEFPayload extends NSObject implements NSSecureCoding { @@ -98,6 +256,14 @@ declare class NFCNDEFPayload extends NSObject implements NSSecureCoding { static new(): NFCNDEFPayload; // inherited from NSObject + static wellKnowTypeTextPayloadWithStringLocale(text: string, locale: NSLocale): NFCNDEFPayload; + + static wellKnownTypeTextPayloadWithStringLocale(text: string, locale: NSLocale): NFCNDEFPayload; + + static wellKnownTypeURIPayloadWithString(uri: string): NFCNDEFPayload; + + static wellKnownTypeURIPayloadWithURL(url: NSURL): NFCNDEFPayload; + identifier: NSData; payload: NSData; @@ -110,9 +276,21 @@ declare class NFCNDEFPayload extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + constructor(o: { format: NFCTypeNameFormat; type: NSData; identifier: NSData; payload: NSData; }); + + constructor(o: { format: NFCTypeNameFormat; type: NSData; identifier: NSData; payload: NSData; chunkSize: number; }); + + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; + + initWithFormatTypeIdentifierPayload(format: NFCTypeNameFormat, type: NSData, identifier: NSData, payload: NSData): this; + + initWithFormatTypeIdentifierPayloadChunkSize(format: NFCTypeNameFormat, type: NSData, identifier: NSData, payload: NSData, chunkSize: number): this; + + wellKnownTypeTextPayloadWithLocale(locale: interop.Pointer | interop.Reference): string; + + wellKnownTypeURIPayload(): NSURL; } declare class NFCNDEFReaderSession extends NFCReaderSession { @@ -121,17 +299,23 @@ declare class NFCNDEFReaderSession extends NFCReaderSession { static new(): NFCNDEFReaderSession; // inherited from NSObject - static readonly readingAvailable: boolean; - constructor(o: { delegate: NFCNDEFReaderSessionDelegate; queue: NSObject; invalidateAfterFirstRead: boolean; }); + connectToTagCompletionHandler(tag: NFCNDEFTag, completionHandler: (p1: NSError) => void): void; + initWithDelegateQueueInvalidateAfterFirstRead(delegate: NFCNDEFReaderSessionDelegate, queue: NSObject, invalidateAfterFirstRead: boolean): this; + + restartPolling(): void; } interface NFCNDEFReaderSessionDelegate extends NSObjectProtocol { + readerSessionDidBecomeActive?(session: NFCNDEFReaderSession): void; + readerSessionDidDetectNDEFs(session: NFCNDEFReaderSession, messages: NSArray | NFCNDEFMessage[]): void; + readerSessionDidDetectTags?(session: NFCNDEFReaderSession, tags: NSArray | NFCNDEFTag[]): void; + readerSessionDidInvalidateWithError(session: NFCNDEFReaderSession, error: NSError): void; } declare var NFCNDEFReaderSessionDelegate: { @@ -139,18 +323,63 @@ declare var NFCNDEFReaderSessionDelegate: { prototype: NFCNDEFReaderSessionDelegate; }; +declare const enum NFCNDEFStatus { + + NotSupported = 1, + + ReadWrite = 2, + + ReadOnly = 3 +} + +interface NFCNDEFTag extends NSCopying, NSObjectProtocol, NSSecureCoding { + + available: boolean; + + queryNDEFStatusWithCompletionHandler(completionHandler: (p1: NFCNDEFStatus, p2: number, p3: NSError) => void): void; + + readNDEFWithCompletionHandler(completionHandler: (p1: NFCNDEFMessage, p2: NSError) => void): void; + + writeLockWithCompletionHandler(completionHandler: (p1: NSError) => void): void; + + writeNDEFCompletionHandler(ndefMessage: NFCNDEFMessage, completionHandler: (p1: NSError) => void): void; +} +declare var NFCNDEFTag: { + + prototype: NFCNDEFTag; +}; + +declare const enum NFCPollingOption { + + ISO14443 = 1, + + ISO15693 = 2, + + ISO18092 = 4 +} + declare const enum NFCReaderError { ReaderErrorUnsupportedFeature = 1, ReaderErrorSecurityViolation = 2, + ReaderErrorInvalidParameter = 3, + + ReaderErrorInvalidParameterLength = 4, + + ReaderErrorParameterOutOfBound = 5, + ReaderTransceiveErrorTagConnectionLost = 100, ReaderTransceiveErrorRetryExceeded = 101, ReaderTransceiveErrorTagResponseError = 102, + ReaderTransceiveErrorSessionInvalidated = 103, + + ReaderTransceiveErrorTagNotConnected = 104, + ReaderSessionInvalidationErrorUserCanceled = 200, ReaderSessionInvalidationErrorSessionTimeout = 201, @@ -161,7 +390,15 @@ declare const enum NFCReaderError { ReaderSessionInvalidationErrorFirstNDEFTagRead = 204, - TagCommandConfigurationErrorInvalidParameters = 300 + TagCommandConfigurationErrorInvalidParameters = 300, + + NdefReaderSessionErrorTagNotWritable = 400, + + NdefReaderSessionErrorTagUpdateFailure = 401, + + NdefReaderSessionErrorTagSizeTooSmall = 402, + + NdefReaderSessionErrorZeroLengthMessage = 403 } declare class NFCReaderSession extends NSObject implements NFCReaderSessionProtocol { @@ -174,6 +411,8 @@ declare class NFCReaderSession extends NSObject implements NFCReaderSessionProto readonly sessionQueue: NSObject; + static readonly readingAvailable: boolean; + alertMessage: string; // inherited from NFCReaderSessionProtocol readonly debugDescription: string; // inherited from NSObjectProtocol @@ -198,6 +437,8 @@ declare class NFCReaderSession extends NSObject implements NFCReaderSessionProto invalidateSession(): void; + invalidateSessionWithErrorMessage(errorMessage: string): void; + isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; @@ -221,7 +462,7 @@ interface NFCReaderSessionDelegate extends NSObjectProtocol { readerSessionDidBecomeActive(session: NFCReaderSession): void; - readerSessionDidDetectTags(session: NFCReaderSession, tags: NSArray | NFCTag[]): void; + readerSessionDidDetectTags?(session: NFCReaderSession, tags: NSArray | NFCTag[]): void; readerSessionDidInvalidateWithError(session: NFCReaderSession, error: NSError): void; } @@ -239,6 +480,8 @@ interface NFCReaderSessionProtocol extends NSObjectProtocol { beginSession(): void; invalidateSession(): void; + + invalidateSessionWithErrorMessage(errorMessage: string): void; } declare var NFCReaderSessionProtocol: { @@ -252,6 +495,14 @@ interface NFCTag extends NSCopying, NSObjectProtocol, NSSecureCoding { session: NFCReaderSessionProtocol; type: NFCTagType; + + asNFCFeliCaTag(): NFCFeliCaTag; + + asNFCISO15693Tag(): NFCISO15693Tag; + + asNFCISO7816Tag(): NFCISO7816Tag; + + asNFCMiFareTag(): NFCMiFareTag; } declare var NFCTag: { @@ -271,9 +522,47 @@ declare class NFCTagCommandConfiguration extends NSObject implements NSCopying { copyWithZone(zone: interop.Pointer | interop.Reference): any; } +declare class NFCTagReaderSession extends NFCReaderSession { + + static alloc(): NFCTagReaderSession; // inherited from NSObject + + static new(): NFCTagReaderSession; // inherited from NSObject + + readonly connectedTag: NFCTag; + + constructor(o: { pollingOption: NFCPollingOption; delegate: NFCTagReaderSessionDelegate; queue: NSObject; }); + + connectToTagCompletionHandler(tag: NFCTag, completionHandler: (p1: NSError) => void): void; + + initWithPollingOptionDelegateQueue(pollingOption: NFCPollingOption, delegate: NFCTagReaderSessionDelegate, queue: NSObject): this; + + restartPolling(): void; +} + +interface NFCTagReaderSessionDelegate extends NSObjectProtocol { + + tagReaderSessionDidBecomeActive?(session: NFCTagReaderSession): void; + + tagReaderSessionDidDetectTags?(session: NFCTagReaderSession, tags: NSArray | NFCTag[]): void; + + tagReaderSessionDidInvalidateWithError(session: NFCTagReaderSession, error: NSError): void; +} +declare var NFCTagReaderSessionDelegate: { + + prototype: NFCTagReaderSessionDelegate; +}; + +declare var NFCTagResponseUnexpectedLengthErrorKey: string; + declare const enum NFCTagType { - ISO15693 = 1 + ISO15693 = 1, + + FeliCa = 2, + + ISO7816Compatible = 3, + + MiFare = 4 } declare const enum NFCTypeNameFormat { @@ -292,3 +581,124 @@ declare const enum NFCTypeNameFormat { Unchanged = 6 } + +declare class NFCVASCommandConfiguration extends NSObject implements NSCopying { + + static alloc(): NFCVASCommandConfiguration; // inherited from NSObject + + static new(): NFCVASCommandConfiguration; // inherited from NSObject + + mode: VASMode; + + passTypeIdentifier: string; + + url: NSURL; + + constructor(o: { VASMode: VASMode; passTypeIdentifier: string; url: NSURL; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + initWithVASModePassTypeIdentifierUrl(mode: VASMode, passTypeIdentifier: string, url: NSURL): this; +} + +declare class NFCVASReaderSession extends NFCReaderSession { + + static alloc(): NFCVASReaderSession; // inherited from NSObject + + static new(): NFCVASReaderSession; // inherited from NSObject + + constructor(o: { VASCommandConfigurations: NSArray | NFCVASCommandConfiguration[]; delegate: NFCVASReaderSessionDelegate; queue: NSObject; }); + + initWithVASCommandConfigurationsDelegateQueue(commandConfigurations: NSArray | NFCVASCommandConfiguration[], delegate: NFCVASReaderSessionDelegate, queue: NSObject): this; +} + +interface NFCVASReaderSessionDelegate extends NSObjectProtocol { + + readerSessionDidBecomeActive?(session: NFCVASReaderSession): void; + + readerSessionDidInvalidateWithError(session: NFCVASReaderSession, error: NSError): void; + + readerSessionDidReceiveVASResponses(session: NFCVASReaderSession, responses: NSArray | NFCVASResponse[]): void; +} +declare var NFCVASReaderSessionDelegate: { + + prototype: NFCVASReaderSessionDelegate; +}; + +declare class NFCVASResponse extends NSObject implements NSCopying { + + static alloc(): NFCVASResponse; // inherited from NSObject + + static new(): NFCVASResponse; // inherited from NSObject + + readonly mobileToken: NSData; + + readonly status: VASErrorCode; + + readonly vasData: NSData; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare const enum PollingRequestCode { + + NoRequest = 0, + + SystemCode = 1, + + CommunicationPerformance = 2 +} + +declare const enum PollingTimeSlot { + + Max1 = 0, + + Max2 = 1, + + Max4 = 3, + + Max8 = 7, + + Max16 = 15 +} + +declare const enum RequestFlag { + + DualSubCarriers = 1, + + HighDataRate = 2, + + ProtocolExtension = 8, + + Select = 16, + + Address = 32, + + Option = 64 +} + +declare const enum VASErrorCode { + + Success = 36864, + + DataNotFound = 27267, + + DataNotActivated = 25223, + + WrongParameters = 27392, + + WrongLCField = 26368, + + UserIntervention = 27012, + + IncorrectData = 27264, + + UnsupportedApplicationVersion = 25408 +} + +declare const enum VASMode { + + URLOnly = 0, + + Normal = 1 +} diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreSpotlight.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreSpotlight.d.ts index 279582f3d2..f4135b9670 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreSpotlight.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreSpotlight.d.ts @@ -25,9 +25,9 @@ declare class CSCustomAttributeKey extends NSObject implements NSCopying, NSSecu copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithKeyName(keyName: string): this; @@ -175,9 +175,9 @@ declare class CSPerson extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDisplayNameHandlesHandleIdentifier(displayName: string, handles: NSArray | string[], handleIdentifier: string): this; } @@ -300,9 +300,9 @@ declare class CSSearchableItem extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithUniqueIdentifierDomainIdentifierAttributeSet(uniqueIdentifier: string, domainIdentifier: string, attributeSet: CSSearchableItemAttributeSet): this; } @@ -693,9 +693,9 @@ declare class CSSearchableItemAttributeSet extends NSObject implements NSCopying copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithItemContentType(itemContentType: string): this; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreTelephony.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreTelephony.d.ts index bccdcb161f..7486c89f9b 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreTelephony.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreTelephony.d.ts @@ -108,9 +108,9 @@ declare class CTCellularPlanProvisioningRequest extends NSObject implements NSSe constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } interface CTError { @@ -188,6 +188,10 @@ declare class CTTelephonyNetworkInfo extends NSObject { readonly currentRadioAccessTechnology: string; + readonly dataServiceIdentifier: string; + + delegate: CTTelephonyNetworkInfoDelegate; + readonly serviceCurrentRadioAccessTechnology: NSDictionary; readonly serviceSubscriberCellularProviders: NSDictionary; @@ -199,6 +203,15 @@ declare class CTTelephonyNetworkInfo extends NSObject { subscriberCellularProviderDidUpdateNotifier: (p1: CTCarrier) => void; } +interface CTTelephonyNetworkInfoDelegate extends NSObjectProtocol { + + dataServiceIdentifierDidChange?(identifier: string): void; +} +declare var CTTelephonyNetworkInfoDelegate: { + + prototype: CTTelephonyNetworkInfoDelegate; +}; + declare const kCTErrorDomainMach: number; declare const kCTErrorDomainNoError: number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreText.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreText.d.ts index 8b13978c4c..d1499fe797 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreText.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreText.d.ts @@ -135,6 +135,8 @@ declare function CTFontCreateCopyWithSymbolicTraits(font: UIFont, size: number, declare function CTFontCreateForString(currentFont: UIFont, string: string, range: CFRange): UIFont; +declare function CTFontCreateForStringWithLanguage(currentFont: UIFont, string: string, range: CFRange, language: string): UIFont; + declare function CTFontCreatePathForGlyph(font: UIFont, glyph: number, matrix: interop.Pointer | interop.Reference): any; declare function CTFontCreateUIFontForLanguage(uiType: CTFontUIFontType, size: number, language: string): UIFont; @@ -215,13 +217,13 @@ declare const enum CTFontFormat { kCTFontFormatBitmap = 5 } -declare function CTFontGetAdvancesForGlyphs(font: UIFont, orientation: CTFontOrientation, glyphs: interop.Reference, advances: interop.Pointer | interop.Reference, count: number): number; +declare function CTFontGetAdvancesForGlyphs(font: UIFont, orientation: CTFontOrientation, glyphs: interop.Reference, advances: interop.Reference, count: number): number; declare function CTFontGetAscent(font: UIFont): number; declare function CTFontGetBoundingBox(font: UIFont): CGRect; -declare function CTFontGetBoundingRectsForGlyphs(font: UIFont, orientation: CTFontOrientation, glyphs: interop.Reference, boundingRects: interop.Pointer | interop.Reference, count: number): CGRect; +declare function CTFontGetBoundingRectsForGlyphs(font: UIFont, orientation: CTFontOrientation, glyphs: interop.Reference, boundingRects: interop.Reference, count: number): CGRect; declare function CTFontGetCapHeight(font: UIFont): number; @@ -235,11 +237,11 @@ declare function CTFontGetGlyphsForCharacters(font: UIFont, characters: interop. declare function CTFontGetLeading(font: UIFont): number; -declare function CTFontGetLigatureCaretPositions(font: UIFont, glyph: number, positions: interop.Pointer | interop.Reference, maxPositions: number): number; +declare function CTFontGetLigatureCaretPositions(font: UIFont, glyph: number, positions: interop.Reference, maxPositions: number): number; declare function CTFontGetMatrix(font: UIFont): CGAffineTransform; -declare function CTFontGetOpticalBoundsForGlyphs(font: UIFont, glyphs: interop.Reference, boundingRects: interop.Pointer | interop.Reference, count: number, options: number): CGRect; +declare function CTFontGetOpticalBoundsForGlyphs(font: UIFont, glyphs: interop.Reference, boundingRects: interop.Reference, count: number, options: number): CGRect; declare function CTFontGetSize(font: UIFont): number; @@ -276,8 +278,12 @@ declare function CTFontManagerCopyAvailableFontFamilyNames(): NSArray; declare function CTFontManagerCopyAvailablePostScriptNames(): NSArray; +declare function CTFontManagerCopyRegisteredFontDescriptors(scope: CTFontManagerScope, enabled: boolean): NSArray; + declare function CTFontManagerCreateFontDescriptorFromData(data: NSData): UIFontDescriptor; +declare function CTFontManagerCreateFontDescriptorsFromData(data: NSData): NSArray; + declare function CTFontManagerCreateFontDescriptorsFromURL(fileURL: NSURL): NSArray; declare const enum CTFontManagerError { @@ -296,26 +302,52 @@ declare const enum CTFontManagerError { kCTFontManagerErrorInUse = 202, - kCTFontManagerErrorSystemRequired = 203 + kCTFontManagerErrorSystemRequired = 203, + + kCTFontManagerErrorRegistrationFailed = 301, + + kCTFontManagerErrorMissingEntitlement = 302, + + kCTFontManagerErrorInsufficientInfo = 303, + + kCTFontManagerErrorCancelledByUser = 304, + + kCTFontManagerErrorDuplicatedName = 305, + + kCTFontManagerErrorInvalidFilePath = 306 } +declare function CTFontManagerRegisterFontDescriptors(fontDescriptors: NSArray, scope: CTFontManagerScope, enabled: boolean, registrationHandler: (p1: NSArray, p2: boolean) => boolean): void; + +declare function CTFontManagerRegisterFontURLs(fontURLs: NSArray, scope: CTFontManagerScope, enabled: boolean, registrationHandler: (p1: NSArray, p2: boolean) => boolean): void; + declare function CTFontManagerRegisterFontsForURL(fontURL: NSURL, scope: CTFontManagerScope, error: interop.Pointer | interop.Reference): boolean; declare function CTFontManagerRegisterFontsForURLs(fontURLs: NSArray, scope: CTFontManagerScope, errors: interop.Pointer | interop.Reference>): boolean; +declare function CTFontManagerRegisterFontsWithAssetNames(fontAssetNames: NSArray, bundle: any, scope: CTFontManagerScope, enabled: boolean, registrationHandler: (p1: NSArray, p2: boolean) => boolean): void; + declare function CTFontManagerRegisterGraphicsFont(font: any, error: interop.Pointer | interop.Reference): boolean; +declare function CTFontManagerRequestFonts(fontDescriptors: NSArray, completionHandler: (p1: NSArray) => void): void; + declare const enum CTFontManagerScope { kCTFontManagerScopeNone = 0, kCTFontManagerScopeProcess = 1, - kCTFontManagerScopeUser = 2, + kCTFontManagerScopePersistent = 2, + + kCTFontManagerScopeSession = 3, - kCTFontManagerScopeSession = 3 + kCTFontManagerScopeUser = 2 } +declare function CTFontManagerUnregisterFontDescriptors(fontDescriptors: NSArray, scope: CTFontManagerScope, registrationHandler: (p1: NSArray, p2: boolean) => boolean): void; + +declare function CTFontManagerUnregisterFontURLs(fontURLs: NSArray, scope: CTFontManagerScope, registrationHandler: (p1: NSArray, p2: boolean) => boolean): void; + declare function CTFontManagerUnregisterFontsForURL(fontURL: NSURL, scope: CTFontManagerScope, error: interop.Pointer | interop.Reference): boolean; declare function CTFontManagerUnregisterFontsForURLs(fontURLs: NSArray, scope: CTFontManagerScope, errors: interop.Pointer | interop.Reference>): boolean; @@ -614,6 +646,8 @@ declare function CTGlyphInfoGetCharacterCollection(glyphInfo: any): CTCharacterC declare function CTGlyphInfoGetCharacterIdentifier(glyphInfo: any): number; +declare function CTGlyphInfoGetGlyph(glyphInfo: any): number; + declare function CTGlyphInfoGetGlyphName(glyphInfo: any): string; declare function CTGlyphInfoGetTypeID(): number; @@ -829,6 +863,8 @@ declare function CTRunGetAdvancesPtr(run: any): interop.Pointer | interop.Refere declare function CTRunGetAttributes(run: any): NSDictionary; +declare function CTRunGetBaseAdvancesAndOrigins(runRef: any, range: CFRange, advancesBuffer: interop.Reference, originsBuffer: interop.Reference): void; + declare function CTRunGetGlyphCount(run: any): number; declare function CTRunGetGlyphs(run: any, range: CFRange, buffer: interop.Reference): void; @@ -1656,6 +1692,8 @@ declare var kCTFontFamilyNameAttribute: string; declare var kCTFontFamilyNameKey: string; +declare var kCTFontFeatureSampleTextKey: string; + declare var kCTFontFeatureSelectorDefaultKey: string; declare var kCTFontFeatureSelectorIdentifierKey: string; @@ -1666,6 +1704,8 @@ declare var kCTFontFeatureSelectorSettingKey: string; declare var kCTFontFeatureSettingsAttribute: string; +declare var kCTFontFeatureTooltipTextKey: string; + declare var kCTFontFeatureTypeExclusiveKey: string; declare var kCTFontFeatureTypeIdentifierKey: string; @@ -1692,6 +1732,10 @@ declare var kCTFontMacintoshEncodingsAttribute: string; declare var kCTFontManagerErrorDomain: string; +declare var kCTFontManagerErrorFontAssetNameKey: string; + +declare var kCTFontManagerErrorFontDescriptorsKey: string; + declare var kCTFontManagerErrorFontURLsKey: string; declare var kCTFontManagerRegisteredFontsChangedNotification: string; @@ -1728,6 +1772,8 @@ declare const kCTFontPriorityUser: number; declare var kCTFontRegistrationScopeAttribute: string; +declare var kCTFontRegistrationUserInfoAttribute: string; + declare var kCTFontSampleTextNameKey: string; declare var kCTFontSizeAttribute: string; @@ -1966,6 +2012,8 @@ declare var kCTSuperscriptAttributeName: string; declare var kCTTabColumnTerminatorsAttributeName: string; +declare var kCTTrackingAttributeName: string; + declare var kCTTypesetterOptionAllowUnboundedLayout: string; declare var kCTTypesetterOptionDisableBidiProcessing: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CoreVideo.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CoreVideo.d.ts index 25d1d86b8d..e31b5bd908 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!CoreVideo.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CoreVideo.d.ts @@ -51,6 +51,22 @@ declare function CVImageBufferGetEncodedSize(imageBuffer: any): CGSize; declare function CVImageBufferIsFlipped(imageBuffer: any): boolean; +declare function CVMetalTextureCacheCreate(allocator: any, cacheAttributes: NSDictionary, metalDevice: MTLDevice, textureAttributes: NSDictionary, cacheOut: interop.Pointer | interop.Reference): number; + +declare function CVMetalTextureCacheCreateTextureFromImage(allocator: any, textureCache: any, sourceImage: any, textureAttributes: NSDictionary, pixelFormat: MTLPixelFormat, width: number, height: number, planeIndex: number, textureOut: interop.Pointer | interop.Reference): number; + +declare function CVMetalTextureCacheFlush(textureCache: any, options: number): void; + +declare function CVMetalTextureCacheGetTypeID(): number; + +declare function CVMetalTextureGetCleanTexCoords(image: any, lowerLeft: interop.Reference, lowerRight: interop.Reference, upperRight: interop.Reference, upperLeft: interop.Reference): void; + +declare function CVMetalTextureGetTexture(image: any): MTLTexture; + +declare function CVMetalTextureGetTypeID(): number; + +declare function CVMetalTextureIsFlipped(image: any): boolean; + declare function CVOpenGLESTextureCacheCreate(allocator: any, cacheAttributes: NSDictionary, eaglContext: EAGLContext, textureAttributes: NSDictionary, cacheOut: interop.Pointer | interop.Reference): number; declare function CVOpenGLESTextureCacheCreateTextureFromImage(allocator: any, textureCache: any, sourceImage: any, textureAttributes: NSDictionary, target: number, internalFormat: number, width: number, height: number, format: number, type: number, planeIndex: number, textureOut: interop.Pointer | interop.Reference): number; @@ -75,6 +91,8 @@ declare function CVPixelBufferCreateResolvedAttributesDictionary(allocator: any, declare function CVPixelBufferCreateWithBytes(allocator: any, width: number, height: number, pixelFormatType: number, baseAddress: interop.Pointer | interop.Reference, bytesPerRow: number, releaseCallback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void>, releaseRefCon: interop.Pointer | interop.Reference, pixelBufferAttributes: NSDictionary, pixelBufferOut: interop.Pointer | interop.Reference): number; +declare function CVPixelBufferCreateWithIOSurface(allocator: any, surface: any, pixelBufferAttributes: NSDictionary, pixelBufferOut: interop.Pointer | interop.Reference): number; + declare function CVPixelBufferCreateWithPlanarBytes(allocator: any, width: number, height: number, pixelFormatType: number, dataPtr: interop.Pointer | interop.Reference, dataSize: number, numberOfPlanes: number, planeBaseAddress: interop.Reference>, planeWidth: interop.Reference, planeHeight: interop.Reference, planeBytesPerRow: interop.Reference, releaseCallback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: number, p5: interop.Reference>) => void>, releaseRefCon: interop.Pointer | interop.Reference, pixelBufferAttributes: NSDictionary, pixelBufferOut: interop.Pointer | interop.Reference): number; declare function CVPixelBufferFillExtendedPixels(pixelBuffer: any): number; @@ -95,6 +113,8 @@ declare function CVPixelBufferGetHeight(pixelBuffer: any): number; declare function CVPixelBufferGetHeightOfPlane(pixelBuffer: any, planeIndex: number): number; +declare function CVPixelBufferGetIOSurface(pixelBuffer: any): interop.Unmanaged; + declare function CVPixelBufferGetPixelFormatType(pixelBuffer: any): number; declare function CVPixelBufferGetPlaneCount(pixelBuffer: any): number; @@ -278,6 +298,12 @@ declare var kCVBufferTimeValueKey: string; declare var kCVImageBufferAlphaChannelIsOpaque: string; +declare var kCVImageBufferAlphaChannelModeKey: string; + +declare var kCVImageBufferAlphaChannelMode_PremultipliedAlpha: string; + +declare var kCVImageBufferAlphaChannelMode_StraightAlpha: string; + declare var kCVImageBufferCGColorSpaceKey: string; declare var kCVImageBufferChromaLocationBottomFieldKey: string; @@ -404,6 +430,10 @@ declare var kCVIndefiniteTime: CVTime; declare var kCVMetalTextureCacheMaximumTextureAgeKey: string; +declare var kCVMetalTextureStorageMode: string; + +declare var kCVMetalTextureUsage: string; + declare var kCVOpenGLESTextureCacheMaximumTextureAgeKey: string; declare var kCVPixelBufferBytesPerRowAlignmentKey: string; @@ -422,6 +452,12 @@ declare var kCVPixelBufferExtendedPixelsTopKey: string; declare var kCVPixelBufferHeightKey: string; +declare var kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey: string; + +declare var kCVPixelBufferIOSurfaceOpenGLESFBOCompatibilityKey: string; + +declare var kCVPixelBufferIOSurfaceOpenGLESTextureCompatibilityKey: string; + declare var kCVPixelBufferIOSurfacePropertiesKey: string; declare var kCVPixelBufferMemoryAllocatorKey: string; @@ -568,6 +604,8 @@ declare const kCVPixelFormatType_420YpCbCr8Planar: number; declare const kCVPixelFormatType_420YpCbCr8PlanarFullRange: number; +declare const kCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar: number; + declare const kCVPixelFormatType_422YpCbCr10: number; declare const kCVPixelFormatType_422YpCbCr10BiPlanarFullRange: number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!CryptoTokenKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!CryptoTokenKit.d.ts new file mode 100644 index 0000000000..b43b94419e --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!CryptoTokenKit.d.ts @@ -0,0 +1,696 @@ + +declare class TKBERTLVRecord extends TKTLVRecord { + + static alloc(): TKBERTLVRecord; // inherited from NSObject + + static dataForTag(tag: number): NSData; + + static new(): TKBERTLVRecord; // inherited from NSObject + + static recordFromData(data: NSData): TKBERTLVRecord; // inherited from TKTLVRecord + + constructor(o: { tag: number; records: NSArray | TKTLVRecord[]; }); + + constructor(o: { tag: number; value: NSData; }); + + initWithTagRecords(tag: number, records: NSArray | TKTLVRecord[]): this; + + initWithTagValue(tag: number, value: NSData): this; +} + +declare class TKCompactTLVRecord extends TKTLVRecord { + + static alloc(): TKCompactTLVRecord; // inherited from NSObject + + static new(): TKCompactTLVRecord; // inherited from NSObject + + static recordFromData(data: NSData): TKCompactTLVRecord; // inherited from TKTLVRecord + + constructor(o: { tag: number; value: NSData; }); + + initWithTagValue(tag: number, value: NSData): this; +} + +declare const enum TKErrorCode { + + CodeNotImplemented = -1, + + CodeCommunicationError = -2, + + CodeCorruptedData = -3, + + CodeCanceledByUser = -4, + + CodeAuthenticationFailed = -5, + + CodeObjectNotFound = -6, + + CodeTokenNotFound = -7, + + CodeBadParameter = -8, + + CodeAuthenticationNeeded = -9, + + AuthenticationFailed = -5, + + ObjectNotFound = -6, + + TokenNotFound = -7 +} + +declare var TKErrorDomain: string; + +declare class TKSimpleTLVRecord extends TKTLVRecord { + + static alloc(): TKSimpleTLVRecord; // inherited from NSObject + + static new(): TKSimpleTLVRecord; // inherited from NSObject + + static recordFromData(data: NSData): TKSimpleTLVRecord; // inherited from TKTLVRecord + + constructor(o: { tag: number; value: NSData; }); + + initWithTagValue(tag: number, value: NSData): this; +} + +declare class TKSmartCard extends NSObject { + + static alloc(): TKSmartCard; // inherited from NSObject + + static new(): TKSmartCard; // inherited from NSObject + + allowedProtocols: TKSmartCardProtocol; + + cla: number; + + context: any; + + readonly currentProtocol: TKSmartCardProtocol; + + sensitive: boolean; + + readonly slot: TKSmartCardSlot; + + useCommandChaining: boolean; + + useExtendedLength: boolean; + + readonly valid: boolean; + + beginSessionWithReply(reply: (p1: boolean, p2: NSError) => void): void; + + endSession(): void; + + inSessionWithErrorExecuteBlock(error: interop.Pointer | interop.Reference, block: (p1: interop.Pointer | interop.Reference) => boolean): boolean; + + sendInsP1P2DataLeReply(ins: number, p1: number, p2: number, requestData: NSData, le: number, reply: (p1: NSData, p2: number, p3: NSError) => void): void; + + sendInsP1P2DataLeSwError(ins: number, p1: number, p2: number, requestData: NSData, le: number, sw: interop.Pointer | interop.Reference): NSData; + + transmitRequestReply(request: NSData, reply: (p1: NSData, p2: NSError) => void): void; + + userInteractionForSecurePINChangeWithPINFormatAPDUCurrentPINByteOffsetNewPINByteOffset(PINFormat: TKSmartCardPINFormat, APDU: NSData, currentPINByteOffset: number, newPINByteOffset: number): TKSmartCardUserInteractionForSecurePINChange; + + userInteractionForSecurePINVerificationWithPINFormatAPDUPINByteOffset(PINFormat: TKSmartCardPINFormat, APDU: NSData, PINByteOffset: number): TKSmartCardUserInteractionForSecurePINVerification; +} + +declare class TKSmartCardATR extends NSObject { + + static alloc(): TKSmartCardATR; // inherited from NSObject + + static new(): TKSmartCardATR; // inherited from NSObject + + readonly bytes: NSData; + + readonly historicalBytes: NSData; + + readonly historicalRecords: NSArray; + + readonly protocols: NSArray; + + constructor(o: { bytes: NSData; }); + + constructor(o: { source: () => number; }); + + initWithBytes(bytes: NSData): this; + + initWithSource(source: () => number): this; + + interfaceGroupAtIndex(index: number): TKSmartCardATRInterfaceGroup; + + interfaceGroupForProtocol(protocol: TKSmartCardProtocol): TKSmartCardATRInterfaceGroup; +} + +declare class TKSmartCardATRInterfaceGroup extends NSObject { + + static alloc(): TKSmartCardATRInterfaceGroup; // inherited from NSObject + + static new(): TKSmartCardATRInterfaceGroup; // inherited from NSObject + + readonly TA: number; + + readonly TB: number; + + readonly TC: number; + + readonly protocol: number; +} + +declare const enum TKSmartCardPINCharset { + + Numeric = 0, + + Alphanumeric = 1, + + UpperAlphanumeric = 2 +} + +declare const enum TKSmartCardPINCompletion { + + MaxLength = 1, + + Key = 2, + + Timeout = 4 +} + +declare const enum TKSmartCardPINConfirmation { + + None = 0, + + New = 1, + + Current = 2 +} + +declare const enum TKSmartCardPINEncoding { + + Binary = 0, + + ASCII = 1, + + BCD = 2 +} + +declare class TKSmartCardPINFormat extends NSObject { + + static alloc(): TKSmartCardPINFormat; // inherited from NSObject + + static new(): TKSmartCardPINFormat; // inherited from NSObject + + PINBitOffset: number; + + PINBlockByteLength: number; + + PINJustification: TKSmartCardPINJustification; + + PINLengthBitOffset: number; + + PINLengthBitSize: number; + + charset: TKSmartCardPINCharset; + + encoding: TKSmartCardPINEncoding; + + maxPINLength: number; + + minPINLength: number; +} + +declare const enum TKSmartCardPINJustification { + + Left = 0, + + Right = 1 +} + +declare const enum TKSmartCardProtocol { + + None = 0, + + T0 = 1, + + T1 = 2, + + T15 = 32768, + + Any = 65535 +} + +declare class TKSmartCardSlot extends NSObject { + + static alloc(): TKSmartCardSlot; // inherited from NSObject + + static new(): TKSmartCardSlot; // inherited from NSObject + + readonly ATR: TKSmartCardATR; + + readonly maxInputLength: number; + + readonly maxOutputLength: number; + + readonly name: string; + + readonly state: TKSmartCardSlotState; + + makeSmartCard(): TKSmartCard; +} + +declare class TKSmartCardSlotManager extends NSObject { + + static alloc(): TKSmartCardSlotManager; // inherited from NSObject + + static new(): TKSmartCardSlotManager; // inherited from NSObject + + readonly slotNames: NSArray; + + static readonly defaultManager: TKSmartCardSlotManager; + + getSlotWithNameReply(name: string, reply: (p1: TKSmartCardSlot) => void): void; + + slotNamed(name: string): TKSmartCardSlot; +} + +declare const enum TKSmartCardSlotState { + + Missing = 0, + + Empty = 1, + + Probing = 2, + + MuteCard = 3, + + ValidCard = 4 +} + +declare class TKSmartCardToken extends TKToken { + + static alloc(): TKSmartCardToken; // inherited from NSObject + + static new(): TKSmartCardToken; // inherited from NSObject + + readonly AID: NSData; + + constructor(o: { smartCard: TKSmartCard; AID: NSData; instanceID: string; tokenDriver: TKSmartCardTokenDriver; }); + + initWithSmartCardAIDInstanceIDTokenDriver(smartCard: TKSmartCard, AID: NSData, instanceID: string, tokenDriver: TKSmartCardTokenDriver): this; +} + +declare class TKSmartCardTokenDriver extends TKTokenDriver { + + static alloc(): TKSmartCardTokenDriver; // inherited from NSObject + + static new(): TKSmartCardTokenDriver; // inherited from NSObject +} + +interface TKSmartCardTokenDriverDelegate extends TKTokenDriverDelegate { + + tokenDriverCreateTokenForSmartCardAIDError(driver: TKSmartCardTokenDriver, smartCard: TKSmartCard, AID: NSData): TKSmartCardToken; +} +declare var TKSmartCardTokenDriverDelegate: { + + prototype: TKSmartCardTokenDriverDelegate; +}; + +declare class TKSmartCardTokenSession extends TKTokenSession { + + static alloc(): TKSmartCardTokenSession; // inherited from NSObject + + static new(): TKSmartCardTokenSession; // inherited from NSObject + + readonly smartCard: TKSmartCard; +} + +declare class TKSmartCardUserInteraction extends NSObject { + + static alloc(): TKSmartCardUserInteraction; // inherited from NSObject + + static new(): TKSmartCardUserInteraction; // inherited from NSObject + + delegate: TKSmartCardUserInteractionDelegate; + + initialTimeout: number; + + interactionTimeout: number; + + cancel(): boolean; + + runWithReply(reply: (p1: boolean, p2: NSError) => void): void; +} + +interface TKSmartCardUserInteractionDelegate { + + characterEnteredInUserInteraction?(interaction: TKSmartCardUserInteraction): void; + + correctionKeyPressedInUserInteraction?(interaction: TKSmartCardUserInteraction): void; + + invalidCharacterEnteredInUserInteraction?(interaction: TKSmartCardUserInteraction): void; + + newPINConfirmationRequestedInUserInteraction?(interaction: TKSmartCardUserInteraction): void; + + newPINRequestedInUserInteraction?(interaction: TKSmartCardUserInteraction): void; + + oldPINRequestedInUserInteraction?(interaction: TKSmartCardUserInteraction): void; + + validationKeyPressedInUserInteraction?(interaction: TKSmartCardUserInteraction): void; +} +declare var TKSmartCardUserInteractionDelegate: { + + prototype: TKSmartCardUserInteractionDelegate; +}; + +declare class TKSmartCardUserInteractionForPINOperation extends TKSmartCardUserInteraction { + + static alloc(): TKSmartCardUserInteractionForPINOperation; // inherited from NSObject + + static new(): TKSmartCardUserInteractionForPINOperation; // inherited from NSObject + + PINCompletion: TKSmartCardPINCompletion; + + PINMessageIndices: NSArray; + + locale: NSLocale; + + resultData: NSData; + + resultSW: number; +} + +declare class TKSmartCardUserInteractionForSecurePINChange extends TKSmartCardUserInteractionForPINOperation { + + static alloc(): TKSmartCardUserInteractionForSecurePINChange; // inherited from NSObject + + static new(): TKSmartCardUserInteractionForSecurePINChange; // inherited from NSObject + + PINConfirmation: TKSmartCardPINConfirmation; +} + +declare class TKSmartCardUserInteractionForSecurePINVerification extends TKSmartCardUserInteractionForPINOperation { + + static alloc(): TKSmartCardUserInteractionForSecurePINVerification; // inherited from NSObject + + static new(): TKSmartCardUserInteractionForSecurePINVerification; // inherited from NSObject +} + +declare class TKTLVRecord extends NSObject { + + static alloc(): TKTLVRecord; // inherited from NSObject + + static new(): TKTLVRecord; // inherited from NSObject + + static recordFromData(data: NSData): TKTLVRecord; + + static sequenceOfRecordsFromData(data: NSData): NSArray; + + readonly data: NSData; + + readonly tag: number; + + readonly value: NSData; +} + +declare class TKToken extends NSObject { + + static alloc(): TKToken; // inherited from NSObject + + static new(): TKToken; // inherited from NSObject + + readonly configuration: TKTokenConfiguration; + + delegate: TKTokenDelegate; + + readonly keychainContents: TKTokenKeychainContents; + + readonly tokenDriver: TKTokenDriver; + + constructor(o: { tokenDriver: TKTokenDriver; instanceID: string; }); + + initWithTokenDriverInstanceID(tokenDriver: TKTokenDriver, instanceID: string): this; +} + +declare class TKTokenAuthOperation extends NSObject implements NSSecureCoding { + + static alloc(): TKTokenAuthOperation; // inherited from NSObject + + static new(): TKTokenAuthOperation; // inherited from NSObject + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + finishWithError(): boolean; + + initWithCoder(coder: NSCoder): this; +} + +declare class TKTokenConfiguration extends NSObject { + + static alloc(): TKTokenConfiguration; // inherited from NSObject + + static new(): TKTokenConfiguration; // inherited from NSObject + + configurationData: NSData; + + readonly instanceID: string; + + keychainItems: NSArray; + + certificateForObjectIDError(objectID: any): TKTokenKeychainCertificate; + + keyForObjectIDError(objectID: any): TKTokenKeychainKey; +} + +interface TKTokenDelegate extends NSObjectProtocol { + + tokenCreateSessionWithError(token: TKToken): TKTokenSession; + + tokenTerminateSession?(token: TKToken, session: TKTokenSession): void; +} +declare var TKTokenDelegate: { + + prototype: TKTokenDelegate; +}; + +declare class TKTokenDriver extends NSObject { + + static alloc(): TKTokenDriver; // inherited from NSObject + + static new(): TKTokenDriver; // inherited from NSObject + + delegate: TKTokenDriverDelegate; +} + +declare class TKTokenDriverConfiguration extends NSObject { + + static alloc(): TKTokenDriverConfiguration; // inherited from NSObject + + static new(): TKTokenDriverConfiguration; // inherited from NSObject + + readonly classID: string; + + readonly tokenConfigurations: NSDictionary; + + static readonly driverConfigurations: NSDictionary; + + addTokenConfigurationForTokenInstanceID(instanceID: string): TKTokenConfiguration; + + removeTokenConfigurationForTokenInstanceID(instanceID: string): void; +} + +interface TKTokenDriverDelegate extends NSObjectProtocol { + + tokenDriverTerminateToken?(driver: TKTokenDriver, token: TKToken): void; + + tokenDriverTokenForConfigurationError?(driver: TKTokenDriver, configuration: TKTokenConfiguration): TKToken; +} +declare var TKTokenDriverDelegate: { + + prototype: TKTokenDriverDelegate; +}; + +declare class TKTokenKeyAlgorithm extends NSObject { + + static alloc(): TKTokenKeyAlgorithm; // inherited from NSObject + + static new(): TKTokenKeyAlgorithm; // inherited from NSObject + + isAlgorithm(algorithm: any): boolean; + + supportsAlgorithm(algorithm: any): boolean; +} + +declare class TKTokenKeyExchangeParameters extends NSObject { + + static alloc(): TKTokenKeyExchangeParameters; // inherited from NSObject + + static new(): TKTokenKeyExchangeParameters; // inherited from NSObject + + readonly requestedSize: number; + + readonly sharedInfo: NSData; +} + +declare class TKTokenKeychainCertificate extends TKTokenKeychainItem { + + static alloc(): TKTokenKeychainCertificate; // inherited from NSObject + + static new(): TKTokenKeychainCertificate; // inherited from NSObject + + readonly data: NSData; + + constructor(o: { certificate: any; objectID: any; }); + + initWithCertificateObjectID(certificateRef: any, objectID: any): this; +} + +declare class TKTokenKeychainContents extends NSObject { + + static alloc(): TKTokenKeychainContents; // inherited from NSObject + + static new(): TKTokenKeychainContents; // inherited from NSObject + + readonly items: NSArray; + + certificateForObjectIDError(objectID: any): TKTokenKeychainCertificate; + + fillWithItems(items: NSArray | TKTokenKeychainItem[]): void; + + keyForObjectIDError(objectID: any): TKTokenKeychainKey; +} + +declare class TKTokenKeychainItem extends NSObject { + + static alloc(): TKTokenKeychainItem; // inherited from NSObject + + static new(): TKTokenKeychainItem; // inherited from NSObject + + constraints: NSDictionary; + + label: string; + + readonly objectID: any; + + constructor(o: { objectID: any; }); + + initWithObjectID(objectID: any): this; +} + +declare class TKTokenKeychainKey extends TKTokenKeychainItem { + + static alloc(): TKTokenKeychainKey; // inherited from NSObject + + static new(): TKTokenKeychainKey; // inherited from NSObject + + applicationTag: NSData; + + canDecrypt: boolean; + + canPerformKeyExchange: boolean; + + canSign: boolean; + + keySizeInBits: number; + + keyType: string; + + publicKeyData: NSData; + + publicKeyHash: NSData; + + suitableForLogin: boolean; + + constructor(o: { certificate: any; objectID: any; }); + + initWithCertificateObjectID(certificateRef: any, objectID: any): this; +} + +declare const enum TKTokenOperation { + + None = 0, + + ReadData = 1, + + SignData = 2, + + DecryptData = 3, + + PerformKeyExchange = 4 +} + +declare class TKTokenPasswordAuthOperation extends TKTokenAuthOperation { + + static alloc(): TKTokenPasswordAuthOperation; // inherited from NSObject + + static new(): TKTokenPasswordAuthOperation; // inherited from NSObject + + password: string; +} + +declare class TKTokenSession extends NSObject { + + static alloc(): TKTokenSession; // inherited from NSObject + + static new(): TKTokenSession; // inherited from NSObject + + delegate: TKTokenSessionDelegate; + + readonly token: TKToken; + + constructor(o: { token: TKToken; }); + + initWithToken(token: TKToken): this; +} + +interface TKTokenSessionDelegate extends NSObjectProtocol { + + tokenSessionBeginAuthForOperationConstraintError?(session: TKTokenSession, operation: TKTokenOperation, constraint: any): TKTokenAuthOperation; + + tokenSessionDecryptDataUsingKeyAlgorithmError?(session: TKTokenSession, ciphertext: NSData, keyObjectID: any, algorithm: TKTokenKeyAlgorithm): NSData; + + tokenSessionPerformKeyExchangeWithPublicKeyUsingKeyAlgorithmParametersError?(session: TKTokenSession, otherPartyPublicKeyData: NSData, objectID: any, algorithm: TKTokenKeyAlgorithm, parameters: TKTokenKeyExchangeParameters): NSData; + + tokenSessionSignDataUsingKeyAlgorithmError?(session: TKTokenSession, dataToSign: NSData, keyObjectID: any, algorithm: TKTokenKeyAlgorithm): NSData; + + tokenSessionSupportsOperationUsingKeyAlgorithm?(session: TKTokenSession, operation: TKTokenOperation, keyObjectID: any, algorithm: TKTokenKeyAlgorithm): boolean; +} +declare var TKTokenSessionDelegate: { + + prototype: TKTokenSessionDelegate; +}; + +declare class TKTokenSmartCardPINAuthOperation extends TKTokenAuthOperation { + + static alloc(): TKTokenSmartCardPINAuthOperation; // inherited from NSObject + + static new(): TKTokenSmartCardPINAuthOperation; // inherited from NSObject + + APDUTemplate: NSData; + + PIN: string; + + PINByteOffset: number; + + PINFormat: TKSmartCardPINFormat; + + smartCard: TKSmartCard; +} + +declare class TKTokenWatcher extends NSObject { + + static alloc(): TKTokenWatcher; // inherited from NSObject + + static new(): TKTokenWatcher; // inherited from NSObject + + readonly tokenIDs: NSArray; + + constructor(o: { insertionHandler: (p1: string) => void; }); + + addRemovalHandlerForTokenID(removalHandler: (p1: string) => void, tokenID: string): void; + + initWithInsertionHandler(insertionHandler: (p1: string) => void): this; + + setInsertionHandler(insertionHandler: (p1: string) => void): void; +} diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Darwin.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Darwin.d.ts index b5f3183b76..487bbf4cc2 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Darwin.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Darwin.d.ts @@ -409,7 +409,7 @@ interface __Reply__clock_get_time_t { Head: mach_msg_header_t; NDR: NDR_record_t; RetCode: number; - cur_time: mach_timespec_t; + cur_time: mach_timespec; } declare var __Reply__clock_get_time_t: interop.StructType<__Reply__clock_get_time_t>; @@ -1026,6 +1026,13 @@ interface __Reply__mach_port_guard_t { } declare var __Reply__mach_port_guard_t: interop.StructType<__Reply__mach_port_guard_t>; +interface __Reply__mach_port_guard_with_flags_t { + Head: mach_msg_header_t; + NDR: NDR_record_t; + RetCode: number; +} +declare var __Reply__mach_port_guard_with_flags_t: interop.StructType<__Reply__mach_port_guard_with_flags_t>; + interface __Reply__mach_port_insert_member_t { Head: mach_msg_header_t; NDR: NDR_record_t; @@ -1157,6 +1164,13 @@ interface __Reply__mach_port_space_info_t { } declare var __Reply__mach_port_space_info_t: interop.StructType<__Reply__mach_port_space_info_t>; +interface __Reply__mach_port_swap_guard_t { + Head: mach_msg_header_t; + NDR: NDR_record_t; + RetCode: number; +} +declare var __Reply__mach_port_swap_guard_t: interop.StructType<__Reply__mach_port_swap_guard_t>; + interface __Reply__mach_port_type_t { Head: mach_msg_header_t; NDR: NDR_record_t; @@ -1446,6 +1460,14 @@ interface __Reply__task_get_emulation_vector_t { } declare var __Reply__task_get_emulation_vector_t: interop.StructType<__Reply__task_get_emulation_vector_t>; +interface __Reply__task_get_exc_guard_behavior_t { + Head: mach_msg_header_t; + NDR: NDR_record_t; + RetCode: number; + behavior: number; +} +declare var __Reply__task_get_exc_guard_behavior_t: interop.StructType<__Reply__task_get_exc_guard_behavior_t>; + interface __Reply__task_get_exception_ports_t { Head: mach_msg_header_t; msgh_body: mach_msg_body_t; @@ -1605,6 +1627,13 @@ interface __Reply__task_set_emulation_vector_t { } declare var __Reply__task_set_emulation_vector_t: interop.StructType<__Reply__task_set_emulation_vector_t>; +interface __Reply__task_set_exc_guard_behavior_t { + Head: mach_msg_header_t; + NDR: NDR_record_t; + RetCode: number; +} +declare var __Reply__task_set_exc_guard_behavior_t: interop.StructType<__Reply__task_set_exc_guard_behavior_t>; + interface __Reply__task_set_exception_ports_t { Head: mach_msg_header_t; NDR: NDR_record_t; @@ -2195,7 +2224,7 @@ interface __Request__clock_alarm_reply_t { NDR: NDR_record_t; alarm_code: number; alarm_type: number; - alarm_time: mach_timespec_t; + alarm_time: mach_timespec; } declare var __Request__clock_alarm_reply_t: interop.StructType<__Request__clock_alarm_reply_t>; @@ -2205,7 +2234,7 @@ interface __Request__clock_alarm_t { alarm_port: mach_msg_port_descriptor_t; NDR: NDR_record_t; alarm_type: number; - alarm_time: mach_timespec_t; + alarm_time: mach_timespec; } declare var __Request__clock_alarm_t: interop.StructType<__Request__clock_alarm_t>; @@ -2234,7 +2263,7 @@ declare var __Request__clock_set_attributes_t: interop.StructType<__Request__clo interface __Request__clock_set_time_t { Head: mach_msg_header_t; NDR: NDR_record_t; - new_time: mach_timespec_t; + new_time: mach_timespec; } declare var __Request__clock_set_time_t: interop.StructType<__Request__clock_set_time_t>; @@ -2825,6 +2854,15 @@ interface __Request__mach_port_guard_t { } declare var __Request__mach_port_guard_t: interop.StructType<__Request__mach_port_guard_t>; +interface __Request__mach_port_guard_with_flags_t { + Head: mach_msg_header_t; + NDR: NDR_record_t; + name: number; + guard: number; + flags: number; +} +declare var __Request__mach_port_guard_with_flags_t: interop.StructType<__Request__mach_port_guard_with_flags_t>; + interface __Request__mach_port_insert_member_t { Head: mach_msg_header_t; NDR: NDR_record_t; @@ -2951,6 +2989,15 @@ interface __Request__mach_port_space_info_t { } declare var __Request__mach_port_space_info_t: interop.StructType<__Request__mach_port_space_info_t>; +interface __Request__mach_port_swap_guard_t { + Head: mach_msg_header_t; + NDR: NDR_record_t; + name: number; + old_guard: number; + new_guard: number; +} +declare var __Request__mach_port_swap_guard_t: interop.StructType<__Request__mach_port_swap_guard_t>; + interface __Request__mach_port_type_t { Head: mach_msg_header_t; NDR: NDR_record_t; @@ -3197,6 +3244,11 @@ interface __Request__task_get_emulation_vector_t { } declare var __Request__task_get_emulation_vector_t: interop.StructType<__Request__task_get_emulation_vector_t>; +interface __Request__task_get_exc_guard_behavior_t { + Head: mach_msg_header_t; +} +declare var __Request__task_get_exc_guard_behavior_t: interop.StructType<__Request__task_get_exc_guard_behavior_t>; + interface __Request__task_get_exception_ports_t { Head: mach_msg_header_t; NDR: NDR_record_t; @@ -3347,6 +3399,13 @@ interface __Request__task_set_emulation_vector_t { } declare var __Request__task_set_emulation_vector_t: interop.StructType<__Request__task_set_emulation_vector_t>; +interface __Request__task_set_exc_guard_behavior_t { + Head: mach_msg_header_t; + NDR: NDR_record_t; + behavior: number; +} +declare var __Request__task_set_exc_guard_behavior_t: interop.StructType<__Request__task_set_exc_guard_behavior_t>; + interface __Request__task_set_exception_ports_t { Head: mach_msg_header_t; msgh_body: mach_msg_body_t; @@ -3966,6 +4025,13 @@ interface __darwin_pthread_handler_rec { } declare var __darwin_pthread_handler_rec: interop.StructType<__darwin_pthread_handler_rec>; +interface __darwin_sigaltstack { + ss_sp: interop.Pointer | interop.Reference; + ss_size: number; + ss_flags: number; +} +declare var __darwin_sigaltstack: interop.StructType<__darwin_sigaltstack>; + interface __double2 { __sinval: number; __cosval: number; @@ -4130,30 +4196,10 @@ declare function __tanpi(p1: number): number; declare function __tanpif(p1: number): number; -declare function __tg_promote(p1: number): number; - -declare function __tg_promoteFunction(p1: number): number; - -declare function __tg_promoteFunction2(p1: number): number; - -declare function __tg_promoteFunction3(p1: number): number; - -declare function __tg_promoteFunction4(p1: number): number; - -declare function __tg_promoteFunction5(p1: number): number; - -declare function __tg_promoteFunction6(p1: number): number; - -declare function __tg_promoteFunction7(p1: number): number; - -declare function __tg_promoteFunction8(p1: number): number; - declare function __tolower(p1: number): number; declare function __toupper(p1: number): number; -declare var _c_locale: interop.Pointer | interop.Reference; - declare function _exit(p1: number): void; declare function _host_page_size(host: number, out_page_size: interop.Pointer | interop.Reference): number; @@ -4182,6 +4228,10 @@ declare function _kernelrpc_mach_port_mod_refs_trap(target: number, name: number declare function _kernelrpc_mach_port_move_member_trap(target: number, member: number, after: number): number; +declare function _kernelrpc_mach_port_request_notification_trap(task: number, name: number, msgid: number, sync: number, notify: number, notifyPoly: number, previous: interop.Pointer | interop.Reference): number; + +declare function _kernelrpc_mach_port_type_trap(task: number, name: number, ptype: interop.Pointer | interop.Reference): number; + declare function _kernelrpc_mach_port_unguard_trap(target: number, name: number, guard: number): number; declare function _kernelrpc_mach_vm_allocate_trap(target: number, addr: interop.Pointer | interop.Reference, size: number, flags: number): number; @@ -4255,7 +4305,7 @@ declare var _opaque_pthread_t: interop.StructType<_opaque_pthread_t>; interface _pcred { pc_lock: interop.Reference; - pc_ucred: interop.Pointer | interop.Reference; + pc_ucred: interop.Pointer | interop.Reference; p_ruid: number; p_svuid: number; p_rgid: number; @@ -4622,47 +4672,68 @@ interface attrreference_t { } declare var attrreference_t: interop.StructType; -interface au_evclass_map_t { +interface au_evclass_map { ec_number: number; ec_class: number; } -declare var au_evclass_map_t: interop.StructType; +declare var au_evclass_map: interop.StructType; -interface au_expire_after_t { +interface au_expire_after { age: number; size: number; op_type: number; } -declare var au_expire_after_t: interop.StructType; +declare var au_expire_after: interop.StructType; -interface au_fstat_t { - af_filesz: number; - af_currsz: number; -} -declare var au_fstat_t: interop.StructType; - -interface au_mask_t { +interface au_mask { am_success: number; am_failure: number; } -declare var au_mask_t: interop.StructType; +declare var au_mask: interop.StructType; -interface au_qctrl_t { +interface au_qctrl { aq_hiwater: number; aq_lowater: number; aq_bufsz: number; aq_delay: number; aq_minfree: number; } -declare var au_qctrl_t: interop.StructType; +declare var au_qctrl: interop.StructType; + +interface au_session { + as_aia_p: interop.Pointer | interop.Reference; + as_mask: au_mask; +} +declare var au_session: interop.StructType; + +interface au_tid { + port: number; + machine: number; +} +declare var au_tid: interop.StructType; + +interface au_tid_addr { + at_port: number; + at_type: number; + at_addr: interop.Reference; +} +declare var au_tid_addr: interop.StructType; + +declare function audit(p1: interop.Pointer | interop.Reference, p2: number): number; -interface au_session_t { - as_aia_p: interop.Pointer | interop.Reference; - as_mask: au_mask_t; +interface audit_fstat { + af_filesz: number; + af_currsz: number; } -declare var au_session_t: interop.StructType; +declare var audit_fstat: interop.StructType; + +declare function audit_session_join(port: number): number; + +declare function audit_session_port(asid: number, portname: interop.Pointer | interop.Reference): number; -interface au_stat_t { +declare function audit_session_self(): number; + +interface audit_stat { as_version: number; as_numevent: number; as_generated: number; @@ -4678,28 +4749,7 @@ interface au_stat_t { as_totalsize: number; as_memused: number; } -declare var au_stat_t: interop.StructType; - -interface au_tid_addr_t { - at_port: number; - at_type: number; - at_addr: interop.Reference; -} -declare var au_tid_addr_t: interop.StructType; - -interface au_tid_t { - port: number; - machine: number; -} -declare var au_tid_t: interop.StructType; - -declare function audit(p1: interop.Pointer | interop.Reference, p2: number): number; - -declare function audit_session_join(port: number): number; - -declare function audit_session_port(asid: number, portname: interop.Pointer | interop.Reference): number; - -declare function audit_session_self(): number; +declare var audit_stat: interop.StructType; interface audit_token_t { val: interop.Reference; @@ -4708,43 +4758,43 @@ declare var audit_token_t: interop.StructType; declare function auditctl(p1: string): number; -interface auditinfo_addr_t { +interface auditinfo { ai_auid: number; - ai_mask: au_mask_t; - ai_termid: au_tid_addr_t; + ai_mask: au_mask; + ai_termid: au_tid; ai_asid: number; - ai_flags: number; } -declare var auditinfo_addr_t: interop.StructType; +declare var auditinfo: interop.StructType; -interface auditinfo_t { +interface auditinfo_addr { ai_auid: number; - ai_mask: au_mask_t; - ai_termid: au_tid_t; + ai_mask: au_mask; + ai_termid: au_tid_addr; ai_asid: number; + ai_flags: number; } -declare var auditinfo_t: interop.StructType; +declare var auditinfo_addr: interop.StructType; declare function auditon(p1: number, p2: interop.Pointer | interop.Reference, p3: number): number; -interface auditpinfo_addr_t { +interface auditpinfo { ap_pid: number; ap_auid: number; - ap_mask: au_mask_t; - ap_termid: au_tid_addr_t; + ap_mask: au_mask; + ap_termid: au_tid; ap_asid: number; - ap_flags: number; } -declare var auditpinfo_addr_t: interop.StructType; +declare var auditpinfo: interop.StructType; -interface auditpinfo_t { +interface auditpinfo_addr { ap_pid: number; ap_auid: number; - ap_mask: au_mask_t; - ap_termid: au_tid_t; + ap_mask: au_mask; + ap_termid: au_tid_addr; ap_asid: number; + ap_flags: number; } -declare var auditpinfo_t: interop.StructType; +declare var auditpinfo_addr: interop.StructType; declare var averunnable: loadavg; @@ -4850,15 +4900,15 @@ declare function clearerr(p1: interop.Pointer | interop.Reference): void; declare function clock(): number; -declare function clock_alarm(clock_serv: number, alarm_type: number, alarm_time: mach_timespec_t, alarm_port: number): number; +declare function clock_alarm(clock_serv: number, alarm_type: number, alarm_time: mach_timespec, alarm_port: number): number; -declare function clock_alarm_reply(alarm_port: number, alarm_portPoly: number, alarm_code: number, alarm_type: number, alarm_time: mach_timespec_t): number; +declare function clock_alarm_reply(alarm_port: number, alarm_portPoly: number, alarm_code: number, alarm_type: number, alarm_time: mach_timespec): number; declare function clock_get_attributes(clock_serv: number, flavor: number, clock_attr: interop.Pointer | interop.Reference, clock_attrCnt: interop.Pointer | interop.Reference): number; declare function clock_get_res(p1: number, p2: interop.Pointer | interop.Reference): number; -declare function clock_get_time(clock_serv: number, cur_time: interop.Pointer | interop.Reference): number; +declare function clock_get_time(clock_serv: number, cur_time: interop.Pointer | interop.Reference): number; declare function clock_getres(__clock_id: clockid_t, __res: interop.Pointer | interop.Reference): number; @@ -4870,11 +4920,11 @@ declare function clock_set_attributes(clock_ctrl: number, flavor: number, clock_ declare function clock_set_res(p1: number, p2: number): number; -declare function clock_set_time(clock_ctrl: number, new_time: mach_timespec_t): number; +declare function clock_set_time(clock_ctrl: number, new_time: mach_timespec): number; -declare function clock_sleep(p1: number, p2: number, p3: mach_timespec_t, p4: interop.Pointer | interop.Reference): number; +declare function clock_sleep(p1: number, p2: number, p3: mach_timespec, p4: interop.Pointer | interop.Reference): number; -declare function clock_sleep_trap(clock_name: number, sleep_type: number, sleep_sec: number, sleep_nsec: number, wakeup_time: interop.Pointer | interop.Reference): number; +declare function clock_sleep_trap(clock_name: number, sleep_type: number, sleep_sec: number, sleep_nsec: number, wakeup_time: interop.Pointer | interop.Reference): number; declare const enum clockid_t { @@ -5007,6 +5057,8 @@ declare function dbm_open(p1: string, p2: number, p3: number): interop.Pointer | declare function dbm_store(p1: interop.Pointer | interop.Reference, p2: datum, p3: datum, p4: number): number; +declare function debug_control_port_for_pid(target_tport: number, pid: number, t: interop.Pointer | interop.Reference): number; + declare const developStage: number; declare function devname(p1: number, p2: number): string; @@ -5095,8 +5147,6 @@ declare function dup(p1: number): number; declare function dup2(p1: number, p2: number): number; -declare function duplocale(p1: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - declare const eNoteExitReparentedDeprecated: number; declare const eNoteReapDeprecated: number; @@ -5359,13 +5409,13 @@ declare function fgetws_l(p1: interop.Pointer | interop.Reference, p2: n declare function fgetxattr(fd: number, name: string, value: interop.Pointer | interop.Reference, size: number, position: number, options: number): number; -interface fhandle_t { +interface fhandle { fh_len: number; fh_data: interop.Reference; } -declare var fhandle_t: interop.StructType; +declare var fhandle: interop.StructType; -declare function fhopen(p1: interop.Pointer | interop.Reference, p2: number): number; +declare function fhopen(p1: interop.Pointer | interop.Reference, p2: number): number; declare function fileno(p1: interop.Pointer | interop.Reference): number; @@ -5515,8 +5565,6 @@ declare function freeifaddrs(p1: interop.Pointer | interop.Reference): declare function freeifmaddrs(p1: interop.Pointer | interop.Reference): void; -declare function freelocale(p1: interop.Pointer | interop.Reference): number; - declare function fremovexattr(fd: number, name: string, options: number): number; declare function freopen(p1: string, p2: string, p3: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; @@ -5557,6 +5605,14 @@ interface fsobj_id_t { } declare var fsobj_id_t: interop.StructType; +interface fspecread_t { + fsr_flags: number; + reserved: number; + fsr_offset: number; + fsr_length: number; +} +declare var fspecread_t: interop.StructType; + interface fssearchblock { returnattrs: interop.Pointer | interop.Reference; returnbuffer: interop.Pointer | interop.Reference; @@ -5638,9 +5694,9 @@ declare function getattrlistat(p1: number, p2: string, p3: interop.Pointer | int declare function getattrlistbulk(p1: number, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: number, p5: number): number; -declare function getaudit(p1: interop.Pointer | interop.Reference): number; +declare function getaudit(p1: interop.Pointer | interop.Reference): number; -declare function getaudit_addr(p1: interop.Pointer | interop.Reference, p2: number): number; +declare function getaudit_addr(p1: interop.Pointer | interop.Reference, p2: number): number; declare function getauid(p1: interop.Pointer | interop.Reference): number; @@ -5676,7 +5732,7 @@ declare function getenv(p1: string): string; declare function geteuid(): number; -declare function getfh(p1: string, p2: interop.Pointer | interop.Reference): number; +declare function getfh(p1: string, p2: interop.Pointer | interop.Reference): number; declare function getfsstat(p1: interop.Pointer | interop.Reference, p2: number, p3: number): number; @@ -5903,11 +5959,6 @@ interface group_source_req { } declare var group_source_req: interop.StructType; -interface guid_t { - g_guid: interop.Reference; -} -declare var guid_t: interop.StructType; - declare var h_errno: number; interface hash_info_bucket_t { @@ -5925,7 +5976,7 @@ declare function heapsort_b(__base: interop.Pointer | interop.Reference, __ declare function herror(p1: string): void; -interface host_basic_info_data_t { +interface host_basic_info { max_cpus: number; avail_cpus: number; memory_size: number; @@ -5938,19 +5989,19 @@ interface host_basic_info_data_t { logical_cpu_max: number; max_mem: number; } -declare var host_basic_info_data_t: interop.StructType; +declare var host_basic_info: interop.StructType; -interface host_can_has_debugger_info_data_t { +interface host_can_has_debugger_info { can_has_debugger: number; } -declare var host_can_has_debugger_info_data_t: interop.StructType; +declare var host_can_has_debugger_info: interop.StructType; declare function host_check_multiuser_mode(host: number, multiuser_mode: interop.Pointer | interop.Reference): number; -interface host_cpu_load_info_data_t { +interface host_cpu_load_info { cpu_ticks: interop.Reference; } -declare var host_cpu_load_info_data_t: interop.StructType; +declare var host_cpu_load_info: interop.StructType; declare function host_create_mach_voucher(host: number, recipes: string, recipesCnt: number, voucher: interop.Pointer | interop.Reference): number; @@ -5980,23 +6031,23 @@ declare function host_info(host: number, flavor: number, host_info_out: interop. declare function host_kernel_version(host: number, kernel_version: interop.Reference): number; -interface host_load_info_data_t { +interface host_load_info { avenrun: interop.Reference; mach_factor: interop.Reference; } -declare var host_load_info_data_t: interop.StructType; +declare var host_load_info: interop.StructType; declare function host_lockgroup_info(host: number, lockgroup_info: interop.Pointer | interop.Reference>, lockgroup_infoCnt: interop.Pointer | interop.Reference): number; declare function host_page_size(p1: number, p2: interop.Pointer | interop.Reference): number; -interface host_preferred_user_arch_data_t { +interface host_preferred_user_arch { cpu_type: number; cpu_subtype: number; } -declare var host_preferred_user_arch_data_t: interop.StructType; +declare var host_preferred_user_arch: interop.StructType; -interface host_priority_info_data_t { +interface host_priority_info { kernel_priority: number; system_priority: number; server_priority: number; @@ -6006,7 +6057,7 @@ interface host_priority_info_data_t { minimum_priority: number; maximum_priority: number; } -declare var host_priority_info_data_t: interop.StructType; +declare var host_priority_info: interop.StructType; declare function host_priv_statistics(host_priv: number, flavor: number, host_info_out: interop.Pointer | interop.Reference, host_info_outCnt: interop.Pointer | interop.Reference): number; @@ -6026,11 +6077,11 @@ declare function host_register_well_known_mach_voucher_attr_manager(host: number declare function host_request_notification(host: number, notify_type: number, notify_port: number): number; -interface host_sched_info_data_t { +interface host_sched_info { min_timeout: number; min_quantum: number; } -declare var host_sched_info_data_t: interop.StructType; +declare var host_sched_info: interop.StructType; declare function host_security_create_task_token(host_security: number, parent_task: number, sec_token: security_token_t, audit_token: audit_token_t, host: number, ledgers: interop.Pointer | interop.Reference, ledgersCnt: number, inherit_memory: number, child_task: interop.Pointer | interop.Reference): number; @@ -6510,71 +6561,26 @@ declare const kUnknownType: number; declare const kVariableLengthArray: number; -interface kauth_ace { - ace_applicable: guid_t; - ace_flags: number; - ace_rights: number; -} -declare var kauth_ace: interop.StructType; - -interface kauth_acl { - acl_entrycount: number; - acl_flags: number; - acl_ace: interop.Reference; -} -declare var kauth_acl: interop.StructType; - interface kauth_cache_sizes { kcs_group_size: number; kcs_id_size: number; } declare var kauth_cache_sizes: interop.StructType; -interface kauth_filesec { - fsec_magic: number; - fsec_owner: guid_t; - fsec_group: guid_t; - fsec_acl: kauth_acl; -} -declare var kauth_filesec: interop.StructType; - -interface kauth_identity_extlookup { - el_seqno: number; - el_result: number; - el_flags: number; - el_info_pid: number; - el_extend: number; - el_info_reserved_1: number; - el_uid: number; - el_uguid: guid_t; - el_uguid_valid: number; - el_usid: ntsid_t; - el_usid_valid: number; - el_gid: number; - el_gguid: guid_t; - el_gguid_valid: number; - el_gsid: ntsid_t; - el_gsid_valid: number; - el_member_valid: number; - el_sup_grp_cnt: number; - el_sup_groups: interop.Reference; -} -declare var kauth_identity_extlookup: interop.StructType; - declare function kdebug_signpost(code: number, arg1: number, arg2: number, arg3: number, arg4: number): number; declare function kdebug_signpost_end(code: number, arg1: number, arg2: number, arg3: number, arg4: number): number; declare function kdebug_signpost_start(code: number, arg1: number, arg2: number, arg3: number, arg4: number): number; -interface kernel_resource_sizes_data_t { +interface kernel_resource_sizes { task: number; thread: number; port: number; memory_region: number; memory_object: number; } -declare var kernel_resource_sizes_data_t: interop.StructType; +declare var kernel_resource_sizes: interop.StructType; interface kev_dl_proto_data { link_data: net_event_data; @@ -6802,8 +6808,6 @@ declare var loadavg: interop.StructType; declare function localeconv(): interop.Pointer | interop.Reference; -declare function localeconv_l(p1: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - declare function localtime(p1: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; declare function localtime_r(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; @@ -7039,6 +7043,33 @@ interface mach_msg_empty_send_t { } declare var mach_msg_empty_send_t: interop.StructType; +interface mach_msg_guarded_port_descriptor32_t { + context: number; + name: number; + flags: number; + disposition: number; + type: number; +} +declare var mach_msg_guarded_port_descriptor32_t: interop.StructType; + +interface mach_msg_guarded_port_descriptor64_t { + context: number; + flags: number; + disposition: number; + type: number; + name: number; +} +declare var mach_msg_guarded_port_descriptor64_t: interop.StructType; + +interface mach_msg_guarded_port_descriptor_t { + context: number; + flags: number; + disposition: number; + type: number; + name: number; +} +declare var mach_msg_guarded_port_descriptor_t: interop.StructType; + interface mach_msg_header_t { msgh_bits: number; msgh_size: number; @@ -7241,6 +7272,10 @@ declare const enum mach_port_guard_exception_codes { kGUARD_EXC_INCORRECT_GUARD = 16, + kGUARD_EXC_IMMOVABLE = 32, + + kGUARD_EXC_STRICT_REPLY = 64, + kGUARD_EXC_INVALID_RIGHT = 256, kGUARD_EXC_INVALID_NAME = 512, @@ -7259,15 +7294,17 @@ declare const enum mach_port_guard_exception_codes { kGUARD_EXC_SEND_INVALID_REPLY = 65536, - kGUARD_EXC_SEND_INVALID_VOUCHER = 65536, + kGUARD_EXC_SEND_INVALID_VOUCHER = 131072, - kGUARD_EXC_SEND_INVALID_RIGHT = 131072, + kGUARD_EXC_SEND_INVALID_RIGHT = 262144, - kGUARD_EXC_RCV_INVALID_NAME = 262144, + kGUARD_EXC_RCV_INVALID_NAME = 524288, - kGUARD_EXC_RCV_INVALID_NOTIFY = 524288 + kGUARD_EXC_RCV_GUARDED_DESC = 1048576 } +declare function mach_port_guard_with_flags(task: number, name: number, guard: number, flags: number): number; + interface mach_port_info_ext_t { mpie_status: mach_port_status_t; mpie_boost_cnt: number; @@ -7341,6 +7378,8 @@ interface mach_port_status_t { } declare var mach_port_status_t: interop.StructType; +declare function mach_port_swap_guard(task: number, name: number, old_guard: number, new_guard: number): number; + declare function mach_port_type(task: number, name: number, ptype: interop.Pointer | interop.Reference): number; declare function mach_port_unguard(task: number, name: number, guard: number): number; @@ -7363,16 +7402,16 @@ interface mach_send_possible_notification_t { } declare var mach_send_possible_notification_t: interop.StructType; -interface mach_task_basic_info_data_t { +interface mach_task_basic_info { virtual_size: number; resident_size: number; resident_size_max: number; - user_time: time_value_t; - system_time: time_value_t; + user_time: time_value; + system_time: time_value; policy: number; suspend_count: number; } -declare var mach_task_basic_info_data_t: interop.StructType; +declare var mach_task_basic_info: interop.StructType; declare var mach_task_self_: number; @@ -7386,11 +7425,11 @@ interface mach_timebase_infoStruct { } declare var mach_timebase_infoStruct: interop.StructType; -interface mach_timespec_t { +interface mach_timespec { tv_sec: number; tv_nsec: number; } -declare var mach_timespec_t: interop.StructType; +declare var mach_timespec: interop.StructType; interface mach_vm_info_region_t { vir_start: number; @@ -7488,6 +7527,8 @@ interface malloc_introspection_t { discharge: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void>; enumerate_discharged_pointers: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: (p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void) => void>; reinit_lock: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>; + print_task: interop.FunctionReference<(p1: number, p2: number, p3: number, p4: interop.FunctionReference<(p1: number, p2: number, p3: number, p4: interop.Pointer | interop.Reference>) => number>, p5: interop.FunctionReference<(p1: string) => void>) => void>; + task_statistics: interop.FunctionReference<(p1: number, p2: number, p3: interop.FunctionReference<(p1: number, p2: number, p3: number, p4: interop.Pointer | interop.Reference>) => number>, p4: interop.Pointer | interop.Reference) => void>; } declare var malloc_introspection_t: interop.StructType; @@ -7861,8 +7902,6 @@ interface netfs_status { } declare var netfs_status: interop.StructType; -declare function newlocale(p1: number, p2: string, p3: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - declare function nextafter(p1: number, p2: number): number; declare function nextafterf(p1: number, p2: number): number; @@ -8116,19 +8155,6 @@ declare var port_obj_tentry: interop.StructType; declare function posix2time(p1: number): number; -interface posix_cred { - cr_uid: number; - cr_ruid: number; - cr_svuid: number; - cr_ngroups: number; - cr_groups: interop.Reference; - cr_rgid: number; - cr_svgid: number; - cr_gmuid: number; - cr_flags: number; -} -declare var posix_cred: interop.StructType; - declare function posix_madvise(p1: interop.Pointer | interop.Reference, p2: number, p3: number): number; declare function posix_memalign(__memptr: interop.Pointer | interop.Reference>, __alignment: number, __size: number): number; @@ -8201,21 +8227,21 @@ declare var proc_rlimit_control_wakeupmon: interop.StructType; +declare var processor_basic_info: interop.StructType; declare function processor_control(processor: number, processor_cmd: interop.Pointer | interop.Reference, processor_cmdCnt: number): number; -interface processor_cpu_load_info_data_t { +interface processor_cpu_load_info { cpu_ticks: interop.Reference; } -declare var processor_cpu_load_info_data_t: interop.StructType; +declare var processor_cpu_load_info: interop.StructType; declare function processor_exit(processor: number): number; @@ -8223,11 +8249,11 @@ declare function processor_get_assignment(processor: number, assigned_set: inter declare function processor_info(processor: number, flavor: number, host: interop.Pointer | interop.Reference, processor_info_out: interop.Pointer | interop.Reference, processor_info_outCnt: interop.Pointer | interop.Reference): number; -interface processor_set_basic_info_data_t { +interface processor_set_basic_info { processor_count: number; default_policy: number; } -declare var processor_set_basic_info_data_t: interop.StructType; +declare var processor_set_basic_info: interop.StructType; declare function processor_set_create(host: number, new_set: interop.Pointer | interop.Reference, new_name: interop.Pointer | interop.Reference): number; @@ -8237,13 +8263,13 @@ declare function processor_set_destroy(set: number): number; declare function processor_set_info(set_name: number, flavor: number, host: interop.Pointer | interop.Reference, info_out: interop.Pointer | interop.Reference, info_outCnt: interop.Pointer | interop.Reference): number; -interface processor_set_load_info_data_t { +interface processor_set_load_info { task_count: number; thread_count: number; load_average: number; mach_factor: number; } -declare var processor_set_load_info_data_t: interop.StructType; +declare var processor_set_load_info: interop.StructType; declare function processor_set_max_priority(processor_set: number, max_priority: number, change_threads: number): number; @@ -8549,8 +8575,6 @@ declare function qsort_b(__base: interop.Pointer | interop.Reference, __nel declare function qsort_r(__base: interop.Pointer | interop.Reference, __nel: number, __width: number, p4: interop.Pointer | interop.Reference, __compar: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference) => number>): void; -declare function querylocale(p1: number, p2: interop.Pointer | interop.Reference): string; - declare function quotactl(p1: string, p2: number, p3: number, p4: string): number; declare function radixsort(__base: interop.Pointer | interop.Reference, __nel: number, __table: string, __endbyte: number): number; @@ -8799,7 +8823,7 @@ interface rusage { } declare var rusage: interop.StructType; -interface rusage_info_current { +interface rusage_info_v0 { ri_uuid: interop.Reference; ri_user_time: number; ri_system_time: number; @@ -8811,35 +8835,10 @@ interface rusage_info_current { ri_phys_footprint: number; ri_proc_start_abstime: number; ri_proc_exit_abstime: number; - ri_child_user_time: number; - ri_child_system_time: number; - ri_child_pkg_idle_wkups: number; - ri_child_interrupt_wkups: number; - ri_child_pageins: number; - ri_child_elapsed_abstime: number; - ri_diskio_bytesread: number; - ri_diskio_byteswritten: number; - ri_cpu_time_qos_default: number; - ri_cpu_time_qos_maintenance: number; - ri_cpu_time_qos_background: number; - ri_cpu_time_qos_utility: number; - ri_cpu_time_qos_legacy: number; - ri_cpu_time_qos_user_initiated: number; - ri_cpu_time_qos_user_interactive: number; - ri_billed_system_time: number; - ri_serviced_system_time: number; - ri_logical_writes: number; - ri_lifetime_max_phys_footprint: number; - ri_instructions: number; - ri_cycles: number; - ri_billed_energy: number; - ri_serviced_energy: number; - ri_interval_max_phys_footprint: number; - ri_unused: interop.Reference; } -declare var rusage_info_current: interop.StructType; +declare var rusage_info_v0: interop.StructType; -interface rusage_info_v0 { +interface rusage_info_v1 { ri_uuid: interop.Reference; ri_user_time: number; ri_system_time: number; @@ -8851,10 +8850,16 @@ interface rusage_info_v0 { ri_phys_footprint: number; ri_proc_start_abstime: number; ri_proc_exit_abstime: number; + ri_child_user_time: number; + ri_child_system_time: number; + ri_child_pkg_idle_wkups: number; + ri_child_interrupt_wkups: number; + ri_child_pageins: number; + ri_child_elapsed_abstime: number; } -declare var rusage_info_v0: interop.StructType; +declare var rusage_info_v1: interop.StructType; -interface rusage_info_v1 { +interface rusage_info_v2 { ri_uuid: interop.Reference; ri_user_time: number; ri_system_time: number; @@ -8872,10 +8877,12 @@ interface rusage_info_v1 { ri_child_interrupt_wkups: number; ri_child_pageins: number; ri_child_elapsed_abstime: number; + ri_diskio_bytesread: number; + ri_diskio_byteswritten: number; } -declare var rusage_info_v1: interop.StructType; +declare var rusage_info_v2: interop.StructType; -interface rusage_info_v2 { +interface rusage_info_v3 { ri_uuid: interop.Reference; ri_user_time: number; ri_system_time: number; @@ -8895,10 +8902,19 @@ interface rusage_info_v2 { ri_child_elapsed_abstime: number; ri_diskio_bytesread: number; ri_diskio_byteswritten: number; + ri_cpu_time_qos_default: number; + ri_cpu_time_qos_maintenance: number; + ri_cpu_time_qos_background: number; + ri_cpu_time_qos_utility: number; + ri_cpu_time_qos_legacy: number; + ri_cpu_time_qos_user_initiated: number; + ri_cpu_time_qos_user_interactive: number; + ri_billed_system_time: number; + ri_serviced_system_time: number; } -declare var rusage_info_v2: interop.StructType; +declare var rusage_info_v3: interop.StructType; -interface rusage_info_v3 { +interface rusage_info_v4 { ri_uuid: interop.Reference; ri_user_time: number; ri_system_time: number; @@ -8927,8 +8943,16 @@ interface rusage_info_v3 { ri_cpu_time_qos_user_interactive: number; ri_billed_system_time: number; ri_serviced_system_time: number; + ri_logical_writes: number; + ri_lifetime_max_phys_footprint: number; + ri_instructions: number; + ri_cycles: number; + ri_billed_energy: number; + ri_serviced_energy: number; + ri_interval_max_phys_footprint: number; + ri_runnable_time: number; } -declare var rusage_info_v3: interop.StructType; +declare var rusage_info_v4: interop.StructType; declare function ruserok(p1: string, p2: number, p3: string, p4: string): number; @@ -9027,9 +9051,9 @@ declare function semaphore_signal_all(semaphore: number): number; declare function semaphore_signal_thread(semaphore: number, thread: number): number; -declare function semaphore_timedwait(semaphore: number, wait_time: mach_timespec_t): number; +declare function semaphore_timedwait(semaphore: number, wait_time: mach_timespec): number; -declare function semaphore_timedwait_signal(wait_semaphore: number, signal_semaphore: number, wait_time: mach_timespec_t): number; +declare function semaphore_timedwait_signal(wait_semaphore: number, signal_semaphore: number, wait_time: mach_timespec): number; declare function semaphore_wait(semaphore: number): number; @@ -9066,9 +9090,9 @@ declare function setattrlist(p1: string, p2: interop.Pointer | interop.Reference declare function setattrlistat(p1: number, p2: string, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference, p5: number, p6: number): number; -declare function setaudit(p1: interop.Pointer | interop.Reference): number; +declare function setaudit(p1: interop.Pointer | interop.Reference): number; -declare function setaudit_addr(p1: interop.Pointer | interop.Reference, p2: number): number; +declare function setaudit_addr(p1: interop.Pointer | interop.Reference, p2: number): number; declare function setauid(p1: interop.Pointer | interop.Reference): number; @@ -9204,7 +9228,7 @@ declare function shutdown(p1: number, p2: number): number; declare function sigaddset(p1: interop.Pointer | interop.Reference, p2: number): number; -declare function sigaltstack(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference): number; +declare function sigaltstack(p1: interop.Pointer | interop.Reference<__darwin_sigaltstack>, p2: interop.Pointer | interop.Reference<__darwin_sigaltstack>): number; declare function sigblock(p1: number): number; @@ -9357,13 +9381,6 @@ declare function srandom(p1: number): void; declare function srandomdev(): void; -interface stack_t { - ss_sp: interop.Pointer | interop.Reference; - ss_size: number; - ss_flags: number; -} -declare var stack_t: interop.StructType; - declare function stat(p1: string, p2: interop.Pointer | interop.Reference): number; interface statStruct { @@ -9406,6 +9423,7 @@ interface statfsStruct { f_fstypename: interop.Reference; f_mntonname: interop.Reference; f_mntfromname: interop.Reference; + f_flags_ext: number; f_reserved: interop.Reference; } declare var statfsStruct: interop.StructType; @@ -9609,71 +9627,71 @@ declare function tanhl(p1: number): number; declare function tanl(p1: number): number; -interface task_absolutetime_info_data_t { +interface task_absolutetime_info { total_user: number; total_system: number; threads_user: number; threads_system: number; } -declare var task_absolutetime_info_data_t: interop.StructType; +declare var task_absolutetime_info: interop.StructType; -interface task_affinity_tag_info_data_t { +interface task_affinity_tag_info { set_count: number; min: number; max: number; task_count: number; } -declare var task_affinity_tag_info_data_t: interop.StructType; +declare var task_affinity_tag_info: interop.StructType; declare function task_assign(task: number, new_set: number, assign_threads: number): number; declare function task_assign_default(task: number, assign_threads: number): number; -interface task_basic_info_32_data_t { +interface task_basic_info { suspend_count: number; virtual_size: number; resident_size: number; - user_time: time_value_t; - system_time: time_value_t; + user_time: time_value; + system_time: time_value; policy: number; } -declare var task_basic_info_32_data_t: interop.StructType; +declare var task_basic_info: interop.StructType; -interface task_basic_info_64_data_t { +interface task_basic_info_32 { suspend_count: number; virtual_size: number; resident_size: number; - user_time: time_value_t; - system_time: time_value_t; + user_time: time_value; + system_time: time_value; policy: number; } -declare var task_basic_info_64_data_t: interop.StructType; +declare var task_basic_info_32: interop.StructType; -interface task_basic_info_data_t { +interface task_basic_info_64 { suspend_count: number; virtual_size: number; resident_size: number; - user_time: time_value_t; - system_time: time_value_t; + user_time: time_value; + system_time: time_value; policy: number; } -declare var task_basic_info_data_t: interop.StructType; +declare var task_basic_info_64: interop.StructType; -interface task_category_policy_data_t { +interface task_category_policy { role: number; } -declare var task_category_policy_data_t: interop.StructType; +declare var task_category_policy: interop.StructType; declare function task_create(target_task: number, ledgers: interop.Pointer | interop.Reference, ledgersCnt: number, inherit_memory: number, child_task: interop.Pointer | interop.Reference): number; -interface task_dyld_info_data_t { +interface task_dyld_info { all_image_info_addr: number; all_image_info_size: number; all_image_info_format: number; } -declare var task_dyld_info_data_t: interop.StructType; +declare var task_dyld_info: interop.StructType; -interface task_events_info_data_t { +interface task_events_info { faults: number; pageins: number; cow_faults: number; @@ -9683,18 +9701,18 @@ interface task_events_info_data_t { syscalls_unix: number; csw: number; } -declare var task_events_info_data_t: interop.StructType; +declare var task_events_info: interop.StructType; -interface task_extmod_info_data_t { +interface task_extmod_info { task_uuid: interop.Reference; extmod_statistics: vm_extmod_statistics; } -declare var task_extmod_info_data_t: interop.StructType; +declare var task_extmod_info: interop.StructType; -interface task_flags_info_data_t { +interface task_flags_info { flags: number; } -declare var task_flags_info_data_t: interop.StructType; +declare var task_flags_info: interop.StructType; declare function task_for_pid(target_tport: number, pid: number, t: interop.Pointer | interop.Reference): number; @@ -9704,6 +9722,8 @@ declare function task_get_assignment(task: number, assigned_set: interop.Pointer declare function task_get_emulation_vector(task: number, vector_start: interop.Pointer | interop.Reference, emulation_vector: interop.Pointer | interop.Reference>, emulation_vectorCnt: interop.Pointer | interop.Reference): number; +declare function task_get_exc_guard_behavior(task: number, behavior: interop.Pointer | interop.Reference): number; + declare function task_get_exception_ports(task: number, exception_mask: number, masks: interop.Pointer | interop.Reference, masksCnt: interop.Pointer | interop.Reference, old_handlers: interop.Pointer | interop.Reference, old_behaviors: interop.Pointer | interop.Reference, old_flavors: interop.Pointer | interop.Reference): number; declare function task_get_mach_voucher(task: number, which: number, voucher: interop.Pointer | interop.Reference): number; @@ -9716,13 +9736,13 @@ declare function task_info(target_task: number, flavor: number, task_info_out: i declare function task_inspect(task: number, flavor: number, info_out: interop.Pointer | interop.Reference, info_outCnt: interop.Pointer | interop.Reference): number; -interface task_kernelmemory_info_data_t { +interface task_kernelmemory_info { total_palloc: number; total_pfree: number; total_salloc: number; total_sfree: number; } -declare var task_kernelmemory_info_data_t: interop.StructType; +declare var task_kernelmemory_info: interop.StructType; declare const enum task_latency_qos { @@ -9753,7 +9773,7 @@ declare function task_policy_get(task: number, flavor: number, policy_info: inte declare function task_policy_set(task: number, flavor: number, policy_info: interop.Pointer | interop.Reference, policy_infoCnt: number): number; -interface task_power_info_data_t { +interface task_power_info { total_user: number; total_system: number; task_interrupt_wakeups: number; @@ -9761,15 +9781,15 @@ interface task_power_info_data_t { task_timer_wakeups_bin_1: number; task_timer_wakeups_bin_2: number; } -declare var task_power_info_data_t: interop.StructType; +declare var task_power_info: interop.StructType; -interface task_power_info_v2_data_t { - cpu_energy: task_power_info_data_t; +interface task_power_info_v2 { + cpu_energy: task_power_info; gpu_energy: gpu_energy_data; task_ptime: number; task_pset_switches: number; } -declare var task_power_info_v2_data_t: interop.StructType; +declare var task_power_info_v2: interop.StructType; declare function task_purgable_info(task: number, stats: interop.Pointer | interop.Reference): number; @@ -9816,6 +9836,8 @@ declare function task_set_emulation(target_port: number, routine_entry_pt: numbe declare function task_set_emulation_vector(task: number, vector_start: number, emulation_vector: interop.Pointer | interop.Reference, emulation_vectorCnt: number): number; +declare function task_set_exc_guard_behavior(task: number, behavior: number): number; + declare function task_set_exception_ports(task: number, exception_mask: number, new_port: number, behavior: number, new_flavor: number): number; declare function task_set_info(target_task: number, flavor: number, task_info_in: interop.Pointer | interop.Reference, task_info_inCnt: number): number; @@ -9844,11 +9866,11 @@ declare function task_swap_mach_voucher(task: number, new_voucher: number, old_v declare function task_terminate(target_task: number): number; -interface task_thread_times_info_data_t { - user_time: time_value_t; - system_time: time_value_t; +interface task_thread_times_info { + user_time: time_value; + system_time: time_value; } -declare var task_thread_times_info_data_t: interop.StructType; +declare var task_thread_times_info: interop.StructType; declare function task_threads(target_task: number, act_list: interop.Pointer | interop.Reference>, act_listCnt: interop.Pointer | interop.Reference): number; @@ -9869,14 +9891,14 @@ declare const enum task_throughput_qos { THROUGHPUT_QOS_TIER_5 = 16646150 } -interface task_trace_memory_info_data_t { +interface task_trace_memory_info { user_memory_address: number; buffer_size: number; mailbox_array_size: number; } -declare var task_trace_memory_info_data_t: interop.StructType; +declare var task_trace_memory_info: interop.StructType; -interface task_vm_info_data_t { +interface task_vm_info { virtual_size: number; region_count: number; page_size: number; @@ -9899,15 +9921,38 @@ interface task_vm_info_data_t { phys_footprint: number; min_address: number; max_address: number; + ledger_phys_footprint_peak: number; + ledger_purgeable_nonvolatile: number; + ledger_purgeable_novolatile_compressed: number; + ledger_purgeable_volatile: number; + ledger_purgeable_volatile_compressed: number; + ledger_tag_network_nonvolatile: number; + ledger_tag_network_nonvolatile_compressed: number; + ledger_tag_network_volatile: number; + ledger_tag_network_volatile_compressed: number; + ledger_tag_media_footprint: number; + ledger_tag_media_footprint_compressed: number; + ledger_tag_media_nofootprint: number; + ledger_tag_media_nofootprint_compressed: number; + ledger_tag_graphics_footprint: number; + ledger_tag_graphics_footprint_compressed: number; + ledger_tag_graphics_nofootprint: number; + ledger_tag_graphics_nofootprint_compressed: number; + ledger_tag_neural_footprint: number; + ledger_tag_neural_footprint_compressed: number; + ledger_tag_neural_nofootprint: number; + ledger_tag_neural_nofootprint_compressed: number; + limit_bytes_remaining: number; + decompressions: number; } -declare var task_vm_info_data_t: interop.StructType; +declare var task_vm_info: interop.StructType; -interface task_wait_state_info_data_t { +interface task_wait_state_info { total_wait_state_time: number; total_wait_sfi_state_time: number; _reserved: interop.Reference; } -declare var task_wait_state_info_data_t: interop.StructType; +declare var task_wait_state_info: interop.StructType; declare function task_wire(target_task: number, must_wire: number): number; @@ -10032,23 +10077,23 @@ declare function thread_abort(target_act: number): number; declare function thread_abort_safely(target_act: number): number; -interface thread_affinity_policy_data_t { +interface thread_affinity_policy { affinity_tag: number; } -declare var thread_affinity_policy_data_t: interop.StructType; +declare var thread_affinity_policy: interop.StructType; declare function thread_assign(thread: number, new_set: number): number; declare function thread_assign_default(thread: number): number; -interface thread_background_policy_data_t { +interface thread_background_policy { priority: number; } -declare var thread_background_policy_data_t: interop.StructType; +declare var thread_background_policy: interop.StructType; -interface thread_basic_info_data_t { - user_time: time_value_t; - system_time: time_value_t; +interface thread_basic_info { + user_time: time_value; + system_time: time_value; cpu_usage: number; policy: number; run_state: number; @@ -10056,7 +10101,7 @@ interface thread_basic_info_data_t { suspend_count: number; sleep_time: number; } -declare var thread_basic_info_data_t: interop.StructType; +declare var thread_basic_info: interop.StructType; declare function thread_create(parent_task: number, child_act: interop.Pointer | interop.Reference): number; @@ -10064,7 +10109,7 @@ declare function thread_create_running(parent_task: number, flavor: number, new_ declare function thread_depress_abort(thread: number): number; -interface thread_extended_info_data_t { +interface thread_extended_info { pth_user_time: number; pth_system_time: number; pth_cpu_usage: number; @@ -10077,12 +10122,12 @@ interface thread_extended_info_data_t { pth_maxpriority: number; pth_name: interop.Reference; } -declare var thread_extended_info_data_t: interop.StructType; +declare var thread_extended_info: interop.StructType; -interface thread_extended_policy_data_t { +interface thread_extended_policy { timeshare: number; } -declare var thread_extended_policy_data_t: interop.StructType; +declare var thread_extended_policy: interop.StructType; declare function thread_get_assignment(thread: number, assigned_set: interop.Pointer | interop.Reference): number; @@ -10094,19 +10139,19 @@ declare function thread_get_special_port(thr_act: number, which_port: number, sp declare function thread_get_state(target_act: number, flavor: number, old_state: interop.Pointer | interop.Reference, old_stateCnt: interop.Pointer | interop.Reference): number; -interface thread_identifier_info_data_t { +interface thread_identifier_info { thread_id: number; thread_handle: number; dispatch_qaddr: number; } -declare var thread_identifier_info_data_t: interop.StructType; +declare var thread_identifier_info: interop.StructType; declare function thread_info(target_act: number, flavor: number, thread_info_out: interop.Pointer | interop.Reference, thread_info_outCnt: interop.Pointer | interop.Reference): number; -interface thread_latency_qos_policy_data_t { +interface thread_latency_qos_policy { thread_latency_qos_tier: number; } -declare var thread_latency_qos_policy_data_t: interop.StructType; +declare var thread_latency_qos_policy: interop.StructType; declare function thread_policy(thr_act: number, policy: number, base: interop.Pointer | interop.Reference, baseCnt: number, set_limit: number): number; @@ -10114,10 +10159,10 @@ declare function thread_policy_get(thread: number, flavor: number, policy_info: declare function thread_policy_set(thread: number, flavor: number, policy_info: interop.Pointer | interop.Reference, policy_infoCnt: number): number; -interface thread_precedence_policy_data_t { +interface thread_precedence_policy { importance: number; } -declare var thread_precedence_policy_data_t: interop.StructType; +declare var thread_precedence_policy: interop.StructType; declare function thread_resume(target_act: number): number; @@ -10133,10 +10178,10 @@ declare function thread_set_special_port(thr_act: number, which_port: number, sp declare function thread_set_state(target_act: number, flavor: number, new_state: interop.Pointer | interop.Reference, new_stateCnt: number): number; -interface thread_standard_policy_data_t { +interface thread_standard_policy { no_data: number; } -declare var thread_standard_policy_data_t: interop.StructType; +declare var thread_standard_policy: interop.StructType; declare function thread_suspend(target_act: number): number; @@ -10148,18 +10193,18 @@ declare function thread_switch(thread_name: number, option: number, option_time: declare function thread_terminate(target_act: number): number; -interface thread_throughput_qos_policy_data_t { +interface thread_throughput_qos_policy { thread_throughput_qos_tier: number; } -declare var thread_throughput_qos_policy_data_t: interop.StructType; +declare var thread_throughput_qos_policy: interop.StructType; -interface thread_time_constraint_policy_data_t { +interface thread_time_constraint_policy { period: number; computation: number; constraint: number; preemptible: number; } -declare var thread_time_constraint_policy_data_t: interop.StructType; +declare var thread_time_constraint_policy: interop.StructType; declare function thread_wire(host_priv: number, thread: number, wired: number): number; @@ -10167,11 +10212,11 @@ declare function time(p1: interop.Pointer | interop.Reference): number; declare function time2posix(p1: number): number; -interface time_value_t { +interface time_value { seconds: number; microseconds: number; } -declare var time_value_t: interop.StructType; +declare var time_value: interop.StructType; interface timeb { time: number; @@ -10294,15 +10339,6 @@ declare function tzsetwall(): void; declare function ualarm(p1: number, p2: number): number; -interface ucred { - cr_link: { tqe_next: interop.Pointer | interop.Reference; tqe_prev: interop.Pointer | interop.Reference>; }; - cr_ref: number; - cr_posix: posix_cred; - cr_label: interop.Pointer | interop.Reference; - cr_audit: au_session_t; -} -declare var ucred: interop.StructType; - declare const enum uio_rw { UIO_READ = 0, @@ -10336,8 +10372,6 @@ declare function unsetenv(p1: string): number; declare function unwhiteout(p1: string): number; -declare function uselocale(p1: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - declare function user_from_uid(p1: number, p2: number): string; declare function usleep(p1: number): number; @@ -10685,6 +10719,7 @@ interface vm_region_submap_info_64 { object_id: number; user_wired_count: number; pages_reusable: number; + object_id_full: number; } declare var vm_region_submap_info_64: interop.StructType; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Dispatch.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Dispatch.d.ts index d9e272cde3..5232d0d6cd 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Dispatch.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Dispatch.d.ts @@ -85,6 +85,13 @@ declare var OS_dispatch_source: { prototype: OS_dispatch_source; }; +interface OS_dispatch_workloop extends OS_dispatch_queue { +} +declare var OS_dispatch_workloop: { + + prototype: OS_dispatch_workloop; +}; + declare var _dispatch_data_destructor_free: () => void; declare var _dispatch_data_destructor_munmap: () => void; @@ -137,6 +144,10 @@ declare function dispatch_assert_queue_not(queue: NSObject): void; declare function dispatch_async(queue: NSObject, block: () => void): void; +declare function dispatch_async_and_wait(queue: NSObject, block: () => void): void; + +declare function dispatch_async_and_wait_f(queue: NSObject, context: interop.Pointer | interop.Reference, work: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>): void; + declare function dispatch_async_f(queue: NSObject, context: interop.Pointer | interop.Reference, work: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>): void; declare const enum dispatch_autorelease_frequency_t { @@ -150,6 +161,10 @@ declare const enum dispatch_autorelease_frequency_t { declare function dispatch_barrier_async(queue: NSObject, block: () => void): void; +declare function dispatch_barrier_async_and_wait(queue: NSObject, block: () => void): void; + +declare function dispatch_barrier_async_and_wait_f(queue: NSObject, context: interop.Pointer | interop.Reference, work: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>): void; + declare function dispatch_barrier_async_f(queue: NSObject, context: interop.Pointer | interop.Reference, work: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>): void; declare function dispatch_barrier_sync(queue: NSObject, block: () => void): void; @@ -287,6 +302,8 @@ declare function dispatch_set_context(object: NSObject, context: interop.Pointer declare function dispatch_set_finalizer_f(object: NSObject, finalizer: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>): void; +declare function dispatch_set_qos_class_floor(object: NSObject, qos_class: qos_class_t, relative_priority: number): void; + declare function dispatch_set_target_queue(object: NSObject, queue: NSObject): void; declare function dispatch_source_cancel(source: NSObject): void; @@ -327,4 +344,10 @@ declare function dispatch_time(when: number, delta: number): number; declare function dispatch_walltime(when: interop.Pointer | interop.Reference, delta: number): number; +declare function dispatch_workloop_create(label: string): NSObject; + +declare function dispatch_workloop_create_inactive(label: string): NSObject; + +declare function dispatch_workloop_set_autorelease_frequency(workloop: NSObject, frequency: dispatch_autorelease_frequency_t): void; + declare function dispatch_write(fd: number, data: NSObject, queue: NSObject, handler: (p1: NSObject, p2: number) => void): void; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!EventKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!EventKit.d.ts index 061c968fa5..ee65ce5fc6 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!EventKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!EventKit.d.ts @@ -237,7 +237,17 @@ declare const enum EKErrorCode { OSNotSupported = 30, - Last = 31 + InvalidInviteReplyCalendar = 31, + + NotificationsCollectionFlagNotSet = 32, + + SourceMismatch = 33, + + NotificationCollectionMismatch = 34, + + NotificationSavedWithoutCollection = 35, + + Last = 36 } declare var EKErrorDomain: string; @@ -313,6 +323,8 @@ declare class EKEventStore extends NSObject { readonly defaultCalendarForNewEvents: EKCalendar; + readonly delegateSources: NSArray; + readonly eventStoreIdentifier: string; readonly sources: NSArray; @@ -504,9 +516,9 @@ declare class EKRecurrenceDayOfWeek extends NSObject implements NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDayOfTheWeekWeekNumber(dayOfTheWeek: EKWeekday, weekNumber: number): this; } @@ -531,9 +543,9 @@ declare class EKRecurrenceEnd extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum EKRecurrenceFrequency { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!FileProvider.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!FileProvider.d.ts index 8aa802c388..ca59944ac0 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!FileProvider.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!FileProvider.d.ts @@ -73,7 +73,11 @@ declare const enum NSFileProviderErrorCode { ServerUnreachable = -1004, - NoSuchItem = -1005 + NoSuchItem = -1005, + + VersionOutOfDate = -1006, + + DirectoryNotEmpty = -1007 } declare var NSFileProviderErrorCollidingItemKey: string; @@ -225,6 +229,30 @@ declare const enum NSFileProviderItemCapabilities { AllowsAll = 63 } +interface NSFileProviderItemDecorating extends NSFileProviderItem { +} +declare var NSFileProviderItemDecorating: { + + prototype: NSFileProviderItemDecorating; +}; + +interface NSFileProviderItemFlags extends NSObjectProtocol { + + hidden: boolean; + + pathExtensionHidden: boolean; + + userExecutable: boolean; + + userReadable: boolean; + + userWritable: boolean; +} +declare var NSFileProviderItemFlags: { + + prototype: NSFileProviderItemFlags; +}; + declare class NSFileProviderManager extends NSObject { static addDomainCompletionHandler(domain: NSFileProviderDomain, completionHandler: (p1: NSError) => void): void; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Foundation.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Foundation.d.ts index 5bf1f1a46c..d7c06522c4 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Foundation.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Foundation.d.ts @@ -100,6 +100,8 @@ declare class NSArray extends NSObject implements CKRecordValue, NSC arrayByAddingObjectsFromArray(otherArray: NSArray | ObjectType[]): NSArray; + arrayByApplyingDifference(difference: NSOrderedCollectionDifference): NSArray; + class(): typeof NSObject; componentsJoinedByString(separator: string): string; @@ -114,7 +116,13 @@ declare class NSArray extends NSObject implements CKRecordValue, NSC descriptionWithLocaleIndent(locale: any, level: number): string; - encodeWithCoder(aCoder: NSCoder): void; + differenceFromArray(other: NSArray | ObjectType[]): NSOrderedCollectionDifference; + + differenceFromArrayWithOptions(other: NSArray | ObjectType[], options: NSOrderedCollectionDifferenceCalculationOptions): NSOrderedCollectionDifference; + + differenceFromArrayWithOptionsUsingEquivalenceTest(other: NSArray | ObjectType[], options: NSOrderedCollectionDifferenceCalculationOptions, block: (p1: ObjectType, p2: ObjectType) => boolean): NSOrderedCollectionDifference; + + encodeWithCoder(coder: NSCoder): void; enumerateObjectsAtIndexesOptionsUsingBlock(s: NSIndexSet, opts: NSEnumerationOptions, block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => void): void; @@ -156,7 +164,7 @@ declare class NSArray extends NSObject implements CKRecordValue, NSC initWithArrayCopyItems(array: NSArray | ObjectType[], flag: boolean): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithContentsOfFile(path: string): this; @@ -254,6 +262,14 @@ declare class NSAttributedString extends NSObject implements NSCopying, NSItemPr static itemProviderVisibilityForRepresentationWithTypeIdentifier(typeIdentifier: string): NSItemProviderRepresentationVisibility; + static loadFromHTMLWithDataOptionsCompletionHandler(data: NSData, options: NSDictionary, completionHandler: (p1: NSAttributedString, p2: NSDictionary, p3: NSError) => void): void; + + static loadFromHTMLWithFileURLOptionsCompletionHandler(fileURL: NSURL, options: NSDictionary, completionHandler: (p1: NSAttributedString, p2: NSDictionary, p3: NSError) => void): void; + + static loadFromHTMLWithRequestOptionsCompletionHandler(request: NSURLRequest, options: NSDictionary, completionHandler: (p1: NSAttributedString, p2: NSDictionary, p3: NSError) => void): void; + + static loadFromHTMLWithStringOptionsCompletionHandler(string: string, options: NSDictionary, completionHandler: (p1: NSAttributedString, p2: NSDictionary, p3: NSError) => void): void; + static new(): NSAttributedString; // inherited from NSObject static objectWithItemProviderDataTypeIdentifierError(data: NSData, typeIdentifier: string): NSAttributedString; @@ -324,7 +340,7 @@ declare class NSAttributedString extends NSObject implements NSCopying, NSItemPr drawWithRectOptionsContext(rect: CGRect, options: NSStringDrawingOptions, context: NSStringDrawingContext): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateAttributeInRangeOptionsUsingBlock(attrName: string, enumerationRange: NSRange, opts: NSAttributedStringEnumerationOptions, block: (p1: any, p2: NSRange, p3: interop.Pointer | interop.Reference) => void): void; @@ -334,7 +350,7 @@ declare class NSAttributedString extends NSObject implements NSCopying, NSItemPr initWithAttributedString(attrStr: NSAttributedString): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDataOptionsDocumentAttributesError(data: NSData, options: NSDictionary, dict: interop.Pointer | interop.Reference>): this; @@ -649,6 +665,8 @@ declare class NSByteCountFormatter extends NSFormatter { static stringFromByteCountCountStyle(byteCount: number, countStyle: NSByteCountFormatterCountStyle): string; + static stringFromMeasurementCountStyle(measurement: NSMeasurement, countStyle: NSByteCountFormatterCountStyle): string; + adaptive: boolean; allowedUnits: NSByteCountFormatterUnits; @@ -668,6 +686,8 @@ declare class NSByteCountFormatter extends NSFormatter { zeroPadsFractionDigits: boolean; stringFromByteCount(byteCount: number): string; + + stringFromMeasurement(measurement: NSMeasurement): string; } declare const enum NSByteCountFormatterCountStyle { @@ -766,9 +786,9 @@ declare class NSCachedURLResponse extends NSObject implements NSCopying, NSSecur copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithResponseData(response: NSURLResponse, data: NSData): this; @@ -886,7 +906,7 @@ declare class NSCalendar extends NSObject implements NSCopying, NSSecureCoding { dateWithEraYearMonthDayHourMinuteSecondNanosecond(eraValue: number, yearValue: number, monthValue: number, dayValue: number, hourValue: number, minuteValue: number, secondValue: number, nanosecondValue: number): Date; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateDatesStartingAfterDateMatchingComponentsOptionsUsingBlock(start: Date, comps: NSDateComponents, opts: NSCalendarOptions, block: (p1: Date, p2: boolean, p3: interop.Pointer | interop.Reference) => void): void; @@ -898,7 +918,7 @@ declare class NSCalendar extends NSObject implements NSCopying, NSSecureCoding { initWithCalendarIdentifier(ident: string): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isDateEqualToDateToUnitGranularity(date1: Date, date2: Date, unit: NSCalendarUnit): boolean; @@ -1125,11 +1145,11 @@ declare class NSCharacterSet extends NSObject implements NSCopying, NSMutableCop copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; hasMemberInPlane(thePlane: number): boolean; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isSupersetOfSet(theOtherSet: NSCharacterSet): boolean; @@ -1327,15 +1347,22 @@ declare const NSCoderValueNotFoundError: number; interface NSCoding { - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder?(aDecoder: NSCoder): NSCoding; + initWithCoder?(coder: NSCoder): NSCoding; } declare var NSCoding: { prototype: NSCoding; }; +declare const enum NSCollectionChangeType { + + Insert = 0, + + Remove = 1 +} + declare function NSCompareHashTables(table1: NSHashTable, table2: NSHashTable): boolean; declare function NSCompareMapTables(table1: NSMapTable, table2: NSMapTable): boolean; @@ -1428,6 +1455,12 @@ declare const enum NSCompoundPredicateType { OrPredicateType = 2 } +declare const NSCompressionErrorMaximum: number; + +declare const NSCompressionErrorMinimum: number; + +declare const NSCompressionFailedError: number; + declare class NSCondition extends NSObject implements NSLocking { static alloc(): NSCondition; // inherited from NSObject @@ -1645,11 +1678,15 @@ declare class NSData extends NSObject implements CKRecordValue, NSCopying, NSMut class(): typeof NSObject; + compressedDataUsingAlgorithmError(algorithm: NSDataCompressionAlgorithm): this; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + decompressedDataUsingAlgorithmError(algorithm: NSDataCompressionAlgorithm): this; + + encodeWithCoder(coder: NSCoder): void; enumerateByteRangesUsingBlock(block: (p1: interop.Pointer | interop.Reference, p2: NSRange, p3: interop.Pointer | interop.Reference) => void): void; @@ -1673,7 +1710,7 @@ declare class NSData extends NSObject implements CKRecordValue, NSCopying, NSMut initWithBytesNoCopyLengthFreeWhenDone(bytes: interop.Pointer | interop.Reference, length: number, b: boolean): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithContentsOfFile(path: string): this; @@ -1738,6 +1775,17 @@ declare const enum NSDataBase64EncodingOptions { EncodingEndLineWithLineFeed = 32 } +declare const enum NSDataCompressionAlgorithm { + + LZFSE = 0, + + LZ4 = 1, + + LZMA = 2, + + Zlib = 3 +} + declare class NSDataDetector extends NSRegularExpression { static alloc(): NSDataDetector; // inherited from NSObject @@ -1820,6 +1868,8 @@ declare class NSDate extends NSObject implements CKRecordValue, NSCopying, NSSec static readonly distantPast: Date; + static readonly now: Date; + static readonly timeIntervalSinceReferenceDate: number; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -1862,9 +1912,9 @@ declare class NSDate extends NSObject implements CKRecordValue, NSCopying, NSSec earlierDate(anotherDate: Date): Date; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTimeIntervalSince1970(secs: number): this; @@ -1951,9 +2001,9 @@ declare class NSDateComponents extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isValidDateInCalendar(calendar: NSCalendar): boolean; @@ -2170,9 +2220,9 @@ declare class NSDateInterval extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithStartDateDuration(startDate: Date, duration: number): this; @@ -2353,11 +2403,11 @@ declare class NSDecimalNumberHandler extends NSObject implements NSCoding, NSDec constructor(o: { roundingMode: NSRoundingMode; scale: number; raiseOnExactness: boolean; raiseOnOverflow: boolean; raiseOnUnderflow: boolean; raiseOnDivideByZero: boolean; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; exceptionDuringOperationErrorLeftOperandRightOperand(operation: string, error: NSCalculationError, leftOperand: NSDecimalNumber, rightOperand: NSDecimalNumber): NSDecimalNumber; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(roundingMode: NSRoundingMode, scale: number, exact: boolean, overflow: boolean, underflow: boolean, divideByZero: boolean): this; @@ -2385,6 +2435,8 @@ declare const enum NSDecodingFailurePolicy { SetErrorAndReturn = 1 } +declare const NSDecompressionFailedError: number; + declare function NSDecrementExtraRefCountWasZero(object: any): boolean; declare function NSDefaultMallocZone(): interop.Pointer | interop.Reference; @@ -2472,7 +2524,7 @@ declare class NSDictionary extends NSObject implements NSCo descriptionWithLocaleIndent(locale: any, level: number): string; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateKeysAndObjectsUsingBlock(block: (p1: KeyType, p2: ObjectType, p3: interop.Pointer | interop.Reference) => void): void; @@ -2514,7 +2566,7 @@ declare class NSDictionary extends NSObject implements NSCo getObjectsAndKeysCount(objects: interop.Reference, keys: interop.Reference, count: number): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithContentsOfFile(path: string): this; @@ -2601,9 +2653,9 @@ declare class NSDimension extends NSUnit implements NSSecureCoding { constructor(o: { symbol: string; converter: NSUnitConverter; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithSymbolConverter(symbol: string, converter: NSUnitConverter): this; } @@ -2614,7 +2666,11 @@ declare const enum NSDirectoryEnumerationOptions { SkipsPackageDescendants = 2, - SkipsHiddenFiles = 4 + SkipsHiddenFiles = 4, + + IncludesDirectoriesPostOrder = 8, + + ProducesRelativePathURLs = 16 } declare class NSDirectoryEnumerator extends NSEnumerator { @@ -2627,6 +2683,8 @@ declare class NSDirectoryEnumerator extends NSEnumerator readonly fileAttributes: NSDictionary; + readonly isEnumeratingDirectoryPostOrder: boolean; + readonly level: number; skipDescendants(): void; @@ -2756,16 +2814,16 @@ declare class NSError extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDomainCodeUserInfo(domain: string, code: number, dict: NSDictionary): this; } declare var NSErrorFailingURLStringKey: string; -declare class NSException extends NSObject implements NSCoding, NSCopying { +declare class NSException extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSException; // inherited from NSObject @@ -2783,15 +2841,17 @@ declare class NSException extends NSObject implements NSCoding, NSCopying { readonly userInfo: NSDictionary; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { name: string; reason: string; userInfo: NSDictionary; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNameReasonUserInfo(aName: string, aReason: string, aUserInfo: NSDictionary): this; @@ -2886,11 +2946,11 @@ declare class NSExpression extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; expressionValueWithObjectContext(object: any, context: NSMutableDictionary): any; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithExpressionType(type: NSExpressionType): this; } @@ -2936,6 +2996,8 @@ declare class NSExtensionContext extends NSObject { readonly inputItems: NSArray; + readonly intent: INIntent; + notificationActions: NSArray; readonly widgetActiveDisplayMode: NCWidgetDisplayMode; @@ -2995,9 +3057,9 @@ declare class NSExtensionItem extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var NSExtensionItemAttachmentsKey: string; @@ -3186,11 +3248,15 @@ declare class NSFileHandle extends NSObject implements NSSecureCoding { acceptConnectionInBackgroundAndNotifyForModes(modes: NSArray | string[]): void; + closeAndReturnError(): boolean; + closeFile(): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; + + getOffsetError(offsetInFile: interop.Pointer | interop.Reference): boolean; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithFileDescriptor(fd: number): this; @@ -3200,6 +3266,10 @@ declare class NSFileHandle extends NSObject implements NSSecureCoding { readDataToEndOfFile(): NSData; + readDataToEndOfFileAndReturnError(): NSData; + + readDataUpToLengthError(length: number): NSData; + readInBackgroundAndNotify(): void; readInBackgroundAndNotifyForModes(modes: NSArray | string[]): void; @@ -3210,10 +3280,18 @@ declare class NSFileHandle extends NSObject implements NSSecureCoding { seekToEndOfFile(): number; + seekToEndReturningOffsetError(offsetInFile: interop.Pointer | interop.Reference): boolean; + seekToFileOffset(offset: number): void; + seekToOffsetError(offset: number): boolean; + + synchronizeAndReturnError(): boolean; + synchronizeFile(): void; + truncateAtOffsetError(offset: number): boolean; + truncateFileAtOffset(offset: number): void; waitForDataInBackgroundAndNotify(): void; @@ -3221,6 +3299,8 @@ declare class NSFileHandle extends NSObject implements NSSecureCoding { waitForDataInBackgroundAndNotifyForModes(modes: NSArray | string[]): void; writeData(data: NSData): void; + + writeDataError(data: NSData): boolean; } declare var NSFileHandleConnectionAcceptedNotification: string; @@ -3534,9 +3614,9 @@ declare class NSFileSecurity extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var NSFileSize: string; @@ -3666,7 +3746,7 @@ declare class NSFileWrapper extends NSObject implements NSSecureCoding { addRegularFileWithContentsPreferredFilename(data: NSData, fileName: string): string; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initDirectoryWithFileWrappers(childrenByPreferredName: NSDictionary): this; @@ -3674,7 +3754,7 @@ declare class NSFileWrapper extends NSObject implements NSSecureCoding { initSymbolicLinkWithDestinationURL(url: NSURL): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithSerializedRepresentation(serializeRepresentation: NSData): this; @@ -3735,11 +3815,11 @@ declare class NSFormatter extends NSObject implements NSCoding, NSCopying { editingStringForObjectValue(obj: any): string; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; getObjectValueForStringErrorDescription(obj: interop.Pointer | interop.Reference, string: string, error: interop.Pointer | interop.Reference): boolean; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isPartialStringValidNewEditingStringErrorDescription(partialString: string, newString: interop.Pointer | interop.Reference, error: interop.Pointer | interop.Reference): boolean; @@ -3828,6 +3908,8 @@ declare class NSHTTPCookie extends NSObject { readonly properties: NSDictionary; + readonly sameSitePolicy: string; + readonly secure: boolean; readonly sessionOnly: boolean; @@ -3874,6 +3956,12 @@ declare var NSHTTPCookiePath: string; declare var NSHTTPCookiePort: string; +declare var NSHTTPCookieSameSiteLax: string; + +declare var NSHTTPCookieSameSitePolicy: string; + +declare var NSHTTPCookieSameSiteStrict: string; + declare var NSHTTPCookieSecure: string; declare class NSHTTPCookieStorage extends NSObject { @@ -3926,6 +4014,8 @@ declare class NSHTTPURLResponse extends NSURLResponse { constructor(o: { URL: NSURL; statusCode: number; HTTPVersion: string; headerFields: NSDictionary; }); initWithURLStatusCodeHTTPVersionHeaderFields(url: NSURL, statusCode: number, HTTPVersion: string, headerFields: NSDictionary): this; + + valueForHTTPHeaderField(field: string): string; } interface NSHashEnumerator { @@ -3980,9 +4070,9 @@ declare class NSHashTable extends NSObject implements NSCopying, NSF copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithOptionsCapacity(options: NSPointerFunctionsOptions, initialCapacity: number): this; @@ -4087,9 +4177,9 @@ declare class NSISO8601DateFormatter extends NSFormatter implements NSSecureCodi dateFromString(string: string): Date; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; stringFromDate(date: Date): string; } @@ -4098,6 +4188,8 @@ declare const NSISOLatin1StringEncoding: number; declare const NSISOLatin2StringEncoding: number; +declare var NSInconsistentArchiveException: string; + declare function NSIncrementExtraRefCount(object: any): void; declare class NSIndexPath extends NSObject implements NSCopying, NSSecureCoding { @@ -4134,7 +4226,7 @@ declare class NSIndexPath extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; getIndexes(indexes: interop.Pointer | interop.Reference): void; @@ -4146,7 +4238,7 @@ declare class NSIndexPath extends NSObject implements NSCopying, NSSecureCoding indexPathByRemovingLastIndex(): NSIndexPath; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIndex(index: number): this; @@ -4191,7 +4283,7 @@ declare class NSIndexSet extends NSObject implements NSCopying, NSMutableCopying countOfIndexesInRange(range: NSRange): number; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateIndexesInRangeOptionsUsingBlock(range: NSRange, opts: NSEnumerationOptions, block: (p1: number, p2: interop.Pointer | interop.Reference) => void): void; @@ -4227,7 +4319,7 @@ declare class NSIndexSet extends NSObject implements NSCopying, NSMutableCopying indexesWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: number, p2: interop.Pointer | interop.Reference) => boolean): NSIndexSet; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIndex(value: number): this; @@ -4479,6 +4571,8 @@ declare const enum NSJSONReadingOptions { MutableLeaves = 2, + FragmentsAllowed = 4, + AllowFragments = 4 } @@ -4503,7 +4597,11 @@ declare const enum NSJSONWritingOptions { PrettyPrinted = 1, - SortedKeys = 2 + SortedKeys = 2, + + FragmentsAllowed = 4, + + WithoutEscapingSlashes = 8 } declare var NSJapaneseCalendar: string; @@ -4866,6 +4964,21 @@ declare const enum NSLinguisticTaggerUnit { Document = 3 } +declare class NSListFormatter extends NSFormatter { + + static alloc(): NSListFormatter; // inherited from NSObject + + static localizedStringByJoiningStrings(strings: NSArray | string[]): string; + + static new(): NSListFormatter; // inherited from NSObject + + itemFormatter: NSFormatter; + + locale: NSLocale; + + stringFromItems(items: NSArray | any[]): string; +} + declare var NSLoadedClasses: string; declare class NSLocale extends NSObject implements NSCopying, NSSecureCoding { @@ -4888,6 +5001,10 @@ declare class NSLocale extends NSObject implements NSCopying, NSSecureCoding { static localeWithLocaleIdentifier(ident: string): NSLocale; + static mdf_isDefaultLanguageLTR(): boolean; + + static mdf_isDefaultLanguageRTL(): boolean; + static new(): NSLocale; // inherited from NSObject static windowsLocaleCodeFromLocaleIdentifier(localeIdentifier: string): number; @@ -4956,9 +5073,9 @@ declare class NSLocale extends NSObject implements NSCopying, NSSecureCoding { displayNameForKeyValue(key: string, value: any): string; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithLocaleIdentifier(string: string): this; @@ -5181,9 +5298,9 @@ declare class NSMapTable extends NSObject implements NSCopy dictionaryRepresentation(): NSDictionary; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithKeyOptionsValueOptionsCapacity(keyOptions: NSPointerFunctionsOptions, valueOptions: NSPointerFunctionsOptions, initialCapacity: number): this; @@ -5309,9 +5426,9 @@ declare class NSMeasurement extends NSObject implements NSCopying, NSS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDoubleValueUnit(doubleValue: number, unit: UnitType): this; @@ -5340,9 +5457,9 @@ declare class NSMeasurementFormatter extends NSFormatter implements NSSecureCodi constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; stringFromMeasurement(measurement: NSMeasurement): string; @@ -5623,6 +5740,8 @@ declare class NSMutableArray extends NSArray { addObjectsFromArray(otherArray: NSArray | ObjectType[]): void; + applyDifference(difference: NSOrderedCollectionDifference): void; + exchangeObjectAtIndexWithObjectAtIndex(idx1: number, idx2: number): void; filterUsingPredicate(predicate: NSPredicate): void; @@ -5737,13 +5856,13 @@ declare class NSMutableCharacterSet extends NSCharacterSet implements NSCopying, copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; formIntersectionWithCharacterSet(otherSet: NSCharacterSet): void; formUnionWithCharacterSet(otherSet: NSCharacterSet): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; invert(): void; @@ -5803,6 +5922,10 @@ declare class NSMutableData extends NSData { appendData(other: NSData): void; + compressUsingAlgorithmError(algorithm: NSDataCompressionAlgorithm): boolean; + + decompressUsingAlgorithmError(algorithm: NSDataCompressionAlgorithm): boolean; + increaseLengthBy(extraLength: number): void; initWithCapacity(capacity: number): this; @@ -5930,6 +6053,8 @@ declare class NSMutableOrderedSet extends NSOrderedSet { addObjectsFromArray(array: NSArray | ObjectType[]): void; + applyDifference(difference: NSOrderedCollectionDifference): void; + exchangeObjectAtIndexWithObjectAtIndex(idx1: number, idx2: number): void; filterUsingPredicate(p: NSPredicate): void; @@ -6101,6 +6226,10 @@ declare class NSMutableURLRequest extends NSURLRequest { allowsCellularAccess: boolean; + allowsConstrainedNetworkAccess: boolean; + + allowsExpensiveNetworkAccess: boolean; + cachePolicy: NSURLRequestCachePolicy; mainDocumentURL: NSURL; @@ -6322,9 +6451,9 @@ declare class NSNotification extends NSObject implements NSCoding, NSCopying { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNameObjectUserInfo(name: string, object: any, userInfo: NSDictionary): this; } @@ -6394,9 +6523,9 @@ declare class NSNull extends NSObject implements CAAction, NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; runActionForKeyObjectArguments(event: string, anObject: any, dict: NSDictionary): void; } @@ -6833,7 +6962,7 @@ declare class NSOperation extends NSObject { waitUntilFinished(): void; } -declare class NSOperationQueue extends NSObject { +declare class NSOperationQueue extends NSObject implements NSProgressReporting { static alloc(): NSOperationQueue; // inherited from NSObject @@ -6857,6 +6986,22 @@ declare class NSOperationQueue extends NSObject { static readonly mainQueue: NSOperationQueue; + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly progress: NSProgress; // inherited from NSProgressReporting + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + addBarrierBlock(barrier: () => void): void; + addOperation(op: NSOperation): void; addOperationWithBlock(block: () => void): void; @@ -6865,6 +7010,28 @@ declare class NSOperationQueue extends NSObject { cancelAllOperations(): void; + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; + waitUntilAllOperationsAreFinished(): void; } @@ -6883,6 +7050,72 @@ declare const enum NSOperationQueuePriority { VeryHigh = 8 } +declare class NSOrderedCollectionChange extends NSObject { + + static alloc(): NSOrderedCollectionChange; // inherited from NSObject + + static changeWithObjectTypeIndex(anObject: ObjectType, type: NSCollectionChangeType, index: number): NSOrderedCollectionChange; + + static changeWithObjectTypeIndexAssociatedIndex(anObject: ObjectType, type: NSCollectionChangeType, index: number, associatedIndex: number): NSOrderedCollectionChange; + + static new(): NSOrderedCollectionChange; // inherited from NSObject + + readonly associatedIndex: number; + + readonly changeType: NSCollectionChangeType; + + readonly index: number; + + readonly object: ObjectType; + + constructor(o: { object: ObjectType; type: NSCollectionChangeType; index: number; }); + + constructor(o: { object: ObjectType; type: NSCollectionChangeType; index: number; associatedIndex: number; }); + + initWithObjectTypeIndex(anObject: ObjectType, type: NSCollectionChangeType, index: number): this; + + initWithObjectTypeIndexAssociatedIndex(anObject: ObjectType, type: NSCollectionChangeType, index: number, associatedIndex: number): this; +} + +declare class NSOrderedCollectionDifference extends NSObject implements NSFastEnumeration { + + static alloc(): NSOrderedCollectionDifference; // inherited from NSObject + + static new(): NSOrderedCollectionDifference; // inherited from NSObject + + readonly hasChanges: boolean; + + readonly insertions: NSArray>; + + readonly removals: NSArray>; + [Symbol.iterator](): Iterator; + + constructor(o: { changes: NSArray> | NSOrderedCollectionChange[]; }); + + constructor(o: { insertIndexes: NSIndexSet; insertedObjects: NSArray | ObjectType[]; removeIndexes: NSIndexSet; removedObjects: NSArray | ObjectType[]; }); + + constructor(o: { insertIndexes: NSIndexSet; insertedObjects: NSArray | ObjectType[]; removeIndexes: NSIndexSet; removedObjects: NSArray | ObjectType[]; additionalChanges: NSArray> | NSOrderedCollectionChange[]; }); + + differenceByTransformingChangesWithBlock(block: (p1: NSOrderedCollectionChange) => NSOrderedCollectionChange): NSOrderedCollectionDifference; + + initWithChanges(changes: NSArray> | NSOrderedCollectionChange[]): this; + + initWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjects(inserts: NSIndexSet, insertedObjects: NSArray | ObjectType[], removes: NSIndexSet, removedObjects: NSArray | ObjectType[]): this; + + initWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjectsAdditionalChanges(inserts: NSIndexSet, insertedObjects: NSArray | ObjectType[], removes: NSIndexSet, removedObjects: NSArray | ObjectType[], changes: NSArray> | NSOrderedCollectionChange[]): this; + + inverseDifference(): this; +} + +declare const enum NSOrderedCollectionDifferenceCalculationOptions { + + OmitInsertedObjects = 1, + + OmitRemovedObjects = 2, + + InferMoves = 4 +} + declare class NSOrderedSet extends NSObject implements NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding { static alloc(): NSOrderedSet; // inherited from NSObject @@ -6957,7 +7190,13 @@ declare class NSOrderedSet extends NSObject implements NSCopying, NS descriptionWithLocaleIndent(locale: any, level: number): string; - encodeWithCoder(aCoder: NSCoder): void; + differenceFromOrderedSet(other: NSOrderedSet): NSOrderedCollectionDifference; + + differenceFromOrderedSetWithOptions(other: NSOrderedSet, options: NSOrderedCollectionDifferenceCalculationOptions): NSOrderedCollectionDifference; + + differenceFromOrderedSetWithOptionsUsingEquivalenceTest(other: NSOrderedSet, options: NSOrderedCollectionDifferenceCalculationOptions, block: (p1: ObjectType, p2: ObjectType) => boolean): NSOrderedCollectionDifference; + + encodeWithCoder(coder: NSCoder): void; enumerateObjectsAtIndexesOptionsUsingBlock(s: NSIndexSet, opts: NSEnumerationOptions, block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => void): void; @@ -6991,7 +7230,7 @@ declare class NSOrderedSet extends NSObject implements NSCopying, NS initWithArrayRangeCopyItems(set: NSArray | ObjectType[], range: NSRange, flag: boolean): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithObject(object: ObjectType): this; @@ -7029,6 +7268,8 @@ declare class NSOrderedSet extends NSObject implements NSCopying, NS objectsAtIndexes(indexes: NSIndexSet): NSArray; + orderedSetByApplyingDifference(difference: NSOrderedCollectionDifference): NSOrderedSet; + reverseObjectEnumerator(): NSEnumerator; sortedArrayUsingComparator(cmptr: (p1: any, p2: any) => NSComparisonResult): NSArray; @@ -7068,9 +7309,9 @@ declare class NSOrthography extends NSObject implements NSCopying, NSSecureCodin dominantLanguageForScript(script: string): string; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDominantScriptLanguageMap(script: string, map: NSDictionary>): this; @@ -7170,9 +7411,9 @@ declare class NSPersonNameComponents extends NSObject implements NSCopying, NSSe copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSPersonNameComponentsFormatter extends NSFormatter { @@ -7260,9 +7501,9 @@ declare class NSPointerArray extends NSObject implements NSCopying, NSFastEnumer copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithOptions(options: NSPointerFunctionsOptions): this; @@ -7357,9 +7598,9 @@ declare class NSPort extends NSObject implements NSCoding, NSCopying { delegate(): NSPortDelegate; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; invalidate(): void; @@ -7420,13 +7661,13 @@ declare class NSPredicate extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; evaluateWithObject(object: any): boolean; evaluateWithObjectSubstitutionVariables(object: any, bindings: NSDictionary): boolean; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; predicateWithSubstitutionVariables(variables: NSDictionary): this; } @@ -7480,6 +7721,8 @@ declare class NSProcessInfo extends NSObject { readonly lowPowerModeEnabled: boolean; + readonly macCatalystApp: boolean; + readonly operatingSystemVersion: NSOperatingSystemVersion; readonly operatingSystemVersionString: string; @@ -7857,13 +8100,13 @@ declare class NSRegularExpression extends NSObject implements NSCopying, NSSecur copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateMatchesInStringOptionsRangeUsingBlock(string: string, options: NSMatchingOptions, range: NSRange, block: (p1: NSTextCheckingResult, p2: NSMatchingFlags, p3: interop.Pointer | interop.Reference) => void): void; firstMatchInStringOptionsRange(string: string, options: NSMatchingOptions, range: NSRange): NSTextCheckingResult; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithPatternOptionsError(pattern: string, options: NSRegularExpressionOptions): this; @@ -7897,6 +8140,47 @@ declare const enum NSRegularExpressionOptions { UseUnicodeWordBoundaries = 64 } +declare class NSRelativeDateTimeFormatter extends NSFormatter { + + static alloc(): NSRelativeDateTimeFormatter; // inherited from NSObject + + static new(): NSRelativeDateTimeFormatter; // inherited from NSObject + + calendar: NSCalendar; + + dateTimeStyle: NSRelativeDateTimeFormatterStyle; + + formattingContext: NSFormattingContext; + + locale: NSLocale; + + unitsStyle: NSRelativeDateTimeFormatterUnitsStyle; + + localizedStringForDateRelativeToDate(date: Date, referenceDate: Date): string; + + localizedStringFromDateComponents(dateComponents: NSDateComponents): string; + + localizedStringFromTimeInterval(timeInterval: number): string; +} + +declare const enum NSRelativeDateTimeFormatterStyle { + + Numeric = 0, + + Named = 1 +} + +declare const enum NSRelativeDateTimeFormatterUnitsStyle { + + Full = 0, + + SpellOut = 1, + + Short = 2, + + Abbreviated = 3 +} + declare var NSRepublicOfChinaCalendar: string; declare function NSResetHashTable(table: NSHashTable): void; @@ -8157,7 +8441,7 @@ declare class NSSet extends NSObject implements NSCopying, NSFastEnu descriptionWithLocale(locale: any): string; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateObjectsUsingBlock(block: (p1: ObjectType, p2: interop.Pointer | interop.Reference) => void): void; @@ -8167,7 +8451,7 @@ declare class NSSet extends NSObject implements NSCopying, NSFastEnu initWithArray(array: NSArray | ObjectType[]): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithObjects(firstObj: ObjectType): this; @@ -8318,9 +8602,9 @@ declare class NSSortDescriptor extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithKeyAscending(key: string, ascending: boolean): this; @@ -8688,7 +8972,7 @@ declare class NSString extends NSObject implements CKRecordValue, CNKeyDescripto drawWithRectOptionsAttributesContext(rect: CGRect, options: NSStringDrawingOptions, attributes: NSDictionary, context: NSStringDrawingContext): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateLinesUsingBlock(block: (p1: string, p2: interop.Pointer | interop.Reference) => void): void; @@ -8736,7 +9020,7 @@ declare class NSString extends NSObject implements CKRecordValue, CNKeyDescripto initWithCharactersNoCopyLengthFreeWhenDone(characters: interop.Pointer | interop.Reference, length: number, freeBuffer: boolean): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithContentsOfFile(path: string): this; @@ -8792,6 +9076,14 @@ declare class NSString extends NSObject implements CKRecordValue, CNKeyDescripto maximumLengthOfBytesUsingEncoding(enc: number): number; + mdf_calculatedLanguageDirection(): NSLocaleLanguageDirection; + + mdf_stringWithBidiEmbedding(languageDirection: NSLocaleLanguageDirection): string; + + mdf_stringWithBidiMarkersStripped(): string; + + mdf_stringWithStereoResetContext(direction: NSLocaleLanguageDirection, contextDirection: NSLocaleLanguageDirection): string; + mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; paragraphRangeForRange(range: NSRange): NSRange; @@ -9112,9 +9404,9 @@ declare class NSTextCheckingResult extends NSObject implements NSCopying, NSSecu copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; rangeAtIndex(idx: number): NSRange; @@ -9283,9 +9575,9 @@ declare class NSTimeZone extends NSObject implements NSCopying, NSSecureCoding { daylightSavingTimeOffsetForDate(aDate: Date): number; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithName(tzName: string): this; @@ -9520,7 +9812,7 @@ declare class NSURL extends NSObject implements NSCopying, NSItemProviderReading copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; fileReferenceURL(): NSURL; @@ -9544,7 +9836,7 @@ declare class NSURL extends NSObject implements NSCopying, NSItemProviderReading initFileURLWithPathRelativeToURL(path: string, baseURL: NSURL): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDataRepresentationRelativeToURL(data: NSData, baseURL: NSURL): this; @@ -9627,11 +9919,11 @@ declare class NSURLAuthenticationChallenge extends NSObject implements NSSecureC constructor(o: { protectionSpace: NSURLProtectionSpace; proposedCredential: NSURLCredential; previousFailureCount: number; failureResponse: NSURLResponse; error: NSError; sender: NSURLAuthenticationChallengeSender; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAuthenticationChallengeSender(challenge: NSURLAuthenticationChallenge, sender: NSURLAuthenticationChallengeSender): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithProtectionSpaceProposedCredentialPreviousFailureCountFailureResponseErrorSender(space: NSURLProtectionSpace, credential: NSURLCredential, previousFailureCount: number, response: NSURLResponse, error: NSError, sender: NSURLAuthenticationChallengeSender): this; } @@ -9707,12 +9999,16 @@ declare class NSURLCache extends NSObject { static sharedURLCache: NSURLCache; + constructor(o: { memoryCapacity: number; diskCapacity: number; directoryURL: NSURL; }); + constructor(o: { memoryCapacity: number; diskCapacity: number; diskPath: string; }); cachedResponseForRequest(request: NSURLRequest): NSCachedURLResponse; getCachedResponseForDataTaskCompletionHandler(dataTask: NSURLSessionDataTask, completionHandler: (p1: NSCachedURLResponse) => void): void; + initWithMemoryCapacityDiskCapacityDirectoryURL(memoryCapacity: number, diskCapacity: number, directoryURL: NSURL): this; + initWithMemoryCapacityDiskCapacityDiskPath(memoryCapacity: number, diskCapacity: number, path: string): this; removeAllCachedResponses(): void; @@ -9948,9 +10244,9 @@ declare class NSURLCredential extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIdentityCertificatesPersistence(identity: any, certArray: NSArray | any[], persistence: NSURLCredentialPersistence): this; @@ -10097,6 +10393,17 @@ declare var NSURLErrorKey: string; declare const NSURLErrorNetworkConnectionLost: number; +declare const enum NSURLErrorNetworkUnavailableReason { + + Cellular = 0, + + Expensive = 1, + + Constrained = 2 +} + +declare var NSURLErrorNetworkUnavailableReasonKey: string; + declare const NSURLErrorNoPermissionsToReadFile: number; declare const NSURLErrorNotConnectedToInternet: number; @@ -10261,9 +10568,9 @@ declare class NSURLProtectionSpace extends NSObject implements NSCopying, NSSecu copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithHostPortProtocolRealmAuthenticationMethod(host: string, port: number, protocol: string, realm: string, authenticationMethod: string): this; @@ -10372,9 +10679,9 @@ declare class NSURLQueryItem extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNameValue(name: string, value: string): this; } @@ -10414,6 +10721,10 @@ declare class NSURLRequest extends NSObject implements NSCopying, NSMutableCopyi readonly allowsCellularAccess: boolean; + readonly allowsConstrainedNetworkAccess: boolean; + + readonly allowsExpensiveNetworkAccess: boolean; + readonly cachePolicy: NSURLRequestCachePolicy; readonly mainDocumentURL: NSURL; @@ -10432,9 +10743,9 @@ declare class NSURLRequest extends NSObject implements NSCopying, NSMutableCopyi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithURL(URL: NSURL): this; @@ -10476,6 +10787,10 @@ declare const enum NSURLRequestNetworkServiceType { NetworkServiceTypeResponsiveData = 6, + NetworkServiceTypeAVStreaming = 8, + + NetworkServiceTypeResponsiveAV = 9, + NetworkServiceTypeCallSignaling = 11 } @@ -10503,9 +10818,9 @@ declare class NSURLResponse extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithURLMIMETypeExpectedContentLengthTextEncodingName(URL: NSURL, MIMEType: string, length: number, name: string): this; } @@ -10575,6 +10890,12 @@ declare class NSURLSession extends NSObject { uploadTaskWithRequestFromFileCompletionHandler(request: NSURLRequest, fileURL: NSURL, completionHandler: (p1: NSData, p2: NSURLResponse, p3: NSError) => void): NSURLSessionUploadTask; uploadTaskWithStreamedRequest(request: NSURLRequest): NSURLSessionUploadTask; + + webSocketTaskWithRequest(request: NSURLRequest): NSURLSessionWebSocketTask; + + webSocketTaskWithURL(url: NSURL): NSURLSessionWebSocketTask; + + webSocketTaskWithURLProtocols(url: NSURL, protocols: NSArray | string[]): NSURLSessionWebSocketTask; } declare const enum NSURLSessionAuthChallengeDisposition { @@ -10612,14 +10933,22 @@ declare class NSURLSessionConfiguration extends NSObject implements NSCopying { TLSMaximumSupportedProtocol: SSLProtocol; + TLSMaximumSupportedProtocolVersion: tls_protocol_version_t; + TLSMinimumSupportedProtocol: SSLProtocol; + TLSMinimumSupportedProtocolVersion: tls_protocol_version_t; + URLCache: NSURLCache; URLCredentialStorage: NSURLCredentialStorage; allowsCellularAccess: boolean; + allowsConstrainedNetworkAccess: boolean; + + allowsExpensiveNetworkAccess: boolean; + connectionProxyDictionary: NSDictionary; discretionary: boolean; @@ -10932,20 +11261,52 @@ declare class NSURLSessionTaskTransactionMetrics extends NSObject { static new(): NSURLSessionTaskTransactionMetrics; // inherited from NSObject + readonly cellular: boolean; + readonly connectEndDate: Date; readonly connectStartDate: Date; + readonly constrained: boolean; + + readonly countOfRequestBodyBytesBeforeEncoding: number; + + readonly countOfRequestBodyBytesSent: number; + + readonly countOfRequestHeaderBytesSent: number; + + readonly countOfResponseBodyBytesAfterDecoding: number; + + readonly countOfResponseBodyBytesReceived: number; + + readonly countOfResponseHeaderBytesReceived: number; + readonly domainLookupEndDate: Date; readonly domainLookupStartDate: Date; + readonly expensive: boolean; + readonly fetchStartDate: Date; + readonly localAddress: string; + + readonly localPort: number; + + readonly multipath: boolean; + + readonly negotiatedTLSCipherSuite: number; + + readonly negotiatedTLSProtocolVersion: number; + readonly networkProtocolName: string; readonly proxyConnection: boolean; + readonly remoteAddress: string; + + readonly remotePort: number; + readonly request: NSURLRequest; readonly requestEndDate: Date; @@ -10976,6 +11337,95 @@ declare class NSURLSessionUploadTask extends NSURLSessionDataTask { static new(): NSURLSessionUploadTask; // inherited from NSObject } +declare const enum NSURLSessionWebSocketCloseCode { + + Invalid = 0, + + NormalClosure = 1000, + + GoingAway = 1001, + + ProtocolError = 1002, + + UnsupportedData = 1003, + + NoStatusReceived = 1005, + + AbnormalClosure = 1006, + + InvalidFramePayloadData = 1007, + + PolicyViolation = 1008, + + MessageTooBig = 1009, + + MandatoryExtensionMissing = 1010, + + InternalServerError = 1011, + + TLSHandshakeFailure = 1015 +} + +interface NSURLSessionWebSocketDelegate extends NSURLSessionTaskDelegate { + + URLSessionWebSocketTaskDidCloseWithCodeReason?(session: NSURLSession, webSocketTask: NSURLSessionWebSocketTask, closeCode: NSURLSessionWebSocketCloseCode, reason: NSData): void; + + URLSessionWebSocketTaskDidOpenWithProtocol?(session: NSURLSession, webSocketTask: NSURLSessionWebSocketTask, protocol: string): void; +} +declare var NSURLSessionWebSocketDelegate: { + + prototype: NSURLSessionWebSocketDelegate; +}; + +declare class NSURLSessionWebSocketMessage extends NSObject { + + static alloc(): NSURLSessionWebSocketMessage; // inherited from NSObject + + static new(): NSURLSessionWebSocketMessage; // inherited from NSObject + + readonly data: NSData; + + readonly string: string; + + readonly type: NSURLSessionWebSocketMessageType; + + constructor(o: { data: NSData; }); + + constructor(o: { string: string; }); + + initWithData(data: NSData): this; + + initWithString(string: string): this; +} + +declare const enum NSURLSessionWebSocketMessageType { + + Data = 0, + + String = 1 +} + +declare class NSURLSessionWebSocketTask extends NSURLSessionTask { + + static alloc(): NSURLSessionWebSocketTask; // inherited from NSObject + + static new(): NSURLSessionWebSocketTask; // inherited from NSObject + + readonly closeCode: NSURLSessionWebSocketCloseCode; + + readonly closeReason: NSData; + + maximumMessageSize: number; + + cancelWithCloseCodeReason(closeCode: NSURLSessionWebSocketCloseCode, reason: NSData): void; + + receiveMessageWithCompletionHandler(completionHandler: (p1: NSURLSessionWebSocketMessage, p2: NSError) => void): void; + + sendMessageCompletionHandler(message: NSURLSessionWebSocketMessage, completionHandler: (p1: NSError) => void): void; + + sendPingWithPongReceiveHandler(pongReceiveHandler: (p1: NSError) => void): void; +} + declare var NSURLThumbnailDictionaryKey: string; declare var NSURLTotalFileAllocatedSizeKey: string; @@ -11152,11 +11602,11 @@ declare class NSUUID extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; getUUIDBytes(uuid: interop.Reference): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithUUIDBytes(bytes: interop.Reference): this; @@ -11365,9 +11815,9 @@ declare class NSUnit extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithSymbol(symbol: string): this; } @@ -11388,9 +11838,9 @@ declare class NSUnitAcceleration extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitAngle extends NSDimension implements NSSecureCoding { @@ -11417,9 +11867,9 @@ declare class NSUnitAngle extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitArea extends NSDimension implements NSSecureCoding { @@ -11462,9 +11912,9 @@ declare class NSUnitArea extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitConcentrationMass extends NSDimension implements NSSecureCoding { @@ -11485,9 +11935,9 @@ declare class NSUnitConcentrationMass extends NSDimension implements NSSecureCod constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitConverter extends NSObject { @@ -11519,9 +11969,9 @@ declare class NSUnitConverterLinear extends NSUnitConverter implements NSSecureC constructor(o: { coefficient: number; constant: number; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithCoefficient(coefficient: number): this; @@ -11542,9 +11992,9 @@ declare class NSUnitDispersion extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitDuration extends NSDimension implements NSSecureCoding { @@ -11557,17 +12007,25 @@ declare class NSUnitDuration extends NSDimension implements NSSecureCoding { static readonly hours: NSUnitDuration; + static readonly microseconds: NSUnitDuration; + + static readonly milliseconds: NSUnitDuration; + static readonly minutes: NSUnitDuration; + static readonly nanoseconds: NSUnitDuration; + + static readonly picoseconds: NSUnitDuration; + static readonly seconds: NSUnitDuration; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitElectricCharge extends NSDimension implements NSSecureCoding { @@ -11594,9 +12052,9 @@ declare class NSUnitElectricCharge extends NSDimension implements NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitElectricCurrent extends NSDimension implements NSSecureCoding { @@ -11621,9 +12079,9 @@ declare class NSUnitElectricCurrent extends NSDimension implements NSSecureCodin constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitElectricPotentialDifference extends NSDimension implements NSSecureCoding { @@ -11648,9 +12106,9 @@ declare class NSUnitElectricPotentialDifference extends NSDimension implements N constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitElectricResistance extends NSDimension implements NSSecureCoding { @@ -11675,9 +12133,9 @@ declare class NSUnitElectricResistance extends NSDimension implements NSSecureCo constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitEnergy extends NSDimension implements NSSecureCoding { @@ -11702,9 +12160,9 @@ declare class NSUnitEnergy extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitFrequency extends NSDimension implements NSSecureCoding { @@ -11715,6 +12173,8 @@ declare class NSUnitFrequency extends NSDimension implements NSSecureCoding { static new(): NSUnitFrequency; // inherited from NSObject + static readonly framesPerSecond: NSUnitFrequency; + static readonly gigahertz: NSUnitFrequency; static readonly hertz: NSUnitFrequency; @@ -11735,9 +12195,9 @@ declare class NSUnitFrequency extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitFuelEfficiency extends NSDimension implements NSSecureCoding { @@ -11758,9 +12218,9 @@ declare class NSUnitFuelEfficiency extends NSDimension implements NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitIlluminance extends NSDimension implements NSSecureCoding { @@ -11777,9 +12237,96 @@ declare class NSUnitIlluminance extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; +} + +declare class NSUnitInformationStorage extends NSDimension implements NSSecureCoding { + + static alloc(): NSUnitInformationStorage; // inherited from NSObject + + static baseUnit(): NSUnitInformationStorage; // inherited from NSDimension + + static new(): NSUnitInformationStorage; // inherited from NSObject + + static readonly bits: NSUnitInformationStorage; + + static readonly bytes: NSUnitInformationStorage; + + static readonly exabits: NSUnitInformationStorage; + + static readonly exabytes: NSUnitInformationStorage; + + static readonly exbibits: NSUnitInformationStorage; + + static readonly exbibytes: NSUnitInformationStorage; + + static readonly gibibits: NSUnitInformationStorage; + + static readonly gibibytes: NSUnitInformationStorage; + + static readonly gigabits: NSUnitInformationStorage; + + static readonly gigabytes: NSUnitInformationStorage; + + static readonly kibibits: NSUnitInformationStorage; + + static readonly kibibytes: NSUnitInformationStorage; + + static readonly kilobits: NSUnitInformationStorage; + + static readonly kilobytes: NSUnitInformationStorage; + + static readonly mebibits: NSUnitInformationStorage; + + static readonly mebibytes: NSUnitInformationStorage; + + static readonly megabits: NSUnitInformationStorage; + + static readonly megabytes: NSUnitInformationStorage; + + static readonly nibbles: NSUnitInformationStorage; + + static readonly pebibits: NSUnitInformationStorage; + + static readonly pebibytes: NSUnitInformationStorage; + + static readonly petabits: NSUnitInformationStorage; + + static readonly petabytes: NSUnitInformationStorage; + + static readonly tebibits: NSUnitInformationStorage; + + static readonly tebibytes: NSUnitInformationStorage; + + static readonly terabits: NSUnitInformationStorage; + + static readonly terabytes: NSUnitInformationStorage; + + static readonly yobibits: NSUnitInformationStorage; + + static readonly yobibytes: NSUnitInformationStorage; + + static readonly yottabits: NSUnitInformationStorage; + + static readonly yottabytes: NSUnitInformationStorage; + + static readonly zebibits: NSUnitInformationStorage; + + static readonly zebibytes: NSUnitInformationStorage; + + static readonly zettabits: NSUnitInformationStorage; + + static readonly zettabytes: NSUnitInformationStorage; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } declare class NSUnitLength extends NSDimension implements NSSecureCoding { @@ -11838,9 +12385,9 @@ declare class NSUnitLength extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitMass extends NSDimension implements NSSecureCoding { @@ -11887,9 +12434,9 @@ declare class NSUnitMass extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitPower extends NSDimension implements NSSecureCoding { @@ -11926,9 +12473,9 @@ declare class NSUnitPower extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitPressure extends NSDimension implements NSSecureCoding { @@ -11963,9 +12510,9 @@ declare class NSUnitPressure extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitSpeed extends NSDimension implements NSSecureCoding { @@ -11988,9 +12535,9 @@ declare class NSUnitSpeed extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitTemperature extends NSDimension implements NSSecureCoding { @@ -12011,9 +12558,9 @@ declare class NSUnitTemperature extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NSUnitVolume extends NSDimension implements NSSecureCoding { @@ -12090,12 +12637,12 @@ declare class NSUnitVolume extends NSDimension implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } -declare class NSUserActivity extends NSObject { +declare class NSUserActivity extends NSObject implements NSItemProviderReading, NSItemProviderWriting { static alloc(): NSUserActivity; // inherited from NSObject @@ -12103,8 +12650,12 @@ declare class NSUserActivity extends NSObject { static deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers: NSArray | string[], handler: () => void): void; + static itemProviderVisibilityForRepresentationWithTypeIdentifier(typeIdentifier: string): NSItemProviderRepresentationVisibility; + static new(): NSUserActivity; // inherited from NSObject + static objectWithItemProviderDataTypeIdentifierError(data: NSData, typeIdentifier: string): NSUserActivity; + readonly activityType: string; contentAttributeSet: CSSearchableItemAttributeSet; @@ -12149,25 +12700,71 @@ declare class NSUserActivity extends NSObject { supportsContinuationStreams: boolean; + targetContentIdentifier: string; + title: string; userInfo: NSDictionary; webpageURL: NSURL; + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly writableTypeIdentifiersForItemProvider: NSArray; // inherited from NSItemProviderWriting + + readonly // inherited from NSObjectProtocol + + static readonly readableTypeIdentifiersForItemProvider: NSArray; // inherited from NSItemProviderReading + + static readonly writableTypeIdentifiersForItemProvider: NSArray; // inherited from NSItemProviderWriting + constructor(o: { activityType: string; }); addUserInfoEntriesFromDictionary(otherDictionary: NSDictionary): void; becomeCurrent(): void; + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + getContinuationStreamsWithCompletionHandler(completionHandler: (p1: NSInputStream, p2: NSOutputStream, p3: NSError) => void): void; initWithActivityType(activityType: string): this; invalidate(): void; + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + itemProviderVisibilityForRepresentationWithTypeIdentifier(typeIdentifier: string): NSItemProviderRepresentationVisibility; + + loadDataWithTypeIdentifierForItemProviderCompletionHandler(typeIdentifier: string, completionHandler: (p1: NSData, p2: NSError) => void): NSProgress; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + resignCurrent(): void; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } declare const NSUserActivityConnectionUnavailableError: number; @@ -12394,7 +12991,7 @@ declare class NSValue extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; getValue(value: interop.Pointer | interop.Reference): void; @@ -12402,7 +12999,7 @@ declare class NSValue extends NSObject implements NSCopying, NSSecureCoding { initWithBytesObjCType(value: interop.Pointer | interop.Reference, type: string | interop.Pointer | interop.Reference): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqualToValue(value: NSValue): boolean; } @@ -12747,10 +13344,23 @@ declare const enum NSXMLParserExternalEntityResolvingPolicy { ResolveExternalEntitiesAlways = 3 } +declare class NSXPCCoder extends NSCoder { + + static alloc(): NSXPCCoder; // inherited from NSObject + + static new(): NSXPCCoder; // inherited from NSObject + + readonly connection: NSXPCConnection; + + userInfo: NSObjectProtocol; +} + declare class NSXPCConnection extends NSObject implements NSXPCProxyCreating { static alloc(): NSXPCConnection; // inherited from NSObject + static currentConnection(): NSXPCConnection; + static new(): NSXPCConnection; // inherited from NSObject readonly auditSessionIdentifier: number; @@ -12787,6 +13397,8 @@ declare class NSXPCConnection extends NSObject implements NSXPCProxyCreating { resume(): void; + scheduleSendBarrierBlock(block: () => void): void; + suspend(): void; synchronousRemoteObjectProxyWithErrorHandler(handler: (p1: NSError) => void): any; @@ -12866,9 +13478,9 @@ declare class NSXPCListenerEndpoint extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } interface NSXPCProxyCreating { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!GLKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!GLKit.d.ts index cde596b718..726f361154 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!GLKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!GLKit.d.ts @@ -527,14 +527,7 @@ declare const enum GLKVertexAttrib { TexCoord1 = 4 } -interface GLKVertexAttributeParameters { - type: number; - size: number; - normalized: number; -} -declare var GLKVertexAttributeParameters: interop.StructType; - -declare function GLKVertexAttributeParametersFromModelIO(vertexFormat: MDLVertexFormat): GLKVertexAttributeParameters; +declare function GLKVertexAttributeParametersFromModelIO(vertexFormat: MDLVertexFormat): _GLKVertexAttributeParameters; declare class GLKView extends UIView implements NSCoding { @@ -584,9 +577,9 @@ declare class GLKView extends UIView implements NSCoding { display(): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithFrameContext(frame: CGRect, context: EAGLContext): this; } @@ -637,11 +630,11 @@ declare class GLKViewController extends UIViewController implements GLKViewDeleg conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; glkViewDrawInRect(view: GLKView, rect: CGRect): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -714,6 +707,13 @@ declare const enum GLKViewDrawableStencilFormat { Format8 = 1 } +interface _GLKVertexAttributeParameters { + type: number; + size: number; + normalized: number; +} +declare var _GLKVertexAttributeParameters: interop.StructType<_GLKVertexAttributeParameters>; + declare var kGLKModelErrorDomain: string; declare var kGLKModelErrorKey: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!GameController.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!GameController.d.ts index 97d705f9e9..04b5483675 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!GameController.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!GameController.d.ts @@ -10,6 +10,10 @@ declare class GCController extends NSObject { static alloc(): GCController; // inherited from NSObject + static controllerWithExtendedGamepad(): GCController; + + static controllerWithMicroGamepad(): GCController; + static controllers(): NSArray; static new(): GCController; // inherited from NSObject @@ -34,7 +38,13 @@ declare class GCController extends NSObject { playerIndex: GCControllerPlayerIndex; + readonly productCategory: string; + + readonly snapshot: boolean; + readonly vendorName: string; + + capture(): GCController; } declare class GCControllerAxisInput extends GCControllerElement { @@ -46,6 +56,8 @@ declare class GCControllerAxisInput extends GCControllerElement { readonly value: number; valueChangedHandler: (p1: GCControllerAxisInput, p2: number) => void; + + setValue(value: number): void; } declare class GCControllerButtonInput extends GCControllerElement { @@ -61,6 +73,8 @@ declare class GCControllerButtonInput extends GCControllerElement { readonly value: number; valueChangedHandler: (p1: GCControllerButtonInput, p2: number, p3: boolean) => void; + + setValue(value: number): void; } declare var GCControllerDidConnectNotification: string; @@ -86,6 +100,8 @@ declare class GCControllerDirectionPad extends GCControllerElement { readonly xAxis: GCControllerAxisInput; readonly yAxis: GCControllerAxisInput; + + setValueForXAxisYAxis(xAxis: number, yAxis: number): void; } declare class GCControllerElement extends NSObject { @@ -112,6 +128,10 @@ declare const enum GCControllerPlayerIndex { Index4 = 3 } +declare var GCCurrentExtendedGamepadSnapshotDataVersion: GCExtendedGamepadSnapshotDataVersion; + +declare var GCCurrentMicroGamepadSnapshotDataVersion: GCMicroGamepadSnapshotDataVersion; + interface GCEulerAngles { pitch: number; yaw: number; @@ -138,6 +158,10 @@ declare class GCExtendedGamepad extends NSObject { readonly buttonB: GCControllerButtonInput; + readonly buttonMenu: GCControllerButtonInput; + + readonly buttonOptions: GCControllerButtonInput; + readonly buttonX: GCControllerButtonInput; readonly buttonY: GCControllerButtonInput; @@ -165,6 +189,8 @@ declare class GCExtendedGamepad extends NSObject { valueChangedHandler: (p1: GCExtendedGamepad, p2: GCControllerElement) => void; saveSnapshot(): GCExtendedGamepadSnapshot; + + setStateFromExtendedGamepad(extendedGamepad: GCExtendedGamepad): void; } interface GCExtendedGamepadSnapShotDataV100 { @@ -206,6 +232,38 @@ declare class GCExtendedGamepadSnapshot extends GCExtendedGamepad { initWithSnapshotData(data: NSData): this; } +interface GCExtendedGamepadSnapshotData { + version: number; + size: number; + dpadX: number; + dpadY: number; + buttonA: number; + buttonB: number; + buttonX: number; + buttonY: number; + leftShoulder: number; + rightShoulder: number; + leftThumbstickX: number; + leftThumbstickY: number; + rightThumbstickX: number; + rightThumbstickY: number; + leftTrigger: number; + rightTrigger: number; + supportsClickableThumbsticks: boolean; + leftThumbstickButton: boolean; + rightThumbstickButton: boolean; +} +declare var GCExtendedGamepadSnapshotData: interop.StructType; + +declare function GCExtendedGamepadSnapshotDataFromNSData(snapshotData: interop.Pointer | interop.Reference, data: NSData): boolean; + +declare const enum GCExtendedGamepadSnapshotDataVersion { + + Version1 = 256, + + Version2 = 257 +} + declare class GCGamepad extends NSObject { static alloc(): GCGamepad; // inherited from NSObject @@ -276,6 +334,8 @@ declare class GCMicroGamepad extends NSObject { readonly buttonA: GCControllerButtonInput; + readonly buttonMenu: GCControllerButtonInput; + readonly buttonX: GCControllerButtonInput; readonly controller: GCController; @@ -287,6 +347,8 @@ declare class GCMicroGamepad extends NSObject { valueChangedHandler: (p1: GCMicroGamepad, p2: GCControllerElement) => void; saveSnapshot(): GCMicroGamepadSnapshot; + + setStateFromMicroGamepad(microGamepad: GCMicroGamepad): void; } interface GCMicroGamepadSnapShotDataV100 { @@ -318,6 +380,23 @@ declare class GCMicroGamepadSnapshot extends GCMicroGamepad { initWithSnapshotData(data: NSData): this; } +interface GCMicroGamepadSnapshotData { + version: number; + size: number; + dpadX: number; + dpadY: number; + buttonA: number; + buttonX: number; +} +declare var GCMicroGamepadSnapshotData: interop.StructType; + +declare function GCMicroGamepadSnapshotDataFromNSData(snapshotData: interop.Pointer | interop.Reference, data: NSData): boolean; + +declare const enum GCMicroGamepadSnapshotDataVersion { + + Version1 = 256 +} + declare class GCMotion extends NSObject { static alloc(): GCMotion; // inherited from NSObject @@ -337,6 +416,16 @@ declare class GCMotion extends NSObject { readonly userAcceleration: GCAcceleration; valueChangedHandler: (p1: GCMotion) => void; + + setAttitude(attitude: GCQuaternion): void; + + setGravity(gravity: GCAcceleration): void; + + setRotationRate(rotationRate: GCRotationRate): void; + + setStateFromMotion(motion: GCMotion): void; + + setUserAcceleration(userAcceleration: GCAcceleration): void; } interface GCQuaternion { @@ -356,6 +445,10 @@ declare var GCRotationRate: interop.StructType; declare function NSDataFromGCExtendedGamepadSnapShotDataV100(snapshotData: interop.Pointer | interop.Reference): NSData; +declare function NSDataFromGCExtendedGamepadSnapshotData(snapshotData: interop.Pointer | interop.Reference): NSData; + declare function NSDataFromGCGamepadSnapShotDataV100(snapshotData: interop.Pointer | interop.Reference): NSData; declare function NSDataFromGCMicroGamepadSnapShotDataV100(snapshotData: interop.Pointer | interop.Reference): NSData; + +declare function NSDataFromGCMicroGamepadSnapshotData(snapshotData: interop.Pointer | interop.Reference): NSData; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!GameKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!GameKit.d.ts index 4d7d9061dc..64ac56d738 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!GameKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!GameKit.d.ts @@ -43,9 +43,9 @@ declare class GKAchievement extends NSObject implements NSCoding, NSSecureCoding challengeComposeControllerWithPlayersMessageCompletionHandler(playerIDs: NSArray | string[], message: string, completionHandler: (p1: UIViewController, p2: boolean, p3: NSArray) => void): UIViewController; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIdentifier(identifier: string): this; @@ -55,6 +55,8 @@ declare class GKAchievement extends NSObject implements NSCoding, NSSecureCoding issueChallengeToPlayersMessage(playerIDs: NSArray | string[], message: string): void; + issueChallengeToPlayersMessageMethod(playerIDs: NSArray | string[], message: string): void; + reportAchievementWithCompletionHandler(completionHandler: (p1: NSError) => void): void; selectChallengeablePlayerIDsWithCompletionHandler(playerIDs: NSArray | string[], completionHandler: (p1: NSArray, p2: NSError) => void): void; @@ -105,9 +107,9 @@ declare class GKAchievementDescription extends NSObject implements NSCoding, NSS constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; loadImageWithCompletionHandler(completionHandler: (p1: UIImage, p2: NSError) => void): void; } @@ -180,9 +182,9 @@ declare class GKChallenge extends NSObject implements NSCoding, NSSecureCoding { decline(): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class GKChallengeEventHandler extends NSObject { @@ -317,7 +319,11 @@ declare const enum GKErrorCode { MatchNotConnected = 28, - GameSessionRequestInvalid = 29 + GameSessionRequestInvalid = 29, + + RestrictedToAutomatch = 30, + + APINotAvailable = 31 } declare var GKErrorDomain: string; @@ -627,9 +633,9 @@ declare class GKLeaderboardSet extends NSObject implements NSCoding, NSSecureCod constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; loadImageWithCompletionHandler(completionHandler: (p1: UIImage, p2: NSError) => void): void; @@ -681,8 +687,12 @@ declare class GKLocalPlayer extends GKPlayer implements GKSavedGameListener { readonly friends: NSArray; + readonly multiplayerGamingRestricted: boolean; + readonly underage: boolean; + static readonly local: GKLocalPlayer; + static readonly localPlayer: GKLocalPlayer; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -715,6 +725,8 @@ declare class GKLocalPlayer extends GKPlayer implements GKSavedGameListener { isMemberOfClass(aClass: typeof NSObject): boolean; + loadChallengableFriendsWithCompletionHandler(completionHandler: (p1: NSArray, p2: NSError) => void): void; + loadDefaultLeaderboardCategoryIDWithCompletionHandler(completionHandler: (p1: string, p2: NSError) => void): void; loadDefaultLeaderboardIdentifierWithCompletionHandler(completionHandler: (p1: string, p2: NSError) => void): void; @@ -844,6 +856,8 @@ declare class GKMatchRequest extends NSObject { recipientResponseHandler: (p1: GKPlayer, p2: GKInviteRecipientResponse) => void; recipients: NSArray; + + restrictToAutomatch: boolean; } declare const enum GKMatchSendDataMode { @@ -1035,11 +1049,17 @@ declare class GKPlayer extends GKBasePlayer { readonly alias: string; + readonly gamePlayerID: string; + readonly guestIdentifier: string; readonly isFriend: boolean; + readonly teamPlayerID: string; + loadPhotoForSizeWithCompletionHandler(size: GKPhotoSize, completionHandler: (p1: UIImage, p2: NSError) => void): void; + + scopedIDsArePersistent(): boolean; } declare var GKPlayerAuthenticationDidChangeNotificationName: string; @@ -1129,11 +1149,11 @@ declare class GKScore extends NSObject implements NSCoding, NSSecureCoding { challengeComposeControllerWithPlayersMessageCompletionHandler(playerIDs: NSArray | string[], message: string, completionHandler: (p1: UIViewController, p2: boolean, p3: NSArray) => void): UIViewController; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithCategory(category: string): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithLeaderboardIdentifier(identifier: string): this; @@ -1143,6 +1163,8 @@ declare class GKScore extends NSObject implements NSCoding, NSSecureCoding { issueChallengeToPlayersMessage(playerIDs: NSArray | string[], message: string): void; + issueChallengeToPlayersMessageMethod(playerIDs: NSArray | string[], message: string): void; + reportScoreWithCompletionHandler(completionHandler: (p1: NSError) => void): void; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!GameplayKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!GameplayKit.d.ts index fffda34068..3d487c4bd9 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!GameplayKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!GameplayKit.d.ts @@ -38,9 +38,9 @@ declare class GKAgent extends GKComponent implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class GKAgent2D extends GKAgent implements NSSecureCoding { @@ -59,9 +59,9 @@ declare class GKAgent2D extends GKAgent implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class GKAgent3D extends GKAgent { @@ -209,9 +209,9 @@ declare class GKComponent extends NSObject implements NSCopying, NSSecureCoding didAddToEntity(): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; updateWithDeltaTime(seconds: number): void; @@ -348,7 +348,7 @@ declare class GKDecisionTree extends NSObject implements NSSecureCoding { constructor(o: { URL: NSURL; error: NSError; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; exportToURLError(url: NSURL, error: NSError): boolean; @@ -356,7 +356,7 @@ declare class GKDecisionTree extends NSObject implements NSSecureCoding { initWithAttribute(attribute: NSObjectProtocol): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithExamplesActionsAttributes(examples: NSArray> | NSArray[], actions: NSArray | NSObjectProtocol[], attributes: NSArray | NSObjectProtocol[]): this; @@ -383,9 +383,9 @@ declare class GKEntity extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; removeComponentForClass(componentClass: typeof NSObject): void; @@ -517,11 +517,11 @@ declare class GKGraph extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; findPathFromNodeToNode(startNode: GKGraphNode, endNode: GKGraphNode): NSArray; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNodes(nodes: NSArray | GKGraphNode[]): this; @@ -544,7 +544,7 @@ declare class GKGraphNode extends NSObject implements NSSecureCoding { costToNode(node: GKGraphNode): number; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; estimatedCostToNode(node: GKGraphNode): number; @@ -552,7 +552,7 @@ declare class GKGraphNode extends NSObject implements NSSecureCoding { findPathToNode(goalNode: GKGraphNode): NSArray; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; removeConnectionsToNodesBidirectional(nodes: NSArray | GKGraphNode[], bidirectional: boolean): void; } @@ -1091,9 +1091,9 @@ declare class GKPolygonObstacle extends GKObstacle implements NSSecureCoding { constructor(o: { points: interop.Pointer | interop.Reference>; count: number; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithPointsCount(points: interop.Pointer | interop.Reference>, numPoints: number): this; @@ -1236,9 +1236,9 @@ declare class GKRandomSource extends NSObject implements GKRandom, NSCopying, NS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; nextBool(): boolean; @@ -1454,9 +1454,9 @@ declare class GKScene extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; removeEntity(entity: GKEntity): void; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!HealthKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!HealthKit.d.ts index fe691a67dd..697eb31bf4 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!HealthKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!HealthKit.d.ts @@ -25,9 +25,9 @@ declare class HKActivitySummary extends NSObject implements NSCopying, NSSecureC dateComponentsForCalendar(calendar: NSCalendar): NSDateComponents; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class HKActivitySummaryQuery extends HKQuery { @@ -67,6 +67,39 @@ declare class HKAnchoredObjectQuery extends HKQuery { initWithTypePredicateAnchorLimitResultsHandler(type: HKSampleType, predicate: NSPredicate, anchor: HKQueryAnchor, limit: number, handler: (p1: HKAnchoredObjectQuery, p2: NSArray, p3: NSArray, p4: HKQueryAnchor, p5: NSError) => void): this; } +declare class HKAudiogramSample extends HKSample { + + static alloc(): HKAudiogramSample; // inherited from NSObject + + static audiogramSampleWithSensitivityPointsStartDateEndDateMetadata(sensitivityPoints: NSArray | HKAudiogramSensitivityPoint[], startDate: Date, endDate: Date, metadata: NSDictionary): HKAudiogramSample; + + static new(): HKAudiogramSample; // inherited from NSObject + + readonly sensitivityPoints: NSArray; +} + +declare class HKAudiogramSampleType extends HKSampleType { + + static alloc(): HKAudiogramSampleType; // inherited from NSObject + + static new(): HKAudiogramSampleType; // inherited from NSObject +} + +declare class HKAudiogramSensitivityPoint extends NSObject { + + static alloc(): HKAudiogramSensitivityPoint; // inherited from NSObject + + static new(): HKAudiogramSensitivityPoint; // inherited from NSObject + + static sensitivityPointWithFrequencyLeftEarSensitivityRightEarSensitivityError(frequency: HKQuantity, leftEarSensitivity: HKQuantity, rightEarSensitivity: HKQuantity): HKAudiogramSensitivityPoint; + + readonly frequency: HKQuantity; + + readonly leftEarSensitivity: HKQuantity; + + readonly rightEarSensitivity: HKQuantity; +} + declare const enum HKAuthorizationRequestStatus { Unknown = 0, @@ -110,9 +143,9 @@ declare class HKBiologicalSexObject extends NSObject implements NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum HKBloodGlucoseMealTime { @@ -157,9 +190,9 @@ declare class HKBloodTypeObject extends NSObject implements NSCopying, NSSecureC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum HKBodyTemperatureSensorLocation { @@ -243,10 +276,18 @@ declare class HKCategoryType extends HKSampleType { declare var HKCategoryTypeIdentifierAppleStandHour: string; +declare var HKCategoryTypeIdentifierAudioExposureEvent: string; + declare var HKCategoryTypeIdentifierCervicalMucusQuality: string; +declare var HKCategoryTypeIdentifierHighHeartRateEvent: string; + declare var HKCategoryTypeIdentifierIntermenstrualBleeding: string; +declare var HKCategoryTypeIdentifierIrregularHeartRhythmEvent: string; + +declare var HKCategoryTypeIdentifierLowHeartRateEvent: string; + declare var HKCategoryTypeIdentifierMenstrualFlow: string; declare var HKCategoryTypeIdentifierMindfulSession: string; @@ -257,6 +298,8 @@ declare var HKCategoryTypeIdentifierSexualActivity: string; declare var HKCategoryTypeIdentifierSleepAnalysis: string; +declare var HKCategoryTypeIdentifierToothbrushingEvent: string; + declare const enum HKCategoryValue { NotApplicable = 0 @@ -269,6 +312,11 @@ declare const enum HKCategoryValueAppleStandHour { Idle = 1 } +declare const enum HKCategoryValueAudioExposureEvent { + + LoudEnvironment = 1 +} + declare const enum HKCategoryValueCervicalMucusQuality { Dry = 1, @@ -299,9 +347,13 @@ declare const enum HKCategoryValueOvulationTestResult { Negative = 1, + LuteinizingHormoneSurge = 2, + Positive = 2, - Indeterminate = 3 + Indeterminate = 3, + + EstrogenSurge = 4 } declare const enum HKCategoryValueSleepAnalysis { @@ -348,9 +400,9 @@ declare class HKClinicalRecord extends HKSample implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class HKClinicalType extends HKSampleType { @@ -419,7 +471,22 @@ declare var HKCorrelationTypeIdentifierBloodPressure: string; declare var HKCorrelationTypeIdentifierFood: string; -declare class HKCumulativeQuantitySeriesSample extends HKQuantitySample { +declare class HKCumulativeQuantitySample extends HKQuantitySample { + + static alloc(): HKCumulativeQuantitySample; // inherited from NSObject + + static new(): HKCumulativeQuantitySample; // inherited from NSObject + + static quantitySampleWithTypeQuantityStartDateEndDate(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date): HKCumulativeQuantitySample; // inherited from HKQuantitySample + + static quantitySampleWithTypeQuantityStartDateEndDateDeviceMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, device: HKDevice, metadata: NSDictionary): HKCumulativeQuantitySample; // inherited from HKQuantitySample + + static quantitySampleWithTypeQuantityStartDateEndDateMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, metadata: NSDictionary): HKCumulativeQuantitySample; // inherited from HKQuantitySample + + readonly sumQuantity: HKQuantity; +} + +declare class HKCumulativeQuantitySeriesSample extends HKCumulativeQuantitySample { static alloc(): HKCumulativeQuantitySeriesSample; // inherited from NSObject @@ -434,6 +501,8 @@ declare class HKCumulativeQuantitySeriesSample extends HKQuantitySample { readonly sum: HKQuantity; } +declare var HKDataTypeIdentifierHeartbeatSeries: string; + declare class HKDeletedObject extends NSObject implements NSSecureCoding { static alloc(): HKDeletedObject; // inherited from NSObject @@ -448,9 +517,9 @@ declare class HKDeletedObject extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var HKDetailedCDAValidationErrorKey: string; @@ -487,9 +556,9 @@ declare class HKDevice extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNameManufacturerModelHardwareVersionFirmwareVersionSoftwareVersionLocalIdentifierUDIDeviceIdentifier(name: string, manufacturer: string, model: string, hardwareVersion: string, firmwareVersion: string, softwareVersion: string, localIdentifier: string, UDIDeviceIdentifier: string): this; } @@ -510,6 +579,29 @@ declare var HKDevicePropertyKeySoftwareVersion: string; declare var HKDevicePropertyKeyUDIDeviceIdentifier: string; +declare class HKDiscreteQuantitySample extends HKQuantitySample { + + static alloc(): HKDiscreteQuantitySample; // inherited from NSObject + + static new(): HKDiscreteQuantitySample; // inherited from NSObject + + static quantitySampleWithTypeQuantityStartDateEndDate(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date): HKDiscreteQuantitySample; // inherited from HKQuantitySample + + static quantitySampleWithTypeQuantityStartDateEndDateDeviceMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, device: HKDevice, metadata: NSDictionary): HKDiscreteQuantitySample; // inherited from HKQuantitySample + + static quantitySampleWithTypeQuantityStartDateEndDateMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, metadata: NSDictionary): HKDiscreteQuantitySample; // inherited from HKQuantitySample + + readonly averageQuantity: HKQuantity; + + readonly maximumQuantity: HKQuantity; + + readonly minimumQuantity: HKQuantity; + + readonly mostRecentQuantity: HKQuantity; + + readonly mostRecentQuantityDateInterval: NSDateInterval; +} + declare class HKDocumentQuery extends HKQuery { static alloc(): HKDocumentQuery; // inherited from NSObject @@ -592,9 +684,9 @@ declare class HKFHIRResource extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var HKFHIRResourceTypeAllergyIntolerance: string; @@ -644,9 +736,9 @@ declare class HKFitzpatrickSkinTypeObject extends NSObject implements NSCopying, copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class HKHealthStore extends NSObject { @@ -736,6 +828,43 @@ declare const enum HKHeartRateSensorLocation { Foot = 6 } +declare class HKHeartbeatSeriesBuilder extends HKSeriesBuilder { + + static alloc(): HKHeartbeatSeriesBuilder; // inherited from NSObject + + static new(): HKHeartbeatSeriesBuilder; // inherited from NSObject + + static readonly maximumCount: number; + + constructor(o: { healthStore: HKHealthStore; device: HKDevice; startDate: Date; }); + + addHeartbeatWithTimeIntervalSinceSeriesStartDatePrecededByGapCompletion(timeInterval: number, precededByGap: boolean, completion: (p1: boolean, p2: NSError) => void): void; + + addMetadataCompletion(metadata: NSDictionary, completion: (p1: boolean, p2: NSError) => void): void; + + finishSeriesWithCompletion(completion: (p1: HKHeartbeatSeriesSample, p2: NSError) => void): void; + + initWithHealthStoreDeviceStartDate(healthStore: HKHealthStore, device: HKDevice, startDate: Date): this; +} + +declare class HKHeartbeatSeriesQuery extends HKQuery { + + static alloc(): HKHeartbeatSeriesQuery; // inherited from NSObject + + static new(): HKHeartbeatSeriesQuery; // inherited from NSObject + + constructor(o: { heartbeatSeries: HKHeartbeatSeriesSample; dataHandler: (p1: HKHeartbeatSeriesQuery, p2: number, p3: boolean, p4: boolean, p5: NSError) => void; }); + + initWithHeartbeatSeriesDataHandler(heartbeatSeries: HKHeartbeatSeriesSample, dataHandler: (p1: HKHeartbeatSeriesQuery, p2: number, p3: boolean, p4: boolean, p5: NSError) => void): this; +} + +declare class HKHeartbeatSeriesSample extends HKSeriesSample { + + static alloc(): HKHeartbeatSeriesSample; // inherited from NSObject + + static new(): HKHeartbeatSeriesSample; // inherited from NSObject +} + declare const enum HKInsulinDeliveryReason { Basal = 1, @@ -745,6 +874,10 @@ declare const enum HKInsulinDeliveryReason { declare var HKMetadataKeyAlpineSlopeGrade: string; +declare var HKMetadataKeyAudioExposureLevel: string; + +declare var HKMetadataKeyAverageMETs: string; + declare var HKMetadataKeyAverageSpeed: string; declare var HKMetadataKeyBloodGlucoseMealTime: string; @@ -775,6 +908,8 @@ declare var HKMetadataKeyFoodType: string; declare var HKMetadataKeyGroupFitness: string; +declare var HKMetadataKeyHeartRateEventThreshold: string; + declare var HKMetadataKeyHeartRateMotionContext: string; declare var HKMetadataKeyHeartRateSensorLocation: string; @@ -829,6 +964,8 @@ declare const enum HKMetricPrefix { None = 0, + Femto = 13, + Pico = 1, Nano = 2, @@ -874,9 +1011,9 @@ declare class HKObject extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var HKObjectQueryNoLimit: number; @@ -887,6 +1024,8 @@ declare class HKObjectType extends NSObject implements NSCopying, NSSecureCoding static alloc(): HKObjectType; // inherited from NSObject + static audiogramSampleType(): HKAudiogramSampleType; + static categoryTypeForIdentifier(identifier: string): HKCategoryType; static characteristicTypeForIdentifier(identifier: string): HKCharacteristicType; @@ -913,9 +1052,9 @@ declare class HKObjectType extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class HKObserverQuery extends HKQuery { @@ -929,6 +1068,8 @@ declare class HKObserverQuery extends HKQuery { initWithSampleTypePredicateUpdateHandler(sampleType: HKSampleType, predicate: NSPredicate, updateHandler: (p1: HKObserverQuery, p2: () => void, p3: NSError) => void): this; } +declare var HKPredicateKeyPathAverage: string; + declare var HKPredicateKeyPathCDAAuthorName: string; declare var HKPredicateKeyPathCDACustodianName: string; @@ -945,14 +1086,28 @@ declare var HKPredicateKeyPathClinicalRecordFHIRResourceType: string; declare var HKPredicateKeyPathCorrelation: string; +declare var HKPredicateKeyPathCount: string; + declare var HKPredicateKeyPathDateComponents: string; declare var HKPredicateKeyPathDevice: string; declare var HKPredicateKeyPathEndDate: string; +declare var HKPredicateKeyPathMax: string; + declare var HKPredicateKeyPathMetadata: string; +declare var HKPredicateKeyPathMin: string; + +declare var HKPredicateKeyPathMostRecent: string; + +declare var HKPredicateKeyPathMostRecentDuration: string; + +declare var HKPredicateKeyPathMostRecentEndDate: string; + +declare var HKPredicateKeyPathMostRecentStartDate: string; + declare var HKPredicateKeyPathQuantity: string; declare var HKPredicateKeyPathSource: string; @@ -997,9 +1152,9 @@ declare class HKQuantity extends NSObject implements NSCopying, NSSecureCoding { doubleValueForUnit(unit: HKUnit): number; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isCompatibleWithUnit(unit: HKUnit): boolean; } @@ -1008,7 +1163,13 @@ declare const enum HKQuantityAggregationStyle { Cumulative = 0, - Discrete = 1 + DiscreteArithmetic = 1, + + Discrete = 1, + + DiscreteTemporallyWeighted = 2, + + DiscreteEquivalentContinuousLevel = 3 } declare class HKQuantitySample extends HKSample { @@ -1048,9 +1209,13 @@ declare class HKQuantitySeriesSampleBuilder extends NSObject { finishSeriesWithMetadataCompletion(metadata: NSDictionary, completion: (p1: NSArray, p2: NSError) => void): void; + finishSeriesWithMetadataEndDateCompletion(metadata: NSDictionary, endDate: Date, completion: (p1: NSArray, p2: NSError) => void): void; + initWithHealthStoreQuantityTypeStartDateDevice(healthStore: HKHealthStore, quantityType: HKQuantityType, startDate: Date, device: HKDevice): this; insertQuantityDateError(quantity: HKQuantity, date: Date): boolean; + + insertQuantityDateIntervalError(quantity: HKQuantity, dateInterval: NSDateInterval): boolean; } declare class HKQuantitySeriesSampleQuery extends HKQuery { @@ -1059,8 +1224,16 @@ declare class HKQuantitySeriesSampleQuery extends HKQuery { static new(): HKQuantitySeriesSampleQuery; // inherited from NSObject + includeSample: boolean; + + orderByQuantitySampleStartDate: boolean; + + constructor(o: { quantityType: HKQuantityType; predicate: NSPredicate; quantityHandler: (p1: HKQuantitySeriesSampleQuery, p2: HKQuantity, p3: NSDateInterval, p4: HKQuantitySample, p5: boolean, p6: NSError) => void; }); + constructor(o: { sample: HKQuantitySample; quantityHandler: (p1: HKQuantitySeriesSampleQuery, p2: HKQuantity, p3: Date, p4: boolean, p5: NSError) => void; }); + initWithQuantityTypePredicateQuantityHandler(quantityType: HKQuantityType, predicate: NSPredicate, quantityHandler: (p1: HKQuantitySeriesSampleQuery, p2: HKQuantity, p3: NSDateInterval, p4: HKQuantitySample, p5: boolean, p6: NSError) => void): this; + initWithSampleQuantityHandler(quantitySample: HKQuantitySample, quantityHandler: (p1: HKQuantitySeriesSampleQuery, p2: HKQuantity, p3: Date, p4: boolean, p5: NSError) => void): this; } @@ -1079,6 +1252,8 @@ declare var HKQuantityTypeIdentifierActiveEnergyBurned: string; declare var HKQuantityTypeIdentifierAppleExerciseTime: string; +declare var HKQuantityTypeIdentifierAppleStandTime: string; + declare var HKQuantityTypeIdentifierBasalBodyTemperature: string; declare var HKQuantityTypeIdentifierBasalEnergyBurned: string; @@ -1189,12 +1364,16 @@ declare var HKQuantityTypeIdentifierDistanceWheelchair: string; declare var HKQuantityTypeIdentifierElectrodermalActivity: string; +declare var HKQuantityTypeIdentifierEnvironmentalAudioExposure: string; + declare var HKQuantityTypeIdentifierFlightsClimbed: string; declare var HKQuantityTypeIdentifierForcedExpiratoryVolume1: string; declare var HKQuantityTypeIdentifierForcedVitalCapacity: string; +declare var HKQuantityTypeIdentifierHeadphoneAudioExposure: string; + declare var HKQuantityTypeIdentifierHeartRate: string; declare var HKQuantityTypeIdentifierHeartRateVariabilitySDNN: string; @@ -1312,9 +1491,9 @@ declare class HKQueryAnchor extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum HKQueryOptions { @@ -1363,6 +1542,14 @@ declare class HKSampleType extends HKObjectType { static alloc(): HKSampleType; // inherited from NSObject static new(): HKSampleType; // inherited from NSObject + + readonly isMaximumDurationRestricted: boolean; + + readonly isMinimumDurationRestricted: boolean; + + readonly maximumAllowedDuration: number; + + readonly minimumAllowedDuration: number; } declare class HKSeriesBuilder extends NSObject { @@ -1387,6 +1574,8 @@ declare class HKSeriesType extends HKSampleType { static alloc(): HKSeriesType; // inherited from NSObject + static heartbeatSeriesType(): HKSeriesType; + static new(): HKSeriesType; // inherited from NSObject static workoutRouteType(): HKSeriesType; @@ -1410,9 +1599,9 @@ declare class HKSource extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class HKSourceQuery extends HKQuery { @@ -1450,9 +1639,9 @@ declare class HKSourceRevision extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithSourceVersion(source: HKSource, version: string): this; @@ -1489,9 +1678,13 @@ declare class HKStatistics extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + duration(): HKQuantity; + + durationForSource(source: HKSource): HKQuantity; - initWithCoder(aDecoder: NSCoder): this; + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; maximumQuantity(): HKQuantity; @@ -1564,7 +1757,11 @@ declare const enum HKStatisticsOptions { CumulativeSum = 16, - DiscreteMostRecent = 32 + MostRecent = 32, + + DiscreteMostRecent = 32, + + Duration = 64 } declare class HKStatisticsQuery extends HKQuery { @@ -1611,6 +1808,10 @@ declare class HKUnit extends NSObject implements NSCopying, NSSecureCoding { static dayUnit(): HKUnit; + static decibelAWeightedSoundPressureLevelUnit(): HKUnit; + + static decibelHearingLevelUnit(): HKUnit; + static degreeCelsiusUnit(): HKUnit; static degreeFahrenheitUnit(): HKUnit; @@ -1627,6 +1828,10 @@ declare class HKUnit extends NSObject implements NSCopying, NSSecureCoding { static gramUnitWithMetricPrefix(prefix: HKMetricPrefix): HKUnit; + static hertzUnit(): HKUnit; + + static hertzUnitWithMetricPrefix(prefix: HKMetricPrefix): HKUnit; + static hourUnit(): HKUnit; static inchUnit(): HKUnit; @@ -1711,9 +1916,9 @@ declare class HKUnit extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isNull(): boolean; @@ -1830,9 +2035,9 @@ declare class HKWheelchairUseObject extends NSObject implements NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class HKWorkout extends HKSample { @@ -2020,6 +2225,10 @@ declare const enum HKWorkoutActivityType { HandCycling = 74, + DiscSports = 75, + + FitnessGaming = 76, + Other = 3000 } @@ -2086,9 +2295,9 @@ declare class HKWorkoutConfiguration extends NSObject implements NSCopying, NSSe copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class HKWorkoutEvent extends NSObject implements NSCopying, NSSecureCoding { @@ -2117,9 +2326,9 @@ declare class HKWorkoutEvent extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum HKWorkoutEventType { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!HomeKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!HomeKit.d.ts index 24932465df..4e63d70784 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!HomeKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!HomeKit.d.ts @@ -167,6 +167,17 @@ declare var HMAccessoryDelegate: { prototype: HMAccessoryDelegate; }; +declare class HMAccessoryOwnershipToken extends NSObject { + + static alloc(): HMAccessoryOwnershipToken; // inherited from NSObject + + static new(): HMAccessoryOwnershipToken; // inherited from NSObject + + constructor(o: { data: NSData; }); + + initWithData(data: NSData): this; +} + declare class HMAccessoryProfile extends NSObject { static alloc(): HMAccessoryProfile; // inherited from NSObject @@ -188,7 +199,11 @@ declare class HMAccessorySetupPayload extends NSObject { constructor(o: { URL: NSURL; }); + constructor(o: { URL: NSURL; ownershipToken: HMAccessoryOwnershipToken; }); + initWithURL(setupPayloadURL: NSURL): this; + + initWithURLOwnershipToken(setupPayloadURL: NSURL, ownershipToken: HMAccessoryOwnershipToken): this; } declare class HMAction extends NSObject { @@ -237,6 +252,27 @@ declare var HMActionSetTypeUserDefined: string; declare var HMActionSetTypeWakeUp: string; +declare class HMAddAccessoryRequest extends NSObject { + + static alloc(): HMAddAccessoryRequest; // inherited from NSObject + + static new(): HMAddAccessoryRequest; // inherited from NSObject + + readonly accessoryCategory: HMAccessoryCategory; + + readonly accessoryName: string; + + readonly home: HMHome; + + readonly requiresOwnershipToken: boolean; + + readonly requiresSetupPayloadURL: boolean; + + payloadWithOwnershipToken(ownershipToken: HMAccessoryOwnershipToken): HMAccessorySetupPayload; + + payloadWithURLOwnershipToken(setupPayloadURL: NSURL, ownershipToken: HMAccessoryOwnershipToken): HMAccessorySetupPayload; +} + declare class HMCalendarEvent extends HMTimeEvent implements NSCopying, NSMutableCopying { static alloc(): HMCalendarEvent; // inherited from NSObject @@ -1429,7 +1465,13 @@ declare const enum HMErrorCode { IncompatibleHomeHub = 92, - ObjectWithSimilarNameExists = 95 + ObjectWithSimilarNameExists = 95, + + OwnershipFailure = 96, + + MaximumAccessoriesOfTypeInHome = 97, + + WiFiCredentialGenerationFailed = 98 } declare var HMErrorDomain: string; @@ -1697,6 +1739,8 @@ declare class HMHomeManager extends NSObject { static new(): HMHomeManager; // inherited from NSObject + readonly authorizationStatus: HMHomeManagerAuthorizationStatus; + delegate: HMHomeManagerDelegate; readonly homes: NSArray; @@ -1710,12 +1754,25 @@ declare class HMHomeManager extends NSObject { updatePrimaryHomeCompletionHandler(home: HMHome, completion: (p1: NSError) => void): void; } +declare const enum HMHomeManagerAuthorizationStatus { + + Determined = 1, + + Restricted = 2, + + Authorized = 4 +} + interface HMHomeManagerDelegate extends NSObjectProtocol { homeManagerDidAddHome?(manager: HMHomeManager, home: HMHome): void; + homeManagerDidReceiveAddAccessoryRequest?(manager: HMHomeManager, request: HMAddAccessoryRequest): void; + homeManagerDidRemoveHome?(manager: HMHomeManager, home: HMHome): void; + homeManagerDidUpdateAuthorizationStatus?(manager: HMHomeManager, status: HMHomeManagerAuthorizationStatus): void; + homeManagerDidUpdateHomes?(manager: HMHomeManager): void; homeManagerDidUpdatePrimaryHome?(manager: HMHomeManager): void; @@ -1815,6 +1872,26 @@ declare class HMMutableSignificantTimeEvent extends HMSignificantTimeEvent { significantEvent: string; } +declare class HMNetworkConfigurationProfile extends HMAccessoryProfile { + + static alloc(): HMNetworkConfigurationProfile; // inherited from NSObject + + static new(): HMNetworkConfigurationProfile; // inherited from NSObject + + delegate: HMNetworkConfigurationProfileDelegate; + + readonly networkAccessRestricted: boolean; +} + +interface HMNetworkConfigurationProfileDelegate extends NSObjectProtocol { + + profileDidUpdateNetworkAccessMode?(profile: HMNetworkConfigurationProfile): void; +} +declare var HMNetworkConfigurationProfileDelegate: { + + prototype: HMNetworkConfigurationProfileDelegate; +}; + declare class HMNumberRange extends NSObject { static alloc(): HMNumberRange; // inherited from NSObject diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!ICU.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!ICU.d.ts index 0b4c498b6b..dd9dadce6c 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!ICU.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!ICU.d.ts @@ -600,11 +600,38 @@ declare const enum UBlockCode { LOCK_SOGDIAN = 291, - LOCK_COUNT = 292, + LOCK_EGYPTIAN_HIEROGLYPH_FORMAT_CONTROLS = 292, + + LOCK_ELYMAIC = 293, + + LOCK_NANDINAGARI = 294, + + LOCK_NYIAKENG_PUACHUE_HMONG = 295, + + LOCK_OTTOMAN_SIYAQ_NUMBERS = 296, + + LOCK_SMALL_KANA_EXTENSION = 297, + + LOCK_SYMBOLS_AND_PICTOGRAPHS_EXTENDED_A = 298, + + LOCK_TAMIL_SUPPLEMENT = 299, + + LOCK_WANCHO = 300, + + LOCK_COUNT = 301, LOCK_INVALID_CODE = -1 } +declare const enum UCPMapRangeOption { + + AP_RANGE_NORMAL = 0, + + AP_RANGE_FIXED_LEAD_SURROGATES = 1, + + AP_RANGE_FIXED_ALL_SURROGATES = 2 +} + declare const enum UCharCategory { U_UNASSIGNED = 0, @@ -1214,6 +1241,114 @@ declare const enum UHangulSyllableType { declare const UITER_UNKNOWN_INDEX: number; +declare const enum UIndicPositionalCategory { + + U_INPC_NA = 0, + + U_INPC_BOTTOM = 1, + + U_INPC_BOTTOM_AND_LEFT = 2, + + U_INPC_BOTTOM_AND_RIGHT = 3, + + U_INPC_LEFT = 4, + + U_INPC_LEFT_AND_RIGHT = 5, + + U_INPC_OVERSTRUCK = 6, + + U_INPC_RIGHT = 7, + + U_INPC_TOP = 8, + + U_INPC_TOP_AND_BOTTOM = 9, + + U_INPC_TOP_AND_BOTTOM_AND_RIGHT = 10, + + U_INPC_TOP_AND_LEFT = 11, + + U_INPC_TOP_AND_LEFT_AND_RIGHT = 12, + + U_INPC_TOP_AND_RIGHT = 13, + + U_INPC_VISUAL_ORDER_LEFT = 14 +} + +declare const enum UIndicSyllabicCategory { + + U_INSC_OTHER = 0, + + U_INSC_AVAGRAHA = 1, + + U_INSC_BINDU = 2, + + U_INSC_BRAHMI_JOINING_NUMBER = 3, + + U_INSC_CANTILLATION_MARK = 4, + + U_INSC_CONSONANT = 5, + + U_INSC_CONSONANT_DEAD = 6, + + U_INSC_CONSONANT_FINAL = 7, + + U_INSC_CONSONANT_HEAD_LETTER = 8, + + U_INSC_CONSONANT_INITIAL_POSTFIXED = 9, + + U_INSC_CONSONANT_KILLER = 10, + + U_INSC_CONSONANT_MEDIAL = 11, + + U_INSC_CONSONANT_PLACEHOLDER = 12, + + U_INSC_CONSONANT_PRECEDING_REPHA = 13, + + U_INSC_CONSONANT_PREFIXED = 14, + + U_INSC_CONSONANT_SUBJOINED = 15, + + U_INSC_CONSONANT_SUCCEEDING_REPHA = 16, + + U_INSC_CONSONANT_WITH_STACKER = 17, + + U_INSC_GEMINATION_MARK = 18, + + U_INSC_INVISIBLE_STACKER = 19, + + U_INSC_JOINER = 20, + + U_INSC_MODIFYING_LETTER = 21, + + U_INSC_NON_JOINER = 22, + + U_INSC_NUKTA = 23, + + U_INSC_NUMBER = 24, + + U_INSC_NUMBER_JOINER = 25, + + U_INSC_PURE_KILLER = 26, + + U_INSC_REGISTER_SHIFTER = 27, + + U_INSC_SYLLABLE_MODIFIER = 28, + + U_INSC_TONE_LETTER = 29, + + U_INSC_TONE_MARK = 30, + + U_INSC_VIRAMA = 31, + + U_INSC_VISARGA = 32, + + U_INSC_VOWEL = 33, + + U_INSC_VOWEL_DEPENDENT = 34, + + U_INSC_VOWEL_INDEPENDENT = 35 +} + declare const enum UJoiningGroup { U_JG_NO_JOINING_GROUP = 0, @@ -1738,7 +1873,13 @@ declare const enum UProperty { CHAR_BIDI_PAIRED_BRACKET_TYPE = 4117, - CHAR_INT_LIMIT = 4118, + CHAR_INDIC_POSITIONAL_CATEGORY = 4118, + + CHAR_INDIC_SYLLABIC_CATEGORY = 4119, + + CHAR_VERTICAL_ORIENTATION = 4120, + + CHAR_INT_LIMIT = 4121, CHAR_GENERAL_CATEGORY_MASK = 8192, @@ -1918,6 +2059,17 @@ interface UTextFuncs { } declare var UTextFuncs: interop.StructType; +declare const enum UVerticalOrientation { + + U_VO_ROTATED = 0, + + U_VO_TRANSFORMED_ROTATED = 1, + + U_VO_TRANSFORMED_UPRIGHT = 2, + + U_VO_UPRIGHT = 3 +} + declare const enum UWordBreakValues { U_WB_OTHER = 0, @@ -2009,6 +2161,8 @@ declare function u_forDigit(digit: number, radix: number): number; declare function u_getBidiPairedBracket(c: number): number; +declare function u_getBinaryPropertySet(property: UProperty, pErrorCode: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + declare function u_getCombiningClass(c: number): number; declare function u_getDataDirectory(): string; @@ -2017,6 +2171,8 @@ declare function u_getFC_NFKC_Closure(c: number, dest: interop.Pointer | interop declare function u_getISOComment(c: number, dest: string, destCapacity: number, pErrorCode: interop.Pointer | interop.Reference): number; +declare function u_getIntPropertyMap(property: UProperty, pErrorCode: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + declare function u_getIntPropertyMaxValue(which: UProperty): number; declare function u_getIntPropertyMinValue(which: UProperty): number; @@ -2233,6 +2389,10 @@ declare function u_versionToString(versionArray: interop.Reference, vers declare function ublock_getCode(c: number): UBlockCode; +declare function ucpmap_get(map: interop.Pointer | interop.Reference, c: number): number; + +declare function ucpmap_getRange(map: interop.Pointer | interop.Reference, start: number, option: UCPMapRangeOption, surrogateValue: number, filter: interop.Pointer | interop.Reference, p2: number) => number>>, context: interop.Pointer | interop.Reference, pValue: interop.Pointer | interop.Reference): number; + declare function uiter_current32(iter: interop.Pointer | interop.Reference): number; declare function uiter_getState(iter: interop.Pointer | interop.Reference): number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!IOSurface.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!IOSurface.d.ts index 4c92710156..d0c6414590 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!IOSurface.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!IOSurface.d.ts @@ -55,13 +55,13 @@ declare class IOSurface extends NSObject implements NSSecureCoding { elementWidthOfPlaneAtIndex(planeIndex: number): number; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; heightOfPlaneAtIndex(planeIndex: number): number; incrementUseCount(): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithProperties(properties: NSDictionary): this; @@ -84,7 +84,7 @@ declare class IOSurface extends NSObject implements NSSecureCoding { declare function IOSurfaceAlignProperty(property: string, value: number): number; -declare function IOSurfaceAllowsPixelSizeCasting(buffer: IOSurface): boolean; +declare function IOSurfaceAllowsPixelSizeCasting(buffer: any): boolean; declare const enum IOSurfaceComponentName { @@ -127,81 +127,81 @@ declare const enum IOSurfaceComponentType { kIOSurfaceComponentTypeFloat = 3 } -declare function IOSurfaceCopyAllValues(buffer: IOSurface): NSDictionary; +declare function IOSurfaceCopyAllValues(buffer: any): NSDictionary; -declare function IOSurfaceCopyValue(buffer: IOSurface, key: string): any; +declare function IOSurfaceCopyValue(buffer: any, key: string): any; -declare function IOSurfaceCreate(properties: NSDictionary): IOSurface; +declare function IOSurfaceCreate(properties: NSDictionary): any; -declare function IOSurfaceCreateMachPort(buffer: IOSurface): number; +declare function IOSurfaceCreateMachPort(buffer: any): number; -declare function IOSurfaceDecrementUseCount(buffer: IOSurface): void; +declare function IOSurfaceDecrementUseCount(buffer: any): void; -declare function IOSurfaceGetAllocSize(buffer: IOSurface): number; +declare function IOSurfaceGetAllocSize(buffer: any): number; -declare function IOSurfaceGetBaseAddress(buffer: IOSurface): interop.Pointer | interop.Reference; +declare function IOSurfaceGetBaseAddress(buffer: any): interop.Pointer | interop.Reference; -declare function IOSurfaceGetBaseAddressOfPlane(buffer: IOSurface, planeIndex: number): interop.Pointer | interop.Reference; +declare function IOSurfaceGetBaseAddressOfPlane(buffer: any, planeIndex: number): interop.Pointer | interop.Reference; -declare function IOSurfaceGetBitDepthOfComponentOfPlane(buffer: IOSurface, planeIndex: number, componentIndex: number): number; +declare function IOSurfaceGetBitDepthOfComponentOfPlane(buffer: any, planeIndex: number, componentIndex: number): number; -declare function IOSurfaceGetBitOffsetOfComponentOfPlane(buffer: IOSurface, planeIndex: number, componentIndex: number): number; +declare function IOSurfaceGetBitOffsetOfComponentOfPlane(buffer: any, planeIndex: number, componentIndex: number): number; -declare function IOSurfaceGetBytesPerElement(buffer: IOSurface): number; +declare function IOSurfaceGetBytesPerElement(buffer: any): number; -declare function IOSurfaceGetBytesPerElementOfPlane(buffer: IOSurface, planeIndex: number): number; +declare function IOSurfaceGetBytesPerElementOfPlane(buffer: any, planeIndex: number): number; -declare function IOSurfaceGetBytesPerRow(buffer: IOSurface): number; +declare function IOSurfaceGetBytesPerRow(buffer: any): number; -declare function IOSurfaceGetBytesPerRowOfPlane(buffer: IOSurface, planeIndex: number): number; +declare function IOSurfaceGetBytesPerRowOfPlane(buffer: any, planeIndex: number): number; -declare function IOSurfaceGetElementHeight(buffer: IOSurface): number; +declare function IOSurfaceGetElementHeight(buffer: any): number; -declare function IOSurfaceGetElementHeightOfPlane(buffer: IOSurface, planeIndex: number): number; +declare function IOSurfaceGetElementHeightOfPlane(buffer: any, planeIndex: number): number; -declare function IOSurfaceGetElementWidth(buffer: IOSurface): number; +declare function IOSurfaceGetElementWidth(buffer: any): number; -declare function IOSurfaceGetElementWidthOfPlane(buffer: IOSurface, planeIndex: number): number; +declare function IOSurfaceGetElementWidthOfPlane(buffer: any, planeIndex: number): number; -declare function IOSurfaceGetHeight(buffer: IOSurface): number; +declare function IOSurfaceGetHeight(buffer: any): number; -declare function IOSurfaceGetHeightOfPlane(buffer: IOSurface, planeIndex: number): number; +declare function IOSurfaceGetHeightOfPlane(buffer: any, planeIndex: number): number; -declare function IOSurfaceGetID(buffer: IOSurface): number; +declare function IOSurfaceGetID(buffer: any): number; -declare function IOSurfaceGetNameOfComponentOfPlane(buffer: IOSurface, planeIndex: number, componentIndex: number): IOSurfaceComponentName; +declare function IOSurfaceGetNameOfComponentOfPlane(buffer: any, planeIndex: number, componentIndex: number): IOSurfaceComponentName; -declare function IOSurfaceGetNumberOfComponentsOfPlane(buffer: IOSurface, planeIndex: number): number; +declare function IOSurfaceGetNumberOfComponentsOfPlane(buffer: any, planeIndex: number): number; -declare function IOSurfaceGetPixelFormat(buffer: IOSurface): number; +declare function IOSurfaceGetPixelFormat(buffer: any): number; -declare function IOSurfaceGetPlaneCount(buffer: IOSurface): number; +declare function IOSurfaceGetPlaneCount(buffer: any): number; declare function IOSurfaceGetPropertyAlignment(property: string): number; declare function IOSurfaceGetPropertyMaximum(property: string): number; -declare function IOSurfaceGetRangeOfComponentOfPlane(buffer: IOSurface, planeIndex: number, componentIndex: number): IOSurfaceComponentRange; +declare function IOSurfaceGetRangeOfComponentOfPlane(buffer: any, planeIndex: number, componentIndex: number): IOSurfaceComponentRange; -declare function IOSurfaceGetSeed(buffer: IOSurface): number; +declare function IOSurfaceGetSeed(buffer: any): number; -declare function IOSurfaceGetSubsampling(buffer: IOSurface): IOSurfaceSubsampling; +declare function IOSurfaceGetSubsampling(buffer: any): IOSurfaceSubsampling; declare function IOSurfaceGetTypeID(): number; -declare function IOSurfaceGetTypeOfComponentOfPlane(buffer: IOSurface, planeIndex: number, componentIndex: number): IOSurfaceComponentType; +declare function IOSurfaceGetTypeOfComponentOfPlane(buffer: any, planeIndex: number, componentIndex: number): IOSurfaceComponentType; -declare function IOSurfaceGetUseCount(buffer: IOSurface): number; +declare function IOSurfaceGetUseCount(buffer: any): number; -declare function IOSurfaceGetWidth(buffer: IOSurface): number; +declare function IOSurfaceGetWidth(buffer: any): number; -declare function IOSurfaceGetWidthOfPlane(buffer: IOSurface, planeIndex: number): number; +declare function IOSurfaceGetWidthOfPlane(buffer: any, planeIndex: number): number; -declare function IOSurfaceIncrementUseCount(buffer: IOSurface): void; +declare function IOSurfaceIncrementUseCount(buffer: any): void; -declare function IOSurfaceIsInUse(buffer: IOSurface): boolean; +declare function IOSurfaceIsInUse(buffer: any): boolean; -declare function IOSurfaceLock(buffer: IOSurface, options: IOSurfaceLockOptions, seed: interop.Pointer | interop.Reference): number; +declare function IOSurfaceLock(buffer: any, options: IOSurfaceLockOptions, seed: interop.Pointer | interop.Reference): number; declare const enum IOSurfaceLockOptions { @@ -210,9 +210,9 @@ declare const enum IOSurfaceLockOptions { kIOSurfaceLockAvoidSync = 2 } -declare function IOSurfaceLookup(csid: number): IOSurface; +declare function IOSurfaceLookup(csid: number): any; -declare function IOSurfaceLookupFromMachPort(port: number): IOSurface; +declare function IOSurfaceLookupFromMachPort(port: number): any; declare var IOSurfacePropertyAllocSizeKey: string; @@ -269,15 +269,15 @@ declare const enum IOSurfacePurgeabilityState { kIOSurfacePurgeableKeepCurrent = 3 } -declare function IOSurfaceRemoveAllValues(buffer: IOSurface): void; +declare function IOSurfaceRemoveAllValues(buffer: any): void; -declare function IOSurfaceRemoveValue(buffer: IOSurface, key: string): void; +declare function IOSurfaceRemoveValue(buffer: any, key: string): void; -declare function IOSurfaceSetPurgeable(buffer: IOSurface, newState: number, oldState: interop.Pointer | interop.Reference): number; +declare function IOSurfaceSetPurgeable(buffer: any, newState: number, oldState: interop.Pointer | interop.Reference): number; -declare function IOSurfaceSetValue(buffer: IOSurface, key: string, value: any): void; +declare function IOSurfaceSetValue(buffer: any, key: string, value: any): void; -declare function IOSurfaceSetValues(buffer: IOSurface, keysAndValues: NSDictionary): void; +declare function IOSurfaceSetValues(buffer: any, keysAndValues: NSDictionary): void; declare const enum IOSurfaceSubsampling { @@ -292,7 +292,7 @@ declare const enum IOSurfaceSubsampling { kIOSurfaceSubsampling411 = 4 } -declare function IOSurfaceUnlock(buffer: IOSurface, options: IOSurfaceLockOptions, seed: interop.Pointer | interop.Reference): number; +declare function IOSurfaceUnlock(buffer: any, options: IOSurfaceLockOptions, seed: interop.Pointer | interop.Reference): number; declare var kIOSurfaceAllocSize: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!IdentityLookup.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!IdentityLookup.d.ts index a34be9435f..d6c0d9fd1a 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!IdentityLookup.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!IdentityLookup.d.ts @@ -11,9 +11,9 @@ declare class ILCallClassificationRequest extends ILClassificationRequest implem constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class ILCallCommunication extends ILCommunication { @@ -46,9 +46,9 @@ declare class ILClassificationRequest extends NSObject implements NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class ILClassificationResponse extends NSObject implements NSSecureCoding { @@ -69,11 +69,11 @@ declare class ILClassificationResponse extends NSObject implements NSSecureCodin constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithClassificationAction(action: ILClassificationAction): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class ILCommunication extends NSObject implements NSSecureCoding { @@ -90,9 +90,9 @@ declare class ILCommunication extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqualToCommunication(communication: ILCommunication): boolean; } @@ -109,9 +109,9 @@ declare class ILMessageClassificationRequest extends ILClassificationRequest imp constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class ILMessageCommunication extends ILCommunication { @@ -188,9 +188,9 @@ declare class ILMessageFilterQueryRequest extends NSObject implements NSSecureCo constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class ILMessageFilterQueryResponse extends NSObject implements NSSecureCoding { @@ -205,9 +205,9 @@ declare class ILMessageFilterQueryResponse extends NSObject implements NSSecureC constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class ILNetworkResponse extends NSObject implements NSSecureCoding { @@ -224,7 +224,7 @@ declare class ILNetworkResponse extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!ImageCaptureCore.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!ImageCaptureCore.d.ts new file mode 100644 index 0000000000..f154b76898 --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!ImageCaptureCore.d.ts @@ -0,0 +1,590 @@ + +declare class ICCameraDevice extends ICDevice { + + static alloc(): ICCameraDevice; // inherited from NSObject + + static new(): ICCameraDevice; // inherited from NSObject + + readonly accessRestrictedAppleDevice: boolean; + + readonly batteryLevel: number; + + readonly batteryLevelAvailable: boolean; + + readonly contentCatalogPercentCompleted: number; + + readonly contents: NSArray; + + readonly ejectable: boolean; + + readonly iCloudPhotosEnabled: boolean; + + readonly locked: boolean; + + readonly mediaFiles: NSArray; + + readonly mountPoint: string; + + readonly tetheredCaptureEnabled: boolean; + + readonly timeOffset: number; + + cancelDownload(): void; + + filesOfType(fileUTType: string): NSArray; + + requestDeleteFiles(files: NSArray | ICCameraItem[]): void; + + requestDeleteFilesDeleteFailedCompletion(files: NSArray | ICCameraItem[], deleteFailed: (p1: NSDictionary) => void, completion: (p1: NSDictionary>, p2: NSError) => void): NSProgress; + + requestDownloadFileOptionsDownloadDelegateDidDownloadSelectorContextInfo(file: ICCameraFile, options: NSDictionary, downloadDelegate: ICCameraDeviceDownloadDelegate, selector: string, contextInfo: interop.Pointer | interop.Reference): void; + + requestSyncClock(): void; +} + +declare var ICCameraDeviceCanAcceptPTPCommands: string; + +declare var ICCameraDeviceCanDeleteAllFiles: string; + +declare var ICCameraDeviceCanDeleteOneFile: string; + +declare var ICCameraDeviceCanReceiveFile: string; + +declare var ICCameraDeviceCanSyncClock: string; + +declare var ICCameraDeviceCanTakePicture: string; + +declare var ICCameraDeviceCanTakePictureUsingShutterReleaseOnCamera: string; + +interface ICCameraDeviceDelegate extends ICDeviceDelegate { + + cameraDeviceDidAddItem?(camera: ICCameraDevice, item: ICCameraItem): void; + + cameraDeviceDidAddItems(camera: ICCameraDevice, items: NSArray | ICCameraItem[]): void; + + cameraDeviceDidChangeCapability(camera: ICCameraDevice): void; + + cameraDeviceDidCompleteDeleteFilesWithError?(camera: ICCameraDevice, error: NSError): void; + + cameraDeviceDidEnableAccessRestriction(device: ICDevice): void; + + cameraDeviceDidReceiveMetadataForItem?(camera: ICCameraDevice, item: ICCameraItem): void; + + cameraDeviceDidReceiveMetadataForItemError(camera: ICCameraDevice, metadata: NSDictionary, item: ICCameraItem, error: NSError): void; + + cameraDeviceDidReceivePTPEvent(camera: ICCameraDevice, eventData: NSData): void; + + cameraDeviceDidReceiveThumbnailForItem?(camera: ICCameraDevice, item: ICCameraItem): void; + + cameraDeviceDidReceiveThumbnailForItemError(camera: ICCameraDevice, thumbnail: any, item: ICCameraItem, error: NSError): void; + + cameraDeviceDidRemoveAccessRestriction(device: ICDevice): void; + + cameraDeviceDidRemoveItem?(camera: ICCameraDevice, item: ICCameraItem): void; + + cameraDeviceDidRemoveItems(camera: ICCameraDevice, items: NSArray | ICCameraItem[]): void; + + cameraDeviceDidRenameItems(camera: ICCameraDevice, items: NSArray | ICCameraItem[]): void; + + cameraDeviceShouldGetMetadataOfItem?(cameraDevice: ICCameraDevice, item: ICCameraItem): boolean; + + cameraDeviceShouldGetThumbnailOfItem?(cameraDevice: ICCameraDevice, item: ICCameraItem): boolean; + + deviceDidBecomeReadyWithCompleteContentCatalog(device: ICCameraDevice): void; +} +declare var ICCameraDeviceDelegate: { + + prototype: ICCameraDeviceDelegate; +}; + +interface ICCameraDeviceDownloadDelegate extends NSObjectProtocol { + + didDownloadFileErrorOptionsContextInfo?(file: ICCameraFile, error: NSError, options: NSDictionary, contextInfo: interop.Pointer | interop.Reference): void; + + didReceiveDownloadProgressForFileDownloadedBytesMaxBytes?(file: ICCameraFile, downloadedBytes: number, maxBytes: number): void; +} +declare var ICCameraDeviceDownloadDelegate: { + + prototype: ICCameraDeviceDownloadDelegate; +}; + +declare class ICCameraFile extends ICCameraItem { + + static alloc(): ICCameraFile; // inherited from NSObject + + static new(): ICCameraFile; // inherited from NSObject + + readonly burstFavorite: boolean; + + readonly burstPicked: boolean; + + readonly burstUUID: string; + + readonly createdFilename: string; + + readonly duration: number; + + readonly exifCreationDate: Date; + + readonly exifModificationDate: Date; + + readonly fileCreationDate: Date; + + readonly fileModificationDate: Date; + + readonly fileSize: number; + + readonly firstPicked: boolean; + + readonly gpsString: string; + + readonly groupUUID: string; + + readonly height: number; + + readonly highFramerate: boolean; + + orientation: ICEXIFOrientationType; + + readonly originalFilename: string; + + readonly originatingAssetID: string; + + readonly pairedRawImage: ICCameraFile; + + readonly relatedUUID: string; + + readonly sidecarFiles: NSArray; + + readonly timeLapse: boolean; + + readonly width: number; + + requestDownloadWithOptionsCompletion(options: NSDictionary, completion: (p1: string, p2: NSError) => void): NSProgress; + + requestMetadataDictionaryWithOptionsCompletion(options: NSDictionary, completion: (p1: NSDictionary, p2: NSError) => void): void; + + requestThumbnailDataWithOptionsCompletion(options: NSDictionary, completion: (p1: NSData, p2: NSError) => void): void; +} + +declare class ICCameraFolder extends ICCameraItem { + + static alloc(): ICCameraFolder; // inherited from NSObject + + static new(): ICCameraFolder; // inherited from NSObject + + readonly contents: NSArray; +} + +declare class ICCameraItem extends NSObject { + + static alloc(): ICCameraItem; // inherited from NSObject + + static new(): ICCameraItem; // inherited from NSObject + + readonly UTI: string; + + readonly addedAfterContentCatalogCompleted: boolean; + + readonly creationDate: Date; + + readonly device: ICCameraDevice; + + readonly fileSystemPath: string; + + readonly inTemporaryStore: boolean; + + readonly largeThumbnailIfAvailable: any; + + readonly locked: boolean; + + readonly metadata: NSDictionary; + + readonly metadataIfAvailable: NSDictionary; + + readonly modificationDate: Date; + + readonly name: string; + + readonly parentFolder: ICCameraFolder; + + readonly ptpObjectHandle: number; + + readonly raw: boolean; + + readonly thumbnail: any; + + readonly thumbnailIfAvailable: any; + + readonly userData: NSMutableDictionary; + + flushMetadataCache(): void; + + flushThumbnailCache(): void; + + requestMetadata(): void; + + requestThumbnail(): void; +} + +declare var ICDeleteAfterSuccessfulDownload: string; + +declare var ICDeleteCanceled: string; + +declare var ICDeleteErrorCanceled: string; + +declare var ICDeleteErrorDeviceMissing: string; + +declare var ICDeleteErrorFileMissing: string; + +declare var ICDeleteErrorReadOnly: string; + +declare var ICDeleteFailed: string; + +declare var ICDeleteSuccessful: string; + +declare class ICDevice extends NSObject { + + static alloc(): ICDevice; // inherited from NSObject + + static new(): ICDevice; // inherited from NSObject + + readonly UUIDString: string; + + readonly capabilities: NSArray; + + delegate: ICDeviceDelegate; + + readonly hasOpenSession: boolean; + + readonly icon: any; + + readonly name: string; + + readonly productKind: string; + + readonly transportType: string; + + readonly type: ICDeviceType; + + readonly usbLocationID: number; + + readonly usbProductID: number; + + readonly usbVendorID: number; + + readonly userData: NSMutableDictionary; + + requestCloseSession(): void; + + requestCloseSessionWithOptionsCompletion(options: NSDictionary, completion: (p1: NSError) => void): void; + + requestEject(): void; + + requestEjectWithCompletion(completion: (p1: NSError) => void): void; + + requestOpenSession(): void; + + requestOpenSessionWithOptionsCompletion(options: NSDictionary, completion: (p1: NSError) => void): void; +} + +declare class ICDeviceBrowser extends NSObject { + + static alloc(): ICDeviceBrowser; // inherited from NSObject + + static new(): ICDeviceBrowser; // inherited from NSObject + + readonly browsing: boolean; + + delegate: ICDeviceBrowserDelegate; + + readonly devices: NSArray; + + start(): void; + + stop(): void; +} + +interface ICDeviceBrowserDelegate extends NSObjectProtocol { + + deviceBrowserDeviceDidChangeName?(browser: ICDeviceBrowser, device: ICDevice): void; + + deviceBrowserDeviceDidChangeSharingState?(browser: ICDeviceBrowser, device: ICDevice): void; + + deviceBrowserDidAddDeviceMoreComing(browser: ICDeviceBrowser, device: ICDevice, moreComing: boolean): void; + + deviceBrowserDidRemoveDeviceMoreGoing(browser: ICDeviceBrowser, device: ICDevice, moreGoing: boolean): void; +} +declare var ICDeviceBrowserDelegate: { + + prototype: ICDeviceBrowserDelegate; +}; + +declare var ICDeviceCanEjectOrDisconnect: string; + +interface ICDeviceDelegate extends NSObjectProtocol { + + deviceDidBecomeReady?(device: ICDevice): void; + + deviceDidCloseSessionWithError(device: ICDevice, error: NSError): void; + + deviceDidEjectWithError?(device: ICDevice, error: NSError): void; + + deviceDidEncounterError?(device: ICDevice, error: NSError): void; + + deviceDidOpenSessionWithError(device: ICDevice, error: NSError): void; + + deviceDidReceiveStatusInformation?(device: ICDevice, status: NSDictionary): void; + + didRemoveDevice(device: ICDevice): void; +} +declare var ICDeviceDelegate: { + + prototype: ICDeviceDelegate; +}; + +declare const enum ICDeviceType { + + Camera = 1, + + Scanner = 2 +} + +declare var ICDownloadSidecarFiles: string; + +declare var ICDownloadsDirectoryURL: string; + +declare const enum ICEXIFOrientationType { + + Orientation1 = 1, + + Orientation2 = 2, + + Orientation3 = 3, + + Orientation4 = 4, + + Orientation5 = 5, + + Orientation6 = 6, + + Orientation7 = 7, + + Orientation8 = 8 +} + +declare var ICEnumerationChronologicalOrder: string; + +declare var ICErrorDomain: string; + +declare var ICImageSourceShouldCache: string; + +declare var ICImageSourceThumbnailMaxPixelSize: string; + +declare const enum ICLegacyReturnCode { + + CommunicationErr = -9900, + + DeviceNotFoundErr = -9901, + + DeviceNotOpenErr = -9902, + + FileCorruptedErr = -9903, + + IOPendingErr = -9904, + + InvalidObjectErr = -9905, + + InvalidPropertyErr = -9906, + + IndexOutOfRangeErr = -9907, + + PropertyTypeNotFoundErr = -9908, + + CannotYieldDevice = -9909, + + DataTypeNotFoundErr = -9910, + + DeviceMemoryAllocationErr = -9911, + + DeviceInternalErr = -9912, + + DeviceInvalidParamErr = -9913, + + DeviceAlreadyOpenErr = -9914, + + DeviceLocationIDNotFoundErr = -9915, + + DeviceGUIDNotFoundErr = -9916, + + DeviceIOServicePathNotFoundErr = -9917, + + DeviceUnsupportedErr = -9918, + + FrameworkInternalErr = -9919, + + ExtensionInternalErr = -9920, + + InvalidSessionErr = -9921 +} + +declare var ICOverwrite: string; + +declare const enum ICReturnCode { + + Success = 0, + + InvalidParam = -9922, + + CommunicationTimedOut = -9923, + + ScanOperationCanceled = -9924, + + ScannerInUseByLocalUser = -9925, + + ScannerInUseByRemoteUser = -9926, + + DeviceFailedToOpenSession = -9927, + + DeviceFailedToCloseSession = -9928, + + ScannerFailedToSelectFunctionalUnit = -9929, + + ScannerFailedToCompleteOverviewScan = -9930, + + ScannerFailedToCompleteScan = -9931, + + ReceivedUnsolicitedScannerStatusInfo = -9932, + + ReceivedUnsolicitedScannerErrorInfo = -9933, + + DownloadFailed = -9934, + + UploadFailed = -9935, + + FailedToCompletePassThroughCommand = -9936, + + DownloadCanceled = -9937, + + FailedToEnabeTethering = -9938, + + FailedToDisabeTethering = -9939, + + FailedToCompleteSendMessageRequest = -9940, + + DeleteFilesFailed = -9941, + + DeleteFilesCanceled = -9942, + + DeviceIsPasscodeLocked = -9943, + + DeviceFailedToTakePicture = -9944, + + DeviceSoftwareNotInstalled = -9945, + + DeviceSoftwareIsBeingInstalled = -9946, + + DeviceSoftwareInstallationCompleted = -9947, + + DeviceSoftwareInstallationCanceled = -9948, + + DeviceSoftwareInstallationFailed = -9949, + + DeviceSoftwareNotAvailable = -9950, + + DeviceCouldNotPair = -9951, + + DeviceCouldNotUnpair = -9952, + + DeviceNeedsCredentials = -9953, + + DeviceIsBusyEnumerating = -9954, + + DeviceCommandGeneralFailure = -9955, + + DeviceFailedToCompleteTransfer = -9956, + + DeviceFailedToSendData = -9957, + + SessionNotOpened = -9958, + + ExFATVolumeInvalid = -21200, + + MultiErrorDictionary = -30000 +} + +declare const enum ICReturnCodeOffset { + + ThumbnailOffset = -21000, + + MetadataOffset = -21050, + + DownloadOffset = -21100, + + DeleteOffset = -21150, + + ExFATOffset = -21200, + + PTPOffset = -21250, + + SystemOffset = -21300, + + DeviceOffset = -21350, + + DeviceConnection = -21400 +} + +declare const enum ICReturnConnectionErrorCode { + + DriverExited = -21350, + + ClosedSessionSuddenly = -21351, + + EjectedSuddenly = -21352, + + SessionAlreadyOpen = -21353, + + EjectFailed = -21354, + + FailedToOpen = -21400, + + FailedToOpenDevice = -21401 +} + +declare const enum ICReturnMetadataErrorCode { + + NotAvailable = -21050, + + AlreadyFetching = -21051, + + Canceled = -21052, + + Invalid = -21053 +} + +declare const enum ICReturnThumbnailErrorCode { + + NotAvailable = -21000, + + AlreadyFetching = -21001, + + Canceled = -21002, + + Invalid = -21003 +} + +declare var ICSaveAsFilename: string; + +declare var ICSavedAncillaryFiles: string; + +declare var ICSavedFilename: string; + +declare var ICStatusNotificationKey: string; + +declare var ICTransportTypeExFAT: string; + +declare var ICTransportTypeMassStorage: string; + +declare var ICTransportTypeTCPIP: string; + +declare var ICTransportTypeUSB: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!ImageIO.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!ImageIO.d.ts index 6037327e9a..b73bb033c3 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!ImageIO.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!ImageIO.d.ts @@ -189,6 +189,12 @@ declare var kCGImageAuxiliaryDataTypeDisparity: string; declare var kCGImageAuxiliaryDataTypePortraitEffectsMatte: string; +declare var kCGImageAuxiliaryDataTypeSemanticSegmentationHairMatte: string; + +declare var kCGImageAuxiliaryDataTypeSemanticSegmentationSkinMatte: string; + +declare var kCGImageAuxiliaryDataTypeSemanticSegmentationTeethMatte: string; + declare var kCGImageDestinationBackgroundColor: string; declare var kCGImageDestinationDateTime: string; @@ -259,8 +265,14 @@ declare var kCGImageProperty8BIMLayerNames: string; declare var kCGImageProperty8BIMVersion: string; +declare var kCGImagePropertyAPNGCanvasPixelHeight: string; + +declare var kCGImagePropertyAPNGCanvasPixelWidth: string; + declare var kCGImagePropertyAPNGDelayTime: string; +declare var kCGImagePropertyAPNGFrameInfoArray: string; + declare var kCGImagePropertyAPNGLoopCount: string; declare var kCGImagePropertyAPNGUnclampedDelayTime: string; @@ -629,6 +641,12 @@ declare var kCGImagePropertyExifMeteringMode: string; declare var kCGImagePropertyExifOECF: string; +declare var kCGImagePropertyExifOffsetTime: string; + +declare var kCGImagePropertyExifOffsetTimeDigitized: string; + +declare var kCGImagePropertyExifOffsetTimeOriginal: string; + declare var kCGImagePropertyExifPixelXDimension: string; declare var kCGImagePropertyExifPixelYDimension: string; @@ -683,10 +701,16 @@ declare var kCGImagePropertyFileContentsDictionary: string; declare var kCGImagePropertyFileSize: string; +declare var kCGImagePropertyGIFCanvasPixelHeight: string; + +declare var kCGImagePropertyGIFCanvasPixelWidth: string; + declare var kCGImagePropertyGIFDelayTime: string; declare var kCGImagePropertyGIFDictionary: string; +declare var kCGImagePropertyGIFFrameInfoArray: string; + declare var kCGImagePropertyGIFHasGlobalColorMap: string; declare var kCGImagePropertyGIFImageColorMap: string; @@ -761,6 +785,20 @@ declare var kCGImagePropertyGPSTrackRef: string; declare var kCGImagePropertyGPSVersion: string; +declare var kCGImagePropertyHEICSCanvasPixelHeight: string; + +declare var kCGImagePropertyHEICSCanvasPixelWidth: string; + +declare var kCGImagePropertyHEICSDelayTime: string; + +declare var kCGImagePropertyHEICSDictionary: string; + +declare var kCGImagePropertyHEICSFrameInfoArray: string; + +declare var kCGImagePropertyHEICSLoopCount: string; + +declare var kCGImagePropertyHEICSUnclampedDelayTime: string; + declare var kCGImagePropertyHasAlpha: string; declare var kCGImagePropertyHeight: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Intents.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Intents.d.ts index 8a5369c00b..dfb93ec8ad 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Intents.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Intents.d.ts @@ -18,12 +18,14 @@ declare const enum INAccountType { Saving = 7 } -declare class INAccountTypeResolutionResult extends INIntentResolutionResult { +declare class INAccountTypeResolutionResult extends INIntentResolutionResult { static alloc(): INAccountTypeResolutionResult; // inherited from NSObject static confirmationRequiredWithAccountTypeToConfirm(accountTypeToConfirm: INAccountType): INAccountTypeResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INAccountTypeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INAccountType): INAccountTypeResolutionResult; static needsValue(): INAccountTypeResolutionResult; // inherited from INIntentResolutionResult @@ -37,6 +39,8 @@ declare class INAccountTypeResolutionResult extends INIntentResolutionResult; + + readonly mediaSearch: INMediaSearch; + + constructor(o: { mediaItems: NSArray | INMediaItem[]; mediaSearch: INMediaSearch; mediaDestination: INMediaDestination; }); + + initWithMediaItemsMediaSearchMediaDestination(mediaItems: NSArray | INMediaItem[], mediaSearch: INMediaSearch, mediaDestination: INMediaDestination): this; +} + +interface INAddMediaIntentHandling extends NSObjectProtocol { + + confirmAddMediaCompletion?(intent: INAddMediaIntent, completion: (p1: INAddMediaIntentResponse) => void): void; + + handleAddMediaCompletion(intent: INAddMediaIntent, completion: (p1: INAddMediaIntentResponse) => void): void; + + resolveMediaDestinationForAddMediaWithCompletion?(intent: INAddMediaIntent, completion: (p1: INAddMediaMediaDestinationResolutionResult) => void): void; + + resolveMediaItemsForAddMediaWithCompletion?(intent: INAddMediaIntent, completion: (p1: NSArray) => void): void; +} +declare var INAddMediaIntentHandling: { + + prototype: INAddMediaIntentHandling; +}; + +declare class INAddMediaIntentResponse extends INIntentResponse { + + static alloc(): INAddMediaIntentResponse; // inherited from NSObject + + static new(): INAddMediaIntentResponse; // inherited from NSObject + + readonly code: INAddMediaIntentResponseCode; + + constructor(o: { code: INAddMediaIntentResponseCode; userActivity: NSUserActivity; }); + + initWithCodeUserActivity(code: INAddMediaIntentResponseCode, userActivity: NSUserActivity): this; +} + +declare const enum INAddMediaIntentResponseCode { + + Unspecified = 0, + + Ready = 1, + + InProgress = 2, + + Success = 3, + + HandleInApp = 4, + + Failure = 5, + + FailureRequiringAppLaunch = 6 +} + +declare class INAddMediaMediaDestinationResolutionResult extends INMediaDestinationResolutionResult { + + static alloc(): INAddMediaMediaDestinationResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INAddMediaMediaDestinationResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithMediaDestinationToConfirm(mediaDestinationToConfirm: INMediaDestination): INAddMediaMediaDestinationResolutionResult; // inherited from INMediaDestinationResolutionResult + + static disambiguationWithMediaDestinationsToDisambiguate(mediaDestinationsToDisambiguate: NSArray | INMediaDestination[]): INAddMediaMediaDestinationResolutionResult; // inherited from INMediaDestinationResolutionResult + + static needsValue(): INAddMediaMediaDestinationResolutionResult; // inherited from INIntentResolutionResult + + static new(): INAddMediaMediaDestinationResolutionResult; // inherited from NSObject + + static notRequired(): INAddMediaMediaDestinationResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedMediaDestination(resolvedMediaDestination: INMediaDestination): INAddMediaMediaDestinationResolutionResult; // inherited from INMediaDestinationResolutionResult + + static unsupported(): INAddMediaMediaDestinationResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INAddMediaMediaDestinationUnsupportedReason): INAddMediaMediaDestinationResolutionResult; + + static unsupportedWithReason(reason: number): INAddMediaMediaDestinationResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { mediaDestinationResolutionResult: INMediaDestinationResolutionResult; }); + + initWithMediaDestinationResolutionResult(mediaDestinationResolutionResult: INMediaDestinationResolutionResult): this; +} + +declare const enum INAddMediaMediaDestinationUnsupportedReason { + + PlaylistNameNotFound = 1 +} + +declare class INAddMediaMediaItemResolutionResult extends INMediaItemResolutionResult { + + static alloc(): INAddMediaMediaItemResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INAddMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithMediaItemToConfirm(mediaItemToConfirm: INMediaItem): INAddMediaMediaItemResolutionResult; // inherited from INMediaItemResolutionResult + + static disambiguationWithMediaItemsToDisambiguate(mediaItemsToDisambiguate: NSArray | INMediaItem[]): INAddMediaMediaItemResolutionResult; // inherited from INMediaItemResolutionResult + + static needsValue(): INAddMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static new(): INAddMediaMediaItemResolutionResult; // inherited from NSObject + + static notRequired(): INAddMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedMediaItem(resolvedMediaItem: INMediaItem): INAddMediaMediaItemResolutionResult; // inherited from INMediaItemResolutionResult + + static unsupported(): INAddMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INAddMediaMediaItemUnsupportedReason): INAddMediaMediaItemResolutionResult; + + static unsupportedWithReason(reason: number): INAddMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { mediaItemResolutionResult: INMediaItemResolutionResult; }); + + initWithMediaItemResolutionResult(mediaItemResolutionResult: INMediaItemResolutionResult): this; +} + +declare const enum INAddMediaMediaItemUnsupportedReason { + + LoginRequired = 1, + + SubscriptionRequired = 2, + + UnsupportedMediaType = 3, + + ExplicitContentSettings = 4, + + CellularDataSettings = 5, + + RestrictedContent = 6 +} + declare class INAddTasksIntent extends INIntent { static alloc(): INAddTasksIntent; // inherited from NSObject static new(): INAddTasksIntent; // inherited from NSObject + readonly priority: INTaskPriority; + readonly spatialEventTrigger: INSpatialEventTrigger; readonly targetTaskList: INTaskList; @@ -115,7 +261,11 @@ declare class INAddTasksIntent extends INIntent { constructor(o: { targetTaskList: INTaskList; taskTitles: NSArray | INSpeakableString[]; spatialEventTrigger: INSpatialEventTrigger; temporalEventTrigger: INTemporalEventTrigger; }); + constructor(o: { targetTaskList: INTaskList; taskTitles: NSArray | INSpeakableString[]; spatialEventTrigger: INSpatialEventTrigger; temporalEventTrigger: INTemporalEventTrigger; priority: INTaskPriority; }); + initWithTargetTaskListTaskTitlesSpatialEventTriggerTemporalEventTrigger(targetTaskList: INTaskList, taskTitles: NSArray | INSpeakableString[], spatialEventTrigger: INSpatialEventTrigger, temporalEventTrigger: INTemporalEventTrigger): this; + + initWithTargetTaskListTaskTitlesSpatialEventTriggerTemporalEventTriggerPriority(targetTaskList: INTaskList, taskTitles: NSArray | INSpeakableString[], spatialEventTrigger: INSpatialEventTrigger, temporalEventTrigger: INTemporalEventTrigger, priority: INTaskPriority): this; } interface INAddTasksIntentHandling extends NSObjectProtocol { @@ -124,12 +274,18 @@ interface INAddTasksIntentHandling extends NSObjectProtocol { handleAddTasksCompletion(intent: INAddTasksIntent, completion: (p1: INAddTasksIntentResponse) => void): void; + resolvePriorityForAddTasksWithCompletion?(intent: INAddTasksIntent, completion: (p1: INTaskPriorityResolutionResult) => void): void; + resolveSpatialEventTriggerForAddTasksWithCompletion?(intent: INAddTasksIntent, completion: (p1: INSpatialEventTriggerResolutionResult) => void): void; + resolveTargetTaskListForAddTasksCompletion?(intent: INAddTasksIntent, completion: (p1: INAddTasksTargetTaskListResolutionResult) => void): void; + resolveTargetTaskListForAddTasksWithCompletion?(intent: INAddTasksIntent, completion: (p1: INTaskListResolutionResult) => void): void; resolveTaskTitlesForAddTasksWithCompletion?(intent: INAddTasksIntent, completion: (p1: NSArray) => void): void; + resolveTemporalEventTriggerForAddTasksCompletion?(intent: INAddTasksIntent, completion: (p1: INAddTasksTemporalEventTriggerResolutionResult) => void): void; + resolveTemporalEventTriggerForAddTasksWithCompletion?(intent: INAddTasksIntent, completion: (p1: INTemporalEventTriggerResolutionResult) => void): void; } declare var INAddTasksIntentHandling: { @@ -169,6 +325,157 @@ declare const enum INAddTasksIntentResponseCode { FailureRequiringAppLaunch = 5 } +declare const enum INAddTasksTargetTaskListConfirmationReason { + + ListShouldBeCreated = 1 +} + +declare class INAddTasksTargetTaskListResolutionResult extends INTaskListResolutionResult { + + static alloc(): INAddTasksTargetTaskListResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INAddTasksTargetTaskListResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithTaskListToConfirm(taskListToConfirm: INTaskList): INAddTasksTargetTaskListResolutionResult; // inherited from INTaskListResolutionResult + + static confirmationRequiredWithTaskListToConfirmForReason(taskListToConfirm: INTaskList, reason: INAddTasksTargetTaskListConfirmationReason): INAddTasksTargetTaskListResolutionResult; + + static disambiguationWithTaskListsToDisambiguate(taskListsToDisambiguate: NSArray | INTaskList[]): INAddTasksTargetTaskListResolutionResult; // inherited from INTaskListResolutionResult + + static needsValue(): INAddTasksTargetTaskListResolutionResult; // inherited from INIntentResolutionResult + + static new(): INAddTasksTargetTaskListResolutionResult; // inherited from NSObject + + static notRequired(): INAddTasksTargetTaskListResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedTaskList(resolvedTaskList: INTaskList): INAddTasksTargetTaskListResolutionResult; // inherited from INTaskListResolutionResult + + static unsupported(): INAddTasksTargetTaskListResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INAddTasksTargetTaskListResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { taskListResolutionResult: INTaskListResolutionResult; }); + + initWithTaskListResolutionResult(taskListResolutionResult: INTaskListResolutionResult): this; +} + +declare class INAddTasksTemporalEventTriggerResolutionResult extends INTemporalEventTriggerResolutionResult { + + static alloc(): INAddTasksTemporalEventTriggerResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INAddTasksTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithTemporalEventTriggerToConfirm(temporalEventTriggerToConfirm: INTemporalEventTrigger): INAddTasksTemporalEventTriggerResolutionResult; // inherited from INTemporalEventTriggerResolutionResult + + static disambiguationWithTemporalEventTriggersToDisambiguate(temporalEventTriggersToDisambiguate: NSArray | INTemporalEventTrigger[]): INAddTasksTemporalEventTriggerResolutionResult; // inherited from INTemporalEventTriggerResolutionResult + + static needsValue(): INAddTasksTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + static new(): INAddTasksTemporalEventTriggerResolutionResult; // inherited from NSObject + + static notRequired(): INAddTasksTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedTemporalEventTrigger(resolvedTemporalEventTrigger: INTemporalEventTrigger): INAddTasksTemporalEventTriggerResolutionResult; // inherited from INTemporalEventTriggerResolutionResult + + static unsupported(): INAddTasksTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INAddTasksTemporalEventTriggerUnsupportedReason): INAddTasksTemporalEventTriggerResolutionResult; + + static unsupportedWithReason(reason: number): INAddTasksTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { temporalEventTriggerResolutionResult: INTemporalEventTriggerResolutionResult; }); + + initWithTemporalEventTriggerResolutionResult(temporalEventTriggerResolutionResult: INTemporalEventTriggerResolutionResult): this; +} + +declare const enum INAddTasksTemporalEventTriggerUnsupportedReason { + + TimeInPast = 1, + + InvalidRecurrence = 2 +} + +declare class INAirline extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INAirline; // inherited from NSObject + + static new(): INAirline; // inherited from NSObject + + readonly iataCode: string; + + readonly icaoCode: string; + + readonly name: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { name: string; iataCode: string; icaoCode: string; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithNameIataCodeIcaoCode(name: string, iataCode: string, icaoCode: string): this; +} + +declare class INAirport extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INAirport; // inherited from NSObject + + static new(): INAirport; // inherited from NSObject + + readonly iataCode: string; + + readonly icaoCode: string; + + readonly name: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { name: string; iataCode: string; icaoCode: string; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithNameIataCodeIcaoCode(name: string, iataCode: string, icaoCode: string): this; +} + +declare class INAirportGate extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INAirportGate; // inherited from NSObject + + static new(): INAirportGate; // inherited from NSObject + + readonly airport: INAirport; + + readonly gate: string; + + readonly terminal: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { airport: INAirport; terminal: string; gate: string; }); + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithAirportTerminalGate(airport: INAirport, terminal: string, gate: string): this; + + initWithCoder(coder: NSCoder): this; +} + declare const enum INAmountType { Unknown = 0, @@ -270,13 +577,13 @@ declare class INBalanceAmount extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAmountBalanceType(amount: NSDecimalNumber, balanceType: INBalanceType): this; initWithAmountCurrencyCode(amount: NSDecimalNumber, currencyCode: string): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum INBalanceType { @@ -290,12 +597,14 @@ declare const enum INBalanceType { Miles = 3 } -declare class INBalanceTypeResolutionResult extends INIntentResolutionResult { +declare class INBalanceTypeResolutionResult extends INIntentResolutionResult { static alloc(): INBalanceTypeResolutionResult; // inherited from NSObject static confirmationRequiredWithBalanceTypeToConfirm(balanceTypeToConfirm: INBalanceType): INBalanceTypeResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INBalanceTypeResolutionResult; // inherited from INIntentResolutionResult + static needsValue(): INBalanceTypeResolutionResult; // inherited from INIntentResolutionResult static new(): INBalanceTypeResolutionResult; // inherited from NSObject @@ -305,6 +614,8 @@ declare class INBalanceTypeResolutionResult extends INIntentResolutionResult): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithBillTypePaymentStatusBillPayeeAmountDueMinimumDueLateFeeDueDatePaymentDate(billType: INBillType, paymentStatus: INPaymentStatus, billPayee: INBillPayee, amountDue: INCurrencyAmount, minimumDue: INCurrencyAmount, lateFee: INCurrencyAmount, dueDate: NSDateComponents, paymentDate: NSDateComponents): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class INBillPayee extends NSObject implements NSCopying, NSSecureCoding { @@ -364,19 +675,21 @@ declare class INBillPayee extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNicknameNumberOrganizationName(nickname: INSpeakableString, number: string, organizationName: INSpeakableString): this; } -declare class INBillPayeeResolutionResult extends INIntentResolutionResult { +declare class INBillPayeeResolutionResult extends INIntentResolutionResult { static alloc(): INBillPayeeResolutionResult; // inherited from NSObject static confirmationRequiredWithBillPayeeToConfirm(billPayeeToConfirm: INBillPayee): INBillPayeeResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INBillPayeeResolutionResult; // inherited from INIntentResolutionResult + static disambiguationWithBillPayeesToDisambiguate(billPayeesToDisambiguate: NSArray | INBillPayee[]): INBillPayeeResolutionResult; static needsValue(): INBillPayeeResolutionResult; // inherited from INIntentResolutionResult @@ -388,6 +701,8 @@ declare class INBillPayeeResolutionResult extends INIntentResolutionResult { +declare class INBillTypeResolutionResult extends INIntentResolutionResult { static alloc(): INBillTypeResolutionResult; // inherited from NSObject static confirmationRequiredWithBillTypeToConfirm(billTypeToConfirm: INBillType): INBillTypeResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INBillTypeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INBillType): INBillTypeResolutionResult; static needsValue(): INBillTypeResolutionResult; // inherited from INIntentResolutionResult @@ -458,6 +775,8 @@ declare class INBillTypeResolutionResult extends INIntentResolutionResult { +declare class INBooleanResolutionResult extends INIntentResolutionResult { static alloc(): INBooleanResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INBooleanResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: number): INBooleanResolutionResult; static needsValue(): INBooleanResolutionResult; // inherited from INIntentResolutionResult @@ -553,6 +874,17 @@ declare class INBooleanResolutionResult extends INIntentResolutionResult { +declare class INCallDestinationTypeResolutionResult extends INIntentResolutionResult { static alloc(): INCallDestinationTypeResolutionResult; // inherited from NSObject static confirmationRequiredWithCallDestinationTypeToConfirm(callDestinationTypeToConfirm: INCallDestinationType): INCallDestinationTypeResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INCallDestinationTypeResolutionResult; // inherited from INIntentResolutionResult + static needsValue(): INCallDestinationTypeResolutionResult; // inherited from INIntentResolutionResult static new(): INCallDestinationTypeResolutionResult; // inherited from NSObject @@ -607,6 +964,8 @@ declare class INCallDestinationTypeResolutionResult extends INIntentResolutionRe static successWithResolvedCallDestinationType(resolvedCallDestinationType: INCallDestinationType): INCallDestinationTypeResolutionResult; static unsupported(): INCallDestinationTypeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INCallDestinationTypeResolutionResult; // inherited from INIntentResolutionResult } declare class INCallRecord extends NSObject implements NSCopying, NSSecureCoding { @@ -627,6 +986,8 @@ declare class INCallRecord extends NSObject implements NSCopying, NSSecureCoding readonly identifier: string; + readonly numberOfCalls: number; + readonly unseen: number; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding @@ -635,13 +996,17 @@ declare class INCallRecord extends NSObject implements NSCopying, NSSecureCoding constructor(o: { identifier: string; dateCreated: Date; caller: INPerson; callRecordType: INCallRecordType; callCapability: INCallCapability; callDuration: number; unseen: number; }); + constructor(o: { identifier: string; dateCreated: Date; caller: INPerson; callRecordType: INCallRecordType; callCapability: INCallCapability; callDuration: number; unseen: number; numberOfCalls: number; }); + copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIdentifierDateCreatedCallerCallRecordTypeCallCapabilityCallDurationUnseen(identifier: string, dateCreated: Date, caller: INPerson, callRecordType: INCallRecordType, callCapability: INCallCapability, callDuration: number, unseen: number): this; + + initWithIdentifierDateCreatedCallerCallRecordTypeCallCapabilityCallDurationUnseenNumberOfCalls(identifier: string, dateCreated: Date, caller: INPerson, callRecordType: INCallRecordType, callCapability: INCallCapability, callDuration: number, unseen: number, numberOfCalls: number): this; } declare const enum INCallRecordType { @@ -656,7 +1021,13 @@ declare const enum INCallRecordType { Latest = 4, - Voicemail = 5 + Voicemail = 5, + + Ringing = 6, + + InProgress = 7, + + OnHold = 8 } declare const enum INCallRecordTypeOptions { @@ -669,15 +1040,23 @@ declare const enum INCallRecordTypeOptions { Latest = 8, - Voicemail = 16 + Voicemail = 16, + + Ringing = 32, + + InProgress = 64, + + OnHold = 128 } -declare class INCallRecordTypeOptionsResolutionResult extends INIntentResolutionResult { +declare class INCallRecordTypeOptionsResolutionResult extends INIntentResolutionResult { static alloc(): INCallRecordTypeOptionsResolutionResult; // inherited from NSObject static confirmationRequiredWithCallRecordTypeOptionsToConfirm(callRecordTypeOptionsToConfirm: INCallRecordTypeOptions): INCallRecordTypeOptionsResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INCallRecordTypeOptionsResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INCallRecordTypeOptions): INCallRecordTypeOptionsResolutionResult; static needsValue(): INCallRecordTypeOptionsResolutionResult; // inherited from INIntentResolutionResult @@ -691,14 +1070,18 @@ declare class INCallRecordTypeOptionsResolutionResult extends INIntentResolution static successWithResolvedValue(resolvedValue: INCallRecordTypeOptions): INCallRecordTypeOptionsResolutionResult; static unsupported(): INCallRecordTypeOptionsResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INCallRecordTypeOptionsResolutionResult; // inherited from INIntentResolutionResult } -declare class INCallRecordTypeResolutionResult extends INIntentResolutionResult { +declare class INCallRecordTypeResolutionResult extends INIntentResolutionResult { static alloc(): INCallRecordTypeResolutionResult; // inherited from NSObject static confirmationRequiredWithCallRecordTypeToConfirm(callRecordTypeToConfirm: INCallRecordType): INCallRecordTypeResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INCallRecordTypeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INCallRecordType): INCallRecordTypeResolutionResult; static needsValue(): INCallRecordTypeResolutionResult; // inherited from INIntentResolutionResult @@ -712,6 +1095,8 @@ declare class INCallRecordTypeResolutionResult extends INIntentResolutionResult< static successWithResolvedValue(resolvedValue: INCallRecordType): INCallRecordTypeResolutionResult; static unsupported(): INCallRecordTypeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INCallRecordTypeResolutionResult; // inherited from INIntentResolutionResult } interface INCallsDomainHandling extends INSearchCallHistoryIntentHandling, INStartAudioCallIntentHandling, INStartVideoCallIntentHandling { @@ -842,12 +1227,14 @@ declare const enum INCarAirCirculationMode { RecirculateAir = 2 } -declare class INCarAirCirculationModeResolutionResult extends INIntentResolutionResult { +declare class INCarAirCirculationModeResolutionResult extends INIntentResolutionResult { static alloc(): INCarAirCirculationModeResolutionResult; // inherited from NSObject static confirmationRequiredWithCarAirCirculationModeToConfirm(carAirCirculationModeToConfirm: INCarAirCirculationMode): INCarAirCirculationModeResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INCarAirCirculationModeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INCarAirCirculationMode): INCarAirCirculationModeResolutionResult; static needsValue(): INCarAirCirculationModeResolutionResult; // inherited from INIntentResolutionResult @@ -861,6 +1248,8 @@ declare class INCarAirCirculationModeResolutionResult extends INIntentResolution static successWithResolvedValue(resolvedValue: INCarAirCirculationMode): INCarAirCirculationModeResolutionResult; static unsupported(): INCarAirCirculationModeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INCarAirCirculationModeResolutionResult; // inherited from INIntentResolutionResult } declare const enum INCarAudioSource { @@ -886,12 +1275,14 @@ declare const enum INCarAudioSource { HardDrive = 9 } -declare class INCarAudioSourceResolutionResult extends INIntentResolutionResult { +declare class INCarAudioSourceResolutionResult extends INIntentResolutionResult { static alloc(): INCarAudioSourceResolutionResult; // inherited from NSObject static confirmationRequiredWithCarAudioSourceToConfirm(carAudioSourceToConfirm: INCarAudioSource): INCarAudioSourceResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INCarAudioSourceResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INCarAudioSource): INCarAudioSourceResolutionResult; static needsValue(): INCarAudioSourceResolutionResult; // inherited from INIntentResolutionResult @@ -905,6 +1296,8 @@ declare class INCarAudioSourceResolutionResult extends INIntentResolutionResult< static successWithResolvedValue(resolvedValue: INCarAudioSource): INCarAudioSourceResolutionResult; static unsupported(): INCarAudioSourceResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INCarAudioSourceResolutionResult; // inherited from INIntentResolutionResult } interface INCarCommandsDomainHandling extends INActivateCarSignalIntentHandling, INGetCarLockStatusIntentHandling, INGetCarPowerLevelStatusIntentHandling, INSetCarLockStatusIntentHandling { @@ -925,12 +1318,14 @@ declare const enum INCarDefroster { All = 3 } -declare class INCarDefrosterResolutionResult extends INIntentResolutionResult { +declare class INCarDefrosterResolutionResult extends INIntentResolutionResult { static alloc(): INCarDefrosterResolutionResult; // inherited from NSObject static confirmationRequiredWithCarDefrosterToConfirm(carDefrosterToConfirm: INCarDefroster): INCarDefrosterResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INCarDefrosterResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INCarDefroster): INCarDefrosterResolutionResult; static needsValue(): INCarDefrosterResolutionResult; // inherited from INIntentResolutionResult @@ -944,6 +1339,8 @@ declare class INCarDefrosterResolutionResult extends INIntentResolutionResult { +declare class INCarSeatResolutionResult extends INIntentResolutionResult { static alloc(): INCarSeatResolutionResult; // inherited from NSObject static confirmationRequiredWithCarSeatToConfirm(carSeatToConfirm: INCarSeat): INCarSeatResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INCarSeatResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INCarSeat): INCarSeatResolutionResult; static needsValue(): INCarSeatResolutionResult; // inherited from INIntentResolutionResult @@ -1001,6 +1400,8 @@ declare class INCarSeatResolutionResult extends INIntentResolutionResult { +declare class INCarSignalOptionsResolutionResult extends INIntentResolutionResult { static alloc(): INCarSignalOptionsResolutionResult; // inherited from NSObject static confirmationRequiredWithCarSignalOptionsToConfirm(carSignalOptionsToConfirm: INCarSignalOptions): INCarSignalOptionsResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INCarSignalOptionsResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INCarSignalOptions): INCarSignalOptionsResolutionResult; static needsValue(): INCarSignalOptionsResolutionResult; // inherited from INIntentResolutionResult @@ -1029,6 +1432,8 @@ declare class INCarSignalOptionsResolutionResult extends INIntentResolutionResul static successWithResolvedValue(resolvedValue: INCarSignalOptions): INCarSignalOptionsResolutionResult; static unsupported(): INCarSignalOptionsResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INCarSignalOptionsResolutionResult; // inherited from INIntentResolutionResult } declare const enum INConditionalOperator { @@ -1186,19 +1591,21 @@ declare class INCurrencyAmount extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAmountCurrencyCode(amount: NSDecimalNumber, currencyCode: string): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } -declare class INCurrencyAmountResolutionResult extends INIntentResolutionResult { +declare class INCurrencyAmountResolutionResult extends INIntentResolutionResult { static alloc(): INCurrencyAmountResolutionResult; // inherited from NSObject static confirmationRequiredWithCurrencyAmountToConfirm(currencyAmountToConfirm: INCurrencyAmount): INCurrencyAmountResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INCurrencyAmountResolutionResult; // inherited from INIntentResolutionResult + static disambiguationWithCurrencyAmountsToDisambiguate(currencyAmountsToDisambiguate: NSArray | INCurrencyAmount[]): INCurrencyAmountResolutionResult; static needsValue(): INCurrencyAmountResolutionResult; // inherited from INIntentResolutionResult @@ -1210,6 +1617,8 @@ declare class INCurrencyAmountResolutionResult extends INIntentResolutionResult< static successWithResolvedCurrencyAmount(resolvedCurrencyAmount: INCurrencyAmount): INCurrencyAmountResolutionResult; static unsupported(): INCurrencyAmountResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INCurrencyAmountResolutionResult; // inherited from INIntentResolutionResult } declare class INDailyRoutineRelevanceProvider extends INRelevanceProvider { @@ -1237,7 +1646,15 @@ declare const enum INDailyRoutineSituation { School = 4, - Gym = 5 + Gym = 5, + + Commute = 6, + + HeadphonesConnected = 7, + + ActiveWorkout = 8, + + PhysicalActivityIncomplete = 9 } declare class INDateComponentsRange extends NSObject implements NSCopying, NSSecureCoding { @@ -1266,9 +1683,9 @@ declare class INDateComponentsRange extends NSObject implements NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithEKRecurrenceRule(recurrenceRule: EKRecurrenceRule): this; @@ -1277,12 +1694,14 @@ declare class INDateComponentsRange extends NSObject implements NSCopying, NSSec initWithStartDateComponentsEndDateComponentsRecurrenceRule(startDateComponents: NSDateComponents, endDateComponents: NSDateComponents, recurrenceRule: INRecurrenceRule): this; } -declare class INDateComponentsRangeResolutionResult extends INIntentResolutionResult { +declare class INDateComponentsRangeResolutionResult extends INIntentResolutionResult { static alloc(): INDateComponentsRangeResolutionResult; // inherited from NSObject static confirmationRequiredWithDateComponentsRangeToConfirm(dateComponentsRangeToConfirm: INDateComponentsRange): INDateComponentsRangeResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INDateComponentsRangeResolutionResult; // inherited from INIntentResolutionResult + static disambiguationWithDateComponentsRangesToDisambiguate(dateComponentsRangesToDisambiguate: NSArray | INDateComponentsRange[]): INDateComponentsRangeResolutionResult; static needsValue(): INDateComponentsRangeResolutionResult; // inherited from INIntentResolutionResult @@ -1294,14 +1713,18 @@ declare class INDateComponentsRangeResolutionResult extends INIntentResolutionRe static successWithResolvedDateComponentsRange(resolvedDateComponentsRange: INDateComponentsRange): INDateComponentsRangeResolutionResult; static unsupported(): INDateComponentsRangeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INDateComponentsRangeResolutionResult; // inherited from INIntentResolutionResult } -declare class INDateComponentsResolutionResult extends INIntentResolutionResult { +declare class INDateComponentsResolutionResult extends INIntentResolutionResult { static alloc(): INDateComponentsResolutionResult; // inherited from NSObject static confirmationRequiredWithDateComponentsToConfirm(dateComponentsToConfirm: NSDateComponents): INDateComponentsResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INDateComponentsResolutionResult; // inherited from INIntentResolutionResult + static disambiguationWithDateComponentsToDisambiguate(dateComponentsToDisambiguate: NSArray | NSDateComponents[]): INDateComponentsResolutionResult; static needsValue(): INDateComponentsResolutionResult; // inherited from INIntentResolutionResult @@ -1313,6 +1736,8 @@ declare class INDateComponentsResolutionResult extends INIntentResolutionResult< static successWithResolvedDateComponents(resolvedDateComponents: NSDateComponents): INDateComponentsResolutionResult; static unsupported(): INDateComponentsResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INDateComponentsResolutionResult; // inherited from INIntentResolutionResult } declare class INDateRelevanceProvider extends INRelevanceProvider { @@ -1341,12 +1766,14 @@ declare const enum INDateSearchType { ByCreatedDate = 3 } -declare class INDateSearchTypeResolutionResult extends INIntentResolutionResult { +declare class INDateSearchTypeResolutionResult extends INIntentResolutionResult { static alloc(): INDateSearchTypeResolutionResult; // inherited from NSObject static confirmationRequiredWithDateSearchTypeToConfirm(dateSearchTypeToConfirm: INDateSearchType): INDateSearchTypeResolutionResult; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INDateSearchTypeResolutionResult; // inherited from INIntentResolutionResult + static needsValue(): INDateSearchTypeResolutionResult; // inherited from INIntentResolutionResult static new(): INDateSearchTypeResolutionResult; // inherited from NSObject @@ -1356,6 +1783,8 @@ declare class INDateSearchTypeResolutionResult extends INIntentResolutionResult< static successWithResolvedDateSearchType(resolvedDateSearchType: INDateSearchType): INDateSearchTypeResolutionResult; static unsupported(): INDateSearchTypeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INDateSearchTypeResolutionResult; // inherited from INIntentResolutionResult } declare class INDefaultCardTemplate extends NSObject implements NSCopying, NSSecureCoding { @@ -1378,41 +1807,177 @@ declare class INDefaultCardTemplate extends NSObject implements NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTitle(title: string): this; } -declare class INDoubleResolutionResult extends INIntentResolutionResult { +declare class INDeleteTasksIntent extends INIntent { - static alloc(): INDoubleResolutionResult; // inherited from NSObject + static alloc(): INDeleteTasksIntent; // inherited from NSObject - static confirmationRequiredWithValueToConfirm(valueToConfirm: number): INDoubleResolutionResult; + static new(): INDeleteTasksIntent; // inherited from NSObject - static needsValue(): INDoubleResolutionResult; // inherited from INIntentResolutionResult + readonly all: number; - static new(): INDoubleResolutionResult; // inherited from NSObject + readonly taskList: INTaskList; - static notRequired(): INDoubleResolutionResult; // inherited from INIntentResolutionResult + readonly tasks: NSArray; - static successWithResolvedValue(resolvedValue: number): INDoubleResolutionResult; + constructor(o: { taskList: INTaskList; tasks: NSArray | INTask[]; all: number; }); - static unsupported(): INDoubleResolutionResult; // inherited from INIntentResolutionResult + initWithTaskListTasksAll(taskList: INTaskList, tasks: NSArray | INTask[], all: number): this; } -declare class INEndWorkoutIntent extends INIntent { - - static alloc(): INEndWorkoutIntent; // inherited from NSObject +interface INDeleteTasksIntentHandling extends NSObjectProtocol { - static new(): INEndWorkoutIntent; // inherited from NSObject + confirmDeleteTasksCompletion?(intent: INDeleteTasksIntent, completion: (p1: INDeleteTasksIntentResponse) => void): void; - readonly workoutName: INSpeakableString; + handleDeleteTasksCompletion(intent: INDeleteTasksIntent, completion: (p1: INDeleteTasksIntentResponse) => void): void; - constructor(o: { workoutName: INSpeakableString; }); + resolveTaskListForDeleteTasksWithCompletion?(intent: INDeleteTasksIntent, completion: (p1: INDeleteTasksTaskListResolutionResult) => void): void; - initWithWorkoutName(workoutName: INSpeakableString): this; + resolveTasksForDeleteTasksWithCompletion?(intent: INDeleteTasksIntent, completion: (p1: NSArray) => void): void; +} +declare var INDeleteTasksIntentHandling: { + + prototype: INDeleteTasksIntentHandling; +}; + +declare class INDeleteTasksIntentResponse extends INIntentResponse { + + static alloc(): INDeleteTasksIntentResponse; // inherited from NSObject + + static new(): INDeleteTasksIntentResponse; // inherited from NSObject + + readonly code: INDeleteTasksIntentResponseCode; + + deletedTasks: NSArray; + + constructor(o: { code: INDeleteTasksIntentResponseCode; userActivity: NSUserActivity; }); + + initWithCodeUserActivity(code: INDeleteTasksIntentResponseCode, userActivity: NSUserActivity): this; +} + +declare const enum INDeleteTasksIntentResponseCode { + + Unspecified = 0, + + Ready = 1, + + InProgress = 2, + + Success = 3, + + Failure = 4, + + FailureRequiringAppLaunch = 5 +} + +declare class INDeleteTasksTaskListResolutionResult extends INTaskListResolutionResult { + + static alloc(): INDeleteTasksTaskListResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INDeleteTasksTaskListResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithTaskListToConfirm(taskListToConfirm: INTaskList): INDeleteTasksTaskListResolutionResult; // inherited from INTaskListResolutionResult + + static disambiguationWithTaskListsToDisambiguate(taskListsToDisambiguate: NSArray | INTaskList[]): INDeleteTasksTaskListResolutionResult; // inherited from INTaskListResolutionResult + + static needsValue(): INDeleteTasksTaskListResolutionResult; // inherited from INIntentResolutionResult + + static new(): INDeleteTasksTaskListResolutionResult; // inherited from NSObject + + static notRequired(): INDeleteTasksTaskListResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedTaskList(resolvedTaskList: INTaskList): INDeleteTasksTaskListResolutionResult; // inherited from INTaskListResolutionResult + + static unsupported(): INDeleteTasksTaskListResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INDeleteTasksTaskListUnsupportedReason): INDeleteTasksTaskListResolutionResult; + + static unsupportedWithReason(reason: number): INDeleteTasksTaskListResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { taskListResolutionResult: INTaskListResolutionResult; }); + + initWithTaskListResolutionResult(taskListResolutionResult: INTaskListResolutionResult): this; +} + +declare const enum INDeleteTasksTaskListUnsupportedReason { + + NoTaskListFound = 1 +} + +declare class INDeleteTasksTaskResolutionResult extends INTaskResolutionResult { + + static alloc(): INDeleteTasksTaskResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INDeleteTasksTaskResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithTaskToConfirm(taskToConfirm: INTask): INDeleteTasksTaskResolutionResult; // inherited from INTaskResolutionResult + + static disambiguationWithTasksToDisambiguate(tasksToDisambiguate: NSArray | INTask[]): INDeleteTasksTaskResolutionResult; // inherited from INTaskResolutionResult + + static needsValue(): INDeleteTasksTaskResolutionResult; // inherited from INIntentResolutionResult + + static new(): INDeleteTasksTaskResolutionResult; // inherited from NSObject + + static notRequired(): INDeleteTasksTaskResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedTask(resolvedTask: INTask): INDeleteTasksTaskResolutionResult; // inherited from INTaskResolutionResult + + static unsupported(): INDeleteTasksTaskResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INDeleteTasksTaskUnsupportedReason): INDeleteTasksTaskResolutionResult; + + static unsupportedWithReason(reason: number): INDeleteTasksTaskResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { taskResolutionResult: INTaskResolutionResult; }); + + initWithTaskResolutionResult(taskResolutionResult: INTaskResolutionResult): this; +} + +declare const enum INDeleteTasksTaskUnsupportedReason { + + NoTasksFound = 1, + + NoTasksInApp = 2 +} + +declare class INDoubleResolutionResult extends INIntentResolutionResult { + + static alloc(): INDoubleResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INDoubleResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithValueToConfirm(valueToConfirm: number): INDoubleResolutionResult; + + static needsValue(): INDoubleResolutionResult; // inherited from INIntentResolutionResult + + static new(): INDoubleResolutionResult; // inherited from NSObject + + static notRequired(): INDoubleResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedValue(resolvedValue: number): INDoubleResolutionResult; + + static unsupported(): INDoubleResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INDoubleResolutionResult; // inherited from INIntentResolutionResult +} + +declare class INEndWorkoutIntent extends INIntent { + + static alloc(): INEndWorkoutIntent; // inherited from NSObject + + static new(): INEndWorkoutIntent; // inherited from NSObject + + readonly workoutName: INSpeakableString; + + constructor(o: { workoutName: INSpeakableString; }); + + initWithWorkoutName(workoutName: INSpeakableString): this; } interface INEndWorkoutIntentHandling extends NSObjectProtocol { @@ -1462,6 +2027,50 @@ declare const enum INEndWorkoutIntentResponseCode { Success = 7 } +declare class INEnergyResolutionResult extends INIntentResolutionResult { + + static alloc(): INEnergyResolutionResult; // inherited from NSObject + + static confirmationRequiredWithEnergyToConfirm(energyToConfirm: NSMeasurement): INEnergyResolutionResult; + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INEnergyResolutionResult; // inherited from INIntentResolutionResult + + static disambiguationWithEnergyToDisambiguate(energyToDisambiguate: NSArray> | NSMeasurement[]): INEnergyResolutionResult; + + static needsValue(): INEnergyResolutionResult; // inherited from INIntentResolutionResult + + static new(): INEnergyResolutionResult; // inherited from NSObject + + static notRequired(): INEnergyResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedEnergy(resolvedEnergy: NSMeasurement): INEnergyResolutionResult; + + static unsupported(): INEnergyResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INEnergyResolutionResult; // inherited from INIntentResolutionResult +} + +declare class INEnumResolutionResult extends INIntentResolutionResult { + + static alloc(): INEnumResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INEnumResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithValueToConfirm(valueToConfirm: number): INEnumResolutionResult; + + static needsValue(): INEnumResolutionResult; // inherited from INIntentResolutionResult + + static new(): INEnumResolutionResult; // inherited from NSObject + + static notRequired(): INEnumResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedValue(resolvedValue: number): INEnumResolutionResult; + + static unsupported(): INEnumResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INEnumResolutionResult; // inherited from INIntentResolutionResult +} + declare class INExtension extends NSObject implements INIntentHandlerProviding { static alloc(): INExtension; // inherited from NSObject @@ -1505,6 +2114,106 @@ declare class INExtension extends NSObject implements INIntentHandlerProviding { self(): this; } +declare class INFile extends NSObject { + + static alloc(): INFile; // inherited from NSObject + + static fileWithDataFilenameTypeIdentifier(data: NSData, filename: string, typeIdentifier: string): INFile; + + static fileWithFileURLFilenameTypeIdentifier(fileURL: NSURL, filename: string, typeIdentifier: string): INFile; + + static new(): INFile; // inherited from NSObject + + readonly data: NSData; + + readonly fileURL: NSURL; + + filename: string; + + readonly typeIdentifier: string; +} + +declare class INFileResolutionResult extends INIntentResolutionResult { + + static alloc(): INFileResolutionResult; // inherited from NSObject + + static confirmationRequiredWithFileToConfirm(fileToConfirm: INFile): INFileResolutionResult; + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INFileResolutionResult; // inherited from INIntentResolutionResult + + static disambiguationWithFilesToDisambiguate(filesToDisambiguate: NSArray | INFile[]): INFileResolutionResult; + + static needsValue(): INFileResolutionResult; // inherited from INIntentResolutionResult + + static new(): INFileResolutionResult; // inherited from NSObject + + static notRequired(): INFileResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedFile(resolvedFile: INFile): INFileResolutionResult; + + static unsupported(): INFileResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INFileResolutionResult; // inherited from INIntentResolutionResult +} + +declare class INFlight extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INFlight; // inherited from NSObject + + static new(): INFlight; // inherited from NSObject + + readonly airline: INAirline; + + readonly arrivalAirportGate: INAirportGate; + + readonly boardingTime: INDateComponentsRange; + + readonly departureAirportGate: INAirportGate; + + readonly flightDuration: INDateComponentsRange; + + readonly flightNumber: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { airline: INAirline; flightNumber: string; boardingTime: INDateComponentsRange; flightDuration: INDateComponentsRange; departureAirportGate: INAirportGate; arrivalAirportGate: INAirportGate; }); + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithAirlineFlightNumberBoardingTimeFlightDurationDepartureAirportGateArrivalAirportGate(airline: INAirline, flightNumber: string, boardingTime: INDateComponentsRange, flightDuration: INDateComponentsRange, departureAirportGate: INAirportGate, arrivalAirportGate: INAirportGate): this; + + initWithCoder(coder: NSCoder): this; +} + +declare class INFlightReservation extends INReservation implements NSCopying, NSSecureCoding { + + static alloc(): INFlightReservation; // inherited from NSObject + + static new(): INFlightReservation; // inherited from NSObject + + readonly flight: INFlight; + + readonly reservedSeat: INSeat; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { itemReference: INSpeakableString; reservationNumber: string; bookingTime: Date; reservationStatus: INReservationStatus; reservationHolderName: string; actions: NSArray | INReservationAction[]; reservedSeat: INSeat; flight: INFlight; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithItemReferenceReservationNumberBookingTimeReservationStatusReservationHolderNameActionsReservedSeatFlight(itemReference: INSpeakableString, reservationNumber: string, bookingTime: Date, reservationStatus: INReservationStatus, reservationHolderName: string, actions: NSArray | INReservationAction[], reservedSeat: INSeat, flight: INFlight): this; +} + declare class INGetAvailableRestaurantReservationBookingDefaultsIntent extends INIntent { static alloc(): INGetAvailableRestaurantReservationBookingDefaultsIntent; // inherited from NSObject @@ -1757,6 +2466,51 @@ declare const enum INGetCarPowerLevelStatusIntentResponseCode { FailureRequiringAppLaunch = 5 } +declare class INGetReservationDetailsIntent extends INIntent { + + static alloc(): INGetReservationDetailsIntent; // inherited from NSObject + + static new(): INGetReservationDetailsIntent; // inherited from NSObject + + readonly reservationContainerReference: INSpeakableString; + + readonly reservationItemReferences: NSArray; + + constructor(o: { reservationContainerReference: INSpeakableString; reservationItemReferences: NSArray | INSpeakableString[]; }); + + initWithReservationContainerReferenceReservationItemReferences(reservationContainerReference: INSpeakableString, reservationItemReferences: NSArray | INSpeakableString[]): this; +} + +declare class INGetReservationDetailsIntentResponse extends INIntentResponse { + + static alloc(): INGetReservationDetailsIntentResponse; // inherited from NSObject + + static new(): INGetReservationDetailsIntentResponse; // inherited from NSObject + + readonly code: INGetReservationDetailsIntentResponseCode; + + reservations: NSArray; + + constructor(o: { code: INGetReservationDetailsIntentResponseCode; userActivity: NSUserActivity; }); + + initWithCodeUserActivity(code: INGetReservationDetailsIntentResponseCode, userActivity: NSUserActivity): this; +} + +declare const enum INGetReservationDetailsIntentResponseCode { + + Unspecified = 0, + + Ready = 1, + + InProgress = 2, + + Success = 3, + + Failure = 4, + + FailureRequiringAppLaunch = 5 +} + declare class INGetRestaurantGuestIntent extends INIntent { static alloc(): INGetRestaurantGuestIntent; // inherited from NSObject @@ -2012,11 +2766,11 @@ declare class INImage extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; fetchUIImageWithCompletion(completion: (p1: UIImage) => void): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class INImageNoteContent extends INNoteContent implements NSCopying, NSSecureCoding { @@ -2035,17 +2789,19 @@ declare class INImageNoteContent extends INNoteContent implements NSCopying, NSS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithImage(image: INImage): this; } -declare class INIntegerResolutionResult extends INIntentResolutionResult { +declare class INIntegerResolutionResult extends INIntentResolutionResult { static alloc(): INIntegerResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INIntegerResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: number): INIntegerResolutionResult; static needsValue(): INIntegerResolutionResult; // inherited from INIntentResolutionResult @@ -2057,6 +2813,8 @@ declare class INIntegerResolutionResult extends INIntentResolutionResult): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; imageForParameterNamed(parameterName: string): INImage; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; keyImage(): INImage; @@ -2183,17 +2941,21 @@ declare const enum INIntentHandlingStatus { UserConfirmationRequired = 6 } -declare class INIntentResolutionResult extends NSObject { +declare class INIntentResolutionResult extends NSObject { + + static alloc(): INIntentResolutionResult; // inherited from NSObject - static alloc(): INIntentResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INIntentResolutionResult; - static needsValue(): INIntentResolutionResult; + static needsValue(): INIntentResolutionResult; - static new(): INIntentResolutionResult; // inherited from NSObject + static new(): INIntentResolutionResult; // inherited from NSObject - static notRequired(): INIntentResolutionResult; + static notRequired(): INIntentResolutionResult; - static unsupported(): INIntentResolutionResult; + static unsupported(): INIntentResolutionResult; + + static unsupportedWithReason(reason: number): INIntentResolutionResult; } declare class INIntentResponse extends NSObject implements NSCopying, NSSecureCoding { @@ -2210,9 +2972,9 @@ declare class INIntentResponse extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class INInteraction extends NSObject implements NSCopying, NSSecureCoding { @@ -2251,9 +3013,9 @@ declare class INInteraction extends NSObject implements NSCopying, NSSecureCodin donateInteractionWithCompletion(completion: (p1: NSError) => void): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIntentResponse(intent: INIntent, response: INIntentResponse): this; @@ -2269,6 +3031,29 @@ declare const enum INInteractionDirection { Incoming = 2 } +declare class INLengthResolutionResult extends INIntentResolutionResult { + + static alloc(): INLengthResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INLengthResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithLengthToConfirm(lengthToConfirm: NSMeasurement): INLengthResolutionResult; + + static disambiguationWithLengthsToDisambiguate(lengthsToDisambiguate: NSArray> | NSMeasurement[]): INLengthResolutionResult; + + static needsValue(): INLengthResolutionResult; // inherited from INIntentResolutionResult + + static new(): INLengthResolutionResult; // inherited from NSObject + + static notRequired(): INLengthResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedLength(resolvedLength: NSMeasurement): INLengthResolutionResult; + + static unsupported(): INLengthResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INLengthResolutionResult; // inherited from INIntentResolutionResult +} + declare class INListRideOptionsIntent extends INIntent { static alloc(): INListRideOptionsIntent; // inherited from NSObject @@ -2365,10 +3150,12 @@ declare const enum INLocationSearchType { ByLocationTrigger = 1 } -declare class INLocationSearchTypeResolutionResult extends INIntentResolutionResult { +declare class INLocationSearchTypeResolutionResult extends INIntentResolutionResult { static alloc(): INLocationSearchTypeResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INLocationSearchTypeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithLocationSearchTypeToConfirm(locationSearchTypeToConfirm: INLocationSearchType): INLocationSearchTypeResolutionResult; static needsValue(): INLocationSearchTypeResolutionResult; // inherited from INIntentResolutionResult @@ -2380,85 +3167,360 @@ declare class INLocationSearchTypeResolutionResult extends INIntentResolutionRes static successWithResolvedLocationSearchType(resolvedLocationSearchType: INLocationSearchType): INLocationSearchTypeResolutionResult; static unsupported(): INLocationSearchTypeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INLocationSearchTypeResolutionResult; // inherited from INIntentResolutionResult } -declare class INMediaItem extends NSObject implements NSCopying, NSSecureCoding { +declare class INLodgingReservation extends INReservation implements NSCopying, NSSecureCoding { - static alloc(): INMediaItem; // inherited from NSObject + static alloc(): INLodgingReservation; // inherited from NSObject - static new(): INMediaItem; // inherited from NSObject + static new(): INLodgingReservation; // inherited from NSObject - readonly artwork: INImage; + readonly lodgingBusinessLocation: CLPlacemark; - readonly identifier: string; + readonly numberOfAdults: number; - readonly title: string; + readonly numberOfChildren: number; - readonly type: INMediaItemType; + readonly reservationDuration: INDateComponentsRange; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding - constructor(o: { identifier: string; title: string; type: INMediaItemType; artwork: INImage; }); + constructor(o: { itemReference: INSpeakableString; reservationNumber: string; bookingTime: Date; reservationStatus: INReservationStatus; reservationHolderName: string; actions: NSArray | INReservationAction[]; lodgingBusinessLocation: CLPlacemark; reservationDuration: INDateComponentsRange; numberOfAdults: number; numberOfChildren: number; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; - initWithIdentifierTitleTypeArtwork(identifier: string, title: string, type: INMediaItemType, artwork: INImage): this; + initWithItemReferenceReservationNumberBookingTimeReservationStatusReservationHolderNameActionsLodgingBusinessLocationReservationDurationNumberOfAdultsNumberOfChildren(itemReference: INSpeakableString, reservationNumber: string, bookingTime: Date, reservationStatus: INReservationStatus, reservationHolderName: string, actions: NSArray | INReservationAction[], lodgingBusinessLocation: CLPlacemark, reservationDuration: INDateComponentsRange, numberOfAdults: number, numberOfChildren: number): this; } -declare const enum INMediaItemType { - - Unknown = 0, +declare class INMassResolutionResult extends INIntentResolutionResult { - Song = 1, + static alloc(): INMassResolutionResult; // inherited from NSObject - Album = 2, + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INMassResolutionResult; // inherited from INIntentResolutionResult - Artist = 3, + static confirmationRequiredWithMassToConfirm(massToConfirm: NSMeasurement): INMassResolutionResult; - Genre = 4, + static disambiguationWithMassToDisambiguate(massToDisambiguate: NSArray> | NSMeasurement[]): INMassResolutionResult; - Playlist = 5, + static needsValue(): INMassResolutionResult; // inherited from INIntentResolutionResult - PodcastShow = 6, + static new(): INMassResolutionResult; // inherited from NSObject - PodcastEpisode = 7, + static notRequired(): INMassResolutionResult; // inherited from INIntentResolutionResult - PodcastPlaylist = 8, + static successWithResolvedMass(resolvedMass: NSMeasurement): INMassResolutionResult; - MusicStation = 9, + static unsupported(): INMassResolutionResult; // inherited from INIntentResolutionResult - AudioBook = 10, + static unsupportedWithReason(reason: number): INMassResolutionResult; // inherited from INIntentResolutionResult +} - Movie = 11, +declare const enum INMediaAffinityType { - TVShow = 12, + Unknown = 0, - TVShowEpisode = 13, + Like = 1, - MusicVideo = 14 + Dislike = 2 } -declare class INMessage extends NSObject implements NSCopying, NSSecureCoding { +declare class INMediaAffinityTypeResolutionResult extends INIntentResolutionResult { - static alloc(): INMessage; // inherited from NSObject + static alloc(): INMediaAffinityTypeResolutionResult; // inherited from NSObject - static new(): INMessage; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INMediaAffinityTypeResolutionResult; // inherited from INIntentResolutionResult - readonly content: string; + static confirmationRequiredWithMediaAffinityTypeToConfirm(mediaAffinityTypeToConfirm: INMediaAffinityType): INMediaAffinityTypeResolutionResult; - readonly conversationIdentifier: string; + static needsValue(): INMediaAffinityTypeResolutionResult; // inherited from INIntentResolutionResult - readonly dateSent: Date; + static new(): INMediaAffinityTypeResolutionResult; // inherited from NSObject - readonly groupName: INSpeakableString; + static notRequired(): INMediaAffinityTypeResolutionResult; // inherited from INIntentResolutionResult - readonly identifier: string; + static successWithResolvedMediaAffinityType(resolvedMediaAffinityType: INMediaAffinityType): INMediaAffinityTypeResolutionResult; + + static unsupported(): INMediaAffinityTypeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INMediaAffinityTypeResolutionResult; // inherited from INIntentResolutionResult +} + +declare class INMediaDestination extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INMediaDestination; // inherited from NSObject + + static libraryDestination(): INMediaDestination; + + static new(): INMediaDestination; // inherited from NSObject + + static playlistDestinationWithName(playlistName: string): INMediaDestination; + + readonly mediaDestinationType: INMediaDestinationType; + + readonly playlistName: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class INMediaDestinationResolutionResult extends INIntentResolutionResult { + + static alloc(): INMediaDestinationResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INMediaDestinationResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithMediaDestinationToConfirm(mediaDestinationToConfirm: INMediaDestination): INMediaDestinationResolutionResult; + + static disambiguationWithMediaDestinationsToDisambiguate(mediaDestinationsToDisambiguate: NSArray | INMediaDestination[]): INMediaDestinationResolutionResult; + + static needsValue(): INMediaDestinationResolutionResult; // inherited from INIntentResolutionResult + + static new(): INMediaDestinationResolutionResult; // inherited from NSObject + + static notRequired(): INMediaDestinationResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedMediaDestination(resolvedMediaDestination: INMediaDestination): INMediaDestinationResolutionResult; + + static unsupported(): INMediaDestinationResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INMediaDestinationResolutionResult; // inherited from INIntentResolutionResult +} + +declare const enum INMediaDestinationType { + + Unknown = 0, + + Library = 1, + + Playlist = 2 +} + +declare class INMediaItem extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INMediaItem; // inherited from NSObject + + static new(): INMediaItem; // inherited from NSObject + + readonly artist: string; + + readonly artwork: INImage; + + readonly identifier: string; + + readonly title: string; + + readonly type: INMediaItemType; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { identifier: string; title: string; type: INMediaItemType; artwork: INImage; }); + + constructor(o: { identifier: string; title: string; type: INMediaItemType; artwork: INImage; artist: string; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithIdentifierTitleTypeArtwork(identifier: string, title: string, type: INMediaItemType, artwork: INImage): this; + + initWithIdentifierTitleTypeArtworkArtist(identifier: string, title: string, type: INMediaItemType, artwork: INImage, artist: string): this; +} + +declare class INMediaItemResolutionResult extends INIntentResolutionResult { + + static alloc(): INMediaItemResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithMediaItemToConfirm(mediaItemToConfirm: INMediaItem): INMediaItemResolutionResult; + + static disambiguationWithMediaItemsToDisambiguate(mediaItemsToDisambiguate: NSArray | INMediaItem[]): INMediaItemResolutionResult; + + static needsValue(): INMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static new(): INMediaItemResolutionResult; // inherited from NSObject + + static notRequired(): INMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedMediaItem(resolvedMediaItem: INMediaItem): INMediaItemResolutionResult; + + static successesWithResolvedMediaItems(resolvedMediaItems: NSArray | INMediaItem[]): NSArray; + + static unsupported(): INMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INMediaItemResolutionResult; // inherited from INIntentResolutionResult +} + +declare const enum INMediaItemType { + + Unknown = 0, + + Song = 1, + + Album = 2, + + Artist = 3, + + Genre = 4, + + Playlist = 5, + + PodcastShow = 6, + + PodcastEpisode = 7, + + PodcastPlaylist = 8, + + MusicStation = 9, + + AudioBook = 10, + + Movie = 11, + + TVShow = 12, + + TVShowEpisode = 13, + + MusicVideo = 14, + + PodcastStation = 15, + + RadioStation = 16, + + Station = 17, + + Music = 18 +} + +declare const enum INMediaReference { + + Unknown = 0, + + CurrentlyPlaying = 1 +} + +declare class INMediaSearch extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INMediaSearch; // inherited from NSObject + + static new(): INMediaSearch; // inherited from NSObject + + readonly activityNames: NSArray; + + readonly albumName: string; + + readonly artistName: string; + + readonly genreNames: NSArray; + + readonly mediaIdentifier: string; + + readonly mediaName: string; + + readonly mediaType: INMediaItemType; + + readonly moodNames: NSArray; + + readonly reference: INMediaReference; + + readonly releaseDate: INDateComponentsRange; + + readonly sortOrder: INMediaSortOrder; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { mediaType: INMediaItemType; sortOrder: INMediaSortOrder; mediaName: string; artistName: string; albumName: string; genreNames: NSArray | string[]; moodNames: NSArray | string[]; activityNames: NSArray | string[]; releaseDate: INDateComponentsRange; reference: INMediaReference; mediaIdentifier: string; }); + + constructor(o: { mediaType: INMediaItemType; sortOrder: INMediaSortOrder; mediaName: string; artistName: string; albumName: string; genreNames: NSArray | string[]; moodNames: NSArray | string[]; releaseDate: INDateComponentsRange; reference: INMediaReference; mediaIdentifier: string; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithMediaTypeSortOrderMediaNameArtistNameAlbumNameGenreNamesMoodNamesActivityNamesReleaseDateReferenceMediaIdentifier(mediaType: INMediaItemType, sortOrder: INMediaSortOrder, mediaName: string, artistName: string, albumName: string, genreNames: NSArray | string[], moodNames: NSArray | string[], activityNames: NSArray | string[], releaseDate: INDateComponentsRange, reference: INMediaReference, mediaIdentifier: string): this; + + initWithMediaTypeSortOrderMediaNameArtistNameAlbumNameGenreNamesMoodNamesReleaseDateReferenceMediaIdentifier(mediaType: INMediaItemType, sortOrder: INMediaSortOrder, mediaName: string, artistName: string, albumName: string, genreNames: NSArray | string[], moodNames: NSArray | string[], releaseDate: INDateComponentsRange, reference: INMediaReference, mediaIdentifier: string): this; +} + +declare const enum INMediaSortOrder { + + Unknown = 0, + + Newest = 1, + + Oldest = 2, + + Best = 3, + + Worst = 4, + + Popular = 5, + + Unpopular = 6, + + Trending = 7, + + Recommended = 8 +} + +declare class INMediaUserContext extends INUserContext { + + static alloc(): INMediaUserContext; // inherited from NSObject + + static new(): INMediaUserContext; // inherited from NSObject + + numberOfLibraryItems: number; + + subscriptionStatus: INMediaUserContextSubscriptionStatus; +} + +declare const enum INMediaUserContextSubscriptionStatus { + + Unknown = 0, + + NotSubscribed = 1, + + Subscribed = 2 +} + +declare class INMessage extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INMessage; // inherited from NSObject + + static new(): INMessage; // inherited from NSObject + + readonly content: string; + + readonly conversationIdentifier: string; + + readonly dateSent: Date; + + readonly groupName: INSpeakableString; + + readonly identifier: string; readonly messageType: INMessageType; @@ -2478,9 +3540,9 @@ declare class INMessage extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIdentifierContentDateSentSenderRecipients(identifier: string, content: string, dateSent: Date, sender: INPerson, recipients: NSArray | INPerson[]): this; @@ -2517,10 +3579,12 @@ declare const enum INMessageAttributeOptions { Played = 16 } -declare class INMessageAttributeOptionsResolutionResult extends INIntentResolutionResult { +declare class INMessageAttributeOptionsResolutionResult extends INIntentResolutionResult { static alloc(): INMessageAttributeOptionsResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INMessageAttributeOptionsResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithMessageAttributeOptionsToConfirm(messageAttributeOptionsToConfirm: INMessageAttributeOptions): INMessageAttributeOptionsResolutionResult; static confirmationRequiredWithValueToConfirm(valueToConfirm: INMessageAttributeOptions): INMessageAttributeOptionsResolutionResult; @@ -2536,12 +3600,16 @@ declare class INMessageAttributeOptionsResolutionResult extends INIntentResoluti static successWithResolvedValue(resolvedValue: INMessageAttributeOptions): INMessageAttributeOptionsResolutionResult; static unsupported(): INMessageAttributeOptionsResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INMessageAttributeOptionsResolutionResult; // inherited from INIntentResolutionResult } -declare class INMessageAttributeResolutionResult extends INIntentResolutionResult { +declare class INMessageAttributeResolutionResult extends INIntentResolutionResult { static alloc(): INMessageAttributeResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INMessageAttributeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithMessageAttributeToConfirm(messageAttributeToConfirm: INMessageAttribute): INMessageAttributeResolutionResult; static confirmationRequiredWithValueToConfirm(valueToConfirm: INMessageAttribute): INMessageAttributeResolutionResult; @@ -2557,6 +3625,8 @@ declare class INMessageAttributeResolutionResult extends INIntentResolutionResul static successWithResolvedValue(resolvedValue: INMessageAttribute): INMessageAttributeResolutionResult; static unsupported(): INMessageAttributeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INMessageAttributeResolutionResult; // inherited from INIntentResolutionResult } declare const enum INMessageType { @@ -2647,9 +3717,9 @@ declare class INNote extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTitleContentsGroupNameCreatedDateComponentsModifiedDateComponentsIdentifier(title: INSpeakableString, contents: NSArray | INNoteContent[], groupName: INSpeakableString, createdDateComponents: NSDateComponents, modifiedDateComponents: NSDateComponents, identifier: string): this; } @@ -2666,15 +3736,17 @@ declare class INNoteContent extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } -declare class INNoteContentResolutionResult extends INIntentResolutionResult { +declare class INNoteContentResolutionResult extends INIntentResolutionResult { static alloc(): INNoteContentResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INNoteContentResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithNoteContentToConfirm(noteContentToConfirm: INNoteContent): INNoteContentResolutionResult; static disambiguationWithNoteContentsToDisambiguate(noteContentsToDisambiguate: NSArray | INNoteContent[]): INNoteContentResolutionResult; @@ -2688,6 +3760,8 @@ declare class INNoteContentResolutionResult extends INIntentResolutionResult { +declare class INNoteContentTypeResolutionResult extends INIntentResolutionResult { static alloc(): INNoteContentTypeResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INNoteContentTypeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithNoteContentTypeToConfirm(noteContentTypeToConfirm: INNoteContentType): INNoteContentTypeResolutionResult; static needsValue(): INNoteContentTypeResolutionResult; // inherited from INIntentResolutionResult @@ -2714,12 +3790,16 @@ declare class INNoteContentTypeResolutionResult extends INIntentResolutionResult static successWithResolvedNoteContentType(resolvedNoteContentType: INNoteContentType): INNoteContentTypeResolutionResult; static unsupported(): INNoteContentTypeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INNoteContentTypeResolutionResult; // inherited from INIntentResolutionResult } -declare class INNoteResolutionResult extends INIntentResolutionResult { +declare class INNoteResolutionResult extends INIntentResolutionResult { static alloc(): INNoteResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INNoteResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithNoteToConfirm(noteToConfirm: INNote): INNoteResolutionResult; static disambiguationWithNotesToDisambiguate(notesToDisambiguate: NSArray | INNote[]): INNoteResolutionResult; @@ -2733,6 +3813,8 @@ declare class INNoteResolutionResult extends INIntentResolutionResult static successWithResolvedNote(resolvedNote: INNote): INNoteResolutionResult; static unsupported(): INNoteResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INNoteResolutionResult; // inherited from INIntentResolutionResult } interface INNotebookDomainHandling extends INAddTasksIntentHandling, INAppendToNoteIntentHandling, INCreateNoteIntentHandling, INCreateTaskListIntentHandling, INSearchForNotebookItemsIntentHandling, INSetTaskAttributeIntentHandling { @@ -2753,10 +3835,12 @@ declare const enum INNotebookItemType { Task = 3 } -declare class INNotebookItemTypeResolutionResult extends INIntentResolutionResult { +declare class INNotebookItemTypeResolutionResult extends INIntentResolutionResult { static alloc(): INNotebookItemTypeResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INNotebookItemTypeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithNotebookItemTypeToConfirm(notebookItemTypeToConfirm: INNotebookItemType): INNotebookItemTypeResolutionResult; static disambiguationWithNotebookItemTypesToDisambiguate(notebookItemTypesToDisambiguate: NSArray | number[]): INNotebookItemTypeResolutionResult; @@ -2770,6 +3854,8 @@ declare class INNotebookItemTypeResolutionResult extends INIntentResolutionResul static successWithResolvedNotebookItemType(resolvedNotebookItemType: INNotebookItemType): INNotebookItemTypeResolutionResult; static unsupported(): INNotebookItemTypeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INNotebookItemTypeResolutionResult; // inherited from INIntentResolutionResult } declare class INObject extends NSObject implements INSpeakable, NSCopying, NSSecureCoding { @@ -2778,9 +3864,9 @@ declare class INObject extends NSObject implements INSpeakable, NSCopying, NSSec static new(): INObject; // inherited from NSObject - readonly displayString: string; + alternativeSpeakableMatches: NSArray; - readonly alternativeSpeakableMatches: NSArray; // inherited from INSpeakable + readonly displayString: string; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -2816,9 +3902,9 @@ declare class INObject extends NSObject implements INSpeakable, NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIdentifierDisplayString(identifier: string, displayString: string): this; @@ -2843,6 +3929,29 @@ declare class INObject extends NSObject implements INSpeakable, NSCopying, NSSec self(): this; } +declare class INObjectResolutionResult extends INIntentResolutionResult { + + static alloc(): INObjectResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INObjectResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithObjectToConfirm(objectToConfirm: INObject): INObjectResolutionResult; + + static disambiguationWithObjectsToDisambiguate(objectsToDisambiguate: NSArray | INObject[]): INObjectResolutionResult; + + static needsValue(): INObjectResolutionResult; // inherited from INIntentResolutionResult + + static new(): INObjectResolutionResult; // inherited from NSObject + + static notRequired(): INObjectResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedObject(resolvedObject: INObject): INObjectResolutionResult; + + static unsupported(): INObjectResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INObjectResolutionResult; // inherited from INIntentResolutionResult +} + declare class INParameter extends NSObject implements NSCopying, NSSecureCoding { static alloc(): INParameter; // inherited from NSObject @@ -2861,11 +3970,11 @@ declare class INParameter extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; indexForSubKeyPath(subKeyPath: string): number; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqualToParameter(parameter: INParameter): boolean; @@ -3052,19 +4161,21 @@ declare class INPaymentAccount extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNicknameNumberAccountTypeOrganizationName(nickname: INSpeakableString, number: string, accountType: INAccountType, organizationName: INSpeakableString): this; initWithNicknameNumberAccountTypeOrganizationNameBalanceSecondaryBalance(nickname: INSpeakableString, number: string, accountType: INAccountType, organizationName: INSpeakableString, balance: INBalanceAmount, secondaryBalance: INBalanceAmount): this; } -declare class INPaymentAccountResolutionResult extends INIntentResolutionResult { +declare class INPaymentAccountResolutionResult extends INIntentResolutionResult { static alloc(): INPaymentAccountResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INPaymentAccountResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithPaymentAccountToConfirm(paymentAccountToConfirm: INPaymentAccount): INPaymentAccountResolutionResult; static disambiguationWithPaymentAccountsToDisambiguate(paymentAccountsToDisambiguate: NSArray | INPaymentAccount[]): INPaymentAccountResolutionResult; @@ -3078,6 +4189,8 @@ declare class INPaymentAccountResolutionResult extends INIntentResolutionResult< static successWithResolvedPaymentAccount(resolvedPaymentAccount: INPaymentAccount): INPaymentAccountResolutionResult; static unsupported(): INPaymentAccountResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INPaymentAccountResolutionResult; // inherited from INIntentResolutionResult } declare class INPaymentAmount extends NSObject implements NSCopying, NSSecureCoding { @@ -3098,17 +4211,19 @@ declare class INPaymentAmount extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAmountTypeAmount(amountType: INAmountType, amount: INCurrencyAmount): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } -declare class INPaymentAmountResolutionResult extends INIntentResolutionResult { +declare class INPaymentAmountResolutionResult extends INIntentResolutionResult { static alloc(): INPaymentAmountResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INPaymentAmountResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithPaymentAmountToConfirm(paymentAmountToConfirm: INPaymentAmount): INPaymentAmountResolutionResult; static disambiguationWithPaymentAmountsToDisambiguate(paymentAmountsToDisambiguate: NSArray | INPaymentAmount[]): INPaymentAmountResolutionResult; @@ -3122,6 +4237,8 @@ declare class INPaymentAmountResolutionResult extends INIntentResolutionResult): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTypeNameIdentificationHintIcon(type: INPaymentMethodType, name: string, identificationHint: string, icon: INImage): this; } +declare class INPaymentMethodResolutionResult extends INIntentResolutionResult { + + static alloc(): INPaymentMethodResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INPaymentMethodResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithPaymentMethodToConfirm(paymentMethodToConfirm: INPaymentMethod): INPaymentMethodResolutionResult; + + static disambiguationWithPaymentMethodsToDisambiguate(paymentMethodsToDisambiguate: NSArray | INPaymentMethod[]): INPaymentMethodResolutionResult; + + static needsValue(): INPaymentMethodResolutionResult; // inherited from INIntentResolutionResult + + static new(): INPaymentMethodResolutionResult; // inherited from NSObject + + static notRequired(): INPaymentMethodResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedPaymentMethod(resolvedPaymentMethod: INPaymentMethod): INPaymentMethodResolutionResult; + + static unsupported(): INPaymentMethodResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INPaymentMethodResolutionResult; // inherited from INIntentResolutionResult +} + declare const enum INPaymentMethodType { Unknown = 0, @@ -3206,9 +4346,9 @@ declare class INPaymentRecord extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithPayeePayerCurrencyAmountPaymentMethodNoteStatus(payee: INPerson, payer: INPerson, currencyAmount: INCurrencyAmount, paymentMethod: INPaymentMethod, note: string, status: INPaymentStatus): this; @@ -3230,10 +4370,12 @@ declare const enum INPaymentStatus { Unpaid = 5 } -declare class INPaymentStatusResolutionResult extends INIntentResolutionResult { +declare class INPaymentStatusResolutionResult extends INIntentResolutionResult { static alloc(): INPaymentStatusResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INPaymentStatusResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithPaymentStatusToConfirm(paymentStatusToConfirm: INPaymentStatus): INPaymentStatusResolutionResult; static confirmationRequiredWithValueToConfirm(valueToConfirm: INPaymentStatus): INPaymentStatusResolutionResult; @@ -3249,6 +4391,8 @@ declare class INPaymentStatusResolutionResult extends INIntentResolutionResult): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithHandleDisplayNameContactIdentifier(handle: string, displayName: string, contactIdentifier: string): this; @@ -3389,9 +4533,9 @@ declare class INPersonHandle extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithValueType(value: string, type: INPersonHandleType): this; @@ -3431,6 +4575,8 @@ declare var INPersonRelationshipBrother: string; declare var INPersonRelationshipChild: string; +declare var INPersonRelationshipDaughter: string; + declare var INPersonRelationshipFather: string; declare var INPersonRelationshipFriend: string; @@ -3445,12 +4591,16 @@ declare var INPersonRelationshipPartner: string; declare var INPersonRelationshipSister: string; +declare var INPersonRelationshipSon: string; + declare var INPersonRelationshipSpouse: string; -declare class INPersonResolutionResult extends INIntentResolutionResult { +declare class INPersonResolutionResult extends INIntentResolutionResult { static alloc(): INPersonResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INPersonResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithPersonToConfirm(personToConfirm: INPerson): INPersonResolutionResult; static disambiguationWithPeopleToDisambiguate(peopleToDisambiguate: NSArray | INPerson[]): INPersonResolutionResult; @@ -3464,6 +4614,8 @@ declare class INPersonResolutionResult extends INIntentResolutionResult { +declare class INPlacemarkResolutionResult extends INIntentResolutionResult { static alloc(): INPlacemarkResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INPlacemarkResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithPlacemarkToConfirm(placemarkToConfirm: CLPlacemark): INPlacemarkResolutionResult; static disambiguationWithPlacemarksToDisambiguate(placemarksToDisambiguate: NSArray | CLPlacemark[]): INPlacemarkResolutionResult; @@ -3560,6 +4714,8 @@ declare class INPlacemarkResolutionResult extends INIntentResolutionResult; + readonly mediaSearch: INMediaSearch; + readonly playShuffled: number; + readonly playbackQueueLocation: INPlaybackQueueLocation; + readonly playbackRepeatMode: INPlaybackRepeatMode; + readonly playbackSpeed: number; + readonly resumePlayback: number; constructor(o: { mediaItems: NSArray | INMediaItem[]; mediaContainer: INMediaItem; playShuffled: number; playbackRepeatMode: INPlaybackRepeatMode; resumePlayback: number; }); + constructor(o: { mediaItems: NSArray | INMediaItem[]; mediaContainer: INMediaItem; playShuffled: number; playbackRepeatMode: INPlaybackRepeatMode; resumePlayback: number; playbackQueueLocation: INPlaybackQueueLocation; playbackSpeed: number; mediaSearch: INMediaSearch; }); + initWithMediaItemsMediaContainerPlayShuffledPlaybackRepeatModeResumePlayback(mediaItems: NSArray | INMediaItem[], mediaContainer: INMediaItem, playShuffled: number, playbackRepeatMode: INPlaybackRepeatMode, resumePlayback: number): this; + + initWithMediaItemsMediaContainerPlayShuffledPlaybackRepeatModeResumePlaybackPlaybackQueueLocationPlaybackSpeedMediaSearch(mediaItems: NSArray | INMediaItem[], mediaContainer: INMediaItem, playShuffled: number, playbackRepeatMode: INPlaybackRepeatMode, resumePlayback: number, playbackQueueLocation: INPlaybackQueueLocation, playbackSpeed: number, mediaSearch: INMediaSearch): this; } interface INPlayMediaIntentHandling extends NSObjectProtocol { @@ -3588,6 +4754,18 @@ interface INPlayMediaIntentHandling extends NSObjectProtocol { confirmPlayMediaCompletion?(intent: INPlayMediaIntent, completion: (p1: INPlayMediaIntentResponse) => void): void; handlePlayMediaCompletion(intent: INPlayMediaIntent, completion: (p1: INPlayMediaIntentResponse) => void): void; + + resolveMediaItemsForPlayMediaWithCompletion?(intent: INPlayMediaIntent, completion: (p1: NSArray) => void): void; + + resolvePlayShuffledForPlayMediaWithCompletion?(intent: INPlayMediaIntent, completion: (p1: INBooleanResolutionResult) => void): void; + + resolvePlaybackQueueLocationForPlayMediaWithCompletion?(intent: INPlayMediaIntent, completion: (p1: INPlaybackQueueLocationResolutionResult) => void): void; + + resolvePlaybackRepeatModeForPlayMediaWithCompletion?(intent: INPlayMediaIntent, completion: (p1: INPlaybackRepeatModeResolutionResult) => void): void; + + resolvePlaybackSpeedForPlayMediaWithCompletion?(intent: INPlayMediaIntent, completion: (p1: INPlayMediaPlaybackSpeedResolutionResult) => void): void; + + resolveResumePlaybackForPlayMediaWithCompletion?(intent: INPlayMediaIntent, completion: (p1: INBooleanResolutionResult) => void): void; } declare var INPlayMediaIntentHandling: { @@ -3634,15 +4812,146 @@ declare const enum INPlayMediaIntentResponseCode { FailureRestrictedContent = 10 } -declare const enum INPlaybackRepeatMode { +declare class INPlayMediaMediaItemResolutionResult extends INMediaItemResolutionResult { - Unknown = 0, + static alloc(): INPlayMediaMediaItemResolutionResult; // inherited from NSObject - None = 1, + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INPlayMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult - All = 2, + static confirmationRequiredWithMediaItemToConfirm(mediaItemToConfirm: INMediaItem): INPlayMediaMediaItemResolutionResult; // inherited from INMediaItemResolutionResult - One = 3 + static disambiguationWithMediaItemsToDisambiguate(mediaItemsToDisambiguate: NSArray | INMediaItem[]): INPlayMediaMediaItemResolutionResult; // inherited from INMediaItemResolutionResult + + static needsValue(): INPlayMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static new(): INPlayMediaMediaItemResolutionResult; // inherited from NSObject + + static notRequired(): INPlayMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedMediaItem(resolvedMediaItem: INMediaItem): INPlayMediaMediaItemResolutionResult; // inherited from INMediaItemResolutionResult + + static unsupported(): INPlayMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INPlayMediaMediaItemUnsupportedReason): INPlayMediaMediaItemResolutionResult; + + static unsupportedWithReason(reason: number): INPlayMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { mediaItemResolutionResult: INMediaItemResolutionResult; }); + + initWithMediaItemResolutionResult(mediaItemResolutionResult: INMediaItemResolutionResult): this; +} + +declare const enum INPlayMediaMediaItemUnsupportedReason { + + LoginRequired = 1, + + SubscriptionRequired = 2, + + UnsupportedMediaType = 3, + + ExplicitContentSettings = 4, + + CellularDataSettings = 5, + + RestrictedContent = 6 +} + +declare class INPlayMediaPlaybackSpeedResolutionResult extends INDoubleResolutionResult { + + static alloc(): INPlayMediaPlaybackSpeedResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INPlayMediaPlaybackSpeedResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithValueToConfirm(valueToConfirm: number): INPlayMediaPlaybackSpeedResolutionResult; // inherited from INDoubleResolutionResult + + static needsValue(): INPlayMediaPlaybackSpeedResolutionResult; // inherited from INIntentResolutionResult + + static new(): INPlayMediaPlaybackSpeedResolutionResult; // inherited from NSObject + + static notRequired(): INPlayMediaPlaybackSpeedResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedValue(resolvedValue: number): INPlayMediaPlaybackSpeedResolutionResult; // inherited from INDoubleResolutionResult + + static unsupported(): INPlayMediaPlaybackSpeedResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INPlayMediaPlaybackSpeedUnsupportedReason): INPlayMediaPlaybackSpeedResolutionResult; + + static unsupportedWithReason(reason: number): INPlayMediaPlaybackSpeedResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { doubleResolutionResult: INDoubleResolutionResult; }); + + initWithDoubleResolutionResult(doubleResolutionResult: INDoubleResolutionResult): this; +} + +declare const enum INPlayMediaPlaybackSpeedUnsupportedReason { + + BelowMinimum = 1, + + AboveMaximum = 2 +} + +declare const enum INPlaybackQueueLocation { + + Unknown = 0, + + Now = 1, + + Next = 2, + + Later = 3 +} + +declare class INPlaybackQueueLocationResolutionResult extends INIntentResolutionResult { + + static alloc(): INPlaybackQueueLocationResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INPlaybackQueueLocationResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithPlaybackQueueLocationToConfirm(playbackQueueLocationToConfirm: INPlaybackQueueLocation): INPlaybackQueueLocationResolutionResult; + + static needsValue(): INPlaybackQueueLocationResolutionResult; // inherited from INIntentResolutionResult + + static new(): INPlaybackQueueLocationResolutionResult; // inherited from NSObject + + static notRequired(): INPlaybackQueueLocationResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedPlaybackQueueLocation(resolvedPlaybackQueueLocation: INPlaybackQueueLocation): INPlaybackQueueLocationResolutionResult; + + static unsupported(): INPlaybackQueueLocationResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INPlaybackQueueLocationResolutionResult; // inherited from INIntentResolutionResult +} + +declare const enum INPlaybackRepeatMode { + + Unknown = 0, + + None = 1, + + All = 2, + + One = 3 +} + +declare class INPlaybackRepeatModeResolutionResult extends INIntentResolutionResult { + + static alloc(): INPlaybackRepeatModeResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INPlaybackRepeatModeResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithPlaybackRepeatModeToConfirm(playbackRepeatModeToConfirm: INPlaybackRepeatMode): INPlaybackRepeatModeResolutionResult; + + static needsValue(): INPlaybackRepeatModeResolutionResult; // inherited from INIntentResolutionResult + + static new(): INPlaybackRepeatModeResolutionResult; // inherited from NSObject + + static notRequired(): INPlaybackRepeatModeResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedPlaybackRepeatMode(resolvedPlaybackRepeatMode: INPlaybackRepeatMode): INPlaybackRepeatModeResolutionResult; + + static unsupported(): INPlaybackRepeatModeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INPlaybackRepeatModeResolutionResult; // inherited from INIntentResolutionResult } declare class INPreferences extends NSObject { @@ -3684,9 +4993,9 @@ declare class INPriceRange extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithMaximumPriceCurrencyCode(maximumPrice: NSDecimalNumber, currencyCode: string): this; @@ -3719,10 +5028,12 @@ declare const enum INRadioType { DAB = 5 } -declare class INRadioTypeResolutionResult extends INIntentResolutionResult { +declare class INRadioTypeResolutionResult extends INIntentResolutionResult { static alloc(): INRadioTypeResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INRadioTypeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithRadioTypeToConfirm(radioTypeToConfirm: INRadioType): INRadioTypeResolutionResult; static confirmationRequiredWithValueToConfirm(valueToConfirm: INRadioType): INRadioTypeResolutionResult; @@ -3738,6 +5049,8 @@ declare class INRadioTypeResolutionResult extends INIntentResolutionResult): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIntervalFrequency(interval: number, frequency: INRecurrenceFrequency): this; } @@ -3791,10 +5104,12 @@ declare const enum INRelativeReference { Previous = 2 } -declare class INRelativeReferenceResolutionResult extends INIntentResolutionResult { +declare class INRelativeReferenceResolutionResult extends INIntentResolutionResult { static alloc(): INRelativeReferenceResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INRelativeReferenceResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithRelativeReferenceToConfirm(relativeReferenceToConfirm: INRelativeReference): INRelativeReferenceResolutionResult; static confirmationRequiredWithValueToConfirm(valueToConfirm: INRelativeReference): INRelativeReferenceResolutionResult; @@ -3810,6 +5125,8 @@ declare class INRelativeReferenceResolutionResult extends INIntentResolutionResu static successWithResolvedValue(resolvedValue: INRelativeReference): INRelativeReferenceResolutionResult; static unsupported(): INRelativeReferenceResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INRelativeReferenceResolutionResult; // inherited from INIntentResolutionResult } declare const enum INRelativeSetting { @@ -3825,10 +5142,12 @@ declare const enum INRelativeSetting { Highest = 4 } -declare class INRelativeSettingResolutionResult extends INIntentResolutionResult { +declare class INRelativeSettingResolutionResult extends INIntentResolutionResult { static alloc(): INRelativeSettingResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INRelativeSettingResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithRelativeSettingToConfirm(relativeSettingToConfirm: INRelativeSetting): INRelativeSettingResolutionResult; static confirmationRequiredWithValueToConfirm(valueToConfirm: INRelativeSetting): INRelativeSettingResolutionResult; @@ -3844,6 +5163,8 @@ declare class INRelativeSettingResolutionResult extends INIntentResolutionResult static successWithResolvedValue(resolvedValue: INRelativeSetting): INRelativeSettingResolutionResult; static unsupported(): INRelativeSettingResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INRelativeSettingResolutionResult; // inherited from INIntentResolutionResult } declare class INRelevanceProvider extends NSObject implements NSCopying, NSSecureCoding { @@ -3858,9 +5179,9 @@ declare class INRelevanceProvider extends NSObject implements NSCopying, NSSecur copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class INRelevantShortcut extends NSObject implements NSCopying, NSSecureCoding { @@ -3885,9 +5206,9 @@ declare class INRelevantShortcut extends NSObject implements NSCopying, NSSecure copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithShortcut(shortcut: INShortcut): this; } @@ -3910,12 +5231,74 @@ declare class INRelevantShortcutStore extends NSObject { setRelevantShortcutsCompletionHandler(shortcuts: NSArray | INRelevantShortcut[], completionHandler: (p1: NSError) => void): void; } +declare class INRentalCar extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INRentalCar; // inherited from NSObject + + static new(): INRentalCar; // inherited from NSObject + + readonly make: string; + + readonly model: string; + + readonly rentalCarDescription: string; + + readonly rentalCompanyName: string; + + readonly type: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { rentalCompanyName: string; type: string; make: string; model: string; rentalCarDescription: string; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithRentalCompanyNameTypeMakeModelRentalCarDescription(rentalCompanyName: string, type: string, make: string, model: string, rentalCarDescription: string): this; +} + +declare class INRentalCarReservation extends INReservation implements NSCopying, NSSecureCoding { + + static alloc(): INRentalCarReservation; // inherited from NSObject + + static new(): INRentalCarReservation; // inherited from NSObject + + readonly dropOffLocation: CLPlacemark; + + readonly pickupLocation: CLPlacemark; + + readonly rentalCar: INRentalCar; + + readonly rentalDuration: INDateComponentsRange; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { itemReference: INSpeakableString; reservationNumber: string; bookingTime: Date; reservationStatus: INReservationStatus; reservationHolderName: string; actions: NSArray | INReservationAction[]; rentalCar: INRentalCar; rentalDuration: INDateComponentsRange; pickupLocation: CLPlacemark; dropOffLocation: CLPlacemark; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithItemReferenceReservationNumberBookingTimeReservationStatusReservationHolderNameActionsRentalCarRentalDurationPickupLocationDropOffLocation(itemReference: INSpeakableString, reservationNumber: string, bookingTime: Date, reservationStatus: INReservationStatus, reservationHolderName: string, actions: NSArray | INReservationAction[], rentalCar: INRentalCar, rentalDuration: INDateComponentsRange, pickupLocation: CLPlacemark, dropOffLocation: CLPlacemark): this; +} + declare class INRequestPaymentCurrencyAmountResolutionResult extends INCurrencyAmountResolutionResult { static alloc(): INRequestPaymentCurrencyAmountResolutionResult; // inherited from NSObject static confirmationRequiredWithCurrencyAmountToConfirm(currencyAmountToConfirm: INCurrencyAmount): INRequestPaymentCurrencyAmountResolutionResult; // inherited from INCurrencyAmountResolutionResult + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INRequestPaymentCurrencyAmountResolutionResult; // inherited from INIntentResolutionResult + static disambiguationWithCurrencyAmountsToDisambiguate(currencyAmountsToDisambiguate: NSArray | INCurrencyAmount[]): INRequestPaymentCurrencyAmountResolutionResult; // inherited from INCurrencyAmountResolutionResult static needsValue(): INRequestPaymentCurrencyAmountResolutionResult; // inherited from INIntentResolutionResult @@ -3930,6 +5313,8 @@ declare class INRequestPaymentCurrencyAmountResolutionResult extends INCurrencyA static unsupportedForReason(reason: INRequestPaymentCurrencyAmountUnsupportedReason): INRequestPaymentCurrencyAmountResolutionResult; + static unsupportedWithReason(reason: number): INRequestPaymentCurrencyAmountResolutionResult; // inherited from INIntentResolutionResult + constructor(o: { currencyAmountResolutionResult: INCurrencyAmountResolutionResult; }); initWithCurrencyAmountResolutionResult(currencyAmountResolutionResult: INCurrencyAmountResolutionResult): this; @@ -4032,6 +5417,8 @@ declare class INRequestPaymentPayerResolutionResult extends INPersonResolutionRe static alloc(): INRequestPaymentPayerResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INRequestPaymentPayerResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithPersonToConfirm(personToConfirm: INPerson): INRequestPaymentPayerResolutionResult; // inherited from INPersonResolutionResult static disambiguationWithPeopleToDisambiguate(peopleToDisambiguate: NSArray | INPerson[]): INRequestPaymentPayerResolutionResult; // inherited from INPersonResolutionResult @@ -4048,6 +5435,8 @@ declare class INRequestPaymentPayerResolutionResult extends INPersonResolutionRe static unsupportedForReason(reason: INRequestPaymentPayerUnsupportedReason): INRequestPaymentPayerResolutionResult; + static unsupportedWithReason(reason: number): INRequestPaymentPayerResolutionResult; // inherited from INIntentResolutionResult + constructor(o: { personResolutionResult: INPersonResolutionResult; }); initWithPersonResolutionResult(personResolutionResult: INPersonResolutionResult): this; @@ -4147,7 +5536,85 @@ declare const enum INRequestRideIntentResponseCode { FailureRequiringAppLaunchServiceTemporarilyUnavailable = 8, - FailureRequiringAppLaunchPreviousRideNeedsCompletion = 9 + FailureRequiringAppLaunchPreviousRideNeedsCompletion = 9, + + FailureRequiringAppLaunchRideScheduledTooFar = 10 +} + +declare class INReservation extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INReservation; // inherited from NSObject + + static new(): INReservation; // inherited from NSObject + + readonly actions: NSArray; + + readonly bookingTime: Date; + + readonly itemReference: INSpeakableString; + + readonly reservationHolderName: string; + + readonly reservationNumber: string; + + readonly reservationStatus: INReservationStatus; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class INReservationAction extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INReservationAction; // inherited from NSObject + + static new(): INReservationAction; // inherited from NSObject + + readonly type: INReservationActionType; + + readonly userActivity: NSUserActivity; + + readonly validDuration: INDateComponentsRange; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { type: INReservationActionType; validDuration: INDateComponentsRange; userActivity: NSUserActivity; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithTypeValidDurationUserActivity(type: INReservationActionType, validDuration: INDateComponentsRange, userActivity: NSUserActivity): this; +} + +declare const enum INReservationActionType { + + Unknown = 0, + + CheckIn = 1 +} + +declare const enum INReservationStatus { + + Unknown = 0, + + Canceled = 1, + + Pending = 2, + + Hold = 3, + + Confirmed = 4 } declare class INRestaurant extends NSObject implements NSCopying, NSSecureCoding { @@ -4172,9 +5639,9 @@ declare class INRestaurant extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithLocationNameVendorIdentifierRestaurantIdentifier(location: CLLocation, name: string, vendorIdentifier: string, restaurantIdentifier: string): this; } @@ -4222,15 +5689,17 @@ declare class INRestaurantGuestDisplayPreferences extends NSObject implements NS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } -declare class INRestaurantGuestResolutionResult extends INIntentResolutionResult { +declare class INRestaurantGuestResolutionResult extends INIntentResolutionResult { static alloc(): INRestaurantGuestResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INRestaurantGuestResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithRestaurantGuestToConfirm(restaurantGuestToConfirm: INRestaurantGuest): INRestaurantGuestResolutionResult; static disambiguationWithRestaurantGuestsToDisambiguate(restaurantGuestsToDisambiguate: NSArray | INRestaurantGuest[]): INRestaurantGuestResolutionResult; @@ -4244,6 +5713,8 @@ declare class INRestaurantGuestResolutionResult extends INIntentResolutionResult static successWithResolvedRestaurantGuest(resolvedRestaurantGuest: INRestaurantGuest): INRestaurantGuestResolutionResult; static unsupported(): INRestaurantGuestResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INRestaurantGuestResolutionResult; // inherited from INIntentResolutionResult } declare class INRestaurantOffer extends NSObject implements NSCopying, NSSecureCoding { @@ -4264,9 +5735,36 @@ declare class INRestaurantOffer extends NSObject implements NSCopying, NSSecureC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class INRestaurantReservation extends INReservation implements NSCopying, NSSecureCoding { + + static alloc(): INRestaurantReservation; // inherited from NSObject + + static new(): INRestaurantReservation; // inherited from NSObject + + readonly partySize: number; + + readonly reservationDuration: INDateComponentsRange; + + readonly restaurantLocation: CLPlacemark; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { itemReference: INSpeakableString; reservationNumber: string; bookingTime: Date; reservationStatus: INReservationStatus; reservationHolderName: string; actions: NSArray | INReservationAction[]; reservationDuration: INDateComponentsRange; partySize: number; restaurantLocation: CLPlacemark; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; + + initWithItemReferenceReservationNumberBookingTimeReservationStatusReservationHolderNameActionsReservationDurationPartySizeRestaurantLocation(itemReference: INSpeakableString, reservationNumber: string, bookingTime: Date, reservationStatus: INReservationStatus, reservationHolderName: string, actions: NSArray | INReservationAction[], reservationDuration: INDateComponentsRange, partySize: number, restaurantLocation: CLPlacemark): this; } declare class INRestaurantReservationBooking extends NSObject implements NSCopying, NSSecureCoding { @@ -4305,9 +5803,9 @@ declare class INRestaurantReservationBooking extends NSObject implements NSCopyi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithRestaurantBookingDatePartySizeBookingIdentifier(restaurant: INRestaurant, bookingDate: Date, partySize: number, bookingIdentifier: string): this; } @@ -4346,10 +5844,12 @@ declare const enum INRestaurantReservationUserBookingStatus { Denied = 2 } -declare class INRestaurantResolutionResult extends INIntentResolutionResult { +declare class INRestaurantResolutionResult extends INIntentResolutionResult { static alloc(): INRestaurantResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INRestaurantResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithRestaurantToConfirm(restaurantToConfirm: INRestaurant): INRestaurantResolutionResult; static disambiguationWithRestaurantsToDisambiguate(restaurantsToDisambiguate: NSArray | INRestaurant[]): INRestaurantResolutionResult; @@ -4363,6 +5863,8 @@ declare class INRestaurantResolutionResult extends INIntentResolutionResult): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class INRideDriver extends INPerson implements NSCopying, NSSecureCoding { @@ -4496,9 +5998,9 @@ declare class INRideDriver extends INPerson implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithHandleDisplayNameImageRatingPhoneNumber(handle: string, displayName: string, image: INImage, rating: string, phoneNumber: string): this; @@ -4529,9 +6031,9 @@ declare class INRideFareLineItem extends NSObject implements NSCopying, NSSecure copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTitlePriceCurrencyCode(title: string, price: NSDecimalNumber, currencyCode: string): this; } @@ -4581,9 +6083,9 @@ declare class INRideOption extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNameEstimatedPickupDate(name: string, estimatedPickupDate: Date): this; } @@ -4608,9 +6110,9 @@ declare class INRidePartySizeOption extends NSObject implements NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithPartySizeRangeSizeDescriptionPriceRange(partySizeRange: NSRange, sizeDescription: string, priceRange: INPriceRange): this; } @@ -4674,9 +6176,9 @@ declare class INRideStatus extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class INRideVehicle extends NSObject implements NSCopying, NSSecureCoding { @@ -4701,9 +6203,9 @@ declare class INRideVehicle extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } interface INRidesharingDomainHandling extends INGetRideStatusIntentHandling, INListRideOptionsIntentHandling, INRequestRideIntentHandling { @@ -5015,97 +6517,201 @@ declare const enum INSearchForBillsIntentResponseCode { FailureBillNotFound = 7 } -declare class INSearchForMessagesIntent extends INIntent { +declare class INSearchForMediaIntent extends INIntent { - static alloc(): INSearchForMessagesIntent; // inherited from NSObject + static alloc(): INSearchForMediaIntent; // inherited from NSObject - static new(): INSearchForMessagesIntent; // inherited from NSObject + static new(): INSearchForMediaIntent; // inherited from NSObject - readonly attributes: INMessageAttributeOptions; + readonly mediaItems: NSArray; - readonly conversationIdentifiers: NSArray; + readonly mediaSearch: INMediaSearch; - readonly conversationIdentifiersOperator: INConditionalOperator; + constructor(o: { mediaItems: NSArray | INMediaItem[]; mediaSearch: INMediaSearch; }); - readonly dateTimeRange: INDateComponentsRange; + initWithMediaItemsMediaSearch(mediaItems: NSArray | INMediaItem[], mediaSearch: INMediaSearch): this; +} - readonly groupNames: NSArray; +interface INSearchForMediaIntentHandling extends NSObjectProtocol { - readonly groupNamesOperator: INConditionalOperator; + confirmSearchForMediaCompletion?(intent: INSearchForMediaIntent, completion: (p1: INSearchForMediaIntentResponse) => void): void; - readonly identifiers: NSArray; + handleSearchForMediaCompletion(intent: INSearchForMediaIntent, completion: (p1: INSearchForMediaIntentResponse) => void): void; - readonly identifiersOperator: INConditionalOperator; + resolveMediaItemsForSearchForMediaWithCompletion?(intent: INSearchForMediaIntent, completion: (p1: NSArray) => void): void; +} +declare var INSearchForMediaIntentHandling: { - readonly notificationIdentifiers: NSArray; + prototype: INSearchForMediaIntentHandling; +}; - readonly notificationIdentifiersOperator: INConditionalOperator; +declare class INSearchForMediaIntentResponse extends INIntentResponse { - readonly recipients: NSArray; + static alloc(): INSearchForMediaIntentResponse; // inherited from NSObject - readonly recipientsOperator: INConditionalOperator; + static new(): INSearchForMediaIntentResponse; // inherited from NSObject - readonly searchTerms: NSArray; + readonly code: INSearchForMediaIntentResponseCode; - readonly searchTermsOperator: INConditionalOperator; + mediaItems: NSArray; - readonly senders: NSArray; + constructor(o: { code: INSearchForMediaIntentResponseCode; userActivity: NSUserActivity; }); - readonly sendersOperator: INConditionalOperator; + initWithCodeUserActivity(code: INSearchForMediaIntentResponseCode, userActivity: NSUserActivity): this; +} - readonly speakableGroupNames: NSArray; +declare const enum INSearchForMediaIntentResponseCode { - readonly speakableGroupNamesOperator: INConditionalOperator; + Unspecified = 0, - constructor(o: { recipients: NSArray | INPerson[]; senders: NSArray | INPerson[]; searchTerms: NSArray | string[]; attributes: INMessageAttributeOptions; dateTimeRange: INDateComponentsRange; identifiers: NSArray | string[]; notificationIdentifiers: NSArray | string[]; groupNames: NSArray | string[]; }); + Ready = 1, - constructor(o: { recipients: NSArray | INPerson[]; senders: NSArray | INPerson[]; searchTerms: NSArray | string[]; attributes: INMessageAttributeOptions; dateTimeRange: INDateComponentsRange; identifiers: NSArray | string[]; notificationIdentifiers: NSArray | string[]; speakableGroupNames: NSArray | INSpeakableString[]; }); + ContinueInApp = 2, - constructor(o: { recipients: NSArray | INPerson[]; senders: NSArray | INPerson[]; searchTerms: NSArray | string[]; attributes: INMessageAttributeOptions; dateTimeRange: INDateComponentsRange; identifiers: NSArray | string[]; notificationIdentifiers: NSArray | string[]; speakableGroupNames: NSArray | INSpeakableString[]; conversationIdentifiers: NSArray | string[]; }); + InProgress = 3, - initWithRecipientsSendersSearchTermsAttributesDateTimeRangeIdentifiersNotificationIdentifiersGroupNames(recipients: NSArray | INPerson[], senders: NSArray | INPerson[], searchTerms: NSArray | string[], attributes: INMessageAttributeOptions, dateTimeRange: INDateComponentsRange, identifiers: NSArray | string[], notificationIdentifiers: NSArray | string[], groupNames: NSArray | string[]): this; + Success = 4, - initWithRecipientsSendersSearchTermsAttributesDateTimeRangeIdentifiersNotificationIdentifiersSpeakableGroupNames(recipients: NSArray | INPerson[], senders: NSArray | INPerson[], searchTerms: NSArray | string[], attributes: INMessageAttributeOptions, dateTimeRange: INDateComponentsRange, identifiers: NSArray | string[], notificationIdentifiers: NSArray | string[], speakableGroupNames: NSArray | INSpeakableString[]): this; + Failure = 5, - initWithRecipientsSendersSearchTermsAttributesDateTimeRangeIdentifiersNotificationIdentifiersSpeakableGroupNamesConversationIdentifiers(recipients: NSArray | INPerson[], senders: NSArray | INPerson[], searchTerms: NSArray | string[], attributes: INMessageAttributeOptions, dateTimeRange: INDateComponentsRange, identifiers: NSArray | string[], notificationIdentifiers: NSArray | string[], speakableGroupNames: NSArray | INSpeakableString[], conversationIdentifiers: NSArray | string[]): this; + FailureRequiringAppLaunch = 6 } -interface INSearchForMessagesIntentHandling extends NSObjectProtocol { +declare class INSearchForMediaMediaItemResolutionResult extends INMediaItemResolutionResult { - confirmSearchForMessagesCompletion?(intent: INSearchForMessagesIntent, completion: (p1: INSearchForMessagesIntentResponse) => void): void; + static alloc(): INSearchForMediaMediaItemResolutionResult; // inherited from NSObject - handleSearchForMessagesCompletion(intent: INSearchForMessagesIntent, completion: (p1: INSearchForMessagesIntentResponse) => void): void; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INSearchForMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult - resolveAttributesForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: INMessageAttributeOptionsResolutionResult) => void): void; + static confirmationRequiredWithMediaItemToConfirm(mediaItemToConfirm: INMediaItem): INSearchForMediaMediaItemResolutionResult; // inherited from INMediaItemResolutionResult - resolveDateTimeRangeForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: INDateComponentsRangeResolutionResult) => void): void; + static disambiguationWithMediaItemsToDisambiguate(mediaItemsToDisambiguate: NSArray | INMediaItem[]): INSearchForMediaMediaItemResolutionResult; // inherited from INMediaItemResolutionResult - resolveGroupNamesForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: NSArray) => void): void; + static needsValue(): INSearchForMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult - resolveRecipientsForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: NSArray) => void): void; + static new(): INSearchForMediaMediaItemResolutionResult; // inherited from NSObject - resolveSendersForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: NSArray) => void): void; + static notRequired(): INSearchForMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult - resolveSpeakableGroupNamesForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: NSArray) => void): void; -} -declare var INSearchForMessagesIntentHandling: { + static successWithResolvedMediaItem(resolvedMediaItem: INMediaItem): INSearchForMediaMediaItemResolutionResult; // inherited from INMediaItemResolutionResult - prototype: INSearchForMessagesIntentHandling; -}; + static unsupported(): INSearchForMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult -declare var INSearchForMessagesIntentIdentifier: string; + static unsupportedForReason(reason: INSearchForMediaMediaItemUnsupportedReason): INSearchForMediaMediaItemResolutionResult; -declare class INSearchForMessagesIntentResponse extends INIntentResponse { + static unsupportedWithReason(reason: number): INSearchForMediaMediaItemResolutionResult; // inherited from INIntentResolutionResult - static alloc(): INSearchForMessagesIntentResponse; // inherited from NSObject + constructor(o: { mediaItemResolutionResult: INMediaItemResolutionResult; }); - static new(): INSearchForMessagesIntentResponse; // inherited from NSObject + initWithMediaItemResolutionResult(mediaItemResolutionResult: INMediaItemResolutionResult): this; +} - readonly code: INSearchForMessagesIntentResponseCode; +declare const enum INSearchForMediaMediaItemUnsupportedReason { - messages: NSArray; + LoginRequired = 1, - constructor(o: { code: INSearchForMessagesIntentResponseCode; userActivity: NSUserActivity; }); + SubscriptionRequired = 2, + + UnsupportedMediaType = 3, + + ExplicitContentSettings = 4, + + CellularDataSettings = 5, + + RestrictedContent = 6 +} + +declare class INSearchForMessagesIntent extends INIntent { + + static alloc(): INSearchForMessagesIntent; // inherited from NSObject + + static new(): INSearchForMessagesIntent; // inherited from NSObject + + readonly attributes: INMessageAttributeOptions; + + readonly conversationIdentifiers: NSArray; + + readonly conversationIdentifiersOperator: INConditionalOperator; + + readonly dateTimeRange: INDateComponentsRange; + + readonly groupNames: NSArray; + + readonly groupNamesOperator: INConditionalOperator; + + readonly identifiers: NSArray; + + readonly identifiersOperator: INConditionalOperator; + + readonly notificationIdentifiers: NSArray; + + readonly notificationIdentifiersOperator: INConditionalOperator; + + readonly recipients: NSArray; + + readonly recipientsOperator: INConditionalOperator; + + readonly searchTerms: NSArray; + + readonly searchTermsOperator: INConditionalOperator; + + readonly senders: NSArray; + + readonly sendersOperator: INConditionalOperator; + + readonly speakableGroupNames: NSArray; + + readonly speakableGroupNamesOperator: INConditionalOperator; + + constructor(o: { recipients: NSArray | INPerson[]; senders: NSArray | INPerson[]; searchTerms: NSArray | string[]; attributes: INMessageAttributeOptions; dateTimeRange: INDateComponentsRange; identifiers: NSArray | string[]; notificationIdentifiers: NSArray | string[]; groupNames: NSArray | string[]; }); + + constructor(o: { recipients: NSArray | INPerson[]; senders: NSArray | INPerson[]; searchTerms: NSArray | string[]; attributes: INMessageAttributeOptions; dateTimeRange: INDateComponentsRange; identifiers: NSArray | string[]; notificationIdentifiers: NSArray | string[]; speakableGroupNames: NSArray | INSpeakableString[]; }); + + constructor(o: { recipients: NSArray | INPerson[]; senders: NSArray | INPerson[]; searchTerms: NSArray | string[]; attributes: INMessageAttributeOptions; dateTimeRange: INDateComponentsRange; identifiers: NSArray | string[]; notificationIdentifiers: NSArray | string[]; speakableGroupNames: NSArray | INSpeakableString[]; conversationIdentifiers: NSArray | string[]; }); + + initWithRecipientsSendersSearchTermsAttributesDateTimeRangeIdentifiersNotificationIdentifiersGroupNames(recipients: NSArray | INPerson[], senders: NSArray | INPerson[], searchTerms: NSArray | string[], attributes: INMessageAttributeOptions, dateTimeRange: INDateComponentsRange, identifiers: NSArray | string[], notificationIdentifiers: NSArray | string[], groupNames: NSArray | string[]): this; + + initWithRecipientsSendersSearchTermsAttributesDateTimeRangeIdentifiersNotificationIdentifiersSpeakableGroupNames(recipients: NSArray | INPerson[], senders: NSArray | INPerson[], searchTerms: NSArray | string[], attributes: INMessageAttributeOptions, dateTimeRange: INDateComponentsRange, identifiers: NSArray | string[], notificationIdentifiers: NSArray | string[], speakableGroupNames: NSArray | INSpeakableString[]): this; + + initWithRecipientsSendersSearchTermsAttributesDateTimeRangeIdentifiersNotificationIdentifiersSpeakableGroupNamesConversationIdentifiers(recipients: NSArray | INPerson[], senders: NSArray | INPerson[], searchTerms: NSArray | string[], attributes: INMessageAttributeOptions, dateTimeRange: INDateComponentsRange, identifiers: NSArray | string[], notificationIdentifiers: NSArray | string[], speakableGroupNames: NSArray | INSpeakableString[], conversationIdentifiers: NSArray | string[]): this; +} + +interface INSearchForMessagesIntentHandling extends NSObjectProtocol { + + confirmSearchForMessagesCompletion?(intent: INSearchForMessagesIntent, completion: (p1: INSearchForMessagesIntentResponse) => void): void; + + handleSearchForMessagesCompletion(intent: INSearchForMessagesIntent, completion: (p1: INSearchForMessagesIntentResponse) => void): void; + + resolveAttributesForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: INMessageAttributeOptionsResolutionResult) => void): void; + + resolveDateTimeRangeForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: INDateComponentsRangeResolutionResult) => void): void; + + resolveGroupNamesForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: NSArray) => void): void; + + resolveRecipientsForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: NSArray) => void): void; + + resolveSendersForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: NSArray) => void): void; + + resolveSpeakableGroupNamesForSearchForMessagesWithCompletion?(intent: INSearchForMessagesIntent, completion: (p1: NSArray) => void): void; +} +declare var INSearchForMessagesIntentHandling: { + + prototype: INSearchForMessagesIntentHandling; +}; + +declare var INSearchForMessagesIntentIdentifier: string; + +declare class INSearchForMessagesIntentResponse extends INIntentResponse { + + static alloc(): INSearchForMessagesIntentResponse; // inherited from NSObject + + static new(): INSearchForMessagesIntentResponse; // inherited from NSObject + + readonly code: INSearchForMessagesIntentResponseCode; + + messages: NSArray; + + constructor(o: { code: INSearchForMessagesIntentResponseCode; userActivity: NSUserActivity; }); initWithCodeUserActivity(code: INSearchForMessagesIntentResponseCode, userActivity: NSUserActivity): this; } @@ -5151,15 +6757,23 @@ declare class INSearchForNotebookItemsIntent extends INIntent { readonly status: INTaskStatus; + readonly taskPriority: INTaskPriority; + + readonly temporalEventTriggerTypes: INTemporalEventTriggerTypeOptions; + readonly title: INSpeakableString; constructor(o: { title: INSpeakableString; content: string; itemType: INNotebookItemType; status: INTaskStatus; location: CLPlacemark; locationSearchType: INLocationSearchType; dateTime: INDateComponentsRange; dateSearchType: INDateSearchType; }); constructor(o: { title: INSpeakableString; content: string; itemType: INNotebookItemType; status: INTaskStatus; location: CLPlacemark; locationSearchType: INLocationSearchType; dateTime: INDateComponentsRange; dateSearchType: INDateSearchType; notebookItemIdentifier: string; }); + constructor(o: { title: INSpeakableString; content: string; itemType: INNotebookItemType; status: INTaskStatus; location: CLPlacemark; locationSearchType: INLocationSearchType; dateTime: INDateComponentsRange; dateSearchType: INDateSearchType; temporalEventTriggerTypes: INTemporalEventTriggerTypeOptions; taskPriority: INTaskPriority; notebookItemIdentifier: string; }); + initWithTitleContentItemTypeStatusLocationLocationSearchTypeDateTimeDateSearchType(title: INSpeakableString, content: string, itemType: INNotebookItemType, status: INTaskStatus, location: CLPlacemark, locationSearchType: INLocationSearchType, dateTime: INDateComponentsRange, dateSearchType: INDateSearchType): this; initWithTitleContentItemTypeStatusLocationLocationSearchTypeDateTimeDateSearchTypeNotebookItemIdentifier(title: INSpeakableString, content: string, itemType: INNotebookItemType, status: INTaskStatus, location: CLPlacemark, locationSearchType: INLocationSearchType, dateTime: INDateComponentsRange, dateSearchType: INDateSearchType, notebookItemIdentifier: string): this; + + initWithTitleContentItemTypeStatusLocationLocationSearchTypeDateTimeDateSearchTypeTemporalEventTriggerTypesTaskPriorityNotebookItemIdentifier(title: INSpeakableString, content: string, itemType: INNotebookItemType, status: INTaskStatus, location: CLPlacemark, locationSearchType: INLocationSearchType, dateTime: INDateComponentsRange, dateSearchType: INDateSearchType, temporalEventTriggerTypes: INTemporalEventTriggerTypeOptions, taskPriority: INTaskPriority, notebookItemIdentifier: string): this; } interface INSearchForNotebookItemsIntentHandling extends NSObjectProtocol { @@ -5182,6 +6796,10 @@ interface INSearchForNotebookItemsIntentHandling extends NSObjectProtocol { resolveStatusForSearchForNotebookItemsWithCompletion?(intent: INSearchForNotebookItemsIntent, completion: (p1: INTaskStatusResolutionResult) => void): void; + resolveTaskPriorityForSearchForNotebookItemsWithCompletion?(intent: INSearchForNotebookItemsIntent, completion: (p1: INTaskPriorityResolutionResult) => void): void; + + resolveTemporalEventTriggerTypesForSearchForNotebookItemsWithCompletion?(intent: INSearchForNotebookItemsIntent, completion: (p1: INTemporalEventTriggerTypeOptionsResolutionResult) => void): void; + resolveTitleForSearchForNotebookItemsWithCompletion?(intent: INSearchForNotebookItemsIntent, completion: (p1: INSpeakableStringResolutionResult) => void): void; } declare var INSearchForNotebookItemsIntentHandling: { @@ -5307,6 +6925,35 @@ declare const enum INSearchForPhotosIntentResponseCode { FailureAppConfigurationRequired = 5 } +declare class INSeat extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INSeat; // inherited from NSObject + + static new(): INSeat; // inherited from NSObject + + readonly seatNumber: string; + + readonly seatRow: string; + + readonly seatSection: string; + + readonly seatingType: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { seatSection: string; seatRow: string; seatNumber: string; seatingType: string; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithSeatSectionSeatRowSeatNumberSeatingType(seatSection: string, seatRow: string, seatNumber: string, seatingType: string): this; +} + declare class INSendMessageIntent extends INIntent { static alloc(): INSendMessageIntent; // inherited from NSObject @@ -5395,6 +7042,8 @@ declare class INSendMessageRecipientResolutionResult extends INPersonResolutionR static alloc(): INSendMessageRecipientResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INSendMessageRecipientResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithPersonToConfirm(personToConfirm: INPerson): INSendMessageRecipientResolutionResult; // inherited from INPersonResolutionResult static disambiguationWithPeopleToDisambiguate(peopleToDisambiguate: NSArray | INPerson[]): INSendMessageRecipientResolutionResult; // inherited from INPersonResolutionResult @@ -5411,6 +7060,8 @@ declare class INSendMessageRecipientResolutionResult extends INPersonResolutionR static unsupportedForReason(reason: INSendMessageRecipientUnsupportedReason): INSendMessageRecipientResolutionResult; + static unsupportedWithReason(reason: number): INSendMessageRecipientResolutionResult; // inherited from INIntentResolutionResult + constructor(o: { personResolutionResult: INPersonResolutionResult; }); initWithPersonResolutionResult(personResolutionResult: INPersonResolutionResult): this; @@ -5437,6 +7088,8 @@ declare class INSendPaymentCurrencyAmountResolutionResult extends INCurrencyAmou static confirmationRequiredWithCurrencyAmountToConfirm(currencyAmountToConfirm: INCurrencyAmount): INSendPaymentCurrencyAmountResolutionResult; // inherited from INCurrencyAmountResolutionResult + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INSendPaymentCurrencyAmountResolutionResult; // inherited from INIntentResolutionResult + static disambiguationWithCurrencyAmountsToDisambiguate(currencyAmountsToDisambiguate: NSArray | INCurrencyAmount[]): INSendPaymentCurrencyAmountResolutionResult; // inherited from INCurrencyAmountResolutionResult static needsValue(): INSendPaymentCurrencyAmountResolutionResult; // inherited from INIntentResolutionResult @@ -5451,6 +7104,8 @@ declare class INSendPaymentCurrencyAmountResolutionResult extends INCurrencyAmou static unsupportedForReason(reason: INSendPaymentCurrencyAmountUnsupportedReason): INSendPaymentCurrencyAmountResolutionResult; + static unsupportedWithReason(reason: number): INSendPaymentCurrencyAmountResolutionResult; // inherited from INIntentResolutionResult + constructor(o: { currencyAmountResolutionResult: INCurrencyAmountResolutionResult; }); initWithCurrencyAmountResolutionResult(currencyAmountResolutionResult: INCurrencyAmountResolutionResult): this; @@ -5555,6 +7210,8 @@ declare class INSendPaymentPayeeResolutionResult extends INPersonResolutionResul static alloc(): INSendPaymentPayeeResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INSendPaymentPayeeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithPersonToConfirm(personToConfirm: INPerson): INSendPaymentPayeeResolutionResult; // inherited from INPersonResolutionResult static disambiguationWithPeopleToDisambiguate(peopleToDisambiguate: NSArray | INPerson[]): INSendPaymentPayeeResolutionResult; // inherited from INPersonResolutionResult @@ -5571,6 +7228,8 @@ declare class INSendPaymentPayeeResolutionResult extends INPersonResolutionResul static unsupportedForReason(reason: INSendPaymentPayeeUnsupportedReason): INSendPaymentPayeeResolutionResult; + static unsupportedWithReason(reason: number): INSendPaymentPayeeResolutionResult; // inherited from INIntentResolutionResult + constructor(o: { personResolutionResult: INPersonResolutionResult; }); initWithPersonResolutionResult(personResolutionResult: INPersonResolutionResult): this; @@ -6233,17 +7892,25 @@ declare class INSetTaskAttributeIntent extends INIntent { static new(): INSetTaskAttributeIntent; // inherited from NSObject + readonly priority: INTaskPriority; + readonly spatialEventTrigger: INSpatialEventTrigger; readonly status: INTaskStatus; readonly targetTask: INTask; + readonly taskTitle: INSpeakableString; + readonly temporalEventTrigger: INTemporalEventTrigger; constructor(o: { targetTask: INTask; status: INTaskStatus; spatialEventTrigger: INSpatialEventTrigger; temporalEventTrigger: INTemporalEventTrigger; }); + constructor(o: { targetTask: INTask; taskTitle: INSpeakableString; status: INTaskStatus; priority: INTaskPriority; spatialEventTrigger: INSpatialEventTrigger; temporalEventTrigger: INTemporalEventTrigger; }); + initWithTargetTaskStatusSpatialEventTriggerTemporalEventTrigger(targetTask: INTask, status: INTaskStatus, spatialEventTrigger: INSpatialEventTrigger, temporalEventTrigger: INTemporalEventTrigger): this; + + initWithTargetTaskTaskTitleStatusPrioritySpatialEventTriggerTemporalEventTrigger(targetTask: INTask, taskTitle: INSpeakableString, status: INTaskStatus, priority: INTaskPriority, spatialEventTrigger: INSpatialEventTrigger, temporalEventTrigger: INTemporalEventTrigger): this; } interface INSetTaskAttributeIntentHandling extends NSObjectProtocol { @@ -6252,12 +7919,18 @@ interface INSetTaskAttributeIntentHandling extends NSObjectProtocol { handleSetTaskAttributeCompletion(intent: INSetTaskAttributeIntent, completion: (p1: INSetTaskAttributeIntentResponse) => void): void; + resolvePriorityForSetTaskAttributeWithCompletion?(intent: INSetTaskAttributeIntent, completion: (p1: INTaskPriorityResolutionResult) => void): void; + resolveSpatialEventTriggerForSetTaskAttributeWithCompletion?(intent: INSetTaskAttributeIntent, completion: (p1: INSpatialEventTriggerResolutionResult) => void): void; resolveStatusForSetTaskAttributeWithCompletion?(intent: INSetTaskAttributeIntent, completion: (p1: INTaskStatusResolutionResult) => void): void; resolveTargetTaskForSetTaskAttributeWithCompletion?(intent: INSetTaskAttributeIntent, completion: (p1: INTaskResolutionResult) => void): void; + resolveTaskTitleForSetTaskAttributeWithCompletion?(intent: INSetTaskAttributeIntent, completion: (p1: INSpeakableStringResolutionResult) => void): void; + + resolveTemporalEventTriggerForSetTaskAttributeCompletion?(intent: INSetTaskAttributeIntent, completion: (p1: INSetTaskAttributeTemporalEventTriggerResolutionResult) => void): void; + resolveTemporalEventTriggerForSetTaskAttributeWithCompletion?(intent: INSetTaskAttributeIntent, completion: (p1: INTemporalEventTriggerResolutionResult) => void): void; } declare var INSetTaskAttributeIntentHandling: { @@ -6295,6 +7968,42 @@ declare const enum INSetTaskAttributeIntentResponseCode { FailureRequiringAppLaunch = 5 } +declare class INSetTaskAttributeTemporalEventTriggerResolutionResult extends INTemporalEventTriggerResolutionResult { + + static alloc(): INSetTaskAttributeTemporalEventTriggerResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INSetTaskAttributeTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithTemporalEventTriggerToConfirm(temporalEventTriggerToConfirm: INTemporalEventTrigger): INSetTaskAttributeTemporalEventTriggerResolutionResult; // inherited from INTemporalEventTriggerResolutionResult + + static disambiguationWithTemporalEventTriggersToDisambiguate(temporalEventTriggersToDisambiguate: NSArray | INTemporalEventTrigger[]): INSetTaskAttributeTemporalEventTriggerResolutionResult; // inherited from INTemporalEventTriggerResolutionResult + + static needsValue(): INSetTaskAttributeTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + static new(): INSetTaskAttributeTemporalEventTriggerResolutionResult; // inherited from NSObject + + static notRequired(): INSetTaskAttributeTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedTemporalEventTrigger(resolvedTemporalEventTrigger: INTemporalEventTrigger): INSetTaskAttributeTemporalEventTriggerResolutionResult; // inherited from INTemporalEventTriggerResolutionResult + + static unsupported(): INSetTaskAttributeTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INSetTaskAttributeTemporalEventTriggerUnsupportedReason): INSetTaskAttributeTemporalEventTriggerResolutionResult; + + static unsupportedWithReason(reason: number): INSetTaskAttributeTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { temporalEventTriggerResolutionResult: INTemporalEventTriggerResolutionResult; }); + + initWithTemporalEventTriggerResolutionResult(temporalEventTriggerResolutionResult: INTemporalEventTriggerResolutionResult): this; +} + +declare const enum INSetTaskAttributeTemporalEventTriggerUnsupportedReason { + + TimeInPast = 1, + + InvalidRecurrence = 2 +} + declare class INShortcut extends NSObject implements NSCopying, NSSecureCoding { static alloc(): INShortcut; // inherited from NSObject @@ -6315,9 +8024,9 @@ declare class INShortcut extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIntent(intent: INIntent): this; @@ -6335,6 +8044,102 @@ declare const enum INSiriAuthorizationStatus { Authorized = 3 } +declare class INSnoozeTasksIntent extends INIntent { + + static alloc(): INSnoozeTasksIntent; // inherited from NSObject + + static new(): INSnoozeTasksIntent; // inherited from NSObject + + readonly all: number; + + readonly nextTriggerTime: INDateComponentsRange; + + readonly tasks: NSArray; + + constructor(o: { tasks: NSArray | INTask[]; nextTriggerTime: INDateComponentsRange; all: number; }); + + initWithTasksNextTriggerTimeAll(tasks: NSArray | INTask[], nextTriggerTime: INDateComponentsRange, all: number): this; +} + +interface INSnoozeTasksIntentHandling extends NSObjectProtocol { + + confirmSnoozeTasksCompletion?(intent: INSnoozeTasksIntent, completion: (p1: INSnoozeTasksIntentResponse) => void): void; + + handleSnoozeTasksCompletion(intent: INSnoozeTasksIntent, completion: (p1: INSnoozeTasksIntentResponse) => void): void; + + resolveNextTriggerTimeForSnoozeTasksWithCompletion?(intent: INSnoozeTasksIntent, completion: (p1: INDateComponentsRangeResolutionResult) => void): void; + + resolveTasksForSnoozeTasksWithCompletion?(intent: INSnoozeTasksIntent, completion: (p1: NSArray) => void): void; +} +declare var INSnoozeTasksIntentHandling: { + + prototype: INSnoozeTasksIntentHandling; +}; + +declare class INSnoozeTasksIntentResponse extends INIntentResponse { + + static alloc(): INSnoozeTasksIntentResponse; // inherited from NSObject + + static new(): INSnoozeTasksIntentResponse; // inherited from NSObject + + readonly code: INSnoozeTasksIntentResponseCode; + + snoozedTasks: NSArray; + + constructor(o: { code: INSnoozeTasksIntentResponseCode; userActivity: NSUserActivity; }); + + initWithCodeUserActivity(code: INSnoozeTasksIntentResponseCode, userActivity: NSUserActivity): this; +} + +declare const enum INSnoozeTasksIntentResponseCode { + + Unspecified = 0, + + Ready = 1, + + InProgress = 2, + + Success = 3, + + Failure = 4, + + FailureRequiringAppLaunch = 5 +} + +declare class INSnoozeTasksTaskResolutionResult extends INTaskResolutionResult { + + static alloc(): INSnoozeTasksTaskResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INSnoozeTasksTaskResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithTaskToConfirm(taskToConfirm: INTask): INSnoozeTasksTaskResolutionResult; // inherited from INTaskResolutionResult + + static disambiguationWithTasksToDisambiguate(tasksToDisambiguate: NSArray | INTask[]): INSnoozeTasksTaskResolutionResult; // inherited from INTaskResolutionResult + + static needsValue(): INSnoozeTasksTaskResolutionResult; // inherited from INIntentResolutionResult + + static new(): INSnoozeTasksTaskResolutionResult; // inherited from NSObject + + static notRequired(): INSnoozeTasksTaskResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedTask(resolvedTask: INTask): INSnoozeTasksTaskResolutionResult; // inherited from INTaskResolutionResult + + static unsupported(): INSnoozeTasksTaskResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INSnoozeTasksTaskUnsupportedReason): INSnoozeTasksTaskResolutionResult; + + static unsupportedWithReason(reason: number): INSnoozeTasksTaskResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { taskResolutionResult: INTaskResolutionResult; }); + + initWithTaskResolutionResult(taskResolutionResult: INTaskResolutionResult): this; +} + +declare const enum INSnoozeTasksTaskUnsupportedReason { + + NoTasksFound = 1 +} + declare const enum INSortType { Unknown = 0, @@ -6371,17 +8176,19 @@ declare class INSpatialEventTrigger extends NSObject implements NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithPlacemarkEvent(placemark: CLPlacemark, event: INSpatialEvent): this; } -declare class INSpatialEventTriggerResolutionResult extends INIntentResolutionResult { +declare class INSpatialEventTriggerResolutionResult extends INIntentResolutionResult { static alloc(): INSpatialEventTriggerResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INSpatialEventTriggerResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithSpatialEventTriggerToConfirm(spatialEventTriggerToConfirm: INSpatialEventTrigger): INSpatialEventTriggerResolutionResult; static disambiguationWithSpatialEventTriggersToDisambiguate(spatialEventTriggersToDisambiguate: NSArray | INSpatialEventTrigger[]): INSpatialEventTriggerResolutionResult; @@ -6395,6 +8202,8 @@ declare class INSpatialEventTriggerResolutionResult extends INIntentResolutionRe static successWithResolvedSpatialEventTrigger(resolvedSpatialEventTrigger: INSpatialEventTrigger): INSpatialEventTriggerResolutionResult; static unsupported(): INSpatialEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INSpatialEventTriggerResolutionResult; // inherited from INIntentResolutionResult } interface INSpeakable extends NSObjectProtocol { @@ -6458,9 +8267,9 @@ declare class INSpeakableString extends NSObject implements INSpeakable, NSCopyi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithIdentifierSpokenPhrasePronunciationHint(identifier: string, spokenPhrase: string, pronunciationHint: string): this; @@ -6487,10 +8296,12 @@ declare class INSpeakableString extends NSObject implements INSpeakable, NSCopyi self(): this; } -declare class INSpeakableStringResolutionResult extends INIntentResolutionResult { +declare class INSpeakableStringResolutionResult extends INIntentResolutionResult { static alloc(): INSpeakableStringResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INSpeakableStringResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithStringToConfirm(stringToConfirm: INSpeakableString): INSpeakableStringResolutionResult; static disambiguationWithStringsToDisambiguate(stringsToDisambiguate: NSArray | INSpeakableString[]): INSpeakableStringResolutionResult; @@ -6504,6 +8315,31 @@ declare class INSpeakableStringResolutionResult extends INIntentResolutionResult static successWithResolvedString(resolvedString: INSpeakableString): INSpeakableStringResolutionResult; static unsupported(): INSpeakableStringResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INSpeakableStringResolutionResult; // inherited from INIntentResolutionResult +} + +declare class INSpeedResolutionResult extends INIntentResolutionResult { + + static alloc(): INSpeedResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INSpeedResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithSpeedToConfirm(speedToConfirm: NSMeasurement): INSpeedResolutionResult; + + static disambiguationWithSpeedToDisambiguate(speedToDisambiguate: NSArray> | NSMeasurement[]): INSpeedResolutionResult; + + static needsValue(): INSpeedResolutionResult; // inherited from INIntentResolutionResult + + static new(): INSpeedResolutionResult; // inherited from NSObject + + static notRequired(): INSpeedResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedSpeed(resolvedSpeed: NSMeasurement): INSpeedResolutionResult; + + static unsupported(): INSpeedResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INSpeedResolutionResult; // inherited from INIntentResolutionResult } declare class INStartAudioCallIntent extends INIntent { @@ -6576,57 +8412,217 @@ declare const enum INStartAudioCallIntentResponseCode { FailureNoValidNumber = 8 } -declare class INStartPhotoPlaybackIntent extends INIntent { - - static alloc(): INStartPhotoPlaybackIntent; // inherited from NSObject +declare class INStartCallCallCapabilityResolutionResult extends INCallCapabilityResolutionResult { - static new(): INStartPhotoPlaybackIntent; // inherited from NSObject + static alloc(): INStartCallCallCapabilityResolutionResult; // inherited from NSObject - readonly albumName: string; + static confirmationRequiredWithCallCapabilityToConfirm(callCapabilityToConfirm: INCallCapability): INStartCallCallCapabilityResolutionResult; // inherited from INCallCapabilityResolutionResult - readonly dateCreated: INDateComponentsRange; + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INStartCallCallCapabilityResolutionResult; // inherited from INIntentResolutionResult - readonly excludedAttributes: INPhotoAttributeOptions; + static needsValue(): INStartCallCallCapabilityResolutionResult; // inherited from INIntentResolutionResult - readonly includedAttributes: INPhotoAttributeOptions; + static new(): INStartCallCallCapabilityResolutionResult; // inherited from NSObject - readonly locationCreated: CLPlacemark; + static notRequired(): INStartCallCallCapabilityResolutionResult; // inherited from INIntentResolutionResult - readonly peopleInPhoto: NSArray; + static successWithResolvedCallCapability(resolvedCallCapability: INCallCapability): INStartCallCallCapabilityResolutionResult; // inherited from INCallCapabilityResolutionResult - readonly peopleInPhotoOperator: INConditionalOperator; + static unsupported(): INStartCallCallCapabilityResolutionResult; // inherited from INIntentResolutionResult - readonly searchTerms: NSArray; + static unsupportedForReason(reason: INStartCallCallCapabilityUnsupportedReason): INStartCallCallCapabilityResolutionResult; - readonly searchTermsOperator: INConditionalOperator; + static unsupportedWithReason(reason: number): INStartCallCallCapabilityResolutionResult; // inherited from INIntentResolutionResult - constructor(o: { dateCreated: INDateComponentsRange; locationCreated: CLPlacemark; albumName: string; searchTerms: NSArray | string[]; includedAttributes: INPhotoAttributeOptions; excludedAttributes: INPhotoAttributeOptions; peopleInPhoto: NSArray | INPerson[]; }); + constructor(o: { callCapabilityResolutionResult: INCallCapabilityResolutionResult; }); - initWithDateCreatedLocationCreatedAlbumNameSearchTermsIncludedAttributesExcludedAttributesPeopleInPhoto(dateCreated: INDateComponentsRange, locationCreated: CLPlacemark, albumName: string, searchTerms: NSArray | string[], includedAttributes: INPhotoAttributeOptions, excludedAttributes: INPhotoAttributeOptions, peopleInPhoto: NSArray | INPerson[]): this; + initWithCallCapabilityResolutionResult(callCapabilityResolutionResult: INCallCapabilityResolutionResult): this; } -interface INStartPhotoPlaybackIntentHandling extends NSObjectProtocol { +declare const enum INStartCallCallCapabilityUnsupportedReason { - confirmStartPhotoPlaybackCompletion?(intent: INStartPhotoPlaybackIntent, completion: (p1: INStartPhotoPlaybackIntentResponse) => void): void; + VideoCallUnsupported = 1, - handleStartPhotoPlaybackCompletion(intent: INStartPhotoPlaybackIntent, completion: (p1: INStartPhotoPlaybackIntentResponse) => void): void; + MicrophoneNotAccessible = 2, - resolveAlbumNameForStartPhotoPlaybackWithCompletion?(intent: INStartPhotoPlaybackIntent, completion: (p1: INStringResolutionResult) => void): void; + CameraNotAccessible = 3 +} - resolveDateCreatedForStartPhotoPlaybackWithCompletion?(intent: INStartPhotoPlaybackIntent, completion: (p1: INDateComponentsRangeResolutionResult) => void): void; +declare class INStartCallContactResolutionResult extends INPersonResolutionResult { - resolveLocationCreatedForStartPhotoPlaybackWithCompletion?(intent: INStartPhotoPlaybackIntent, completion: (p1: INPlacemarkResolutionResult) => void): void; + static alloc(): INStartCallContactResolutionResult; // inherited from NSObject - resolvePeopleInPhotoForStartPhotoPlaybackWithCompletion?(intent: INStartPhotoPlaybackIntent, completion: (p1: NSArray) => void): void; -} -declare var INStartPhotoPlaybackIntentHandling: { + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INStartCallContactResolutionResult; // inherited from INIntentResolutionResult - prototype: INStartPhotoPlaybackIntentHandling; -}; + static confirmationRequiredWithPersonToConfirm(personToConfirm: INPerson): INStartCallContactResolutionResult; // inherited from INPersonResolutionResult -declare var INStartPhotoPlaybackIntentIdentifier: string; + static disambiguationWithPeopleToDisambiguate(peopleToDisambiguate: NSArray | INPerson[]): INStartCallContactResolutionResult; // inherited from INPersonResolutionResult -declare class INStartPhotoPlaybackIntentResponse extends INIntentResponse { + static needsValue(): INStartCallContactResolutionResult; // inherited from INIntentResolutionResult + + static new(): INStartCallContactResolutionResult; // inherited from NSObject + + static notRequired(): INStartCallContactResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedPerson(resolvedPerson: INPerson): INStartCallContactResolutionResult; // inherited from INPersonResolutionResult + + static unsupported(): INStartCallContactResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INStartCallContactUnsupportedReason): INStartCallContactResolutionResult; + + static unsupportedWithReason(reason: number): INStartCallContactResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { personResolutionResult: INPersonResolutionResult; }); + + initWithPersonResolutionResult(personResolutionResult: INPersonResolutionResult): this; +} + +declare const enum INStartCallContactUnsupportedReason { + + NoContactFound = 1, + + MultipleContactsUnsupported = 2, + + NoHandleForLabel = 3, + + InvalidHandle = 4, + + UnsupportedMmiUssd = 5, + + NoCallHistoryForRedial = 6, + + NoUsableHandleForRedial = 7 +} + +declare class INStartCallIntent extends INIntent { + + static alloc(): INStartCallIntent; // inherited from NSObject + + static new(): INStartCallIntent; // inherited from NSObject + + readonly audioRoute: INCallAudioRoute; + + readonly callCapability: INCallCapability; + + readonly contacts: NSArray; + + readonly destinationType: INCallDestinationType; + + readonly recordTypeForRedialing: INCallRecordType; + + constructor(o: { audioRoute: INCallAudioRoute; destinationType: INCallDestinationType; contacts: NSArray | INPerson[]; recordTypeForRedialing: INCallRecordType; callCapability: INCallCapability; }); + + initWithAudioRouteDestinationTypeContactsRecordTypeForRedialingCallCapability(audioRoute: INCallAudioRoute, destinationType: INCallDestinationType, contacts: NSArray | INPerson[], recordTypeForRedialing: INCallRecordType, callCapability: INCallCapability): this; +} + +interface INStartCallIntentHandling extends NSObjectProtocol { + + confirmStartCallCompletion?(intent: INStartCallIntent, completion: (p1: INStartCallIntentResponse) => void): void; + + handleStartCallCompletion(intent: INStartCallIntent, completion: (p1: INStartCallIntentResponse) => void): void; + + resolveCallCapabilityForStartCallWithCompletion?(intent: INStartCallIntent, completion: (p1: INStartCallCallCapabilityResolutionResult) => void): void; + + resolveContactsForStartCallWithCompletion?(intent: INStartCallIntent, completion: (p1: NSArray) => void): void; + + resolveDestinationTypeForStartCallWithCompletion?(intent: INStartCallIntent, completion: (p1: INCallDestinationTypeResolutionResult) => void): void; +} +declare var INStartCallIntentHandling: { + + prototype: INStartCallIntentHandling; +}; + +declare class INStartCallIntentResponse extends INIntentResponse { + + static alloc(): INStartCallIntentResponse; // inherited from NSObject + + static new(): INStartCallIntentResponse; // inherited from NSObject + + readonly code: INStartCallIntentResponseCode; + + constructor(o: { code: INStartCallIntentResponseCode; userActivity: NSUserActivity; }); + + initWithCodeUserActivity(code: INStartCallIntentResponseCode, userActivity: NSUserActivity): this; +} + +declare const enum INStartCallIntentResponseCode { + + Unspecified = 0, + + Ready = 1, + + ContinueInApp = 2, + + UserConfirmationRequired = 3, + + Failure = 4, + + FailureRequiringAppLaunch = 5, + + FailureCallingServiceNotAvailable = 6, + + FailureContactNotSupportedByApp = 7, + + FailureAirplaneModeEnabled = 8, + + FailureUnableToHandOff = 9, + + FailureAppConfigurationRequired = 10, + + FailureCallInProgress = 11 +} + +declare class INStartPhotoPlaybackIntent extends INIntent { + + static alloc(): INStartPhotoPlaybackIntent; // inherited from NSObject + + static new(): INStartPhotoPlaybackIntent; // inherited from NSObject + + readonly albumName: string; + + readonly dateCreated: INDateComponentsRange; + + readonly excludedAttributes: INPhotoAttributeOptions; + + readonly includedAttributes: INPhotoAttributeOptions; + + readonly locationCreated: CLPlacemark; + + readonly peopleInPhoto: NSArray; + + readonly peopleInPhotoOperator: INConditionalOperator; + + readonly searchTerms: NSArray; + + readonly searchTermsOperator: INConditionalOperator; + + constructor(o: { dateCreated: INDateComponentsRange; locationCreated: CLPlacemark; albumName: string; searchTerms: NSArray | string[]; includedAttributes: INPhotoAttributeOptions; excludedAttributes: INPhotoAttributeOptions; peopleInPhoto: NSArray | INPerson[]; }); + + initWithDateCreatedLocationCreatedAlbumNameSearchTermsIncludedAttributesExcludedAttributesPeopleInPhoto(dateCreated: INDateComponentsRange, locationCreated: CLPlacemark, albumName: string, searchTerms: NSArray | string[], includedAttributes: INPhotoAttributeOptions, excludedAttributes: INPhotoAttributeOptions, peopleInPhoto: NSArray | INPerson[]): this; +} + +interface INStartPhotoPlaybackIntentHandling extends NSObjectProtocol { + + confirmStartPhotoPlaybackCompletion?(intent: INStartPhotoPlaybackIntent, completion: (p1: INStartPhotoPlaybackIntentResponse) => void): void; + + handleStartPhotoPlaybackCompletion(intent: INStartPhotoPlaybackIntent, completion: (p1: INStartPhotoPlaybackIntentResponse) => void): void; + + resolveAlbumNameForStartPhotoPlaybackWithCompletion?(intent: INStartPhotoPlaybackIntent, completion: (p1: INStringResolutionResult) => void): void; + + resolveDateCreatedForStartPhotoPlaybackWithCompletion?(intent: INStartPhotoPlaybackIntent, completion: (p1: INDateComponentsRangeResolutionResult) => void): void; + + resolveLocationCreatedForStartPhotoPlaybackWithCompletion?(intent: INStartPhotoPlaybackIntent, completion: (p1: INPlacemarkResolutionResult) => void): void; + + resolvePeopleInPhotoForStartPhotoPlaybackWithCompletion?(intent: INStartPhotoPlaybackIntent, completion: (p1: NSArray) => void): void; +} +declare var INStartPhotoPlaybackIntentHandling: { + + prototype: INStartPhotoPlaybackIntentHandling; +}; + +declare var INStartPhotoPlaybackIntentIdentifier: string; + +declare class INStartPhotoPlaybackIntentResponse extends INIntentResponse { static alloc(): INStartPhotoPlaybackIntentResponse; // inherited from NSObject @@ -6796,10 +8792,12 @@ declare const enum INStartWorkoutIntentResponseCode { Success = 8 } -declare class INStringResolutionResult extends INIntentResolutionResult { +declare class INStringResolutionResult extends INIntentResolutionResult { static alloc(): INStringResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INStringResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithStringToConfirm(stringToConfirm: string): INStringResolutionResult; static disambiguationWithStringsToDisambiguate(stringsToDisambiguate: NSArray | string[]): INStringResolutionResult; @@ -6813,6 +8811,8 @@ declare class INStringResolutionResult extends INIntentResolutionResult): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTitleStatusTaskTypeSpatialEventTriggerTemporalEventTriggerCreatedDateComponentsModifiedDateComponentsIdentifier(title: INSpeakableString, status: INTaskStatus, taskType: INTaskType, spatialEventTrigger: INSpatialEventTrigger, temporalEventTrigger: INTemporalEventTrigger, createdDateComponents: NSDateComponents, modifiedDateComponents: NSDateComponents, identifier: string): this; + + initWithTitleStatusTaskTypeSpatialEventTriggerTemporalEventTriggerCreatedDateComponentsModifiedDateComponentsIdentifierPriority(title: INSpeakableString, status: INTaskStatus, taskType: INTaskType, spatialEventTrigger: INSpatialEventTrigger, temporalEventTrigger: INTemporalEventTrigger, createdDateComponents: NSDateComponents, modifiedDateComponents: NSDateComponents, identifier: string, priority: INTaskPriority): this; } declare class INTaskList extends NSObject implements NSCopying, NSSecureCoding { @@ -6878,17 +8884,19 @@ declare class INTaskList extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTitleTasksGroupNameCreatedDateComponentsModifiedDateComponentsIdentifier(title: INSpeakableString, tasks: NSArray | INTask[], groupName: INSpeakableString, createdDateComponents: NSDateComponents, modifiedDateComponents: NSDateComponents, identifier: string): this; } -declare class INTaskListResolutionResult extends INIntentResolutionResult { +declare class INTaskListResolutionResult extends INIntentResolutionResult { static alloc(): INTaskListResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INTaskListResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithTaskListToConfirm(taskListToConfirm: INTaskList): INTaskListResolutionResult; static disambiguationWithTaskListsToDisambiguate(taskListsToDisambiguate: NSArray | INTaskList[]): INTaskListResolutionResult; @@ -6902,12 +8910,46 @@ declare class INTaskListResolutionResult extends INIntentResolutionResult { +declare const enum INTaskPriority { + + Unknown = 0, + + NotFlagged = 1, + + Flagged = 2 +} + +declare class INTaskPriorityResolutionResult extends INIntentResolutionResult { + + static alloc(): INTaskPriorityResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INTaskPriorityResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithTaskPriorityToConfirm(taskPriorityToConfirm: INTaskPriority): INTaskPriorityResolutionResult; + + static needsValue(): INTaskPriorityResolutionResult; // inherited from INIntentResolutionResult + + static new(): INTaskPriorityResolutionResult; // inherited from NSObject + + static notRequired(): INTaskPriorityResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedTaskPriority(resolvedTaskPriority: INTaskPriority): INTaskPriorityResolutionResult; + + static unsupported(): INTaskPriorityResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INTaskPriorityResolutionResult; // inherited from INIntentResolutionResult +} + +declare class INTaskResolutionResult extends INIntentResolutionResult { static alloc(): INTaskResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INTaskResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithTaskToConfirm(taskToConfirm: INTask): INTaskResolutionResult; static disambiguationWithTasksToDisambiguate(tasksToDisambiguate: NSArray | INTask[]): INTaskResolutionResult; @@ -6921,6 +8963,8 @@ declare class INTaskResolutionResult extends INIntentResolutionResult static successWithResolvedTask(resolvedTask: INTask): INTaskResolutionResult; static unsupported(): INTaskResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INTaskResolutionResult; // inherited from INIntentResolutionResult } declare const enum INTaskStatus { @@ -6932,10 +8976,12 @@ declare const enum INTaskStatus { Completed = 2 } -declare class INTaskStatusResolutionResult extends INIntentResolutionResult { +declare class INTaskStatusResolutionResult extends INIntentResolutionResult { static alloc(): INTaskStatusResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INTaskStatusResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithTaskStatusToConfirm(taskStatusToConfirm: INTaskStatus): INTaskStatusResolutionResult; static needsValue(): INTaskStatusResolutionResult; // inherited from INIntentResolutionResult @@ -6947,6 +8993,8 @@ declare class INTaskStatusResolutionResult extends INIntentResolutionResult { +declare class INTemperatureResolutionResult extends INIntentResolutionResult { static alloc(): INTemperatureResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INTemperatureResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithTemperatureToConfirm(temperatureToConfirm: NSMeasurement): INTemperatureResolutionResult; static disambiguationWithTemperaturesToDisambiguate(temperaturesToDisambiguate: NSArray> | NSMeasurement[]): INTemperatureResolutionResult; @@ -6975,6 +9025,8 @@ declare class INTemperatureResolutionResult extends INIntentResolutionResult): INTemperatureResolutionResult; static unsupported(): INTemperatureResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INTemperatureResolutionResult; // inherited from INIntentResolutionResult } declare class INTemporalEventTrigger extends NSObject implements NSCopying, NSSecureCoding { @@ -6993,17 +9045,19 @@ declare class INTemporalEventTrigger extends NSObject implements NSCopying, NSSe copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDateComponentsRange(dateComponentsRange: INDateComponentsRange): this; } -declare class INTemporalEventTriggerResolutionResult extends INIntentResolutionResult { +declare class INTemporalEventTriggerResolutionResult extends INIntentResolutionResult { static alloc(): INTemporalEventTriggerResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithTemporalEventTriggerToConfirm(temporalEventTriggerToConfirm: INTemporalEventTrigger): INTemporalEventTriggerResolutionResult; static disambiguationWithTemporalEventTriggersToDisambiguate(temporalEventTriggersToDisambiguate: NSArray | INTemporalEventTrigger[]): INTemporalEventTriggerResolutionResult; @@ -7017,6 +9071,38 @@ declare class INTemporalEventTriggerResolutionResult extends INIntentResolutionR static successWithResolvedTemporalEventTrigger(resolvedTemporalEventTrigger: INTemporalEventTrigger): INTemporalEventTriggerResolutionResult; static unsupported(): INTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INTemporalEventTriggerResolutionResult; // inherited from INIntentResolutionResult +} + +declare const enum INTemporalEventTriggerTypeOptions { + + NotScheduled = 1, + + ScheduledNonRecurring = 2, + + ScheduledRecurring = 4 +} + +declare class INTemporalEventTriggerTypeOptionsResolutionResult extends INIntentResolutionResult { + + static alloc(): INTemporalEventTriggerTypeOptionsResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INTemporalEventTriggerTypeOptionsResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithTemporalEventTriggerTypeOptionsToConfirm(temporalEventTriggerTypeOptionsToConfirm: INTemporalEventTriggerTypeOptions): INTemporalEventTriggerTypeOptionsResolutionResult; + + static needsValue(): INTemporalEventTriggerTypeOptionsResolutionResult; // inherited from INIntentResolutionResult + + static new(): INTemporalEventTriggerTypeOptionsResolutionResult; // inherited from NSObject + + static notRequired(): INTemporalEventTriggerTypeOptionsResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedTemporalEventTriggerTypeOptions(resolvedTemporalEventTriggerTypeOptions: INTemporalEventTriggerTypeOptions): INTemporalEventTriggerTypeOptionsResolutionResult; + + static unsupported(): INTemporalEventTriggerTypeOptionsResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INTemporalEventTriggerTypeOptionsResolutionResult; // inherited from INIntentResolutionResult } declare class INTermsAndConditions extends NSObject implements NSCopying, NSSecureCoding { @@ -7039,9 +9125,9 @@ declare class INTermsAndConditions extends NSObject implements NSCopying, NSSecu copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithLocalizedTermsAndConditionsTextPrivacyPolicyURLTermsAndConditionsURL(localizedTermsAndConditionsText: string, privacyPolicyURL: NSURL, termsAndConditionsURL: NSURL): this; } @@ -7062,13 +9148,157 @@ declare class INTextNoteContent extends INNoteContent implements NSCopying, NSSe copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithText(text: string): this; } +declare class INTicketedEvent extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INTicketedEvent; // inherited from NSObject + + static new(): INTicketedEvent; // inherited from NSObject + + readonly category: INTicketedEventCategory; + + readonly eventDuration: INDateComponentsRange; + + readonly location: CLPlacemark; + + readonly name: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { category: INTicketedEventCategory; name: string; eventDuration: INDateComponentsRange; location: CLPlacemark; }); + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCategoryNameEventDurationLocation(category: INTicketedEventCategory, name: string, eventDuration: INDateComponentsRange, location: CLPlacemark): this; + + initWithCoder(coder: NSCoder): this; +} + +declare const enum INTicketedEventCategory { + + Unknown = 0, + + Movie = 1 +} + +declare class INTicketedEventReservation extends INReservation implements NSCopying, NSSecureCoding { + + static alloc(): INTicketedEventReservation; // inherited from NSObject + + static new(): INTicketedEventReservation; // inherited from NSObject + + readonly event: INTicketedEvent; + + readonly reservedSeat: INSeat; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { itemReference: INSpeakableString; reservationNumber: string; bookingTime: Date; reservationStatus: INReservationStatus; reservationHolderName: string; actions: NSArray | INReservationAction[]; reservedSeat: INSeat; event: INTicketedEvent; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithItemReferenceReservationNumberBookingTimeReservationStatusReservationHolderNameActionsReservedSeatEvent(itemReference: INSpeakableString, reservationNumber: string, bookingTime: Date, reservationStatus: INReservationStatus, reservationHolderName: string, actions: NSArray | INReservationAction[], reservedSeat: INSeat, event: INTicketedEvent): this; +} + +declare class INTimeIntervalResolutionResult extends INIntentResolutionResult { + + static alloc(): INTimeIntervalResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INTimeIntervalResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithTimeIntervalToConfirm(timeIntervalToConfirm: number): INTimeIntervalResolutionResult; + + static needsValue(): INTimeIntervalResolutionResult; // inherited from INIntentResolutionResult + + static new(): INTimeIntervalResolutionResult; // inherited from NSObject + + static notRequired(): INTimeIntervalResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedTimeInterval(resolvedTimeInterval: number): INTimeIntervalResolutionResult; + + static unsupported(): INTimeIntervalResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INTimeIntervalResolutionResult; // inherited from INIntentResolutionResult +} + +declare class INTrainReservation extends INReservation implements NSCopying, NSSecureCoding { + + static alloc(): INTrainReservation; // inherited from NSObject + + static new(): INTrainReservation; // inherited from NSObject + + readonly reservedSeat: INSeat; + + readonly trainTrip: INTrainTrip; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { itemReference: INSpeakableString; reservationNumber: string; bookingTime: Date; reservationStatus: INReservationStatus; reservationHolderName: string; actions: NSArray | INReservationAction[]; reservedSeat: INSeat; trainTrip: INTrainTrip; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithItemReferenceReservationNumberBookingTimeReservationStatusReservationHolderNameActionsReservedSeatTrainTrip(itemReference: INSpeakableString, reservationNumber: string, bookingTime: Date, reservationStatus: INReservationStatus, reservationHolderName: string, actions: NSArray | INReservationAction[], reservedSeat: INSeat, trainTrip: INTrainTrip): this; +} + +declare class INTrainTrip extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): INTrainTrip; // inherited from NSObject + + static new(): INTrainTrip; // inherited from NSObject + + readonly arrivalPlatform: string; + + readonly arrivalStationLocation: CLPlacemark; + + readonly departurePlatform: string; + + readonly departureStationLocation: CLPlacemark; + + readonly provider: string; + + readonly trainName: string; + + readonly trainNumber: string; + + readonly tripDuration: INDateComponentsRange; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { provider: string; trainName: string; trainNumber: string; tripDuration: INDateComponentsRange; departureStationLocation: CLPlacemark; departurePlatform: string; arrivalStationLocation: CLPlacemark; arrivalPlatform: string; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithProviderTrainNameTrainNumberTripDurationDepartureStationLocationDeparturePlatformArrivalStationLocationArrivalPlatform(provider: string, trainName: string, trainNumber: string, tripDuration: INDateComponentsRange, departureStationLocation: CLPlacemark, departurePlatform: string, arrivalStationLocation: CLPlacemark, arrivalPlatform: string): this; +} + declare class INTransferMoneyIntent extends INIntent { static alloc(): INTransferMoneyIntent; // inherited from NSObject @@ -7155,6 +9385,29 @@ declare const enum INTransferMoneyIntentResponseCode { FailureInsufficientFunds = 7 } +declare class INURLResolutionResult extends INIntentResolutionResult { + + static alloc(): INURLResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INURLResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithURLToConfirm(urlToConfirm: NSURL): INURLResolutionResult; + + static disambiguationWithURLsToDisambiguate(urlsToDisambiguate: NSArray | NSURL[]): INURLResolutionResult; + + static needsValue(): INURLResolutionResult; // inherited from INIntentResolutionResult + + static new(): INURLResolutionResult; // inherited from NSObject + + static notRequired(): INURLResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedURL(resolvedURL: NSURL): INURLResolutionResult; + + static unsupported(): INURLResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INURLResolutionResult; // inherited from INIntentResolutionResult +} + declare class INUpcomingMediaManager extends NSObject { static alloc(): INUpcomingMediaManager; // inherited from NSObject @@ -7175,6 +9428,119 @@ declare const enum INUpcomingMediaPredictionMode { OnlyPredictSuggestedIntents = 1 } +declare class INUpdateMediaAffinityIntent extends INIntent { + + static alloc(): INUpdateMediaAffinityIntent; // inherited from NSObject + + static new(): INUpdateMediaAffinityIntent; // inherited from NSObject + + readonly affinityType: INMediaAffinityType; + + readonly mediaItems: NSArray; + + readonly mediaSearch: INMediaSearch; + + constructor(o: { mediaItems: NSArray | INMediaItem[]; mediaSearch: INMediaSearch; affinityType: INMediaAffinityType; }); + + initWithMediaItemsMediaSearchAffinityType(mediaItems: NSArray | INMediaItem[], mediaSearch: INMediaSearch, affinityType: INMediaAffinityType): this; +} + +interface INUpdateMediaAffinityIntentHandling extends NSObjectProtocol { + + confirmUpdateMediaAffinityCompletion?(intent: INUpdateMediaAffinityIntent, completion: (p1: INUpdateMediaAffinityIntentResponse) => void): void; + + handleUpdateMediaAffinityCompletion(intent: INUpdateMediaAffinityIntent, completion: (p1: INUpdateMediaAffinityIntentResponse) => void): void; + + resolveAffinityTypeForUpdateMediaAffinityWithCompletion?(intent: INUpdateMediaAffinityIntent, completion: (p1: INMediaAffinityTypeResolutionResult) => void): void; + + resolveMediaItemsForUpdateMediaAffinityWithCompletion?(intent: INUpdateMediaAffinityIntent, completion: (p1: NSArray) => void): void; +} +declare var INUpdateMediaAffinityIntentHandling: { + + prototype: INUpdateMediaAffinityIntentHandling; +}; + +declare class INUpdateMediaAffinityIntentResponse extends INIntentResponse { + + static alloc(): INUpdateMediaAffinityIntentResponse; // inherited from NSObject + + static new(): INUpdateMediaAffinityIntentResponse; // inherited from NSObject + + readonly code: INUpdateMediaAffinityIntentResponseCode; + + constructor(o: { code: INUpdateMediaAffinityIntentResponseCode; userActivity: NSUserActivity; }); + + initWithCodeUserActivity(code: INUpdateMediaAffinityIntentResponseCode, userActivity: NSUserActivity): this; +} + +declare const enum INUpdateMediaAffinityIntentResponseCode { + + Unspecified = 0, + + Ready = 1, + + InProgress = 2, + + Success = 3, + + Failure = 4, + + FailureRequiringAppLaunch = 5 +} + +declare class INUpdateMediaAffinityMediaItemResolutionResult extends INMediaItemResolutionResult { + + static alloc(): INUpdateMediaAffinityMediaItemResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INUpdateMediaAffinityMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithMediaItemToConfirm(mediaItemToConfirm: INMediaItem): INUpdateMediaAffinityMediaItemResolutionResult; // inherited from INMediaItemResolutionResult + + static disambiguationWithMediaItemsToDisambiguate(mediaItemsToDisambiguate: NSArray | INMediaItem[]): INUpdateMediaAffinityMediaItemResolutionResult; // inherited from INMediaItemResolutionResult + + static needsValue(): INUpdateMediaAffinityMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static new(): INUpdateMediaAffinityMediaItemResolutionResult; // inherited from NSObject + + static notRequired(): INUpdateMediaAffinityMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedMediaItem(resolvedMediaItem: INMediaItem): INUpdateMediaAffinityMediaItemResolutionResult; // inherited from INMediaItemResolutionResult + + static unsupported(): INUpdateMediaAffinityMediaItemResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedForReason(reason: INUpdateMediaAffinityMediaItemUnsupportedReason): INUpdateMediaAffinityMediaItemResolutionResult; + + static unsupportedWithReason(reason: number): INUpdateMediaAffinityMediaItemResolutionResult; // inherited from INIntentResolutionResult + + constructor(o: { mediaItemResolutionResult: INMediaItemResolutionResult; }); + + initWithMediaItemResolutionResult(mediaItemResolutionResult: INMediaItemResolutionResult): this; +} + +declare const enum INUpdateMediaAffinityMediaItemUnsupportedReason { + + LoginRequired = 1, + + SubscriptionRequired = 2, + + UnsupportedMediaType = 3, + + ExplicitContentSettings = 4, + + CellularDataSettings = 5, + + RestrictedContent = 6 +} + +declare class INUserContext extends NSObject { + + static alloc(): INUserContext; // inherited from NSObject + + static new(): INUserContext; // inherited from NSObject + + becomeCurrent(): void; +} + interface INVisualCodeDomainHandling extends INGetVisualCodeIntentHandling { } declare var INVisualCodeDomainHandling: { @@ -7199,10 +9565,12 @@ declare const enum INVisualCodeType { Subway = 6 } -declare class INVisualCodeTypeResolutionResult extends INIntentResolutionResult { +declare class INVisualCodeTypeResolutionResult extends INIntentResolutionResult { static alloc(): INVisualCodeTypeResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INVisualCodeTypeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithVisualCodeTypeToConfirm(visualCodeTypeToConfirm: INVisualCodeType): INVisualCodeTypeResolutionResult; static needsValue(): INVisualCodeTypeResolutionResult; // inherited from INIntentResolutionResult @@ -7214,6 +9582,8 @@ declare class INVisualCodeTypeResolutionResult extends INIntentResolutionResult< static successWithResolvedVisualCodeType(resolvedVisualCodeType: INVisualCodeType): INVisualCodeTypeResolutionResult; static unsupported(): INVisualCodeTypeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INVisualCodeTypeResolutionResult; // inherited from INIntentResolutionResult } declare class INVocabulary extends NSObject { @@ -7253,7 +9623,17 @@ declare const enum INVocabularyStringType { NotebookItemTitle = 500, - NotebookItemGroupName = 501 + NotebookItemGroupName = 501, + + MediaPlaylistTitle = 700, + + MediaMusicArtistName = 701, + + MediaAudiobookTitle = 702, + + MediaAudiobookAuthorName = 703, + + MediaShowTitle = 704 } declare class INVoiceShortcut extends NSObject implements NSCopying, NSSecureCoding { @@ -7274,9 +9654,9 @@ declare class INVoiceShortcut extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class INVoiceShortcutCenter extends NSObject { @@ -7294,6 +9674,29 @@ declare class INVoiceShortcutCenter extends NSObject { setShortcutSuggestions(suggestions: NSArray | INShortcut[]): void; } +declare class INVolumeResolutionResult extends INIntentResolutionResult { + + static alloc(): INVolumeResolutionResult; // inherited from NSObject + + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INVolumeResolutionResult; // inherited from INIntentResolutionResult + + static confirmationRequiredWithVolumeToConfirm(volumeToConfirm: NSMeasurement): INVolumeResolutionResult; + + static disambiguationWithVolumeToDisambiguate(volumeToDisambiguate: NSArray> | NSMeasurement[]): INVolumeResolutionResult; + + static needsValue(): INVolumeResolutionResult; // inherited from INIntentResolutionResult + + static new(): INVolumeResolutionResult; // inherited from NSObject + + static notRequired(): INVolumeResolutionResult; // inherited from INIntentResolutionResult + + static successWithResolvedVolume(resolvedVolume: NSMeasurement): INVolumeResolutionResult; + + static unsupported(): INVolumeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INVolumeResolutionResult; // inherited from INIntentResolutionResult +} + declare const enum INWorkoutGoalUnitType { Unknown = 0, @@ -7319,10 +9722,12 @@ declare const enum INWorkoutGoalUnitType { KiloCalorie = 10 } -declare class INWorkoutGoalUnitTypeResolutionResult extends INIntentResolutionResult { +declare class INWorkoutGoalUnitTypeResolutionResult extends INIntentResolutionResult { static alloc(): INWorkoutGoalUnitTypeResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INWorkoutGoalUnitTypeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INWorkoutGoalUnitType): INWorkoutGoalUnitTypeResolutionResult; static confirmationRequiredWithWorkoutGoalUnitTypeToConfirm(workoutGoalUnitTypeToConfirm: INWorkoutGoalUnitType): INWorkoutGoalUnitTypeResolutionResult; @@ -7338,6 +9743,8 @@ declare class INWorkoutGoalUnitTypeResolutionResult extends INIntentResolutionRe static successWithResolvedWorkoutGoalUnitType(resolvedWorkoutGoalUnitType: INWorkoutGoalUnitType): INWorkoutGoalUnitTypeResolutionResult; static unsupported(): INWorkoutGoalUnitTypeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INWorkoutGoalUnitTypeResolutionResult; // inherited from INIntentResolutionResult } declare const enum INWorkoutLocationType { @@ -7349,10 +9756,12 @@ declare const enum INWorkoutLocationType { Indoor = 2 } -declare class INWorkoutLocationTypeResolutionResult extends INIntentResolutionResult { +declare class INWorkoutLocationTypeResolutionResult extends INIntentResolutionResult { static alloc(): INWorkoutLocationTypeResolutionResult; // inherited from NSObject + static confirmationRequiredWithItemToConfirmForReason(itemToConfirm: any, reason: number): INWorkoutLocationTypeResolutionResult; // inherited from INIntentResolutionResult + static confirmationRequiredWithValueToConfirm(valueToConfirm: INWorkoutLocationType): INWorkoutLocationTypeResolutionResult; static confirmationRequiredWithWorkoutLocationTypeToConfirm(workoutLocationTypeToConfirm: INWorkoutLocationType): INWorkoutLocationTypeResolutionResult; @@ -7368,6 +9777,8 @@ declare class INWorkoutLocationTypeResolutionResult extends INIntentResolutionRe static successWithResolvedWorkoutLocationType(resolvedWorkoutLocationType: INWorkoutLocationType): INWorkoutLocationTypeResolutionResult; static unsupported(): INWorkoutLocationTypeResolutionResult; // inherited from INIntentResolutionResult + + static unsupportedWithReason(reason: number): INWorkoutLocationTypeResolutionResult; // inherited from INIntentResolutionResult } declare var INWorkoutNameIdentifierCrosstraining: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!IntentsUI.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!IntentsUI.d.ts index b1d306a23f..633dedb66a 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!IntentsUI.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!IntentsUI.d.ts @@ -19,6 +19,10 @@ declare class INUIAddVoiceShortcutButton extends UIButton { static new(): INUIAddVoiceShortcutButton; // inherited from NSObject + static systemButtonWithImageTargetAction(image: UIImage, target: any, action: string): INUIAddVoiceShortcutButton; // inherited from UIButton + + cornerRadius: number; + delegate: INUIAddVoiceShortcutButtonDelegate; shortcut: INShortcut; @@ -28,6 +32,8 @@ declare class INUIAddVoiceShortcutButton extends UIButton { constructor(o: { style: INUIAddVoiceShortcutButtonStyle; }); initWithStyle(style: INUIAddVoiceShortcutButtonStyle): this; + + setStyle(style: INUIAddVoiceShortcutButtonStyle): void; } interface INUIAddVoiceShortcutButtonDelegate extends NSObjectProtocol { @@ -49,7 +55,11 @@ declare const enum INUIAddVoiceShortcutButtonStyle { Black = 2, - BlackOutline = 3 + BlackOutline = 3, + + Automatic = 4, + + AutomaticOutline = 5 } declare class INUIAddVoiceShortcutViewController extends UIViewController { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!JavaScriptCore.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!JavaScriptCore.d.ts index bf7ac2ec32..f1b621e31e 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!JavaScriptCore.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!JavaScriptCore.d.ts @@ -129,6 +129,8 @@ declare function JSObjectCopyPropertyNames(ctx: interop.Pointer | interop.Refere declare function JSObjectDeleteProperty(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, propertyName: interop.Pointer | interop.Reference, exception: interop.Pointer | interop.Reference>): boolean; +declare function JSObjectDeletePropertyForKey(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, propertyKey: interop.Pointer | interop.Reference, exception: interop.Pointer | interop.Reference>): boolean; + declare function JSObjectGetArrayBufferByteLength(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, exception: interop.Pointer | interop.Reference>): number; declare function JSObjectGetArrayBufferBytesPtr(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, exception: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; @@ -139,6 +141,8 @@ declare function JSObjectGetProperty(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, propertyIndex: number, exception: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; +declare function JSObjectGetPropertyForKey(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, propertyKey: interop.Pointer | interop.Reference, exception: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; + declare function JSObjectGetPrototype(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; declare function JSObjectGetTypedArrayBuffer(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, exception: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; @@ -153,6 +157,8 @@ declare function JSObjectGetTypedArrayLength(ctx: interop.Pointer | interop.Refe declare function JSObjectHasProperty(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, propertyName: interop.Pointer | interop.Reference): boolean; +declare function JSObjectHasPropertyForKey(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, propertyKey: interop.Pointer | interop.Reference, exception: interop.Pointer | interop.Reference>): boolean; + declare function JSObjectIsConstructor(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference): boolean; declare function JSObjectIsFunction(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference): boolean; @@ -167,6 +173,8 @@ declare function JSObjectMakeConstructor(ctx: interop.Pointer | interop.Referenc declare function JSObjectMakeDate(ctx: interop.Pointer | interop.Reference, argumentCount: number, _arguments: interop.Reference>, exception: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; +declare function JSObjectMakeDeferredPromise(ctx: interop.Pointer | interop.Reference, resolve: interop.Pointer | interop.Reference>, reject: interop.Pointer | interop.Reference>, exception: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; + declare function JSObjectMakeError(ctx: interop.Pointer | interop.Reference, argumentCount: number, _arguments: interop.Reference>, exception: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; declare function JSObjectMakeFunction(ctx: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, parameterCount: number, parameterNames: interop.Reference>, body: interop.Pointer | interop.Reference, sourceURL: interop.Pointer | interop.Reference, startingLineNumber: number, exception: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; @@ -189,6 +197,8 @@ declare function JSObjectSetProperty(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, propertyIndex: number, value: interop.Pointer | interop.Reference, exception: interop.Pointer | interop.Reference>): void; +declare function JSObjectSetPropertyForKey(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, propertyKey: interop.Pointer | interop.Reference, value: interop.Pointer | interop.Reference, attributes: number, exception: interop.Pointer | interop.Reference>): void; + declare function JSObjectSetPrototype(ctx: interop.Pointer | interop.Reference, object: interop.Pointer | interop.Reference, value: interop.Pointer | interop.Reference): void; declare var JSPropertyDescriptorConfigurableKey: string; @@ -264,7 +274,9 @@ declare const enum JSType { kJSTypeString = 4, - kJSTypeObject = 5 + kJSTypeObject = 5, + + kJSTypeSymbol = 6 } declare const enum JSTypedArrayType { @@ -312,8 +324,16 @@ declare class JSValue extends NSObject { static valueWithNewObjectInContext(context: JSContext): JSValue; + static valueWithNewPromiseInContextFromExecutor(context: JSContext, callback: (p1: JSValue, p2: JSValue) => void): JSValue; + + static valueWithNewPromiseRejectedWithReasonInContext(reason: any, context: JSContext): JSValue; + + static valueWithNewPromiseResolvedWithResultInContext(result: any, context: JSContext): JSValue; + static valueWithNewRegularExpressionFromPatternFlagsInContext(pattern: string, flags: string, context: JSContext): JSValue; + static valueWithNewSymbolFromDescriptionInContext(description: string, context: JSContext): JSValue; + static valueWithNullInContext(context: JSContext): JSValue; static valueWithObjectInContext(value: any, context: JSContext): JSValue; @@ -348,6 +368,8 @@ declare class JSValue extends NSObject { readonly isString: boolean; + readonly isSymbol: boolean; + readonly isUndefined: boolean; [index: number]: JSValue; @@ -375,7 +397,7 @@ declare class JSValue extends NSObject { setObjectAtIndexedSubscript(object: any, index: number): void; - setObjectForKeyedSubscript(object: any, key: NSObject): void; + setObjectForKeyedSubscript(object: any, key: any): void; setValueAtIndex(value: any, index: number): void; @@ -444,6 +466,8 @@ declare function JSValueIsStrictEqual(ctx: interop.Pointer | interop.Reference, value: interop.Pointer | interop.Reference): boolean; +declare function JSValueIsSymbol(ctx: interop.Pointer | interop.Reference, value: interop.Pointer | interop.Reference): boolean; + declare function JSValueIsUndefined(ctx: interop.Pointer | interop.Reference, value: interop.Pointer | interop.Reference): boolean; declare function JSValueMakeBoolean(ctx: interop.Pointer | interop.Reference, boolean: boolean): interop.Pointer | interop.Reference; @@ -456,6 +480,8 @@ declare function JSValueMakeNumber(ctx: interop.Pointer | interop.Reference declare function JSValueMakeString(ctx: interop.Pointer | interop.Reference, string: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; +declare function JSValueMakeSymbol(ctx: interop.Pointer | interop.Reference, description: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + declare function JSValueMakeUndefined(ctx: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; declare function JSValueProtect(ctx: interop.Pointer | interop.Reference, value: interop.Pointer | interop.Reference): void; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!LinkPresentation.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!LinkPresentation.d.ts new file mode 100644 index 0000000000..fed156fc99 --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!LinkPresentation.d.ts @@ -0,0 +1,88 @@ + +declare const enum LPErrorCode { + + Unknown = 1, + + MetadataFetchFailed = 2, + + MetadataFetchCancelled = 3, + + MetadataFetchTimedOut = 4 +} + +declare var LPErrorDomain: string; + +declare class LPLinkMetadata extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): LPLinkMetadata; // inherited from NSObject + + static new(): LPLinkMetadata; // inherited from NSObject + + URL: NSURL; + + iconProvider: NSItemProvider; + + imageProvider: NSItemProvider; + + originalURL: NSURL; + + remoteVideoURL: NSURL; + + title: string; + + videoProvider: NSItemProvider; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class LPLinkView extends UIView { + + static alloc(): LPLinkView; // inherited from NSObject + + static appearance(): LPLinkView; // inherited from UIAppearance + + static appearanceForTraitCollection(trait: UITraitCollection): LPLinkView; // inherited from UIAppearance + + static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): LPLinkView; // inherited from UIAppearance + + static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): LPLinkView; // inherited from UIAppearance + + static appearanceWhenContainedIn(ContainerClass: typeof NSObject): LPLinkView; // inherited from UIAppearance + + static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): LPLinkView; // inherited from UIAppearance + + static new(): LPLinkView; // inherited from NSObject + + metadata: LPLinkMetadata; + + constructor(o: { metadata: LPLinkMetadata; }); + + constructor(o: { URL: NSURL; }); + + initWithMetadata(metadata: LPLinkMetadata): this; + + initWithURL(URL: NSURL): this; +} + +declare class LPMetadataProvider extends NSObject { + + static alloc(): LPMetadataProvider; // inherited from NSObject + + static new(): LPMetadataProvider; // inherited from NSObject + + shouldFetchSubresources: boolean; + + timeout: number; + + cancel(): void; + + startFetchingMetadataForURLCompletionHandler(URL: NSURL, completionHandler: (p1: LPLinkMetadata, p2: NSError) => void): void; +} diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!LocalAuthentication.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!LocalAuthentication.d.ts index 89c668a690..93f99d7593 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!LocalAuthentication.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!LocalAuthentication.d.ts @@ -93,7 +93,9 @@ declare const enum LAError { BiometryLockout = -8, - NotInteractive = -1004 + NotInteractive = -1004, + + WatchNotAvailable = -11 } declare var LAErrorDomain: string; @@ -102,7 +104,11 @@ declare const enum LAPolicy { DeviceOwnerAuthenticationWithBiometrics = 1, - DeviceOwnerAuthentication = 2 + DeviceOwnerAuthentication = 2, + + DeviceOwnerAuthenticationWithWatch = 3, + + DeviceOwnerAuthenticationWithBiometricsOrWatch = 4 } declare var LATouchIDAuthenticationMaximumAllowableReuseDuration: number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!MDFInternationalization.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!MDFInternationalization.d.ts new file mode 100644 index 0000000000..491d8ed0fb --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!MDFInternationalization.d.ts @@ -0,0 +1,18 @@ + +declare function MDFInsetsFlippedHorizontally(insets: UIEdgeInsets): UIEdgeInsets; + +declare function MDFInsetsMakeWithLayoutDirection(top: number, leading: number, bottom: number, trailing: number, layoutDirection: UIUserInterfaceLayoutDirection): UIEdgeInsets; + +declare var MDFInternationalizationVersionNumber: number; + +declare var MDFInternationalizationVersionNumberVar: number; + +declare var MDFInternationalizationVersionString: interop.Reference; + +declare var MDFInternationalizationVersionStringVar: interop.Reference; + +declare function MDFLeadingMarginAutoresizingMaskForLayoutDirection(layoutDirection: UIUserInterfaceLayoutDirection): UIViewAutoresizing; + +declare function MDFRectFlippedHorizontally(frame: CGRect, containerWidth: number): CGRect; + +declare function MDFTrailingMarginAutoresizingMaskForLayoutDirection(layoutDirection: UIUserInterfaceLayoutDirection): UIViewAutoresizing; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!MachO.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!MachO.d.ts index 2406510117..fd031dd6c4 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!MachO.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!MachO.d.ts @@ -281,6 +281,7 @@ interface dyld_all_image_infos { reserved: interop.Reference; compact_dyld_image_info_addr: number; compact_dyld_image_info_size: number; + platform: number; } declare var dyld_all_image_infos: interop.StructType; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!MapKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!MapKit.d.ts index 45cdd8d598..fc41c0a312 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!MapKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!MapKit.d.ts @@ -440,7 +440,9 @@ declare const enum MKErrorCode { PlacemarkNotFound = 4, - DirectionsNotFound = 5 + DirectionsNotFound = 5, + + DecodingFailed = 6 } declare var MKErrorDomain: string; @@ -460,6 +462,69 @@ declare const enum MKFeatureVisibility { Visible = 2 } +declare class MKGeoJSONDecoder extends NSObject { + + static alloc(): MKGeoJSONDecoder; // inherited from NSObject + + static new(): MKGeoJSONDecoder; // inherited from NSObject + + geoJSONObjectsWithDataError(data: NSData): NSArray; +} + +declare class MKGeoJSONFeature extends NSObject implements MKGeoJSONObject { + + static alloc(): MKGeoJSONFeature; // inherited from NSObject + + static new(): MKGeoJSONFeature; // inherited from NSObject + + readonly geometry: NSArray; + + readonly identifier: string; + + readonly properties: NSData; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +interface MKGeoJSONObject extends NSObjectProtocol { +} +declare var MKGeoJSONObject: { + + prototype: MKGeoJSONObject; +}; + declare class MKGeodesicPolyline extends MKPolyline { static alloc(): MKGeodesicPolyline; // inherited from NSObject @@ -518,10 +583,14 @@ declare class MKLocalSearchCompleter extends NSObject { filterType: MKSearchCompletionFilterType; + pointOfInterestFilter: MKPointOfInterestFilter; + queryFragment: string; region: MKCoordinateRegion; + resultTypes: MKLocalSearchCompleterResultType; + readonly results: NSArray; readonly searching: boolean; @@ -540,6 +609,15 @@ declare var MKLocalSearchCompleterDelegate: { prototype: MKLocalSearchCompleterDelegate; }; +declare const enum MKLocalSearchCompleterResultType { + + Address = 1, + + PointOfInterest = 2, + + Query = 4 +} + declare class MKLocalSearchCompletion extends NSObject { static alloc(): MKLocalSearchCompletion; // inherited from NSObject @@ -563,13 +641,25 @@ declare class MKLocalSearchRequest extends NSObject implements NSCopying { naturalLanguageQuery: string; + pointOfInterestFilter: MKPointOfInterestFilter; + region: MKCoordinateRegion; + resultTypes: MKLocalSearchResultType; + constructor(o: { completion: MKLocalSearchCompletion; }); + constructor(o: { naturalLanguageQuery: string; }); + + constructor(o: { naturalLanguageQuery: string; region: MKCoordinateRegion; }); + copyWithZone(zone: interop.Pointer | interop.Reference): any; initWithCompletion(completion: MKLocalSearchCompletion): this; + + initWithNaturalLanguageQuery(naturalLanguageQuery: string): this; + + initWithNaturalLanguageQueryRegion(naturalLanguageQuery: string, region: MKCoordinateRegion): this; } declare class MKLocalSearchResponse extends NSObject { @@ -583,6 +673,13 @@ declare class MKLocalSearchResponse extends NSObject { readonly mapItems: NSArray; } +declare const enum MKLocalSearchResultType { + + Address = 1, + + PointOfInterest = 2 +} + declare class MKMapCamera extends NSObject implements NSCopying, NSSecureCoding { static alloc(): MKMapCamera; // inherited from NSObject @@ -599,6 +696,8 @@ declare class MKMapCamera extends NSObject implements NSCopying, NSSecureCoding centerCoordinate: CLLocationCoordinate2D; + centerCoordinateDistance: number; + heading: number; pitch: number; @@ -609,9 +708,73 @@ declare class MKMapCamera extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MKMapCameraBoundary extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): MKMapCameraBoundary; // inherited from NSObject + + static new(): MKMapCameraBoundary; // inherited from NSObject + + readonly mapRect: MKMapRect; + + readonly region: MKCoordinateRegion; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { coordinateRegion: MKCoordinateRegion; }); + + constructor(o: { mapRect: MKMapRect; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithCoordinateRegion(region: MKCoordinateRegion): this; + + initWithMapRect(mapRect: MKMapRect): this; +} + +declare var MKMapCameraZoomDefault: number; + +declare class MKMapCameraZoomRange extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): MKMapCameraZoomRange; // inherited from NSObject + + static new(): MKMapCameraZoomRange; // inherited from NSObject + + readonly maxCenterCoordinateDistance: number; + + readonly minCenterCoordinateDistance: number; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { maxCenterCoordinateDistance: number; }); + + constructor(o: { minCenterCoordinateDistance: number; }); + + constructor(o: { minCenterCoordinateDistance: number; maxCenterCoordinateDistance: number; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; - initWithCoder(aDecoder: NSCoder): this; + initWithMaxCenterCoordinateDistance(maxDistance: number): this; + + initWithMinCenterCoordinateDistance(minDistance: number): this; + + initWithMinCenterCoordinateDistanceMaxCenterCoordinateDistance(minDistance: number, maxDistance: number): this; } declare class MKMapItem extends NSObject implements NSItemProviderReading, NSItemProviderWriting, NSSecureCoding { @@ -636,6 +799,8 @@ declare class MKMapItem extends NSObject implements NSItemProviderReading, NSIte readonly placemark: MKPlacemark; + pointOfInterestCategory: string; + timeZone: NSTimeZone; url: NSURL; @@ -668,9 +833,9 @@ declare class MKMapItem extends NSObject implements NSItemProviderReading, NSIte conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithPlacemark(placemark: MKPlacemark): this; @@ -757,6 +922,8 @@ declare class MKMapSnapshot extends NSObject { readonly image: UIImage; + readonly traitCollection: UITraitCollection; + pointForCoordinate(coordinate: CLLocationCoordinate2D): CGPoint; } @@ -772,6 +939,8 @@ declare class MKMapSnapshotOptions extends NSObject implements NSCopying { mapType: MKMapType; + pointOfInterestFilter: MKPointOfInterestFilter; + region: MKCoordinateRegion; scale: number; @@ -782,6 +951,8 @@ declare class MKMapSnapshotOptions extends NSObject implements NSCopying { size: CGSize; + traitCollection: UITraitCollection; + copyWithZone(zone: interop.Pointer | interop.Reference): any; } @@ -843,6 +1014,10 @@ declare class MKMapView extends UIView implements NSCoding { camera: MKMapCamera; + cameraBoundary: MKMapCameraBoundary; + + cameraZoomRange: MKMapCameraZoomRange; + centerCoordinate: CLLocationCoordinate2D; delegate: MKMapViewDelegate; @@ -853,6 +1028,8 @@ declare class MKMapView extends UIView implements NSCoding { pitchEnabled: boolean; + pointOfInterestFilter: MKPointOfInterestFilter; + region: MKCoordinateRegion; rotateEnabled: boolean; @@ -913,13 +1090,13 @@ declare class MKMapView extends UIView implements NSCoding { deselectAnnotationAnimated(annotation: MKAnnotation, animated: boolean): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; exchangeOverlayAtIndexWithOverlayAtIndex(index1: number, index2: number): void; exchangeOverlayWithOverlay(overlay1: MKOverlay, overlay2: MKOverlay): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; insertOverlayAboveOverlay(overlay: MKOverlay, sibling: MKOverlay): void; @@ -953,6 +1130,10 @@ declare class MKMapView extends UIView implements NSCoding { setCameraAnimated(camera: MKMapCamera, animated: boolean): void; + setCameraBoundaryAnimated(cameraBoundary: MKMapCameraBoundary, animated: boolean): void; + + setCameraZoomRangeAnimated(cameraZoomRange: MKMapCameraZoomRange, animated: boolean): void; + setCenterCoordinateAnimated(coordinate: CLLocationCoordinate2D, animated: boolean): void; setRegionAnimated(region: MKCoordinateRegion, animated: boolean): void; @@ -1068,7 +1249,7 @@ declare function MKMetersBetweenMapPoints(a: MKMapPoint, b: MKMapPoint): number; declare function MKMetersPerMapPointAtLatitude(latitude: number): number; -declare class MKMultiPoint extends MKShape { +declare class MKMultiPoint extends MKShape implements MKGeoJSONObject { static alloc(): MKMultiPoint; // inherited from NSObject @@ -1076,9 +1257,191 @@ declare class MKMultiPoint extends MKShape { readonly pointCount: number; + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + getCoordinatesRange(coords: interop.Pointer | interop.Reference, range: NSRange): void; + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + points(): interop.Pointer | interop.Reference; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class MKMultiPolygon extends MKShape implements MKGeoJSONObject, MKOverlay { + + static alloc(): MKMultiPolygon; // inherited from NSObject + + static new(): MKMultiPolygon; // inherited from NSObject + + readonly polygons: NSArray; + + readonly boundingMapRect: MKMapRect; // inherited from MKOverlay + + readonly canReplaceMapContent: boolean; // inherited from MKOverlay + + readonly coordinate: CLLocationCoordinate2D; // inherited from MKAnnotation + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly subtitle: string; // inherited from MKAnnotation + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly title: string; // inherited from MKAnnotation + + readonly // inherited from NSObjectProtocol + + constructor(o: { polygons: NSArray | MKPolygon[]; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + initWithPolygons(polygons: NSArray | MKPolygon[]): this; + + intersectsMapRect(mapRect: MKMapRect): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; + + setCoordinate(newCoordinate: CLLocationCoordinate2D): void; +} + +declare class MKMultiPolygonRenderer extends MKOverlayPathRenderer { + + static alloc(): MKMultiPolygonRenderer; // inherited from NSObject + + static new(): MKMultiPolygonRenderer; // inherited from NSObject + + readonly multiPolygon: MKMultiPolygon; + + constructor(o: { multiPolygon: MKMultiPolygon; }); + + initWithMultiPolygon(multiPolygon: MKMultiPolygon): this; +} + +declare class MKMultiPolyline extends MKShape implements MKGeoJSONObject, MKOverlay { + + static alloc(): MKMultiPolyline; // inherited from NSObject + + static new(): MKMultiPolyline; // inherited from NSObject + + readonly polylines: NSArray; + + readonly boundingMapRect: MKMapRect; // inherited from MKOverlay + + readonly canReplaceMapContent: boolean; // inherited from MKOverlay + + readonly coordinate: CLLocationCoordinate2D; // inherited from MKAnnotation + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly subtitle: string; // inherited from MKAnnotation + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly title: string; // inherited from MKAnnotation + + readonly // inherited from NSObjectProtocol + + constructor(o: { polylines: NSArray | MKPolyline[]; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + initWithPolylines(polylines: NSArray | MKPolyline[]): this; + + intersectsMapRect(mapRect: MKMapRect): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; + + setCoordinate(newCoordinate: CLLocationCoordinate2D): void; +} + +declare class MKMultiPolylineRenderer extends MKOverlayPathRenderer { + + static alloc(): MKMultiPolylineRenderer; // inherited from NSObject + + static new(): MKMultiPolylineRenderer; // inherited from NSObject + + readonly multiPolyline: MKMultiPolyline; + + constructor(o: { multiPolyline: MKMultiPolyline; }); + + initWithMultiPolyline(multiPolyline: MKMultiPolyline): this; } interface MKOverlay extends MKAnnotation { @@ -1123,6 +1486,8 @@ declare class MKOverlayPathRenderer extends MKOverlayRenderer { path: any; + shouldRasterize: boolean; + strokeColor: UIColor; applyFillPropertiesToContextAtZoomScale(context: any, zoomScale: number): void; @@ -1368,16 +1733,171 @@ declare class MKPlacemark extends CLPlacemark implements MKAnnotation { setCoordinate(newCoordinate: CLLocationCoordinate2D): void; } -declare class MKPointAnnotation extends MKShape { +declare class MKPointAnnotation extends MKShape implements MKGeoJSONObject { static alloc(): MKPointAnnotation; // inherited from NSObject static new(): MKPointAnnotation; // inherited from NSObject coordinate: CLLocationCoordinate2D; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + constructor(o: { coordinate: CLLocationCoordinate2D; }); + + constructor(o: { coordinate: CLLocationCoordinate2D; title: string; subtitle: string; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + initWithCoordinate(coordinate: CLLocationCoordinate2D): this; + + initWithCoordinateTitleSubtitle(coordinate: CLLocationCoordinate2D, title: string, subtitle: string): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare var MKPointOfInterestCategoryATM: string; + +declare var MKPointOfInterestCategoryAirport: string; + +declare var MKPointOfInterestCategoryAmusementPark: string; + +declare var MKPointOfInterestCategoryAquarium: string; + +declare var MKPointOfInterestCategoryBakery: string; + +declare var MKPointOfInterestCategoryBank: string; + +declare var MKPointOfInterestCategoryBeach: string; + +declare var MKPointOfInterestCategoryBrewery: string; + +declare var MKPointOfInterestCategoryCafe: string; + +declare var MKPointOfInterestCategoryCampground: string; + +declare var MKPointOfInterestCategoryCarRental: string; + +declare var MKPointOfInterestCategoryEVCharger: string; + +declare var MKPointOfInterestCategoryFireStation: string; + +declare var MKPointOfInterestCategoryFitnessCenter: string; + +declare var MKPointOfInterestCategoryFoodMarket: string; + +declare var MKPointOfInterestCategoryGasStation: string; + +declare var MKPointOfInterestCategoryHospital: string; + +declare var MKPointOfInterestCategoryHotel: string; + +declare var MKPointOfInterestCategoryLaundry: string; + +declare var MKPointOfInterestCategoryLibrary: string; + +declare var MKPointOfInterestCategoryMarina: string; + +declare var MKPointOfInterestCategoryMovieTheater: string; + +declare var MKPointOfInterestCategoryMuseum: string; + +declare var MKPointOfInterestCategoryNationalPark: string; + +declare var MKPointOfInterestCategoryNightlife: string; + +declare var MKPointOfInterestCategoryPark: string; + +declare var MKPointOfInterestCategoryParking: string; + +declare var MKPointOfInterestCategoryPharmacy: string; + +declare var MKPointOfInterestCategoryPolice: string; + +declare var MKPointOfInterestCategoryPostOffice: string; + +declare var MKPointOfInterestCategoryPublicTransport: string; + +declare var MKPointOfInterestCategoryRestaurant: string; + +declare var MKPointOfInterestCategoryRestroom: string; + +declare var MKPointOfInterestCategorySchool: string; + +declare var MKPointOfInterestCategoryStadium: string; + +declare var MKPointOfInterestCategoryStore: string; + +declare var MKPointOfInterestCategoryTheater: string; + +declare var MKPointOfInterestCategoryUniversity: string; + +declare var MKPointOfInterestCategoryWinery: string; + +declare var MKPointOfInterestCategoryZoo: string; + +declare class MKPointOfInterestFilter extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): MKPointOfInterestFilter; // inherited from NSObject + + static new(): MKPointOfInterestFilter; // inherited from NSObject + + static readonly filterExcludingAllCategories: MKPointOfInterestFilter; + + static readonly filterIncludingAllCategories: MKPointOfInterestFilter; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { excludingCategories: NSArray | string[]; }); + + constructor(o: { includingCategories: NSArray | string[]; }); + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + excludesCategory(category: string): boolean; + + includesCategory(category: string): boolean; + + initExcludingCategories(categories: NSArray | string[]): this; + + initIncludingCategories(categories: NSArray | string[]): this; + + initWithCoder(coder: NSCoder): this; } -declare class MKPolygon extends MKMultiPoint implements MKOverlay { +declare class MKPolygon extends MKMultiPoint implements MKGeoJSONObject, MKOverlay { static alloc(): MKPolygon; // inherited from NSObject @@ -1480,7 +2000,7 @@ declare class MKPolygonView extends MKOverlayPathView { initWithPolygon(polygon: MKPolygon): this; } -declare class MKPolyline extends MKMultiPoint implements MKOverlay { +declare class MKPolyline extends MKMultiPoint implements MKGeoJSONObject, MKOverlay { static alloc(): MKPolyline; // inherited from NSObject diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!MediaAccessibility.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!MediaAccessibility.d.ts index dd4fef9d70..6a990e9eba 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!MediaAccessibility.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!MediaAccessibility.d.ts @@ -22,6 +22,8 @@ declare function MACaptionAppearanceCopySelectedLanguages(domain: MACaptionAppea declare function MACaptionAppearanceCopyWindowColor(domain: MACaptionAppearanceDomain, behavior: interop.Pointer | interop.Reference): interop.Unmanaged; +declare function MACaptionAppearanceDidDisplayCaptions(strings: NSArray): void; + declare const enum MACaptionAppearanceDisplayType { kMACaptionAppearanceDisplayTypeForcedOnly = 0, @@ -88,6 +90,12 @@ declare const enum MACaptionAppearanceTextEdgeStyle { kMACaptionAppearanceTextEdgeStyleDropShadow = 5 } +declare function MAImageCaptioningCopyCaption(url: NSURL, error: interop.Pointer | interop.Reference): string; + +declare function MAImageCaptioningCopyMetadataTagPath(): string; + +declare function MAImageCaptioningSetCaption(url: NSURL, string: string, error: interop.Pointer | interop.Reference): boolean; + declare var MAMediaCharacteristicDescribesMusicAndSoundForAccessibility: string; declare var MAMediaCharacteristicDescribesVideoForAccessibility: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!MediaPlayer.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!MediaPlayer.d.ts index 436cc8f02c..87d39cfd77 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!MediaPlayer.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!MediaPlayer.d.ts @@ -199,11 +199,11 @@ declare class MPMediaEntity extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateValuesForPropertiesUsingBlock(properties: NSSet, block: (p1: string, p2: any, p3: interop.Pointer | interop.Reference) => void): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; objectForKeyedSubscript(key: any): any; @@ -456,13 +456,13 @@ declare class MPMediaLibrary extends NSObject implements NSSecureCoding { beginGeneratingLibraryChangeNotifications(): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; endGeneratingLibraryChangeNotifications(): void; getPlaylistWithUUIDCreationMetadataCompletionHandler(uuid: NSUUID, creationMetadata: MPMediaPlaylistCreationMetadata, completionHandler: (p1: MPMediaPlaylist, p2: NSError) => void): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum MPMediaLibraryAuthorizationStatus { @@ -612,9 +612,9 @@ declare class MPMediaPredicate extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum MPMediaPredicateComparison { @@ -687,9 +687,9 @@ declare class MPMediaQuery extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithFilterPredicates(filterPredicates: NSSet): this; @@ -712,9 +712,9 @@ declare class MPMediaQuerySection extends NSObject implements NSCopying, NSSecur copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum MPMediaType { @@ -1727,9 +1727,9 @@ declare class MPVolumeView extends UIView implements NSCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; maximumVolumeSliderImageForState(state: UIControlState): UIImage; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Messages.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Messages.d.ts index 14ba012f5d..39d1c662ff 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Messages.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Messages.d.ts @@ -58,9 +58,9 @@ declare class MSMessage extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithSession(session: MSSession): this; } @@ -215,9 +215,9 @@ declare class MSSession extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class MSSticker extends NSObject { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Metal.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Metal.d.ts index 748aee9e58..97e52ed09b 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Metal.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Metal.d.ts @@ -99,10 +99,18 @@ interface MTLArgumentEncoder extends NSObjectProtocol { setBuffersOffsetsWithRange(buffers: interop.Reference, offsets: interop.Reference, range: NSRange): void; + setComputePipelineStateAtIndex(pipeline: MTLComputePipelineState, index: number): void; + + setComputePipelineStatesWithRange(pipelines: interop.Reference, range: NSRange): void; + setIndirectCommandBufferAtIndex(indirectCommandBuffer: MTLIndirectCommandBuffer, index: number): void; setIndirectCommandBuffersWithRange(buffers: interop.Reference, range: NSRange): void; + setRenderPipelineStateAtIndex(pipeline: MTLRenderPipelineState, index: number): void; + + setRenderPipelineStatesWithRange(pipelines: interop.Reference, range: NSRange): void; + setSamplerStateAtIndex(sampler: MTLSamplerState, index: number): void; setSamplerStatesWithRange(samplers: interop.Reference, range: NSRange): void; @@ -384,12 +392,18 @@ interface MTLBlitCommandEncoder extends MTLCommandEncoder { copyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin(sourceTexture: MTLTexture, sourceSlice: number, sourceLevel: number, sourceOrigin: MTLOrigin, sourceSize: MTLSize, destinationTexture: MTLTexture, destinationSlice: number, destinationLevel: number, destinationOrigin: MTLOrigin): void; + copyFromTextureSourceSliceSourceLevelToTextureDestinationSliceDestinationLevelSliceCountLevelCount(sourceTexture: MTLTexture, sourceSlice: number, sourceLevel: number, destinationTexture: MTLTexture, destinationSlice: number, destinationLevel: number, sliceCount: number, levelCount: number): void; + + copyFromTextureToTexture(sourceTexture: MTLTexture, destinationTexture: MTLTexture): void; + copyIndirectCommandBufferSourceRangeDestinationDestinationIndex(source: MTLIndirectCommandBuffer, sourceRange: NSRange, destination: MTLIndirectCommandBuffer, destinationIndex: number): void; fillBufferRangeValue(buffer: MTLBuffer, range: NSRange, value: number): void; generateMipmapsForTexture(texture: MTLTexture): void; + getTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset(texture: MTLTexture, region: MTLRegion, mipLevel: number, slice: number, resetCounters: boolean, countersBuffer: MTLBuffer, countersBufferOffset: number): void; + optimizeContentsForCPUAccess(texture: MTLTexture): void; optimizeContentsForCPUAccessSliceLevel(texture: MTLTexture, slice: number, level: number): void; @@ -402,6 +416,8 @@ interface MTLBlitCommandEncoder extends MTLCommandEncoder { resetCommandsInBufferWithRange(buffer: MTLIndirectCommandBuffer, range: NSRange): void; + resetTextureAccessCountersRegionMipLevelSlice(texture: MTLTexture, region: MTLRegion, mipLevel: number, slice: number): void; + updateFence(fence: MTLFence): void; waitForFence(fence: MTLFence): void; @@ -473,6 +489,39 @@ declare const enum MTLCPUCacheMode { WriteCombined = 1 } +declare class MTLCaptureDescriptor extends NSObject implements NSCopying { + + static alloc(): MTLCaptureDescriptor; // inherited from NSObject + + static new(): MTLCaptureDescriptor; // inherited from NSObject + + captureObject: any; + + destination: MTLCaptureDestination; + + outputURL: NSURL; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare const enum MTLCaptureDestination { + + DeveloperTools = 1, + + GPUTraceDocument = 2 +} + +declare const enum MTLCaptureError { + + NotSupported = 1, + + AlreadyCapturing = 2, + + InvalidDescriptor = 3 +} + +declare var MTLCaptureErrorDomain: string; + declare class MTLCaptureManager extends NSObject { static alloc(): MTLCaptureManager; // inherited from NSObject @@ -491,11 +540,15 @@ declare class MTLCaptureManager extends NSObject { startCaptureWithCommandQueue(commandQueue: MTLCommandQueue): void; + startCaptureWithDescriptorError(descriptor: MTLCaptureDescriptor): boolean; + startCaptureWithDevice(device: MTLDevice): void; startCaptureWithScope(captureScope: MTLCaptureScope): void; stopCapture(): void; + + supportsDestination(destination: MTLCaptureDestination): boolean; } interface MTLCaptureScope extends NSObjectProtocol { @@ -594,6 +647,8 @@ interface MTLCommandBuffer extends NSObjectProtocol { renderCommandEncoderWithDescriptor(renderPassDescriptor: MTLRenderPassDescriptor): MTLRenderCommandEncoder; + resourceStateCommandEncoder(): MTLResourceStateCommandEncoder; + waitUntilCompleted(): void; waitUntilScheduled(): void; @@ -723,6 +778,10 @@ interface MTLComputeCommandEncoder extends MTLCommandEncoder { dispatchThreadsThreadsPerThreadgroup(threadsPerGrid: MTLSize, threadsPerThreadgroup: MTLSize): void; + executeCommandsInBufferIndirectBufferIndirectBufferOffset(indirectCommandbuffer: MTLIndirectCommandBuffer, indirectRangeBuffer: MTLBuffer, indirectBufferOffset: number): void; + + executeCommandsInBufferWithRange(indirectCommandBuffer: MTLIndirectCommandBuffer, executionRange: NSRange): void; + memoryBarrierWithResourcesCount(resources: interop.Reference, count: number): void; memoryBarrierWithScope(scope: MTLBarrierScope): void; @@ -790,6 +849,8 @@ declare class MTLComputePipelineDescriptor extends NSObject implements NSCopying stageInputDescriptor: MTLStageInputOutputDescriptor; + supportIndirectCommandBuffers: boolean; + threadGroupSizeIsMultipleOfThreadExecutionWidth: boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; @@ -816,6 +877,8 @@ interface MTLComputePipelineState extends NSObjectProtocol { staticThreadgroupMemoryLength: number; + supportIndirectCommandBuffers: boolean; + threadExecutionWidth: number; imageblockMemoryLengthForDimensions(imageblockDimensions: MTLSize): number; @@ -992,6 +1055,8 @@ declare const enum MTLDataType { RenderPipeline = 78, + ComputePipeline = 79, + IndirectCommandBuffer = 80 } @@ -1038,6 +1103,8 @@ interface MTLDevice extends NSObjectProtocol { currentAllocatedSize: number; + hasUnifiedMemory: boolean; + maxArgumentBufferSamplerCount: number; maxBufferLength: number; @@ -1056,6 +1123,12 @@ interface MTLDevice extends NSObjectProtocol { registryID: number; + sparseTileSizeInBytes: number; + + convertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions?(pixelRegions: interop.Reference, tileRegions: interop.Reference, tileSize: MTLSize, mode: MTLSparseTextureRegionAlignmentMode, numRegions: number): void; + + convertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions?(tileRegions: interop.Reference, pixelRegions: interop.Reference, tileSize: MTLSize, numRegions: number): void; + getDefaultSamplePositionsCount(positions: interop.Pointer | interop.Reference, count: number): void; heapBufferSizeAndAlignWithLengthOptions(length: number, options: MTLResourceOptions): MTLSizeAndAlign; @@ -1114,6 +1187,8 @@ interface MTLDevice extends NSObjectProtocol { newLibraryWithURLError(url: NSURL): MTLLibrary; + newRasterizationRateMapWithDescriptor(descriptor: MTLRasterizationRateMapDescriptor): MTLRasterizationRateMap; + newRenderPipelineStateWithDescriptorCompletionHandler(descriptor: MTLRenderPipelineDescriptor, completionHandler: (p1: MTLRenderPipelineState, p2: NSError) => void): void; newRenderPipelineStateWithDescriptorError(descriptor: MTLRenderPipelineDescriptor): MTLRenderPipelineState; @@ -1134,9 +1209,19 @@ interface MTLDevice extends NSObjectProtocol { newTextureWithDescriptor(descriptor: MTLTextureDescriptor): MTLTexture; + newTextureWithDescriptorIosurfacePlane(descriptor: MTLTextureDescriptor, iosurface: any, plane: number): MTLTexture; + + sparseTileSizeWithTextureTypePixelFormatSampleCount(textureType: MTLTextureType, pixelFormat: MTLPixelFormat, sampleCount: number): MTLSize; + + supportsFamily(gpuFamily: MTLGPUFamily): boolean; + supportsFeatureSet(featureSet: MTLFeatureSet): boolean; + supportsRasterizationRateMapWithLayerCount(layerCount: number): boolean; + supportsTextureSampleCount(sampleCount: number): boolean; + + supportsVertexAmplificationCount(count: number): boolean; } declare var MTLDevice: { @@ -1356,6 +1441,44 @@ declare const enum MTLFunctionType { Kernel = 3 } +declare const enum MTLGPUFamily { + + Apple1 = 1001, + + Apple2 = 1002, + + Apple3 = 1003, + + Apple4 = 1004, + + Apple5 = 1005, + + Apple6 = 1006, + + Mac1 = 2001, + + Mac2 = 2002, + + Common1 = 3001, + + Common2 = 3002, + + Common3 = 3003, + + iOSMac1 = 4001, + + iOSMac2 = 4002 +} + +declare const enum MTLHazardTrackingMode { + + Default = 0, + + Untracked = 1, + + Tracked = 2 +} + interface MTLHeap extends NSObjectProtocol { cpuCacheMode: MTLCPUCacheMode; @@ -1364,20 +1487,30 @@ interface MTLHeap extends NSObjectProtocol { device: MTLDevice; + hazardTrackingMode: MTLHazardTrackingMode; + label: string; + resourceOptions: MTLResourceOptions; + size: number; storageMode: MTLStorageMode; + type: MTLHeapType; + usedSize: number; maxAvailableSizeWithAlignment(alignment: number): number; newBufferWithLengthOptions(length: number, options: MTLResourceOptions): MTLBuffer; + newBufferWithLengthOptionsOffset(length: number, options: MTLResourceOptions, offset: number): MTLBuffer; + newTextureWithDescriptor(desc: MTLTextureDescriptor): MTLTexture; + newTextureWithDescriptorOffset(descriptor: MTLTextureDescriptor, offset: number): MTLTexture; + setPurgeableState(state: MTLPurgeableState): MTLPurgeableState; } declare var MTLHeap: { @@ -1393,13 +1526,28 @@ declare class MTLHeapDescriptor extends NSObject implements NSCopying { cpuCacheMode: MTLCPUCacheMode; + hazardTrackingMode: MTLHazardTrackingMode; + + resourceOptions: MTLResourceOptions; + size: number; storageMode: MTLStorageMode; + type: MTLHeapType; + copyWithZone(zone: interop.Pointer | interop.Reference): any; } +declare const enum MTLHeapType { + + Automatic = 0, + + Placement = 1, + + Sparse = 2 +} + declare const enum MTLIndexType { UInt16 = 0, @@ -1411,6 +1559,8 @@ interface MTLIndirectCommandBuffer extends MTLResource { size: number; + indirectComputeCommandAtIndex(commandIndex: number): MTLIndirectComputeCommand; + indirectRenderCommandAtIndex(commandIndex: number): MTLIndirectRenderCommand; resetWithRange(range: NSRange): void; @@ -1430,11 +1580,21 @@ declare class MTLIndirectCommandBufferDescriptor extends NSObject { inheritBuffers: boolean; + inheritPipelineState: boolean; + maxFragmentBufferBindCount: number; + maxKernelBufferBindCount: number; + maxVertexBufferBindCount: number; } +interface MTLIndirectCommandBufferExecutionRange { + location: number; + length: number; +} +declare var MTLIndirectCommandBufferExecutionRange: interop.StructType; + declare const enum MTLIndirectCommandType { Draw = 1, @@ -1443,8 +1603,37 @@ declare const enum MTLIndirectCommandType { DrawPatches = 4, - DrawIndexedPatches = 8 + DrawIndexedPatches = 8, + + ConcurrentDispatch = 32, + + ConcurrentDispatchThreads = 64 +} + +interface MTLIndirectComputeCommand extends NSObjectProtocol { + + clearBarrier(): void; + + concurrentDispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid: MTLSize, threadsPerThreadgroup: MTLSize): void; + + concurrentDispatchThreadsThreadsPerThreadgroup(threadsPerGrid: MTLSize, threadsPerThreadgroup: MTLSize): void; + + reset(): void; + + setBarrier(): void; + + setComputePipelineState(pipelineState: MTLComputePipelineState): void; + + setKernelBufferOffsetAtIndex(buffer: MTLBuffer, offset: number, index: number): void; + + setStageInRegion(region: MTLRegion): void; + + setThreadgroupMemoryLengthAtIndex(length: number, index: number): void; } +declare var MTLIndirectComputeCommand: { + + prototype: MTLIndirectComputeCommand; +}; interface MTLIndirectRenderCommand extends NSObjectProtocol { @@ -1460,6 +1649,8 @@ interface MTLIndirectRenderCommand extends NSObjectProtocol { setFragmentBufferOffsetAtIndex(buffer: MTLBuffer, offset: number, index: number): void; + setRenderPipelineState(pipelineState: MTLRenderPipelineState): void; + setVertexBufferOffsetAtIndex(buffer: MTLBuffer, offset: number, index: number): void; } declare var MTLIndirectRenderCommand: { @@ -1477,7 +1668,9 @@ declare const enum MTLLanguageVersion { Version2_0 = 131072, - Version2_1 = 131073 + Version2_1 = 131073, + + Version2_2 = 131074 } interface MTLLibrary extends NSObjectProtocol { @@ -1525,6 +1718,18 @@ declare const enum MTLLoadAction { Clear = 2 } +interface MTLMapIndirectArguments { + regionOriginX: number; + regionOriginY: number; + regionOriginZ: number; + regionSizeWidth: number; + regionSizeHeight: number; + regionSizeDepth: number; + mipMapLevel: number; + sliceId: number; +} +declare var MTLMapIndirectArguments: interop.StructType; + declare const enum MTLMultisampleDepthResolveFilter { Sample0 = 0, @@ -1853,6 +2058,34 @@ declare const enum MTLPixelFormat { ASTC_12x12_LDR = 218, + ASTC_4x4_HDR = 222, + + ASTC_5x4_HDR = 223, + + ASTC_5x5_HDR = 224, + + ASTC_6x5_HDR = 225, + + ASTC_6x6_HDR = 226, + + ASTC_8x5_HDR = 228, + + ASTC_8x6_HDR = 229, + + ASTC_8x8_HDR = 230, + + ASTC_10x5_HDR = 231, + + ASTC_10x6_HDR = 232, + + ASTC_10x8_HDR = 233, + + ASTC_10x10_HDR = 234, + + ASTC_12x10_HDR = 235, + + ASTC_12x12_HDR = 236, + GBGR422 = 240, BGRG422 = 241, @@ -1934,6 +2167,111 @@ interface MTLQuadTessellationFactorsHalf { } declare var MTLQuadTessellationFactorsHalf: interop.StructType; +declare class MTLRasterizationRateLayerArray extends NSObject { + + static alloc(): MTLRasterizationRateLayerArray; // inherited from NSObject + + static new(): MTLRasterizationRateLayerArray; // inherited from NSObject + [index: number]: MTLRasterizationRateLayerDescriptor; + + objectAtIndexedSubscript(layerIndex: number): MTLRasterizationRateLayerDescriptor; + + setObjectAtIndexedSubscript(layer: MTLRasterizationRateLayerDescriptor, layerIndex: number): void; +} + +declare class MTLRasterizationRateLayerDescriptor extends NSObject implements NSCopying { + + static alloc(): MTLRasterizationRateLayerDescriptor; // inherited from NSObject + + static new(): MTLRasterizationRateLayerDescriptor; // inherited from NSObject + + readonly horizontal: MTLRasterizationRateSampleArray; + + readonly horizontalSampleStorage: interop.Pointer | interop.Reference; + + readonly sampleCount: MTLSize; + + readonly vertical: MTLRasterizationRateSampleArray; + + readonly verticalSampleStorage: interop.Pointer | interop.Reference; + + constructor(o: { sampleCount: MTLSize; }); + + constructor(o: { sampleCount: MTLSize; horizontal: interop.Pointer | interop.Reference; vertical: interop.Pointer | interop.Reference; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + initWithSampleCount(sampleCount: MTLSize): this; + + initWithSampleCountHorizontalVertical(sampleCount: MTLSize, horizontal: interop.Pointer | interop.Reference, vertical: interop.Pointer | interop.Reference): this; +} + +interface MTLRasterizationRateMap extends NSObjectProtocol { + + device: MTLDevice; + + label: string; + + layerCount: number; + + parameterBufferSizeAndAlign: MTLSizeAndAlign; + + physicalGranularity: MTLSize; + + screenSize: MTLSize; + + copyParameterDataToBufferOffset(buffer: MTLBuffer, offset: number): void; + + mapPhysicalToScreenCoordinatesForLayer(physicalCoordinates: MTLSamplePosition, layerIndex: number): MTLSamplePosition; + + mapScreenToPhysicalCoordinatesForLayer(screenCoordinates: MTLSamplePosition, layerIndex: number): MTLSamplePosition; + + physicalSizeForLayer(layerIndex: number): MTLSize; +} +declare var MTLRasterizationRateMap: { + + prototype: MTLRasterizationRateMap; +}; + +declare class MTLRasterizationRateMapDescriptor extends NSObject implements NSCopying { + + static alloc(): MTLRasterizationRateMapDescriptor; // inherited from NSObject + + static new(): MTLRasterizationRateMapDescriptor; // inherited from NSObject + + static rasterizationRateMapDescriptorWithScreenSize(screenSize: MTLSize): MTLRasterizationRateMapDescriptor; + + static rasterizationRateMapDescriptorWithScreenSizeLayer(screenSize: MTLSize, layer: MTLRasterizationRateLayerDescriptor): MTLRasterizationRateMapDescriptor; + + static rasterizationRateMapDescriptorWithScreenSizeLayerCountLayers(screenSize: MTLSize, layerCount: number, layers: interop.Pointer | interop.Reference): MTLRasterizationRateMapDescriptor; + + label: string; + + readonly layerCount: number; + + readonly layers: MTLRasterizationRateLayerArray; + + screenSize: MTLSize; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + layerAtIndex(layerIndex: number): MTLRasterizationRateLayerDescriptor; + + setLayerAtIndex(layer: MTLRasterizationRateLayerDescriptor, layerIndex: number): void; +} + +declare class MTLRasterizationRateSampleArray extends NSObject { + + static alloc(): MTLRasterizationRateSampleArray; // inherited from NSObject + + static new(): MTLRasterizationRateSampleArray; // inherited from NSObject + [index: number]: number; + + objectAtIndexedSubscript(index: number): number; + + setObjectAtIndexedSubscript(value: number, index: number): void; +} + declare const enum MTLReadWriteTextureTier { TierNone = 0, @@ -1981,6 +2319,8 @@ interface MTLRenderCommandEncoder extends MTLCommandEncoder { drawPrimitivesVertexStartVertexCountInstanceCountBaseInstance(primitiveType: MTLPrimitiveType, vertexStart: number, vertexCount: number, instanceCount: number, baseInstance: number): void; + executeCommandsInBufferIndirectBufferIndirectBufferOffset(indirectCommandbuffer: MTLIndirectCommandBuffer, indirectRangeBuffer: MTLBuffer, indirectBufferOffset: number): void; + executeCommandsInBufferWithRange(indirectCommandBuffer: MTLIndirectCommandBuffer, executionRange: NSRange): void; setBlendColorRedGreenBlueAlpha(red: number, green: number, blue: number, alpha: number): void; @@ -2065,6 +2405,8 @@ interface MTLRenderCommandEncoder extends MTLCommandEncoder { setTriangleFillMode(fillMode: MTLTriangleFillMode): void; + setVertexAmplificationCountViewMappings(count: number, viewMappings: interop.Pointer | interop.Reference): void; + setVertexBufferOffsetAtIndex(offset: number, index: number): void; setVertexBufferOffsetAtIndex(buffer: MTLBuffer, offset: number, index: number): void; @@ -2095,12 +2437,20 @@ interface MTLRenderCommandEncoder extends MTLCommandEncoder { useHeap(heap: MTLHeap): void; + useHeapStages(heap: MTLHeap, stages: MTLRenderStages): void; + useHeapsCount(heaps: interop.Reference, count: number): void; + useHeapsCountStages(heaps: interop.Reference, count: number, stages: MTLRenderStages): void; + useResourceUsage(resource: MTLResource, usage: MTLResourceUsage): void; + useResourceUsageStages(resource: MTLResource, usage: MTLResourceUsage, stages: MTLRenderStages): void; + useResourcesCountUsage(resources: interop.Reference, count: number, usage: MTLResourceUsage): void; + useResourcesCountUsageStages(resources: interop.Reference, count: number, usage: MTLResourceUsage, stages: MTLRenderStages): void; + waitForFenceBeforeStages(fence: MTLFence, stages: MTLRenderStages): void; } declare var MTLRenderCommandEncoder: { @@ -2187,6 +2537,8 @@ declare class MTLRenderPassDescriptor extends NSObject implements NSCopying { imageblockSampleLength: number; + rasterizationRateMap: MTLRasterizationRateMap; + renderTargetArrayLength: number; renderTargetHeight: number; @@ -2284,6 +2636,8 @@ declare class MTLRenderPipelineDescriptor extends NSObject implements NSCopying maxTessellationFactor: number; + maxVertexAmplificationCount: number; + rasterSampleCount: number; rasterizationEnabled: boolean; @@ -2366,10 +2720,16 @@ interface MTLResource extends NSObjectProtocol { device: MTLDevice; + hazardTrackingMode: MTLHazardTrackingMode; + heap: MTLHeap; + heapOffset: number; + label: string; + resourceOptions: MTLResourceOptions; + storageMode: MTLStorageMode; isAliasable(): boolean; @@ -2397,13 +2757,34 @@ declare const enum MTLResourceOptions { StorageModeMemoryless = 48, + HazardTrackingModeDefault = 0, + HazardTrackingModeUntracked = 256, + HazardTrackingModeTracked = 512, + OptionCPUCacheModeDefault = 0, OptionCPUCacheModeWriteCombined = 1 } +interface MTLResourceStateCommandEncoder extends MTLCommandEncoder { + + updateFence(fence: MTLFence): void; + + updateTextureMappingModeIndirectBufferIndirectBufferOffset(texture: MTLTexture, mode: MTLSparseTextureMappingMode, indirectBuffer: MTLBuffer, indirectBufferOffset: number): void; + + updateTextureMappingModeRegionMipLevelSlice(texture: MTLTexture, mode: MTLSparseTextureMappingMode, region: MTLRegion, mipLevel: number, slice: number): void; + + updateTextureMappingsModeRegionsMipLevelsSlicesNumRegions(texture: MTLTexture, mode: MTLSparseTextureMappingMode, regions: interop.Reference, mipLevels: interop.Reference, slices: interop.Reference, numRegions: number): void; + + waitForFence(fence: MTLFence): void; +} +declare var MTLResourceStateCommandEncoder: { + + prototype: MTLResourceStateCommandEncoder; +}; + declare const enum MTLResourceUsage { Read = 1, @@ -2531,9 +2912,9 @@ declare class MTLSharedEventHandle extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class MTLSharedEventListener extends NSObject { @@ -2562,6 +2943,20 @@ interface MTLSizeAndAlign { } declare var MTLSizeAndAlign: interop.StructType; +declare const enum MTLSparseTextureMappingMode { + + Map = 0, + + Unmap = 1 +} + +declare const enum MTLSparseTextureRegionAlignmentMode { + + Outward = 0, + + Inward = 1 +} + interface MTLStageInRegionIndirectArguments { stageInOrigin: interop.Reference; stageInSize: interop.Reference; @@ -2767,10 +3162,18 @@ interface MTLTexture extends MTLResource { depth: number; + firstMipmapInTail: number; + framebufferOnly: boolean; height: number; + iosurface: any; + + iosurfacePlane: number; + + isSparse: boolean; + mipmapLevelCount: number; parentRelativeLevel: number; @@ -2785,6 +3188,10 @@ interface MTLTexture extends MTLResource { sampleCount: number; + swizzle: MTLTextureSwizzleChannels; + + tailSizeInBytes: number; + textureType: MTLTextureType; usage: MTLTextureUsage; @@ -2799,6 +3206,8 @@ interface MTLTexture extends MTLResource { newTextureViewWithPixelFormatTextureTypeLevelsSlices(pixelFormat: MTLPixelFormat, textureType: MTLTextureType, levelRange: NSRange, sliceRange: NSRange): MTLTexture; + newTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle(pixelFormat: MTLPixelFormat, textureType: MTLTextureType, levelRange: NSRange, sliceRange: NSRange, swizzle: MTLTextureSwizzleChannels): MTLTexture; + replaceRegionMipmapLevelSliceWithBytesBytesPerRowBytesPerImage(region: MTLRegion, level: number, slice: number, pixelBytes: interop.Pointer | interop.Reference, bytesPerRow: number, bytesPerImage: number): void; replaceRegionMipmapLevelWithBytesBytesPerRow(region: MTLRegion, level: number, pixelBytes: interop.Pointer | interop.Reference, bytesPerRow: number): void; @@ -2828,6 +3237,8 @@ declare class MTLTextureDescriptor extends NSObject implements NSCopying { depth: number; + hazardTrackingMode: MTLHazardTrackingMode; + height: number; mipmapLevelCount: number; @@ -2840,6 +3251,8 @@ declare class MTLTextureDescriptor extends NSObject implements NSCopying { storageMode: MTLStorageMode; + swizzle: MTLTextureSwizzleChannels; + textureType: MTLTextureType; usage: MTLTextureUsage; @@ -2864,6 +3277,29 @@ declare class MTLTextureReferenceType extends MTLType { readonly textureType: MTLTextureType; } +declare const enum MTLTextureSwizzle { + + Zero = 0, + + One = 1, + + Red = 2, + + Green = 3, + + Blue = 4, + + Alpha = 5 +} + +interface MTLTextureSwizzleChannels { + red: MTLTextureSwizzle; + green: MTLTextureSwizzle; + blue: MTLTextureSwizzle; + alpha: MTLTextureSwizzle; +} +declare var MTLTextureSwizzleChannels: interop.StructType; + declare const enum MTLTextureType { Type1D = 0, @@ -2970,6 +3406,12 @@ declare class MTLType extends NSObject { readonly dataType: MTLDataType; } +interface MTLVertexAmplificationViewMapping { + viewportArrayIndexOffset: number; + renderTargetArrayIndexOffset: number; +} +declare var MTLVertexAmplificationViewMapping: interop.StructType; + declare class MTLVertexAttribute extends NSObject { static alloc(): MTLVertexAttribute; // inherited from NSObject diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!MetalKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!MetalKit.d.ts index fb2a31cad3..84984946bd 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!MetalKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!MetalKit.d.ts @@ -270,12 +270,14 @@ declare class MTKView extends UIView implements CALayerDelegate, NSCoding { colorPixelFormat: MTLPixelFormat; - readonly currentDrawable: MTLDrawable; + readonly currentDrawable: CAMetalDrawable; readonly currentRenderPassDescriptor: MTLRenderPassDescriptor; delegate: MTKViewDelegate; + depthStencilAttachmentTextureUsage: MTLTextureUsage; + depthStencilPixelFormat: MTLPixelFormat; readonly depthStencilTexture: MTLTexture; @@ -288,10 +290,16 @@ declare class MTKView extends UIView implements CALayerDelegate, NSCoding { framebufferOnly: boolean; + multisampleColorAttachmentTextureUsage: MTLTextureUsage; + readonly multisampleColorTexture: MTLTexture; paused: boolean; + readonly preferredDevice: MTLDevice; + + readonly preferredDrawableSize: CGSize; + preferredFramesPerSecond: number; presentsWithTransaction: boolean; @@ -326,9 +334,9 @@ declare class MTKView extends UIView implements CALayerDelegate, NSCoding { drawLayerInContext(layer: CALayer, ctx: any): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithFrameDevice(frameRect: CGRect, device: MTLDevice): this; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!MetalPerformanceShaders.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!MetalPerformanceShaders.d.ts index b2513133f7..d26aa9e15c 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!MetalPerformanceShaders.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!MetalPerformanceShaders.d.ts @@ -1,4 +1,15 @@ +declare const enum MPSDeviceOptions { + + Default = 0, + + LowPower = 1, + + SkipRemovable = 2 +} + +declare function MPSGetPreferredDevice(options: MPSDeviceOptions): MTLDevice; + declare function MPSHintTemporaryMemoryHighWaterMark(cmdBuf: MTLCommandBuffer, bytes: number): void; declare function MPSSetHeapCacheDuration(cmdBuf: MTLCommandBuffer, seconds: number): void; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!MetricKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!MetricKit.d.ts new file mode 100644 index 0000000000..a8281ec94b --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!MetricKit.d.ts @@ -0,0 +1,371 @@ + +declare class MXAppLaunchMetric extends MXMetric { + + static alloc(): MXAppLaunchMetric; // inherited from NSObject + + static new(): MXAppLaunchMetric; // inherited from NSObject + + readonly histogrammedApplicationResumeTime: MXHistogram; + + readonly histogrammedTimeToFirstDraw: MXHistogram; +} + +declare class MXAppResponsivenessMetric extends MXMetric { + + static alloc(): MXAppResponsivenessMetric; // inherited from NSObject + + static new(): MXAppResponsivenessMetric; // inherited from NSObject + + readonly histogrammedApplicationHangTime: MXHistogram; +} + +declare class MXAppRunTimeMetric extends MXMetric { + + static alloc(): MXAppRunTimeMetric; // inherited from NSObject + + static new(): MXAppRunTimeMetric; // inherited from NSObject + + readonly cumulativeBackgroundAudioTime: NSMeasurement; + + readonly cumulativeBackgroundLocationTime: NSMeasurement; + + readonly cumulativeBackgroundTime: NSMeasurement; + + readonly cumulativeForegroundTime: NSMeasurement; +} + +declare class MXAverage extends NSObject implements NSSecureCoding { + + static alloc(): MXAverage; // inherited from NSObject + + static new(): MXAverage; // inherited from NSObject + + readonly averageMeasurement: NSMeasurement; + + readonly sampleCount: number; + + readonly standardDeviation: number; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MXCPUMetric extends MXMetric { + + static alloc(): MXCPUMetric; // inherited from NSObject + + static new(): MXCPUMetric; // inherited from NSObject + + readonly cumulativeCPUTime: NSMeasurement; +} + +declare class MXCellularConditionMetric extends MXMetric { + + static alloc(): MXCellularConditionMetric; // inherited from NSObject + + static new(): MXCellularConditionMetric; // inherited from NSObject + + readonly histogrammedCellularConditionTime: MXHistogram; +} + +declare class MXDiskIOMetric extends MXMetric { + + static alloc(): MXDiskIOMetric; // inherited from NSObject + + static new(): MXDiskIOMetric; // inherited from NSObject + + readonly cumulativeLogicalWrites: NSMeasurement; +} + +declare class MXDisplayMetric extends MXMetric { + + static alloc(): MXDisplayMetric; // inherited from NSObject + + static new(): MXDisplayMetric; // inherited from NSObject + + readonly averagePixelLuminance: MXAverage; +} + +declare class MXGPUMetric extends MXMetric { + + static alloc(): MXGPUMetric; // inherited from NSObject + + static new(): MXGPUMetric; // inherited from NSObject + + readonly cumulativeGPUTime: NSMeasurement; +} + +declare class MXHistogram extends NSObject implements NSSecureCoding { + + static alloc(): MXHistogram; // inherited from NSObject + + static new(): MXHistogram; // inherited from NSObject + + readonly bucketEnumerator: NSEnumerator>; + + readonly totalBucketCount: number; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MXHistogramBucket extends NSObject implements NSSecureCoding { + + static alloc(): MXHistogramBucket; // inherited from NSObject + + static new(): MXHistogramBucket; // inherited from NSObject + + readonly bucketCount: number; + + readonly bucketEnd: NSMeasurement; + + readonly bucketStart: NSMeasurement; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MXLocationActivityMetric extends MXMetric { + + static alloc(): MXLocationActivityMetric; // inherited from NSObject + + static new(): MXLocationActivityMetric; // inherited from NSObject + + readonly cumulativeBestAccuracyForNavigationTime: NSMeasurement; + + readonly cumulativeBestAccuracyTime: NSMeasurement; + + readonly cumulativeHundredMetersAccuracyTime: NSMeasurement; + + readonly cumulativeKilometerAccuracyTime: NSMeasurement; + + readonly cumulativeNearestTenMetersAccuracyTime: NSMeasurement; + + readonly cumulativeThreeKilometersAccuracyTime: NSMeasurement; +} + +declare class MXMemoryMetric extends MXMetric { + + static alloc(): MXMemoryMetric; // inherited from NSObject + + static new(): MXMemoryMetric; // inherited from NSObject + + readonly averageSuspendedMemory: MXAverage; + + readonly peakMemoryUsage: NSMeasurement; +} + +declare class MXMetaData extends NSObject implements NSSecureCoding { + + static alloc(): MXMetaData; // inherited from NSObject + + static new(): MXMetaData; // inherited from NSObject + + readonly applicationBuildVersion: string; + + readonly deviceType: string; + + readonly osVersion: string; + + readonly regionFormat: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + DictionaryRepresentation(): NSDictionary; + + JSONRepresentation(): NSData; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MXMetric extends NSObject implements NSSecureCoding { + + static alloc(): MXMetric; // inherited from NSObject + + static new(): MXMetric; // inherited from NSObject + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + DictionaryRepresentation(): NSDictionary; + + JSONRepresentation(): NSData; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MXMetricManager extends NSObject { + + static alloc(): MXMetricManager; // inherited from NSObject + + static makeLogHandleWithCategory(category: string): NSObject; + + static new(): MXMetricManager; // inherited from NSObject + + readonly pastPayloads: NSArray; + + static readonly sharedManager: MXMetricManager; + + addSubscriber(subscriber: MXMetricManagerSubscriber): void; + + removeSubscriber(subscriber: MXMetricManagerSubscriber): void; +} + +interface MXMetricManagerSubscriber extends NSObjectProtocol { + + didReceiveMetricPayloads(payloads: NSArray | MXMetricPayload[]): void; +} +declare var MXMetricManagerSubscriber: { + + prototype: MXMetricManagerSubscriber; +}; + +declare class MXMetricPayload extends NSObject implements NSSecureCoding { + + static alloc(): MXMetricPayload; // inherited from NSObject + + static new(): MXMetricPayload; // inherited from NSObject + + readonly applicationLaunchMetrics: MXAppLaunchMetric; + + readonly applicationResponsivenessMetrics: MXAppResponsivenessMetric; + + readonly applicationTimeMetrics: MXAppRunTimeMetric; + + readonly cellularConditionMetrics: MXCellularConditionMetric; + + readonly cpuMetrics: MXCPUMetric; + + readonly diskIOMetrics: MXDiskIOMetric; + + readonly displayMetrics: MXDisplayMetric; + + readonly gpuMetrics: MXGPUMetric; + + readonly includesMultipleApplicationVersions: boolean; + + readonly latestApplicationVersion: string; + + readonly locationActivityMetrics: MXLocationActivityMetric; + + readonly memoryMetrics: MXMemoryMetric; + + readonly metaData: MXMetaData; + + readonly networkTransferMetrics: MXNetworkTransferMetric; + + readonly signpostMetrics: NSArray; + + readonly timeStampBegin: Date; + + readonly timeStampEnd: Date; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + DictionaryRepresentation(): NSDictionary; + + JSONRepresentation(): NSData; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MXNetworkTransferMetric extends MXMetric { + + static alloc(): MXNetworkTransferMetric; // inherited from NSObject + + static new(): MXNetworkTransferMetric; // inherited from NSObject + + readonly cumulativeCellularDownload: NSMeasurement; + + readonly cumulativeCellularUpload: NSMeasurement; + + readonly cumulativeWifiDownload: NSMeasurement; + + readonly cumulativeWifiUpload: NSMeasurement; +} + +declare class MXSignpostIntervalData extends NSObject implements NSSecureCoding { + + static alloc(): MXSignpostIntervalData; // inherited from NSObject + + static new(): MXSignpostIntervalData; // inherited from NSObject + + readonly averageMemory: MXAverage; + + readonly cumulativeCPUTime: NSMeasurement; + + readonly cumulativeLogicalWrites: NSMeasurement; + + readonly histogrammedSignpostDuration: MXHistogram; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class MXSignpostMetric extends MXMetric { + + static alloc(): MXSignpostMetric; // inherited from NSObject + + static new(): MXSignpostMetric; // inherited from NSObject + + readonly signpostCategory: string; + + readonly signpostIntervalData: MXSignpostIntervalData; + + readonly signpostName: string; + + readonly totalCount: number; +} + +declare class MXUnitAveragePixelLuminance extends NSDimension { + + static alloc(): MXUnitAveragePixelLuminance; // inherited from NSObject + + static baseUnit(): MXUnitAveragePixelLuminance; // inherited from NSDimension + + static new(): MXUnitAveragePixelLuminance; // inherited from NSObject + + static readonly apl: MXUnitAveragePixelLuminance; +} + +declare class MXUnitSignalBars extends NSDimension { + + static alloc(): MXUnitSignalBars; // inherited from NSObject + + static baseUnit(): MXUnitSignalBars; // inherited from NSDimension + + static new(): MXUnitSignalBars; // inherited from NSObject + + static readonly bars: MXUnitSignalBars; +} diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!ModelIO.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!ModelIO.d.ts index fe8e5a3973..3595d3ee7f 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!ModelIO.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!ModelIO.d.ts @@ -22,6 +22,29 @@ declare class MDLAnimatedMatrix4x4 extends MDLAnimatedValue { setFloat4x4AtTime(value: simd_float4x4, time: number): void; } +declare class MDLAnimatedQuaternion extends MDLAnimatedValue { + + static alloc(): MDLAnimatedQuaternion; // inherited from NSObject + + static new(): MDLAnimatedQuaternion; // inherited from NSObject + + doubleQuaternionAtTime(time: number): simd_quatd; + + floatQuaternionAtTime(time: number): simd_quatf; + + getDoubleQuaternionArrayMaxCount(valuesArray: interop.Pointer | interop.Reference, maxCount: number): number; + + getFloatQuaternionArrayMaxCount(valuesArray: interop.Pointer | interop.Reference, maxCount: number): number; + + resetWithDoubleQuaternionArrayAtTimesCount(valuesArray: interop.Pointer | interop.Reference, timesArray: interop.Pointer | interop.Reference, count: number): void; + + resetWithFloatQuaternionArrayAtTimesCount(valuesArray: interop.Pointer | interop.Reference, timesArray: interop.Pointer | interop.Reference, count: number): void; + + setDoubleQuaternionAtTime(value: simd_quatd, time: number): void; + + setFloatQuaternionAtTime(value: simd_quatf, time: number): void; +} + declare class MDLAnimatedQuaternionArray extends MDLAnimatedValue { static alloc(): MDLAnimatedQuaternionArray; // inherited from NSObject @@ -2326,6 +2349,23 @@ declare const enum MDLTransformOpRotationOrder { ZYX = 6 } +declare class MDLTransformOrientOp extends NSObject implements MDLTransformOp { + + static alloc(): MDLTransformOrientOp; // inherited from NSObject + + static new(): MDLTransformOrientOp; // inherited from NSObject + + readonly animatedValue: MDLAnimatedQuaternion; + + readonly name: string; // inherited from MDLTransformOp + + IsInverseOp(): boolean; + + double4x4AtTime(time: number): simd_double4x4; + + float4x4AtTime(time: number): simd_float4x4; +} + declare class MDLTransformRotateOp extends NSObject implements MDLTransformOp { static alloc(): MDLTransformRotateOp; // inherited from NSObject @@ -2445,6 +2485,8 @@ declare class MDLTransformStack extends NSObject implements MDLTransformComponen addMatrixOpInverse(animatedValueName: string, inverse: boolean): MDLTransformMatrixOp; + addOrientOpInverse(animatedValueName: string, inverse: boolean): MDLTransformOrientOp; + addRotateOpOrderInverse(animatedValueName: string, order: MDLTransformOpRotationOrder, inverse: boolean): MDLTransformRotateOp; addRotateXOpInverse(animatedValueName: string, inverse: boolean): MDLTransformRotateXOp; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!MultipeerConnectivity.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!MultipeerConnectivity.d.ts index 0264c979ae..c87aaf4926 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!MultipeerConnectivity.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!MultipeerConnectivity.d.ts @@ -225,9 +225,9 @@ declare class MCPeerID extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDisplayName(myDisplayName: string): this; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!NaturalLanguage.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!NaturalLanguage.d.ts index ede3ca3d93..a603f9bff1 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!NaturalLanguage.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!NaturalLanguage.d.ts @@ -1,4 +1,89 @@ +declare const enum NLDistanceType { + + Cosine = 0 +} + +declare class NLEmbedding extends NSObject { + + static alloc(): NLEmbedding; // inherited from NSObject + + static currentRevisionForLanguage(language: string): number; + + static embeddingWithContentsOfURLError(url: NSURL): NLEmbedding; + + static new(): NLEmbedding; // inherited from NSObject + + static supportedRevisionsForLanguage(language: string): NSIndexSet; + + static wordEmbeddingForLanguage(language: string): NLEmbedding; + + static wordEmbeddingForLanguageRevision(language: string, revision: number): NLEmbedding; + + static writeEmbeddingForDictionaryLanguageRevisionToURLError(dictionary: NSDictionary>, language: string, revision: number, url: NSURL): boolean; + + readonly dimension: number; + + readonly language: string; + + readonly revision: number; + + readonly vocabularySize: number; + + containsString(string: string): boolean; + + distanceBetweenStringAndStringDistanceType(firstString: string, secondString: string, distanceType: NLDistanceType): number; + + enumerateNeighborsForStringMaximumCountDistanceTypeUsingBlock(string: string, maxCount: number, distanceType: NLDistanceType, block: (p1: string, p2: number, p3: interop.Pointer | interop.Reference) => void): void; + + enumerateNeighborsForStringMaximumCountMaximumDistanceDistanceTypeUsingBlock(string: string, maxCount: number, maxDistance: number, distanceType: NLDistanceType, block: (p1: string, p2: number, p3: interop.Pointer | interop.Reference) => void): void; + + enumerateNeighborsForVectorMaximumCountDistanceTypeUsingBlock(vector: NSArray | number[], maxCount: number, distanceType: NLDistanceType, block: (p1: string, p2: number, p3: interop.Pointer | interop.Reference) => void): void; + + enumerateNeighborsForVectorMaximumCountMaximumDistanceDistanceTypeUsingBlock(vector: NSArray | number[], maxCount: number, maxDistance: number, distanceType: NLDistanceType, block: (p1: string, p2: number, p3: interop.Pointer | interop.Reference) => void): void; + + getVectorForString(vector: interop.Pointer | interop.Reference, string: string): boolean; + + neighborsForStringMaximumCountDistanceType(string: string, maxCount: number, distanceType: NLDistanceType): NSArray; + + neighborsForStringMaximumCountMaximumDistanceDistanceType(string: string, maxCount: number, maxDistance: number, distanceType: NLDistanceType): NSArray; + + neighborsForVectorMaximumCountDistanceType(vector: NSArray | number[], maxCount: number, distanceType: NLDistanceType): NSArray; + + neighborsForVectorMaximumCountMaximumDistanceDistanceType(vector: NSArray | number[], maxCount: number, maxDistance: number, distanceType: NLDistanceType): NSArray; + + vectorForString(string: string): NSArray; +} + +declare class NLGazetteer extends NSObject { + + static alloc(): NLGazetteer; // inherited from NSObject + + static gazetteerWithContentsOfURLError(url: NSURL): NLGazetteer; + + static new(): NLGazetteer; // inherited from NSObject + + static writeGazetteerForDictionaryLanguageToURLError(dictionary: NSDictionary>, language: string, url: NSURL): boolean; + + readonly data: NSData; + + readonly language: string; + + constructor(o: { contentsOfURL: NSURL; }); + + constructor(o: { data: NSData; }); + + constructor(o: { dictionary: NSDictionary>; language: string; }); + + initWithContentsOfURLError(url: NSURL): this; + + initWithDataError(data: NSData): this; + + initWithDictionaryLanguageError(dictionary: NSDictionary>, language: string): this; + + labelForString(string: string): string; +} + declare var NLLanguageAmharic: string; declare var NLLanguageArabic: string; @@ -173,9 +258,9 @@ declare class NLModelConfiguration extends NSObject implements NSCopying, NSSecu copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum NLModelType { @@ -249,6 +334,8 @@ declare var NLTagSchemeNameTypeOrLexicalClass: string; declare var NLTagSchemeScript: string; +declare var NLTagSchemeSentimentScore: string; + declare var NLTagSchemeTokenType: string; declare var NLTagSentenceTerminator: string; @@ -269,6 +356,8 @@ declare class NLTagger extends NSObject { static new(): NLTagger; // inherited from NSObject + static requestAssetsForLanguageTagSchemeCompletionHandler(language: string, tagScheme: string, completionHandler: (p1: NLTaggerAssetsResult, p2: NSError) => void): void; + readonly dominantLanguage: string; string: string; @@ -279,10 +368,14 @@ declare class NLTagger extends NSObject { enumerateTagsInRangeUnitSchemeOptionsUsingBlock(range: NSRange, unit: NLTokenUnit, scheme: string, options: NLTaggerOptions, block: (p1: string, p2: NSRange, p3: interop.Pointer | interop.Reference) => void): void; + gazetteersForTagScheme(tagScheme: string): NSArray; + initWithTagSchemes(tagSchemes: NSArray | string[]): this; modelsForTagScheme(tagScheme: string): NSArray; + setGazetteersForTagScheme(gazetteers: NSArray | NLGazetteer[], tagScheme: string): void; + setLanguageRange(language: string, range: NSRange): void; setModelsForTagScheme(models: NSArray | NLModel[], tagScheme: string): void; @@ -296,6 +389,15 @@ declare class NLTagger extends NSObject { tokenRangeAtIndexUnit(characterIndex: number, unit: NLTokenUnit): NSRange; } +declare const enum NLTaggerAssetsResult { + + Available = 0, + + NotAvailable = 1, + + Error = 2 +} + declare const enum NLTaggerOptions { OmitWords = 1, diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Network.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Network.d.ts index f1446bd14f..3417bcf446 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Network.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Network.d.ts @@ -6,6 +6,27 @@ declare var OS_nw_advertise_descriptor: { prototype: OS_nw_advertise_descriptor; }; +interface OS_nw_browse_descriptor extends NSObjectProtocol { +} +declare var OS_nw_browse_descriptor: { + + prototype: OS_nw_browse_descriptor; +}; + +interface OS_nw_browse_result extends NSObjectProtocol { +} +declare var OS_nw_browse_result: { + + prototype: OS_nw_browse_result; +}; + +interface OS_nw_browser extends NSObjectProtocol { +} +declare var OS_nw_browser: { + + prototype: OS_nw_browser; +}; + interface OS_nw_connection extends NSObjectProtocol { } declare var OS_nw_connection: { @@ -20,6 +41,13 @@ declare var OS_nw_content_context: { prototype: OS_nw_content_context; }; +interface OS_nw_data_transfer_report extends NSObjectProtocol { +} +declare var OS_nw_data_transfer_report: { + + prototype: OS_nw_data_transfer_report; +}; + interface OS_nw_endpoint extends NSObjectProtocol { } declare var OS_nw_endpoint: { @@ -34,6 +62,27 @@ declare var OS_nw_error: { prototype: OS_nw_error; }; +interface OS_nw_establishment_report extends NSObjectProtocol { +} +declare var OS_nw_establishment_report: { + + prototype: OS_nw_establishment_report; +}; + +interface OS_nw_ethernet_channel extends NSObjectProtocol { +} +declare var OS_nw_ethernet_channel: { + + prototype: OS_nw_ethernet_channel; +}; + +interface OS_nw_framer extends NSObjectProtocol { +} +declare var OS_nw_framer: { + + prototype: OS_nw_framer; +}; + interface OS_nw_interface extends NSObjectProtocol { } declare var OS_nw_interface: { @@ -104,6 +153,27 @@ declare var OS_nw_protocol_stack: { prototype: OS_nw_protocol_stack; }; +interface OS_nw_txt_record extends NSObjectProtocol { +} +declare var OS_nw_txt_record: { + + prototype: OS_nw_txt_record; +}; + +interface OS_nw_ws_request extends NSObjectProtocol { +} +declare var OS_nw_ws_request: { + + prototype: OS_nw_ws_request; +}; + +interface OS_nw_ws_response extends NSObjectProtocol { +} +declare var OS_nw_ws_response: { + + prototype: OS_nw_ws_response; +}; + declare var _nw_connection_send_idempotent_content: (p1: NSObject) => void; declare var _nw_content_context_default_message: NSObject; @@ -112,6 +182,8 @@ declare var _nw_content_context_default_stream: NSObject; declare var _nw_content_context_final_send: NSObject; +declare var _nw_data_transfer_report_all_paths: number; + declare var _nw_parameters_configure_protocol_default_configuration: (p1: NSObject) => void; declare var _nw_parameters_configure_protocol_disable: (p1: NSObject) => void; @@ -122,6 +194,8 @@ declare var kNWErrorDomainPOSIX: string; declare var kNWErrorDomainTLS: string; +declare function nw_advertise_descriptor_copy_txt_record_object(advertise_descriptor: NSObject): NSObject; + declare function nw_advertise_descriptor_create_bonjour_service(name: string, type: string, domain: string): NSObject; declare function nw_advertise_descriptor_get_no_auto_rename(advertise_descriptor: NSObject): boolean; @@ -130,6 +204,71 @@ declare function nw_advertise_descriptor_set_no_auto_rename(advertise_descriptor declare function nw_advertise_descriptor_set_txt_record(advertise_descriptor: NSObject, txt_record: interop.Pointer | interop.Reference, txt_length: number): void; +declare function nw_advertise_descriptor_set_txt_record_object(advertise_descriptor: NSObject, txt_record: NSObject): void; + +declare function nw_browse_descriptor_create_bonjour_service(type: string, domain: string): NSObject; + +declare function nw_browse_descriptor_get_bonjour_service_domain(descriptor: NSObject): string; + +declare function nw_browse_descriptor_get_bonjour_service_type(descriptor: NSObject): string; + +declare function nw_browse_descriptor_get_include_txt_record(descriptor: NSObject): boolean; + +declare function nw_browse_descriptor_set_include_txt_record(descriptor: NSObject, include_txt_record: boolean): void; + +declare const nw_browse_result_change_identical: number; + +declare const nw_browse_result_change_interface_added: number; + +declare const nw_browse_result_change_interface_removed: number; + +declare const nw_browse_result_change_invalid: number; + +declare const nw_browse_result_change_result_added: number; + +declare const nw_browse_result_change_result_removed: number; + +declare const nw_browse_result_change_txt_record_changed: number; + +declare function nw_browse_result_copy_endpoint(result: NSObject): NSObject; + +declare function nw_browse_result_copy_txt_record_object(result: NSObject): NSObject; + +declare function nw_browse_result_enumerate_interfaces(result: NSObject, enumerator: (p1: NSObject) => boolean): void; + +declare function nw_browse_result_get_changes(old_result: NSObject, new_result: NSObject): number; + +declare function nw_browse_result_get_interfaces_count(result: NSObject): number; + +declare function nw_browser_cancel(browser: NSObject): void; + +declare function nw_browser_copy_browse_descriptor(browser: NSObject): NSObject; + +declare function nw_browser_copy_parameters(browser: NSObject): NSObject; + +declare function nw_browser_create(descriptor: NSObject, parameters: NSObject): NSObject; + +declare function nw_browser_set_browse_results_changed_handler(browser: NSObject, handler: (p1: NSObject, p2: NSObject, p3: boolean) => void): void; + +declare function nw_browser_set_queue(browser: NSObject, queue: NSObject): void; + +declare function nw_browser_set_state_changed_handler(browser: NSObject, state_changed_handler: (p1: nw_browser_state_t, p2: NSObject) => void): void; + +declare function nw_browser_start(browser: NSObject): void; + +declare const enum nw_browser_state_t { + + nw_browser_state_invalid = 0, + + nw_browser_state_ready = 1, + + nw_browser_state_failed = 2, + + nw_browser_state_cancelled = 3 +} + +declare function nw_connection_access_establishment_report(connection: NSObject, queue: NSObject, access_block: (p1: NSObject) => void): void; + declare function nw_connection_batch(connection: NSObject, batch_block: () => void): void; declare function nw_connection_cancel(connection: NSObject): void; @@ -148,6 +287,8 @@ declare function nw_connection_copy_protocol_metadata(connection: NSObject, defi declare function nw_connection_create(endpoint: NSObject, parameters: NSObject): NSObject; +declare function nw_connection_create_new_data_transfer_report(connection: NSObject): NSObject; + declare function nw_connection_force_cancel(connection: NSObject): void; declare function nw_connection_get_maximum_datagram_size(connection: NSObject): number; @@ -213,6 +354,47 @@ declare function nw_content_context_set_metadata_for_protocol(context: NSObject, declare function nw_content_context_set_relative_priority(context: NSObject, relative_priority: number): void; +declare function nw_data_transfer_report_collect(report: NSObject, queue: NSObject, collect_block: (p1: NSObject) => void): void; + +declare function nw_data_transfer_report_copy_path_interface(report: NSObject, path_index: number): NSObject; + +declare function nw_data_transfer_report_get_duration_milliseconds(report: NSObject): number; + +declare function nw_data_transfer_report_get_path_count(report: NSObject): number; + +declare function nw_data_transfer_report_get_received_application_byte_count(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_received_ip_packet_count(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_received_transport_byte_count(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_received_transport_duplicate_byte_count(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_received_transport_out_of_order_byte_count(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_sent_application_byte_count(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_sent_ip_packet_count(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_sent_transport_byte_count(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_sent_transport_retransmitted_byte_count(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_state(report: NSObject): nw_data_transfer_report_state_t; + +declare function nw_data_transfer_report_get_transport_minimum_rtt_milliseconds(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_transport_rtt_variance(report: NSObject, path_index: number): number; + +declare function nw_data_transfer_report_get_transport_smoothed_rtt_milliseconds(report: NSObject, path_index: number): number; + +declare const enum nw_data_transfer_report_state_t { + + nw_data_transfer_report_state_collecting = 1, + + nw_data_transfer_report_state_collected = 2 +} + declare function nw_endpoint_copy_address_string(endpoint: NSObject): string; declare function nw_endpoint_copy_port_string(endpoint: NSObject): string; @@ -223,6 +405,8 @@ declare function nw_endpoint_create_bonjour_service(name: string, type: string, declare function nw_endpoint_create_host(hostname: string, port: string): NSObject; +declare function nw_endpoint_create_url(url: string): NSObject; + declare function nw_endpoint_get_address(endpoint: NSObject): interop.Pointer | interop.Reference; declare function nw_endpoint_get_bonjour_service_domain(endpoint: NSObject): string; @@ -237,6 +421,8 @@ declare function nw_endpoint_get_port(endpoint: NSObject): number; declare function nw_endpoint_get_type(endpoint: NSObject): nw_endpoint_type_t; +declare function nw_endpoint_get_url(endpoint: NSObject): string; + declare const enum nw_endpoint_type_t { nw_endpoint_type_invalid = 0, @@ -245,7 +431,9 @@ declare const enum nw_endpoint_type_t { nw_endpoint_type_host = 2, - nw_endpoint_type_bonjour_service = 3 + nw_endpoint_type_bonjour_service = 3, + + nw_endpoint_type_url = 4 } declare function nw_error_copy_cf_error(error: NSObject): interop.Unmanaged; @@ -265,6 +453,104 @@ declare function nw_error_get_error_code(error: NSObject): number; declare function nw_error_get_error_domain(error: NSObject): nw_error_domain_t; +declare function nw_establishment_report_copy_proxy_endpoint(report: NSObject): NSObject; + +declare function nw_establishment_report_enumerate_protocols(report: NSObject, enumerate_block: (p1: NSObject, p2: number, p3: number) => boolean): void; + +declare function nw_establishment_report_enumerate_resolutions(report: NSObject, enumerate_block: (p1: nw_report_resolution_source_t, p2: number, p3: number, p4: NSObject, p5: NSObject) => boolean): void; + +declare function nw_establishment_report_get_attempt_started_after_milliseconds(report: NSObject): number; + +declare function nw_establishment_report_get_duration_milliseconds(report: NSObject): number; + +declare function nw_establishment_report_get_previous_attempt_count(report: NSObject): number; + +declare function nw_establishment_report_get_proxy_configured(report: NSObject): boolean; + +declare function nw_establishment_report_get_used_proxy(report: NSObject): boolean; + +declare const enum nw_ethernet_channel_state_t { + + nw_ethernet_channel_state_invalid = 0, + + nw_ethernet_channel_state_waiting = 1, + + nw_ethernet_channel_state_preparing = 2, + + nw_ethernet_channel_state_ready = 3, + + nw_ethernet_channel_state_failed = 4, + + nw_ethernet_channel_state_cancelled = 5 +} + +declare function nw_framer_async(framer: NSObject, async_block: () => void): void; + +declare function nw_framer_copy_local_endpoint(framer: NSObject): NSObject; + +declare function nw_framer_copy_parameters(framer: NSObject): NSObject; + +declare function nw_framer_copy_remote_endpoint(framer: NSObject): NSObject; + +declare function nw_framer_create_definition(identifier: string, flags: number, start_handler: (p1: NSObject) => nw_framer_start_result_t): NSObject; + +declare function nw_framer_create_options(framer_definition: NSObject): NSObject; + +declare function nw_framer_deliver_input(framer: NSObject, input_buffer: string, input_length: number, message: NSObject, is_complete: boolean): void; + +declare function nw_framer_deliver_input_no_copy(framer: NSObject, input_length: number, message: NSObject, is_complete: boolean): boolean; + +declare function nw_framer_mark_failed_with_error(framer: NSObject, error_code: number): void; + +declare function nw_framer_mark_ready(framer: NSObject): void; + +declare function nw_framer_message_access_value(message: NSObject, key: string, access_value: (p1: interop.Pointer | interop.Reference) => boolean): boolean; + +declare function nw_framer_message_copy_object_value(message: NSObject, key: string): any; + +declare function nw_framer_message_create(framer: NSObject): NSObject; + +declare function nw_framer_message_set_object_value(message: NSObject, key: string, value: any): void; + +declare function nw_framer_message_set_value(message: NSObject, key: string, value: interop.Pointer | interop.Reference, dispose_value: (p1: interop.Pointer | interop.Reference) => void): void; + +declare function nw_framer_parse_input(framer: NSObject, minimum_incomplete_length: number, maximum_length: number, temp_buffer: string, parse: (p1: string, p2: number, p3: boolean) => number): boolean; + +declare function nw_framer_parse_output(framer: NSObject, minimum_incomplete_length: number, maximum_length: number, temp_buffer: string, parse: (p1: string, p2: number, p3: boolean) => number): boolean; + +declare function nw_framer_pass_through_input(framer: NSObject): void; + +declare function nw_framer_pass_through_output(framer: NSObject): void; + +declare function nw_framer_prepend_application_protocol(framer: NSObject, protocol_options: NSObject): boolean; + +declare function nw_framer_protocol_create_message(definition: NSObject): NSObject; + +declare function nw_framer_schedule_wakeup(framer: NSObject, milliseconds: number): void; + +declare function nw_framer_set_cleanup_handler(framer: NSObject, cleanup_handler: (p1: NSObject) => void): void; + +declare function nw_framer_set_input_handler(framer: NSObject, input_handler: (p1: NSObject) => number): void; + +declare function nw_framer_set_output_handler(framer: NSObject, output_handler: (p1: NSObject, p2: NSObject, p3: number, p4: boolean) => void): void; + +declare function nw_framer_set_stop_handler(framer: NSObject, stop_handler: (p1: NSObject) => boolean): void; + +declare function nw_framer_set_wakeup_handler(framer: NSObject, wakeup_handler: (p1: NSObject) => void): void; + +declare const enum nw_framer_start_result_t { + + nw_framer_start_result_ready = 1, + + nw_framer_start_result_will_mark_ready = 2 +} + +declare function nw_framer_write_output(framer: NSObject, output_buffer: string, output_length: number): void; + +declare function nw_framer_write_output_data(framer: NSObject, output_data: NSObject): void; + +declare function nw_framer_write_output_no_copy(framer: NSObject, output_length: number): boolean; + declare function nw_interface_get_index(interface: NSObject): number; declare function nw_interface_get_name(interface: NSObject): string; @@ -297,6 +583,15 @@ declare const enum nw_ip_ecn_flag_t { nw_ip_ecn_flag_ce = 3 } +declare const enum nw_ip_local_address_preference_t { + + nw_ip_local_address_preference_default = 0, + + nw_ip_local_address_preference_temporary = 1, + + nw_ip_local_address_preference_stable = 2 +} + declare function nw_ip_metadata_get_ecn_flag(metadata: NSObject): nw_ip_ecn_flag_t; declare function nw_ip_metadata_get_receive_time(metadata: NSObject): number; @@ -313,6 +608,8 @@ declare function nw_ip_options_set_disable_fragmentation(options: NSObject, disa declare function nw_ip_options_set_hop_limit(options: NSObject, hop_limit: number): void; +declare function nw_ip_options_set_local_address_preference(options: NSObject, preference: nw_ip_local_address_preference_t): void; + declare function nw_ip_options_set_use_minimum_mtu(options: NSObject, use_minimum_mtu: boolean): void; declare function nw_ip_options_set_version(options: NSObject, version: nw_ip_version_t): void; @@ -334,6 +631,8 @@ declare function nw_listener_create_with_connection(connection: NSObject, parame declare function nw_listener_create_with_port(port: string, parameters: NSObject): NSObject; +declare function nw_listener_get_new_connection_limit(listener: NSObject): number; + declare function nw_listener_get_port(listener: NSObject): number; declare function nw_listener_set_advertise_descriptor(listener: NSObject, advertise_descriptor: NSObject): void; @@ -342,6 +641,8 @@ declare function nw_listener_set_advertised_endpoint_changed_handler(listener: N declare function nw_listener_set_new_connection_handler(listener: NSObject, handler: (p1: NSObject) => void): void; +declare function nw_listener_set_new_connection_limit(listener: NSObject, new_connection_limit: number): void; + declare function nw_listener_set_queue(listener: NSObject, queue: NSObject): void; declare function nw_listener_set_state_changed_handler(listener: NSObject, handler: (p1: nw_listener_state_t, p2: NSObject) => void): void; @@ -411,6 +712,8 @@ declare function nw_parameters_get_multipath_service(parameters: NSObject): nw_m declare function nw_parameters_get_prefer_no_proxy(parameters: NSObject): boolean; +declare function nw_parameters_get_prohibit_constrained(parameters: NSObject): boolean; + declare function nw_parameters_get_prohibit_expensive(parameters: NSObject): boolean; declare function nw_parameters_get_required_interface_type(parameters: NSObject): nw_interface_type_t; @@ -443,6 +746,8 @@ declare function nw_parameters_set_multipath_service(parameters: NSObject, multi declare function nw_parameters_set_prefer_no_proxy(parameters: NSObject, prefer_no_proxy: boolean): void; +declare function nw_parameters_set_prohibit_constrained(parameters: NSObject, prohibit_constrained: boolean): void; + declare function nw_parameters_set_prohibit_expensive(parameters: NSObject, prohibit_expensive: boolean): void; declare function nw_parameters_set_required_interface_type(parameters: NSObject, interface_type: nw_interface_type_t): void; @@ -455,6 +760,8 @@ declare function nw_path_copy_effective_local_endpoint(path: NSObject): NSObject declare function nw_path_copy_effective_remote_endpoint(path: NSObject): NSObject; +declare function nw_path_enumerate_gateways(path: NSObject, enumerate_block: (p1: NSObject) => boolean): void; + declare function nw_path_enumerate_interfaces(path: NSObject, enumerate_block: (p1: NSObject) => boolean): void; declare function nw_path_get_status(path: NSObject): nw_path_status_t; @@ -465,6 +772,8 @@ declare function nw_path_has_ipv4(path: NSObject): boolean; declare function nw_path_has_ipv6(path: NSObject): boolean; +declare function nw_path_is_constrained(path: NSObject): boolean; + declare function nw_path_is_equal(path: NSObject, other_path: NSObject): boolean; declare function nw_path_is_expensive(path: NSObject): boolean; @@ -504,10 +813,14 @@ declare function nw_protocol_copy_tls_definition(): NSObject; declare function nw_protocol_copy_udp_definition(): NSObject; +declare function nw_protocol_copy_ws_definition(): NSObject; + declare function nw_protocol_definition_is_equal(definition1: NSObject, definition2: NSObject): boolean; declare function nw_protocol_metadata_copy_definition(metadata: NSObject): NSObject; +declare function nw_protocol_metadata_is_framer_message(metadata: NSObject): boolean; + declare function nw_protocol_metadata_is_ip(metadata: NSObject): boolean; declare function nw_protocol_metadata_is_tcp(metadata: NSObject): boolean; @@ -516,6 +829,8 @@ declare function nw_protocol_metadata_is_tls(metadata: NSObject): boolean; declare function nw_protocol_metadata_is_udp(metadata: NSObject): boolean; +declare function nw_protocol_metadata_is_ws(metadata: NSObject): boolean; + declare function nw_protocol_options_copy_definition(options: NSObject): NSObject; declare function nw_protocol_stack_clear_application_protocols(stack: NSObject): void; @@ -532,6 +847,15 @@ declare function nw_protocol_stack_set_transport_protocol(stack: NSObject, proto declare function nw_release(obj: interop.Pointer | interop.Reference): void; +declare const enum nw_report_resolution_source_t { + + nw_report_resolution_source_query = 1, + + nw_report_resolution_source_cache = 2, + + nw_report_resolution_source_expired_cache = 3 +} + declare function nw_retain(obj: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; declare const enum nw_service_class_t { @@ -591,8 +915,145 @@ declare function nw_tls_copy_sec_protocol_options(options: NSObject): NSObject; declare function nw_tls_create_options(): NSObject; +declare function nw_txt_record_access_bytes(txt_record: NSObject, access_bytes: (p1: string, p2: number) => boolean): boolean; + +declare function nw_txt_record_access_key(txt_record: NSObject, key: string, access_value: (p1: string, p2: nw_txt_record_find_key_t, p3: string, p4: number) => boolean): boolean; + +declare function nw_txt_record_apply(txt_record: NSObject, applier: (p1: string, p2: nw_txt_record_find_key_t, p3: string, p4: number) => boolean): boolean; + +declare function nw_txt_record_copy(txt_record: NSObject): NSObject; + +declare function nw_txt_record_create_dictionary(): NSObject; + +declare function nw_txt_record_create_with_bytes(txt_bytes: string, txt_len: number): NSObject; + +declare function nw_txt_record_find_key(txt_record: NSObject, key: string): nw_txt_record_find_key_t; + +declare const enum nw_txt_record_find_key_t { + + nw_txt_record_find_key_invalid = 0, + + nw_txt_record_find_key_not_present = 1, + + nw_txt_record_find_key_no_value = 2, + + nw_txt_record_find_key_empty_value = 3, + + nw_txt_record_find_key_non_empty_value = 4 +} + +declare function nw_txt_record_get_key_count(txt_record: NSObject): number; + +declare function nw_txt_record_is_dictionary(txt_record: NSObject): boolean; + +declare function nw_txt_record_is_equal(left: NSObject, right: NSObject): boolean; + +declare function nw_txt_record_remove_key(txt_record: NSObject, key: string): boolean; + +declare function nw_txt_record_set_key(txt_record: NSObject, key: string, value: string, value_len: number): boolean; + declare function nw_udp_create_metadata(): NSObject; declare function nw_udp_create_options(): NSObject; declare function nw_udp_options_set_prefer_no_checksum(options: NSObject, prefer_no_checksum: boolean): void; + +declare const enum nw_ws_close_code_t { + + nw_ws_close_code_normal_closure = 1000, + + nw_ws_close_code_going_away = 1001, + + nw_ws_close_code_protocol_error = 1002, + + nw_ws_close_code_unsupported_data = 1003, + + nw_ws_close_code_no_status_received = 1005, + + nw_ws_close_code_abnormal_closure = 1006, + + nw_ws_close_code_invalid_frame_payload_data = 1007, + + nw_ws_close_code_policy_violation = 1008, + + nw_ws_close_code_message_too_big = 1009, + + nw_ws_close_code_mandatory_extension = 1010, + + nw_ws_close_code_internal_server_error = 1011, + + nw_ws_close_code_tls_handshake = 1015 +} + +declare function nw_ws_create_metadata(opcode: nw_ws_opcode_t): NSObject; + +declare function nw_ws_create_options(version: nw_ws_version_t): NSObject; + +declare function nw_ws_metadata_copy_server_response(metadata: NSObject): NSObject; + +declare function nw_ws_metadata_get_close_code(metadata: NSObject): nw_ws_close_code_t; + +declare function nw_ws_metadata_get_opcode(metadata: NSObject): nw_ws_opcode_t; + +declare function nw_ws_metadata_set_close_code(metadata: NSObject, close_code: nw_ws_close_code_t): void; + +declare function nw_ws_metadata_set_pong_handler(metadata: NSObject, client_queue: NSObject, pong_handler: (p1: NSObject) => void): void; + +declare const enum nw_ws_opcode_t { + + nw_ws_opcode_invalid = -1, + + nw_ws_opcode_cont = 0, + + nw_ws_opcode_text = 1, + + nw_ws_opcode_binary = 2, + + nw_ws_opcode_close = 8, + + nw_ws_opcode_ping = 9, + + nw_ws_opcode_pong = 10 +} + +declare function nw_ws_options_add_additional_header(options: NSObject, name: string, value: string): void; + +declare function nw_ws_options_add_subprotocol(options: NSObject, subprotocol: string): void; + +declare function nw_ws_options_set_auto_reply_ping(options: NSObject, auto_reply_ping: boolean): void; + +declare function nw_ws_options_set_client_request_handler(options: NSObject, client_queue: NSObject, handler: (p1: NSObject) => NSObject): void; + +declare function nw_ws_options_set_maximum_message_size(options: NSObject, maximum_message_size: number): void; + +declare function nw_ws_options_set_skip_handshake(options: NSObject, skip_handshake: boolean): void; + +declare function nw_ws_request_enumerate_additional_headers(request: NSObject, enumerator: (p1: string, p2: string) => boolean): boolean; + +declare function nw_ws_request_enumerate_subprotocols(request: NSObject, enumerator: (p1: string) => boolean): boolean; + +declare function nw_ws_response_add_additional_header(response: NSObject, name: string, value: string): void; + +declare function nw_ws_response_create(status: nw_ws_response_status_t, selected_subprotocol: string): NSObject; + +declare function nw_ws_response_enumerate_additional_headers(response: NSObject, enumerator: (p1: string, p2: string) => boolean): boolean; + +declare function nw_ws_response_get_selected_subprotocol(response: NSObject): string; + +declare function nw_ws_response_get_status(response: NSObject): nw_ws_response_status_t; + +declare const enum nw_ws_response_status_t { + + nw_ws_response_status_invalid = 0, + + nw_ws_response_status_accept = 1, + + nw_ws_response_status_reject = 2 +} + +declare const enum nw_ws_version_t { + + nw_ws_version_invalid = 0, + + nw_ws_version_13 = 1 +} diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!NetworkExtension.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!NetworkExtension.d.ts index fb9bc1cfea..9404c35409 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!NetworkExtension.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!NetworkExtension.d.ts @@ -49,6 +49,8 @@ declare class NEAppProxyProvider extends NETunnelProvider { handleNewFlow(flow: NEAppProxyFlow): boolean; + handleNewUDPFlowInitialRemoteEndpoint(flow: NEAppProxyUDPFlow, remoteEndpoint: NWEndpoint): boolean; + startProxyWithOptionsCompletionHandler(options: NSDictionary, completionHandler: (p1: NSError) => void): void; stopProxyWithReasonCompletionHandler(reason: NEProviderStopReason, completionHandler: () => void): void; @@ -107,9 +109,9 @@ declare class NEAppRule extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithSigningIdentifier(signingIdentifier: string): this; } @@ -162,6 +164,8 @@ declare class NEDNSProxyProvider extends NEProvider { handleNewFlow(flow: NEAppProxyFlow): boolean; + handleNewUDPFlowInitialRemoteEndpoint(flow: NEAppProxyUDPFlow, remoteEndpoint: NWEndpoint): boolean; + startProxyWithOptionsCompletionHandler(options: NSDictionary, completionHandler: (p1: NSError) => void): void; stopProxyWithReasonCompletionHandler(reason: NEProviderStopReason, completionHandler: () => void): void; @@ -202,9 +206,9 @@ declare class NEDNSSettings extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithServers(servers: NSArray | string[]): this; } @@ -231,9 +235,9 @@ declare class NEEvaluateConnectionRule extends NSObject implements NSCopying, NS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithMatchDomainsAndAction(domains: NSArray | string[], action: NEEvaluateConnectionRuleAction): this; } @@ -276,9 +280,9 @@ declare class NEFilterBrowserFlow extends NEFilterFlow implements NSCopying, NSS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var NEFilterConfigurationDidChangeNotification: string; @@ -297,8 +301,6 @@ declare class NEFilterControlProvider extends NEFilterProvider { handleRemediationForFlowCompletionHandler(flow: NEFilterFlow, completionHandler: (p1: NEFilterControlVerdict) => void): void; - handleReport(report: NEFilterReport): void; - notifyRulesChanged(): void; } @@ -320,9 +322,9 @@ declare class NEFilterControlVerdict extends NEFilterNewFlowVerdict implements N copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEFilterDataProvider extends NEFilterProvider { @@ -368,9 +370,9 @@ declare class NEFilterDataVerdict extends NEFilterVerdict implements NSCopying, copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var NEFilterErrorDomain: string; @@ -383,6 +385,8 @@ declare class NEFilterFlow extends NSObject implements NSCopying, NSSecureCoding readonly URL: NSURL; + readonly direction: NETrafficDirection; + readonly sourceAppIdentifier: string; readonly sourceAppUniqueIdentifier: NSData; @@ -395,9 +399,9 @@ declare class NEFilterFlow extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEFilterManager extends NSObject { @@ -429,7 +433,11 @@ declare const enum NEFilterManagerError { ConfigurationStale = 3, - ConfigurationCannotBeRemoved = 4 + ConfigurationCannotBeRemoved = 4, + + ConfigurationPermissionDenied = 5, + + ConfigurationInternalError = 6 } declare class NEFilterNewFlowVerdict extends NEFilterVerdict implements NSCopying, NSSecureCoding { @@ -456,9 +464,9 @@ declare class NEFilterNewFlowVerdict extends NEFilterVerdict implements NSCopyin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEFilterProvider extends NEProvider { @@ -469,6 +477,8 @@ declare class NEFilterProvider extends NEProvider { readonly filterConfiguration: NEFilterProviderConfiguration; + handleReport(report: NEFilterReport): void; + startFilterWithCompletionHandler(completionHandler: (p1: NSError) => void): void; stopFilterWithReasonCompletionHandler(reason: NEProviderStopReason, completionHandler: () => void): void; @@ -502,9 +512,9 @@ declare class NEFilterProviderConfiguration extends NSObject implements NSCopyin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var NEFilterProviderRemediationMapRemediationButtonTexts: string; @@ -529,9 +539,9 @@ declare class NEFilterRemediationVerdict extends NEFilterVerdict implements NSCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEFilterReport extends NSObject implements NSCopying, NSSecureCoding { @@ -542,6 +552,12 @@ declare class NEFilterReport extends NSObject implements NSCopying, NSSecureCodi readonly action: NEFilterAction; + readonly bytesInboundCount: number; + + readonly bytesOutboundCount: number; + + readonly event: NEFilterReportEvent; + readonly flow: NEFilterFlow; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding @@ -550,9 +566,18 @@ declare class NEFilterReport extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare const enum NEFilterReportEvent { + + NewFlow = 1, + + DataDecision = 2, - initWithCoder(aDecoder: NSCoder): this; + FlowClosed = 3 } declare class NEFilterSocketFlow extends NEFilterFlow implements NSCopying, NSSecureCoding { @@ -565,11 +590,11 @@ declare class NEFilterSocketFlow extends NEFilterFlow implements NSCopying, NSSe readonly remoteEndpoint: NWEndpoint; - socketFamily: number; + readonly socketFamily: number; - socketProtocol: number; + readonly socketProtocol: number; - socketType: number; + readonly socketType: number; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding @@ -577,9 +602,9 @@ declare class NEFilterSocketFlow extends NEFilterFlow implements NSCopying, NSSe copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEFilterVerdict extends NSObject implements NSCopying, NSSecureCoding { @@ -596,9 +621,9 @@ declare class NEFilterVerdict extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEFlowMetaData extends NSObject implements NSCopying, NSSecureCoding { @@ -617,9 +642,9 @@ declare class NEFlowMetaData extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEHotspotConfiguration extends NSObject implements NSCopying, NSSecureCoding { @@ -630,6 +655,10 @@ declare class NEHotspotConfiguration extends NSObject implements NSCopying, NSSe readonly SSID: string; + readonly SSIDPrefix: string; + + hidden: boolean; + joinOnce: boolean; lifeTimeInDays: number; @@ -646,11 +675,15 @@ declare class NEHotspotConfiguration extends NSObject implements NSCopying, NSSe constructor(o: { SSID: string; passphrase: string; isWEP: boolean; }); + constructor(o: { SSIDPrefix: string; }); + + constructor(o: { SSIDPrefix: string; passphrase: string; isWEP: boolean; }); + copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithHS20SettingsEapSettings(hs20Settings: NEHotspotHS20Settings, eapSettings: NEHotspotEAPSettings): this; @@ -659,6 +692,10 @@ declare class NEHotspotConfiguration extends NSObject implements NSCopying, NSSe initWithSSIDEapSettings(SSID: string, eapSettings: NEHotspotEAPSettings): this; initWithSSIDPassphraseIsWEP(SSID: string, passphrase: string, isWEP: boolean): this; + + initWithSSIDPrefix(SSIDPrefix: string): this; + + initWithSSIDPrefixPassphraseIsWEP(SSIDPrefix: string, passphrase: string, isWEP: boolean): this; } declare const enum NEHotspotConfigurationEAPTLSVersion { @@ -711,9 +748,13 @@ declare const enum NEHotspotConfigurationError { AlreadyAssociated = 13, - ApplicationIsNotInForeground = 14 + ApplicationIsNotInForeground = 14, + + InvalidSSIDPrefix = 15 } +declare var NEHotspotConfigurationErrorDomain: string; + declare class NEHotspotConfigurationManager extends NSObject { static alloc(): NEHotspotConfigurationManager; // inherited from NSObject @@ -772,9 +813,9 @@ declare class NEHotspotEAPSettings extends NSObject implements NSCopying, NSSecu copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; setIdentity(identity: any): boolean; @@ -805,9 +846,9 @@ declare class NEHotspotHS20Settings extends NSObject implements NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDomainNameRoamingEnabled(domainName: string, roamingEnabled: boolean): this; } @@ -947,9 +988,9 @@ declare class NEIPv4Route extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDestinationAddressSubnetMask(address: string, subnetMask: string): this; } @@ -976,11 +1017,11 @@ declare class NEIPv4Settings extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAddressesSubnetMasks(addresses: NSArray | string[], subnetMasks: NSArray | string[]): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEIPv6Route extends NSObject implements NSCopying, NSSecureCoding { @@ -1005,9 +1046,9 @@ declare class NEIPv6Route extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDestinationAddressNetworkPrefixLength(address: string, networkPrefixLength: number): this; } @@ -1034,11 +1075,11 @@ declare class NEIPv6Settings extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAddressesNetworkPrefixLengths(addresses: NSArray | string[], networkPrefixLengths: NSArray | number[]): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEOnDemandRule extends NSObject implements NSCopying, NSSecureCoding { @@ -1065,9 +1106,9 @@ declare class NEOnDemandRule extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum NEOnDemandRuleAction { @@ -1142,9 +1183,9 @@ declare class NEPacket extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDataProtocolFamily(data: NSData, protocolFamily: number): this; } @@ -1247,7 +1288,11 @@ declare const enum NEProviderStopReason { UserSwitch = 13, - ConnectionFailed = 14 + ConnectionFailed = 14, + + Sleep = 15, + + AppUpdate = 16 } declare class NEProxyServer extends NSObject implements NSCopying, NSSecureCoding { @@ -1274,11 +1319,11 @@ declare class NEProxyServer extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAddressPort(address: string, port: number): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEProxySettings extends NSObject implements NSCopying, NSSecureCoding { @@ -1313,9 +1358,18 @@ declare class NEProxySettings extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; +} + +declare const enum NETrafficDirection { + + Any = 0, + + Inbound = 1, + + Outbound = 2 } declare class NETunnelNetworkSettings extends NSObject implements NSCopying, NSSecureCoding { @@ -1338,9 +1392,9 @@ declare class NETunnelNetworkSettings extends NSObject implements NSCopying, NSS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTunnelRemoteAddress(address: string): this; } @@ -1403,7 +1457,9 @@ declare const enum NETunnelProviderRoutingMethod { DestinationIP = 1, - SourceApplication = 2 + SourceApplication = 2, + + NetworkRule = 3 } declare class NETunnelProviderSession extends NEVPNConnection { @@ -1478,7 +1534,9 @@ declare const enum NEVPNIKEv2CertificateType { ECDSA384 = 3, - ECDSA521 = 4 + ECDSA521 = 4, + + Ed25519 = 5 } declare const enum NEVPNIKEv2DeadPeerDetectionRate { @@ -1516,7 +1574,9 @@ declare const enum NEVPNIKEv2DiffieHellmanGroup { Group20 = 20, - Group21 = 21 + Group21 = 21, + + Group31 = 31 } declare const enum NEVPNIKEv2EncryptionAlgorithm { @@ -1531,7 +1591,9 @@ declare const enum NEVPNIKEv2EncryptionAlgorithm { AlgorithmAES128GCM = 5, - AlgorithmAES256GCM = 6 + AlgorithmAES256GCM = 6, + + AlgorithmChaCha20Poly1305 = 7 } declare const enum NEVPNIKEv2IntegrityAlgorithm { @@ -1567,9 +1629,9 @@ declare class NEVPNIKEv2SecurityAssociationParameters extends NSObject implement copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum NEVPNIKEv2TLSVersion { @@ -1640,9 +1702,9 @@ declare class NEVPNProtocol extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NEVPNProtocolIKEv2 extends NEVPNProtocolIPSec { @@ -1663,6 +1725,8 @@ declare class NEVPNProtocolIKEv2 extends NEVPNProtocolIPSec { disableRedirect: boolean; + enableFallback: boolean; + enablePFS: boolean; enableRevocationCheck: boolean; @@ -1741,9 +1805,9 @@ declare class NWEndpoint extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class NWHostEndpoint extends NWEndpoint { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts new file mode 100644 index 0000000000..251d0b300e --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts @@ -0,0 +1,256 @@ + +declare class OSLogEntry extends NSObject { + + static alloc(): OSLogEntry; // inherited from NSObject + + static new(): OSLogEntry; // inherited from NSObject + + readonly composedMessage: string; + + readonly date: Date; + + readonly storeCategory: OSLogEntryStoreCategory; +} + +declare class OSLogEntryActivity extends OSLogEntry implements OSLogEntryFromProcess { + + static alloc(): OSLogEntryActivity; // inherited from NSObject + + static new(): OSLogEntryActivity; // inherited from NSObject + + readonly parentActivityIdentifier: number; + + readonly activityIdentifier: number; // inherited from OSLogEntryFromProcess + + readonly process: string; // inherited from OSLogEntryFromProcess + + readonly processIdentifier: number; // inherited from OSLogEntryFromProcess + + readonly sender: string; // inherited from OSLogEntryFromProcess + + readonly threadIdentifier: number; // inherited from OSLogEntryFromProcess +} + +declare class OSLogEntryBoundary extends OSLogEntry { + + static alloc(): OSLogEntryBoundary; // inherited from NSObject + + static new(): OSLogEntryBoundary; // inherited from NSObject +} + +interface OSLogEntryFromProcess { + + activityIdentifier: number; + + process: string; + + processIdentifier: number; + + sender: string; + + threadIdentifier: number; +} +declare var OSLogEntryFromProcess: { + + prototype: OSLogEntryFromProcess; +}; + +declare class OSLogEntryLog extends OSLogEntry implements OSLogEntryFromProcess, OSLogEntryWithPayload { + + static alloc(): OSLogEntryLog; // inherited from NSObject + + static new(): OSLogEntryLog; // inherited from NSObject + + readonly level: OSLogEntryLogLevel; + + readonly activityIdentifier: number; // inherited from OSLogEntryFromProcess + + readonly category: string; // inherited from OSLogEntryWithPayload + + readonly components: NSArray; // inherited from OSLogEntryWithPayload + + readonly formatString: string; // inherited from OSLogEntryWithPayload + + readonly process: string; // inherited from OSLogEntryFromProcess + + readonly processIdentifier: number; // inherited from OSLogEntryFromProcess + + readonly sender: string; // inherited from OSLogEntryFromProcess + + readonly subsystem: string; // inherited from OSLogEntryWithPayload + + readonly threadIdentifier: number; // inherited from OSLogEntryFromProcess +} + +declare const enum OSLogEntryLogLevel { + + Undefined = 0, + + Debug = 1, + + Info = 2, + + Notice = 3, + + Error = 4, + + Fault = 5 +} + +declare class OSLogEntrySignpost extends OSLogEntry implements OSLogEntryFromProcess, OSLogEntryWithPayload { + + static alloc(): OSLogEntrySignpost; // inherited from NSObject + + static new(): OSLogEntrySignpost; // inherited from NSObject + + readonly signpostIdentifier: number; + + readonly signpostName: string; + + readonly signpostType: OSLogEntrySignpostType; + + readonly activityIdentifier: number; // inherited from OSLogEntryFromProcess + + readonly category: string; // inherited from OSLogEntryWithPayload + + readonly components: NSArray; // inherited from OSLogEntryWithPayload + + readonly formatString: string; // inherited from OSLogEntryWithPayload + + readonly process: string; // inherited from OSLogEntryFromProcess + + readonly processIdentifier: number; // inherited from OSLogEntryFromProcess + + readonly sender: string; // inherited from OSLogEntryFromProcess + + readonly subsystem: string; // inherited from OSLogEntryWithPayload + + readonly threadIdentifier: number; // inherited from OSLogEntryFromProcess +} + +declare const enum OSLogEntrySignpostType { + + Undefined = 0, + + IntervalBegin = 1, + + IntervalEnd = 2, + + Event = 3 +} + +declare const enum OSLogEntryStoreCategory { + + Undefined = 0, + + Metadata = 1, + + ShortTerm = 2, + + LongTermAuto = 3, + + LongTerm1 = 4, + + LongTerm3 = 5, + + LongTerm7 = 6, + + LongTerm14 = 7, + + LongTerm30 = 8 +} + +interface OSLogEntryWithPayload { + + category: string; + + components: NSArray; + + formatString: string; + + subsystem: string; +} +declare var OSLogEntryWithPayload: { + + prototype: OSLogEntryWithPayload; +}; + +declare class OSLogEnumerator extends NSEnumerator { + + static alloc(): OSLogEnumerator; // inherited from NSObject + + static new(): OSLogEnumerator; // inherited from NSObject +} + +declare const enum OSLogEnumeratorOptions { + + Reverse = 1 +} + +declare class OSLogMessageComponent extends NSObject { + + static alloc(): OSLogMessageComponent; // inherited from NSObject + + static new(): OSLogMessageComponent; // inherited from NSObject + + readonly argumentCategory: OSLogMessageComponentArgumentCategory; + + readonly argumentDataValue: NSData; + + readonly argumentDoubleValue: number; + + readonly argumentInt64Value: number; + + readonly argumentNumberValue: number; + + readonly argumentStringValue: string; + + readonly argumentUInt64Value: number; + + readonly formatSubstring: string; + + readonly placeholder: string; +} + +declare const enum OSLogMessageComponentArgumentCategory { + + Undefined = 0, + + Data = 1, + + Double = 2, + + Int64 = 3, + + String = 4, + + UInt64 = 5 +} + +declare class OSLogPosition extends NSObject { + + static alloc(): OSLogPosition; // inherited from NSObject + + static new(): OSLogPosition; // inherited from NSObject +} + +declare class OSLogStore extends NSObject { + + static alloc(): OSLogStore; // inherited from NSObject + + static localStoreAndReturnError(): OSLogStore; + + static new(): OSLogStore; // inherited from NSObject + + static storeWithURLError(url: NSURL): OSLogStore; + + entriesEnumeratorAndReturnError(): OSLogEnumerator; + + entriesEnumeratorWithOptionsPositionPredicateError(options: OSLogEnumeratorOptions, position: OSLogPosition, predicate: NSPredicate): OSLogEnumerator; + + positionWithDate(date: Date): OSLogPosition; + + positionWithTimeIntervalSinceEnd(seconds: number): OSLogPosition; + + positionWithTimeIntervalSinceLatestBoot(seconds: number): OSLogPosition; +} diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!ObjectiveC.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!ObjectiveC.d.ts index 3fe63045b3..afdd32a913 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!ObjectiveC.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!ObjectiveC.d.ts @@ -27,7 +27,7 @@ declare class NSObject implements NSObjectProtocol { static initialize(): void; - static instanceMethodForSelector(aSelector: string): interop.FunctionReference<(p1: any, p2: string) => any>; + static instanceMethodForSelector(aSelector: string): interop.FunctionReference<() => void>; static instanceMethodSignatureForSelector(aSelector: string): NSMethodSignature; @@ -59,6 +59,8 @@ declare class NSObject implements NSObjectProtocol { accessibilityAttributedLabel: NSAttributedString; + accessibilityAttributedUserInputLabels: NSArray; + accessibilityAttributedValue: NSAttributedString; accessibilityContainerType: UIAccessibilityContainerType; @@ -87,8 +89,14 @@ declare class NSObject implements NSObjectProtocol { accessibilityPath: UIBezierPath; + accessibilityRespondsToUserInteraction: boolean; + + accessibilityTextualContext: string; + accessibilityTraits: number; + accessibilityUserInputLabels: NSArray; + accessibilityValue: string; accessibilityViewIsModal: boolean; @@ -151,7 +159,7 @@ declare class NSObject implements NSObjectProtocol { attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo(error: NSError, recoveryOptionIndex: number, delegate: any, didRecoverSelector: string, contextInfo: interop.Pointer | interop.Reference): void; - awakeAfterUsingCoder(aDecoder: NSCoder): any; + awakeAfterUsingCoder(coder: NSCoder): any; awakeFromNib(): void; @@ -193,7 +201,7 @@ declare class NSObject implements NSObjectProtocol { isMemberOfClass(aClass: typeof NSObject): boolean; - methodForSelector(aSelector: string): interop.FunctionReference<(p1: any, p2: string) => any>; + methodForSelector(aSelector: string): interop.FunctionReference<() => void>; methodSignatureForSelector(aSelector: string): NSMethodSignature; @@ -241,7 +249,7 @@ declare class NSObject implements NSObjectProtocol { removeObserverForKeyPathContext(observer: NSObject, keyPath: string, context: interop.Pointer | interop.Reference): void; - replacementObjectForCoder(aCoder: NSCoder): any; + replacementObjectForCoder(coder: NSCoder): any; replacementObjectForKeyedArchiver(archiver: NSKeyedArchiver): any; @@ -337,18 +345,17 @@ declare const OBJC_SYNC_SUCCESS: number; declare const OBJC_WAIT_UNTIL_DONE: number; -declare class Protocol extends NSObject { +declare function _objc_flush_caches(cls: typeof NSObject): void; - static alloc(): Protocol; // inherited from NSObject +declare function _objc_msgForward(): void; - static new(): Protocol; // inherited from NSObject -} +declare function _objc_msgForward_stret(): void; -declare function _objc_flush_caches(cls: typeof NSObject): void; +declare function _objc_realizeClassFromSwift(cls: typeof NSObject, previously: interop.Pointer | interop.Reference): typeof NSObject; declare function class_addIvar(cls: typeof NSObject, name: string, size: number, alignment: number, types: string): boolean; -declare function class_addMethod(cls: typeof NSObject, name: string, imp: interop.FunctionReference<(p1: any, p2: string) => any>, types: string): boolean; +declare function class_addMethod(cls: typeof NSObject, name: string, imp: interop.FunctionReference<() => void>, types: string): boolean; declare function class_addProperty(cls: typeof NSObject, name: string, attributes: interop.Pointer | interop.Reference, attributeCount: number): boolean; @@ -382,9 +389,9 @@ declare function class_getInstanceVariable(cls: typeof NSObject, name: string): declare function class_getIvarLayout(cls: typeof NSObject): string; -declare function class_getMethodImplementation(cls: typeof NSObject, name: string): interop.FunctionReference<(p1: any, p2: string) => any>; +declare function class_getMethodImplementation(cls: typeof NSObject, name: string): interop.FunctionReference<() => void>; -declare function class_getMethodImplementation_stret(cls: typeof NSObject, name: string): interop.FunctionReference<(p1: any, p2: string) => any>; +declare function class_getMethodImplementation_stret(cls: typeof NSObject, name: string): interop.FunctionReference<() => void>; declare function class_getName(cls: typeof NSObject): string; @@ -398,9 +405,9 @@ declare function class_getWeakIvarLayout(cls: typeof NSObject): string; declare function class_isMetaClass(cls: typeof NSObject): boolean; -declare function class_lookupMethod(cls: typeof NSObject, sel: string): interop.FunctionReference<(p1: any, p2: string) => any>; +declare function class_lookupMethod(cls: typeof NSObject, sel: string): interop.FunctionReference<() => void>; -declare function class_replaceMethod(cls: typeof NSObject, name: string, imp: interop.FunctionReference<(p1: any, p2: string) => any>, types: string): interop.FunctionReference<(p1: any, p2: string) => any>; +declare function class_replaceMethod(cls: typeof NSObject, name: string, imp: interop.FunctionReference<() => void>, types: string): interop.FunctionReference<() => void>; declare function class_replaceProperty(cls: typeof NSObject, name: string, attributes: interop.Pointer | interop.Reference, attributeCount: number): void; @@ -416,11 +423,11 @@ declare function class_setVersion(cls: typeof NSObject, version: number): void; declare function class_setWeakIvarLayout(cls: typeof NSObject, layout: string): void; -declare function imp_getBlock(anImp: interop.FunctionReference<(p1: any, p2: string) => any>): any; +declare function imp_getBlock(anImp: interop.FunctionReference<() => void>): any; -declare function imp_implementationWithBlock(block: any): interop.FunctionReference<(p1: any, p2: string) => any>; +declare function imp_implementationWithBlock(block: any): interop.FunctionReference<() => void>; -declare function imp_removeBlock(anImp: interop.FunctionReference<(p1: any, p2: string) => any>): boolean; +declare function imp_removeBlock(anImp: interop.FunctionReference<() => void>): boolean; declare function ivar_getName(v: interop.Pointer | interop.Reference): string; @@ -438,7 +445,7 @@ declare function method_getArgumentType(m: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; -declare function method_getImplementation(m: interop.Pointer | interop.Reference): interop.FunctionReference<(p1: any, p2: string) => any>; +declare function method_getImplementation(m: interop.Pointer | interop.Reference): interop.FunctionReference<() => void>; declare function method_getName(m: interop.Pointer | interop.Reference): string; @@ -448,7 +455,11 @@ declare function method_getReturnType(m: interop.Pointer | interop.Reference): string; -declare function method_setImplementation(m: interop.Pointer | interop.Reference, imp: interop.FunctionReference<(p1: any, p2: string) => any>): interop.FunctionReference<(p1: any, p2: string) => any>; +declare function method_invoke(): void; + +declare function method_invoke_stret(): void; + +declare function method_setImplementation(m: interop.Pointer | interop.Reference, imp: interop.FunctionReference<() => void>): interop.FunctionReference<() => void>; declare const enum objc_AssociationPolicy { @@ -463,6 +474,8 @@ declare const enum objc_AssociationPolicy { OBJC_ASSOCIATION_COPY = 771 } +declare function objc_addLoadImageFunc(func: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>): void; + declare function objc_allocateClassPair(superclass: typeof NSObject, name: string, extraBytes: number): typeof NSObject; declare function objc_allocateProtocol(name: string): any /* Protocol */; @@ -517,6 +530,18 @@ interface objc_method_description { } declare var objc_method_description: interop.StructType; +declare function objc_msgSend(): void; + +declare function objc_msgSendSuper(): void; + +declare function objc_msgSendSuper_stret(): void; + +declare function objc_msgSend_fp2ret(): void; + +declare function objc_msgSend_fpret(): void; + +declare function objc_msgSend_stret(): void; + interface objc_object { isa: typeof NSObject; } @@ -544,8 +569,12 @@ declare function objc_setExceptionPreprocessor(fn: interop.FunctionReference<(p1 declare function objc_setForwardHandler(fwd: interop.Pointer | interop.Reference, fwd_stret: interop.Pointer | interop.Reference): void; +declare function objc_setHook_getClass(newValue: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference) => boolean>, outOldValue: interop.Pointer | interop.Reference) => boolean>>): void; + declare function objc_setHook_getImageName(newValue: interop.FunctionReference<(p1: typeof NSObject, p2: interop.Pointer | interop.Reference) => boolean>, outOldValue: interop.Pointer | interop.Reference) => boolean>>): void; +declare function objc_setHook_setAssociatedObject(newValue: interop.FunctionReference<(p1: any, p2: interop.Pointer | interop.Reference, p3: any, p4: objc_AssociationPolicy) => void>, outOldValue: interop.Pointer | interop.Reference, p3: any, p4: objc_AssociationPolicy) => void>>): void; + declare function objc_setUncaughtExceptionHandler(fn: interop.FunctionReference<(p1: any) => void>): interop.FunctionReference<(p1: any) => void>; declare function objc_storeWeak(location: interop.Pointer | interop.Reference, obj: any): any; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!PDFKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!PDFKit.d.ts index a09e101161..ae9fd32b16 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!PDFKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!PDFKit.d.ts @@ -234,11 +234,11 @@ declare class PDFAnnotation extends NSObject implements NSCoding, NSCopying { drawWithBoxInContext(box: PDFDisplayBox, context: any): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithBoundsForTypeWithProperties(bounds: CGRect, annotationType: string, properties: NSDictionary): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; removeBezierPath(path: UIBezierPath): void; @@ -485,9 +485,9 @@ declare class PDFBorder extends NSObject implements NSCoding, NSCopying { drawInRect(rect: CGRect): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var PDFBorderKeyDashPattern: string; @@ -960,9 +960,9 @@ declare class PDFThumbnailView extends UIView implements NSCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var PDFThumbnailViewDocumentEditedNotification: string; @@ -1168,6 +1168,8 @@ interface PDFViewDelegate extends NSObjectProtocol { PDFViewOpenPDFForRemoteGoToAction?(sender: PDFView, action: PDFActionRemoteGoTo): void; + PDFViewParentViewController?(): UIViewController; + PDFViewPerformFind?(sender: PDFView): void; PDFViewPerformGoToPage?(sender: PDFView): void; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!PassKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!PassKit.d.ts index b005348a80..37c0600416 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!PassKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!PassKit.d.ts @@ -21,6 +21,8 @@ declare class PKAddPassButton extends UIButton { static new(): PKAddPassButton; // inherited from NSObject + static systemButtonWithImageTargetAction(image: UIImage, target: any, action: string): PKAddPassButton; // inherited from UIButton + addPassButtonStyle: PKAddPassButtonStyle; constructor(o: { addPassButtonStyle: PKAddPassButtonStyle; }); @@ -107,6 +109,8 @@ declare class PKAddPaymentPassRequestConfiguration extends NSObject { primaryAccountSuffix: string; + productIdentifiers: NSSet; + requiresFelicaSecureElement: boolean; style: PKAddPaymentPassStyle; @@ -204,6 +208,69 @@ declare var PKContactFieldPhoneticName: string; declare var PKContactFieldPostalAddress: string; +declare class PKDisbursementAuthorizationController extends NSObject { + + static alloc(): PKDisbursementAuthorizationController; // inherited from NSObject + + static new(): PKDisbursementAuthorizationController; // inherited from NSObject + + static supportsDisbursements(): boolean; + + readonly delegate: PKDisbursementAuthorizationControllerDelegate; + + constructor(o: { disbursementRequest: PKDisbursementRequest; delegate: PKDisbursementAuthorizationControllerDelegate; }); + + authorizeDisbursementWithCompletion(completion: (p1: boolean, p2: NSError) => void): void; + + initWithDisbursementRequestDelegate(disbursementRequest: PKDisbursementRequest, delegate: PKDisbursementAuthorizationControllerDelegate): this; +} + +interface PKDisbursementAuthorizationControllerDelegate extends NSObjectProtocol { + + disbursementAuthorizationControllerDidAuthorizeWithDisbursementVoucher(controller: PKDisbursementAuthorizationController, disbursementVoucher: PKDisbursementVoucher): void; + + disbursementAuthorizationControllerDidFinish(controller: PKDisbursementAuthorizationController): void; +} +declare var PKDisbursementAuthorizationControllerDelegate: { + + prototype: PKDisbursementAuthorizationControllerDelegate; +}; + +declare class PKDisbursementRequest extends NSObject { + + static alloc(): PKDisbursementRequest; // inherited from NSObject + + static new(): PKDisbursementRequest; // inherited from NSObject + + amount: NSDecimalNumber; + + countryCode: string; + + currencyCode: string; + + requestSchedule: PKDisbursementRequestSchedule; + + summaryItems: NSArray; +} + +declare const enum PKDisbursementRequestSchedule { + + OneTime = 0, + + Future = 1 +} + +declare class PKDisbursementVoucher extends NSObject { + + static alloc(): PKDisbursementVoucher; // inherited from NSObject + + static new(): PKDisbursementVoucher; // inherited from NSObject + + readonly data: NSData; + + readonly redemptionURL: NSURL; +} + declare var PKEncryptionSchemeECC_V2: string; declare var PKEncryptionSchemeRSA_V2: string; @@ -551,6 +618,8 @@ declare class PKPaymentButton extends UIButton { static new(): PKPaymentButton; // inherited from NSObject + static systemButtonWithImageTargetAction(image: UIImage, target: any, action: string): PKPaymentButton; // inherited from UIButton + cornerRadius: number; constructor(o: { paymentButtonType: PKPaymentButtonType; paymentButtonStyle: PKPaymentButtonStyle; }); @@ -609,6 +678,8 @@ declare class PKPaymentMethod extends NSObject { static new(): PKPaymentMethod; // inherited from NSObject + readonly billingAddress: CNContact; + readonly displayName: string; readonly network: string; @@ -647,12 +718,16 @@ declare var PKPaymentNetworkEftpos: string; declare var PKPaymentNetworkElectron: string; +declare var PKPaymentNetworkElo: string; + declare var PKPaymentNetworkIDCredit: string; declare var PKPaymentNetworkInterac: string; declare var PKPaymentNetworkJCB: string; +declare var PKPaymentNetworkMada: string; + declare var PKPaymentNetworkMaestro: string; declare var PKPaymentNetworkMasterCard: string; @@ -755,6 +830,12 @@ declare class PKPaymentRequestPaymentMethodUpdate extends PKPaymentRequestUpdate static alloc(): PKPaymentRequestPaymentMethodUpdate; // inherited from NSObject static new(): PKPaymentRequestPaymentMethodUpdate; // inherited from NSObject + + errors: NSArray; + + constructor(o: { errors: NSArray | NSError[]; paymentSummaryItems: NSArray | PKPaymentSummaryItem[]; }); + + initWithErrorsPaymentSummaryItems(errors: NSArray | NSError[], paymentSummaryItems: NSArray | PKPaymentSummaryItem[]): this; } declare class PKPaymentRequestShippingContactUpdate extends PKPaymentRequestUpdate { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!PencilKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!PencilKit.d.ts new file mode 100644 index 0000000000..0ba51bfb2d --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!PencilKit.d.ts @@ -0,0 +1,234 @@ + +declare var PKAppleDrawingTypeIdentifier: string; + +declare class PKCanvasView extends UIScrollView implements PKToolPickerObserver { + + static alloc(): PKCanvasView; // inherited from NSObject + + static appearance(): PKCanvasView; // inherited from UIAppearance + + static appearanceForTraitCollection(trait: UITraitCollection): PKCanvasView; // inherited from UIAppearance + + static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): PKCanvasView; // inherited from UIAppearance + + static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): PKCanvasView; // inherited from UIAppearance + + static appearanceWhenContainedIn(ContainerClass: typeof NSObject): PKCanvasView; // inherited from UIAppearance + + static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): PKCanvasView; // inherited from UIAppearance + + static new(): PKCanvasView; // inherited from NSObject + + allowsFingerDrawing: boolean; + + delegate: PKCanvasViewDelegate; + + drawing: PKDrawing; + + readonly drawingGestureRecognizer: UIGestureRecognizer; + + rulerActive: boolean; + + tool: PKTool; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; + + toolPickerFramesObscuredDidChange(toolPicker: PKToolPicker): void; + + toolPickerIsRulerActiveDidChange(toolPicker: PKToolPicker): void; + + toolPickerSelectedToolDidChange(toolPicker: PKToolPicker): void; + + toolPickerVisibilityDidChange(toolPicker: PKToolPicker): void; +} + +interface PKCanvasViewDelegate extends NSObjectProtocol, UIScrollViewDelegate { + + canvasViewDidBeginUsingTool?(canvasView: PKCanvasView): void; + + canvasViewDidEndUsingTool?(canvasView: PKCanvasView): void; + + canvasViewDidFinishRendering?(canvasView: PKCanvasView): void; + + canvasViewDrawingDidChange?(canvasView: PKCanvasView): void; +} +declare var PKCanvasViewDelegate: { + + prototype: PKCanvasViewDelegate; +}; + +declare class PKDrawing extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): PKDrawing; // inherited from NSObject + + static new(): PKDrawing; // inherited from NSObject + + readonly bounds: CGRect; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { data: NSData; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + dataRepresentation(): NSData; + + drawingByAppendingDrawing(drawing: PKDrawing): PKDrawing; + + drawingByApplyingTransform(transform: CGAffineTransform): PKDrawing; + + encodeWithCoder(coder: NSCoder): void; + + imageFromRectScale(rect: CGRect, scale: number): UIImage; + + initWithCoder(coder: NSCoder): this; + + initWithDataError(data: NSData): this; +} + +declare class PKEraserTool extends PKTool { + + static alloc(): PKEraserTool; // inherited from NSObject + + static new(): PKEraserTool; // inherited from NSObject + + readonly eraserType: PKEraserType; + + constructor(o: { eraserType: PKEraserType; }); + + initWithEraserType(eraserType: PKEraserType): this; +} + +declare const enum PKEraserType { + + Vector = 0, + + Bitmap = 1 +} + +declare var PKInkTypeMarker: string; + +declare var PKInkTypePen: string; + +declare var PKInkTypePencil: string; + +declare class PKInkingTool extends PKTool { + + static alloc(): PKInkingTool; // inherited from NSObject + + static convertColorFromUserInterfaceStyleTo(color: UIColor, fromUserInterfaceStyle: UIUserInterfaceStyle, toUserInterfaceStyle: UIUserInterfaceStyle): UIColor; + + static defaultWidthForInkType(inkType: string): number; + + static maximumWidthForInkType(inkType: string): number; + + static minimumWidthForInkType(inkType: string): number; + + static new(): PKInkingTool; // inherited from NSObject + + readonly color: UIColor; + + readonly inkType: string; + + readonly width: number; + + constructor(o: { inkType: string; color: UIColor; }); + + constructor(o: { inkType: string; color: UIColor; width: number; }); + + initWithInkTypeColor(type: string, color: UIColor): this; + + initWithInkTypeColorWidth(type: string, color: UIColor, width: number): this; +} + +declare class PKLassoTool extends PKTool { + + static alloc(): PKLassoTool; // inherited from NSObject + + static new(): PKLassoTool; // inherited from NSObject +} + +declare class PKTool extends NSObject implements NSCopying { + + static alloc(): PKTool; // inherited from NSObject + + static new(): PKTool; // inherited from NSObject + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class PKToolPicker extends NSObject { + + static alloc(): PKToolPicker; // inherited from NSObject + + static new(): PKToolPicker; // inherited from NSObject + + static sharedToolPickerForWindow(window: UIWindow): PKToolPicker; + + colorUserInterfaceStyle: UIUserInterfaceStyle; + + readonly isVisible: boolean; + + overrideUserInterfaceStyle: UIUserInterfaceStyle; + + rulerActive: boolean; + + selectedTool: PKTool; + + addObserver(observer: PKToolPickerObserver): void; + + frameObscuredInView(view: UIView): CGRect; + + removeObserver(observer: PKToolPickerObserver): void; + + setVisibleForFirstResponder(visible: boolean, responder: UIResponder): void; +} + +interface PKToolPickerObserver extends NSObjectProtocol { + + toolPickerFramesObscuredDidChange?(toolPicker: PKToolPicker): void; + + toolPickerIsRulerActiveDidChange?(toolPicker: PKToolPicker): void; + + toolPickerSelectedToolDidChange?(toolPicker: PKToolPicker): void; + + toolPickerVisibilityDidChange?(toolPicker: PKToolPicker): void; +} +declare var PKToolPickerObserver: { + + prototype: PKToolPickerObserver; +}; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Photos.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Photos.d.ts index fac6a92d13..c7280e9d2a 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Photos.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Photos.d.ts @@ -82,7 +82,7 @@ declare const enum PHAssetBurstSelectionType { UserPick = 2 } -declare class PHAssetChangeRequest extends NSObject { +declare class PHAssetChangeRequest extends PHChangeRequest { static alloc(): PHAssetChangeRequest; // inherited from NSObject @@ -150,7 +150,7 @@ declare class PHAssetCollection extends PHCollection { readonly startDate: Date; } -declare class PHAssetCollectionChangeRequest extends NSObject { +declare class PHAssetCollectionChangeRequest extends PHChangeRequest { static alloc(): PHAssetCollectionChangeRequest; // inherited from NSObject @@ -229,6 +229,8 @@ declare const enum PHAssetCollectionSubtype { SmartAlbumLongExposures = 215, + SmartAlbumUnableToUpload = 216, + Any = 9223372036854775807 } @@ -404,7 +406,9 @@ declare const enum PHAssetResourceType { FullSizePairedVideo = 10, - AdjustmentBasePairedVideo = 11 + AdjustmentBasePairedVideo = 11, + + AdjustmentBaseVideo = 12 } declare const enum PHAssetSourceType { @@ -455,6 +459,36 @@ declare class PHChange extends NSObject { changeDetailsForObject(object: PHObject): PHObjectChangeDetails; } +declare class PHChangeRequest extends NSObject { + + static alloc(): PHChangeRequest; // inherited from NSObject + + static new(): PHChangeRequest; // inherited from NSObject +} + +declare class PHCloudIdentifier extends NSObject implements NSSecureCoding { + + static alloc(): PHCloudIdentifier; // inherited from NSObject + + static new(): PHCloudIdentifier; // inherited from NSObject + + readonly stringValue: string; + + static readonly notFoundIdentifier: PHCloudIdentifier; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { stringValue: string; }); + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithStringValue(stringValue: string): this; +} + declare class PHCollection extends PHObject { static alloc(): PHCollection; // inherited from NSObject @@ -522,7 +556,7 @@ declare class PHCollectionList extends PHCollection { readonly startDate: Date; } -declare class PHCollectionListChangeRequest extends NSObject { +declare class PHCollectionListChangeRequest extends PHChangeRequest { static alloc(): PHCollectionListChangeRequest; // inherited from NSObject @@ -766,6 +800,8 @@ declare class PHImageManager extends NSObject { requestExportSessionForVideoOptionsExportPresetResultHandler(asset: PHAsset, options: PHVideoRequestOptions, exportPreset: string, resultHandler: (p1: AVAssetExportSession, p2: NSDictionary) => void): number; + requestImageDataAndOrientationForAssetOptionsResultHandler(asset: PHAsset, options: PHImageRequestOptions, resultHandler: (p1: NSData, p2: string, p3: CGImagePropertyOrientation, p4: NSDictionary) => void): number; + requestImageDataForAssetOptionsResultHandler(asset: PHAsset, options: PHImageRequestOptions, resultHandler: (p1: NSData, p2: string, p3: UIImageOrientation, p4: NSDictionary) => void): number; requestImageForAssetTargetSizeContentModeOptionsResultHandler(asset: PHAsset, targetSize: CGSize, contentMode: PHImageContentMode, options: PHImageRequestOptions, resultHandler: (p1: UIImage, p2: NSDictionary) => void): number; @@ -855,9 +891,9 @@ declare class PHLivePhoto extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class PHLivePhotoEditingContext extends NSObject { @@ -938,6 +974,8 @@ declare class PHLivePhotoRequestOptions extends NSObject implements NSCopying { declare var PHLivePhotoShouldRenderAtPlaybackTime: string; +declare var PHLocalIdentifierNotFound: string; + declare class PHObject extends NSObject implements NSCopying { static alloc(): PHObject; // inherited from NSObject @@ -983,15 +1021,34 @@ declare class PHPhotoLibrary extends NSObject { static sharedPhotoLibrary(): PHPhotoLibrary; + readonly unavailabilityReason: NSError; + + cloudIdentifiersForLocalIdentifiers(localIdentifiers: NSArray | string[]): NSArray; + + localIdentifiersForCloudIdentifiers(cloudIdentifiers: NSArray | PHCloudIdentifier[]): NSArray; + performChangesAndWaitError(changeBlock: () => void): boolean; performChangesCompletionHandler(changeBlock: () => void, completionHandler: (p1: boolean, p2: NSError) => void): void; + registerAvailabilityObserver(observer: PHPhotoLibraryAvailabilityObserver): void; + registerChangeObserver(observer: PHPhotoLibraryChangeObserver): void; + unregisterAvailabilityObserver(observer: PHPhotoLibraryAvailabilityObserver): void; + unregisterChangeObserver(observer: PHPhotoLibraryChangeObserver): void; } +interface PHPhotoLibraryAvailabilityObserver extends NSObjectProtocol { + + photoLibraryDidBecomeUnavailable(photoLibrary: PHPhotoLibrary): void; +} +declare var PHPhotoLibraryAvailabilityObserver: { + + prototype: PHPhotoLibraryAvailabilityObserver; +}; + interface PHPhotoLibraryChangeObserver extends NSObjectProtocol { photoLibraryDidChange(changeInstance: PHChange): void; @@ -1001,6 +1058,48 @@ declare var PHPhotoLibraryChangeObserver: { prototype: PHPhotoLibraryChangeObserver; }; +declare var PHPhotosErrorDomain: string; + +declare const PHPhotosErrorInvalid: number; + +declare const PHPhotosErrorLibraryVolumeOffline: number; + +declare const PHPhotosErrorRelinquishingLibraryBundleToWriter: number; + +declare const PHPhotosErrorSwitchingSystemPhotoLibrary: number; + +declare const PHPhotosErrorUserCancelled: number; + +declare class PHProject extends PHAssetCollection { + + static alloc(): PHProject; // inherited from NSObject + + static new(): PHProject; // inherited from NSObject + + readonly hasProjectPreview: boolean; + + readonly projectExtensionData: NSData; +} + +declare class PHProjectChangeRequest extends PHChangeRequest { + + static alloc(): PHProjectChangeRequest; // inherited from NSObject + + static new(): PHProjectChangeRequest; // inherited from NSObject + + projectExtensionData: NSData; + + title: string; + + constructor(o: { project: PHProject; }); + + initWithProject(project: PHProject): this; + + removeAssets(assets: NSFastEnumeration): void; + + setProjectPreviewImage(previewImage: UIImage): void; +} + declare class PHVideoRequestOptions extends NSObject { static alloc(): PHVideoRequestOptions; // inherited from NSObject diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Pods_iostypingsprj.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Pods_iostypingsprj.d.ts new file mode 100644 index 0000000000..d73cdc52e3 --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Pods_iostypingsprj.d.ts @@ -0,0 +1,4 @@ + +declare var Pods_iostypingsprjVersionNumber: number; + +declare var Pods_iostypingsprjVersionString: interop.Reference; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!QuartzCore.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!QuartzCore.d.ts index 6b3aa38ad4..de911ef277 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!QuartzCore.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!QuartzCore.d.ts @@ -72,9 +72,9 @@ declare class CAAnimation extends NSObject implements CAAction, CAMediaTiming, N copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -302,9 +302,9 @@ declare class CAEmitterCell extends NSObject implements CAMediaTiming, NSSecureC constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; shouldArchiveValueForKey(key: string): boolean; } @@ -400,6 +400,8 @@ declare class CALayer extends NSObject implements CAMediaTiming, NSSecureCoding static alloc(): CALayer; // inherited from NSObject + static cornerCurveExpansionFactor(curve: string): number; + static defaultActionForKey(event: string): CAAction; static defaultValueForKey(key: string): any; @@ -444,6 +446,8 @@ declare class CALayer extends NSObject implements CAMediaTiming, NSSecureCoding contentsScale: number; + cornerCurve: string; + cornerRadius: number; delegate: CALayerDelegate; @@ -568,11 +572,11 @@ declare class CALayer extends NSObject implements CAMediaTiming, NSSecureCoding drawInContext(ctx: any): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; hitTest(p: CGPoint): CALayer; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithLayer(layer: any): this; @@ -669,6 +673,8 @@ declare class CAMediaTimingFunction extends NSObject implements NSSecureCoding { static functionWithName(name: string): CAMediaTimingFunction; + static mdc_functionWithType(type: MDCAnimationTimingFunction): CAMediaTimingFunction; + static new(): CAMediaTimingFunction; // inherited from NSObject static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding @@ -677,15 +683,55 @@ declare class CAMediaTimingFunction extends NSObject implements NSSecureCoding { constructor(o: { controlPoints: number; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; getControlPointAtIndexValues(idx: number, ptr: interop.Reference): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithControlPoints(c1x: number, c1y: number, c2x: number, c2y: number): this; } +interface CAMetalDrawable extends MTLDrawable { + + layer: CAMetalLayer; + + texture: MTLTexture; +} +declare var CAMetalDrawable: { + + prototype: CAMetalDrawable; +}; + +declare class CAMetalLayer extends CALayer { + + static alloc(): CAMetalLayer; // inherited from NSObject + + static layer(): CAMetalLayer; // inherited from CALayer + + static new(): CAMetalLayer; // inherited from NSObject + + allowsNextDrawableTimeout: boolean; + + colorspace: any; + + device: MTLDevice; + + drawableSize: CGSize; + + framebufferOnly: boolean; + + maximumDrawableCount: number; + + pixelFormat: MTLPixelFormat; + + readonly preferredDevice: MTLDevice; + + presentsWithTransaction: boolean; + + nextDrawable(): CAMetalDrawable; +} + declare class CAPropertyAnimation extends CAAnimation { static alloc(): CAPropertyAnimation; // inherited from NSObject @@ -968,9 +1014,9 @@ declare class CAValueFunction extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } interface _CALayerIvars { @@ -1010,6 +1056,10 @@ declare var kCAContentsFormatRGBA16Float: string; declare var kCAContentsFormatRGBA8Uint: string; +declare var kCACornerCurveCircular: string; + +declare var kCACornerCurveContinuous: string; + declare var kCAEmitterLayerAdditive: string; declare var kCAEmitterLayerBackToFront: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!QuickLook.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!QuickLook.d.ts index 15c18abded..655bde5050 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!QuickLook.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!QuickLook.d.ts @@ -1,19 +1,4 @@ -declare class QLFileThumbnailRequest extends NSObject { - - static alloc(): QLFileThumbnailRequest; // inherited from NSObject - - static new(): QLFileThumbnailRequest; // inherited from NSObject - - readonly fileURL: NSURL; - - readonly maximumSize: CGSize; - - readonly minimumSize: CGSize; - - readonly scale: number; -} - declare class QLPreviewController extends UIViewController { static alloc(): QLPreviewController; // inherited from NSObject @@ -50,6 +35,12 @@ interface QLPreviewControllerDelegate extends NSObjectProtocol { previewControllerDidDismiss?(controller: QLPreviewController): void; + previewControllerDidSaveEditedCopyOfPreviewItemAtURL?(controller: QLPreviewController, previewItem: QLPreviewItem, modifiedContentsURL: NSURL): void; + + previewControllerDidUpdateContentsOfPreviewItem?(controller: QLPreviewController, previewItem: QLPreviewItem): void; + + previewControllerEditingModeForPreviewItem?(controller: QLPreviewController, previewItem: QLPreviewItem): QLPreviewItemEditingMode; + previewControllerFrameForPreviewItemInSourceView?(controller: QLPreviewController, item: QLPreviewItem, view: interop.Pointer | interop.Reference): CGRect; previewControllerShouldOpenURLForPreviewItem?(controller: QLPreviewController, url: NSURL, item: QLPreviewItem): boolean; @@ -76,6 +67,15 @@ declare var QLPreviewItem: { prototype: QLPreviewItem; }; +declare const enum QLPreviewItemEditingMode { + + Disabled = 0, + + UpdateContents = 1, + + CreateCopy = 2 +} + interface QLPreviewingController extends NSObjectProtocol { preparePreviewOfFileAtURLCompletionHandler?(url: NSURL, handler: (p1: NSError) => void): void; @@ -86,25 +86,3 @@ declare var QLPreviewingController: { prototype: QLPreviewingController; }; - -declare class QLThumbnailProvider extends NSObject { - - static alloc(): QLThumbnailProvider; // inherited from NSObject - - static new(): QLThumbnailProvider; // inherited from NSObject - - provideThumbnailForFileRequestCompletionHandler(request: QLFileThumbnailRequest, handler: (p1: QLThumbnailReply, p2: NSError) => void): void; -} - -declare class QLThumbnailReply extends NSObject { - - static alloc(): QLThumbnailReply; // inherited from NSObject - - static new(): QLThumbnailReply; // inherited from NSObject - - static replyWithContextSizeCurrentContextDrawingBlock(contextSize: CGSize, drawingBlock: () => boolean): QLThumbnailReply; - - static replyWithContextSizeDrawingBlock(contextSize: CGSize, drawingBlock: (p1: any) => boolean): QLThumbnailReply; - - static replyWithImageFileURL(fileURL: NSURL): QLThumbnailReply; -} diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!QuickLookThumbnailing.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!QuickLookThumbnailing.d.ts new file mode 100644 index 0000000000..0bfc9f7296 --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!QuickLookThumbnailing.d.ts @@ -0,0 +1,135 @@ + +declare class QLFileThumbnailRequest extends NSObject { + + static alloc(): QLFileThumbnailRequest; // inherited from NSObject + + static new(): QLFileThumbnailRequest; // inherited from NSObject + + readonly fileURL: NSURL; + + readonly maximumSize: CGSize; + + readonly minimumSize: CGSize; + + readonly scale: number; +} + +declare const enum QLThumbnailError { + + GenerationFailed = 0, + + SavingToURLFailed = 1, + + NoCachedThumbnail = 2, + + NoCloudThumbnail = 3, + + RequestInvalid = 4, + + RequestCancelled = 5 +} + +declare var QLThumbnailErrorDomain: string; + +declare class QLThumbnailGenerationRequest extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): QLThumbnailGenerationRequest; // inherited from NSObject + + static new(): QLThumbnailGenerationRequest; // inherited from NSObject + + iconMode: boolean; + + minimumDimension: number; + + readonly representationTypes: QLThumbnailGenerationRequestRepresentationTypes; + + readonly scale: number; + + readonly size: CGSize; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { fileAtURL: NSURL; size: CGSize; scale: number; representationTypes: QLThumbnailGenerationRequestRepresentationTypes; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithFileAtURLSizeScaleRepresentationTypes(url: NSURL, size: CGSize, scale: number, representationTypes: QLThumbnailGenerationRequestRepresentationTypes): this; +} + +declare const enum QLThumbnailGenerationRequestRepresentationTypes { + + Icon = 1, + + LowQualityThumbnail = 2, + + Thumbnail = 4, + + All = -1 +} + +declare class QLThumbnailGenerator extends NSObject { + + static alloc(): QLThumbnailGenerator; // inherited from NSObject + + static new(): QLThumbnailGenerator; // inherited from NSObject + + static readonly sharedGenerator: QLThumbnailGenerator; + + cancelRequest(request: QLThumbnailGenerationRequest): void; + + generateBestRepresentationForRequestCompletionHandler(request: QLThumbnailGenerationRequest, completionHandler: (p1: QLThumbnailRepresentation, p2: NSError) => void): void; + + generateRepresentationsForRequestUpdateHandler(request: QLThumbnailGenerationRequest, updateHandler: (p1: QLThumbnailRepresentation, p2: QLThumbnailRepresentationType, p3: NSError) => void): void; + + saveBestRepresentationForRequestToFileAtURLWithContentTypeCompletionHandler(request: QLThumbnailGenerationRequest, fileURL: NSURL, contentType: string, completionHandler: (p1: NSError) => void): void; +} + +declare class QLThumbnailProvider extends NSObject { + + static alloc(): QLThumbnailProvider; // inherited from NSObject + + static new(): QLThumbnailProvider; // inherited from NSObject + + provideThumbnailForFileRequestCompletionHandler(request: QLFileThumbnailRequest, handler: (p1: QLThumbnailReply, p2: NSError) => void): void; +} + +declare class QLThumbnailReply extends NSObject { + + static alloc(): QLThumbnailReply; // inherited from NSObject + + static new(): QLThumbnailReply; // inherited from NSObject + + static replyWithContextSizeCurrentContextDrawingBlock(contextSize: CGSize, drawingBlock: () => boolean): QLThumbnailReply; + + static replyWithContextSizeDrawingBlock(contextSize: CGSize, drawingBlock: (p1: any) => boolean): QLThumbnailReply; + + static replyWithImageFileURL(fileURL: NSURL): QLThumbnailReply; +} + +declare class QLThumbnailRepresentation extends NSObject { + + static alloc(): QLThumbnailRepresentation; // inherited from NSObject + + static new(): QLThumbnailRepresentation; // inherited from NSObject + + readonly CGImage: any; + + readonly UIImage: UIImage; + + readonly type: QLThumbnailRepresentationType; +} + +declare const enum QLThumbnailRepresentationType { + + Icon = 0, + + LowQualityThumbnail = 1, + + Thumbnail = 2 +} diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!ReplayKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!ReplayKit.d.ts index 8d7a39db4a..50cad2b133 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!ReplayKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!ReplayKit.d.ts @@ -37,9 +37,9 @@ declare class RPBroadcastConfiguration extends NSObject implements NSCoding, NSS constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class RPBroadcastController extends NSObject { @@ -233,7 +233,37 @@ declare const enum RPRecordingErrorCode { FailedMediaServicesFailure = -5817, - VideoMixingFailure = -5818 + VideoMixingFailure = -5818, + + BroadcastSetupFailed = -5819, + + FailedToObtainURL = -5820, + + FailedIncorrectTimeStamps = -5821, + + FailedToProcessFirstSample = -5822, + + FailedAssetWriterFailedToSave = -5823, + + FailedNoAssetWriter = -5824, + + FailedAssetWriterInWrongState = -5825, + + FailedAssetWriterExportFailed = -5826, + + FailedToRemoveFile = -5827, + + FailedAssetWriterExportCanceled = -5828, + + AttemptToStopNonRecording = -5829, + + AttemptToStartInRecordingState = -5830, + + PhotoFailure = -5831, + + RecordingInvalidSession = -5832, + + CodeSuccessful = 0 } declare var RPRecordingErrorDomain: string; @@ -319,9 +349,9 @@ declare class RPSystemBroadcastPickerView extends UIView implements NSCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var RPVideoSampleOrientationKey: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!SQLite3.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!SQLite3.d.ts index 1a0bc5cd91..bfa1ec35cd 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!SQLite3.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!SQLite3.d.ts @@ -192,6 +192,8 @@ declare function sqlite3_create_module(db: interop.Pointer | interop.Reference, zName: string, p: interop.Pointer | interop.Reference, pClientData: interop.Pointer | interop.Reference, xDestroy: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>): number; +declare function sqlite3_create_window_function(db: interop.Pointer | interop.Reference, zFunctionName: string, nArg: number, eTextRep: number, pApp: interop.Pointer | interop.Reference, xStep: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number, p3: interop.Pointer | interop.Reference>) => void>, xFinal: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>, xValue: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>, xInverse: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number, p3: interop.Pointer | interop.Reference>) => void>, xDestroy: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>): number; + declare function sqlite3_data_count(pStmt: interop.Pointer | interop.Reference): number; declare var sqlite3_data_directory: string; @@ -379,6 +381,7 @@ interface sqlite3_module { xSavepoint: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number) => number>; xRelease: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number) => number>; xRollbackTo: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number) => number>; + xShadowName: interop.FunctionReference<(p1: string) => number>; } declare var sqlite3_module: interop.StructType; @@ -592,6 +595,8 @@ declare function sqlite3_step(p1: interop.Pointer | interop.Reference): num declare function sqlite3_stmt_busy(p1: interop.Pointer | interop.Reference): number; +declare function sqlite3_stmt_isexplain(pStmt: interop.Pointer | interop.Reference): number; + declare function sqlite3_stmt_readonly(pStmt: interop.Pointer | interop.Reference): number; declare function sqlite3_stmt_status(p1: interop.Pointer | interop.Reference, op: number, resetFlg: number): number; @@ -662,6 +667,8 @@ declare function sqlite3_value_dup(p1: interop.Pointer | interop.Reference) declare function sqlite3_value_free(p1: interop.Pointer | interop.Reference): void; +declare function sqlite3_value_frombind(p1: interop.Pointer | interop.Reference): number; + declare function sqlite3_value_int(p1: interop.Pointer | interop.Reference): number; declare function sqlite3_value_int64(p1: interop.Pointer | interop.Reference): number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!SceneKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!SceneKit.d.ts index 2868dce8d9..cee85eb0bd 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!SceneKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!SceneKit.d.ts @@ -92,9 +92,9 @@ declare class SCNAction extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; reversedAction(): SCNAction; } @@ -240,9 +240,9 @@ declare class SCNAnimation extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -320,9 +320,9 @@ declare class SCNAnimationPlayer extends NSObject implements NSCopying, NSSecure copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isAnimationForKeyPaused(key: string): boolean; @@ -438,9 +438,9 @@ declare class SCNAudioSource extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithFileNamed(name: string): this; @@ -600,6 +600,10 @@ declare class SCNCamera extends NSObject implements NSCopying, NSSecureCoding, S bloomIntensity: number; + bloomIterationCount: number; + + bloomIterationSpread: number; + bloomThreshold: number; categoryBitMask: number; @@ -634,6 +638,12 @@ declare class SCNCamera extends NSObject implements NSCopying, NSSecureCoding, S focusDistance: number; + grainIntensity: number; + + grainIsColored: boolean; + + grainScale: number; + maximumExposure: number; minimumExposure: number; @@ -674,6 +684,10 @@ declare class SCNCamera extends NSObject implements NSCopying, NSSecureCoding, S wantsHDR: boolean; + whiteBalanceTemperature: number; + + whiteBalanceTint: number; + whitePoint: number; xFov: number; @@ -718,9 +732,9 @@ declare class SCNCamera extends NSObject implements NSCopying, NSSecureCoding, S copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isAnimationForKeyPaused(key: string): boolean; @@ -738,6 +752,8 @@ declare class SCNCamera extends NSObject implements NSCopying, NSSecureCoding, S performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + projectionTransformWithViewportSize(viewportSize: CGSize): SCNMatrix4; + removeAllAnimations(): void; removeAnimationForKey(key: string): void; @@ -987,9 +1003,9 @@ declare class SCNConstraint extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isAnimationForKeyPaused(key: string): boolean; @@ -1181,6 +1197,8 @@ declare class SCNGeometry extends NSObject implements NSCopying, NSSecureCoding, subdivisionLevel: number; + tessellator: SCNGeometryTessellator; + wantsAdaptiveSubdivision: boolean; readonly animationKeys: NSArray; // inherited from SCNAnimatable @@ -1219,7 +1237,7 @@ declare class SCNGeometry extends NSObject implements NSCopying, NSSecureCoding, copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; geometryElementAtIndex(elementIndex: number): SCNGeometryElement; @@ -1233,7 +1251,7 @@ declare class SCNGeometry extends NSObject implements NSCopying, NSSecureCoding, handleUnbindingOfSymbolUsingBlock(symbol: string, block: (p1: number, p2: number, p3: SCNNode, p4: SCNRenderer) => void): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; insertMaterialAtIndex(material: SCNMaterial, index: number): void; @@ -1310,9 +1328,9 @@ declare class SCNGeometryElement extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum SCNGeometryPrimitiveType { @@ -1332,6 +1350,8 @@ declare class SCNGeometrySource extends NSObject implements NSSecureCoding { static alloc(): SCNGeometrySource; // inherited from NSObject + static geometrySourceWithBufferVertexFormatSemanticVertexCountDataOffsetDataStride(mtlBuffer: MTLBuffer, vertexFormat: MTLVertexFormat, semantic: string, vertexCount: number, offset: number, stride: number): SCNGeometrySource; + static geometrySourceWithDataSemanticVectorCountFloatComponentsComponentsPerVectorBytesPerComponentDataOffsetDataStride(data: NSData, semantic: string, vectorCount: number, floatComponents: boolean, componentsPerVector: number, bytesPerComponent: number, offset: number, stride: number): SCNGeometrySource; static geometrySourceWithNormalsCount(normals: interop.Pointer | interop.Reference, count: number): SCNGeometrySource; @@ -1362,9 +1382,9 @@ declare class SCNGeometrySource extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var SCNGeometrySourceSemanticBoneIndices: string; @@ -1385,6 +1405,39 @@ declare var SCNGeometrySourceSemanticVertex: string; declare var SCNGeometrySourceSemanticVertexCrease: string; +declare class SCNGeometryTessellator extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): SCNGeometryTessellator; // inherited from NSObject + + static new(): SCNGeometryTessellator; // inherited from NSObject + + adaptive: boolean; + + edgeTessellationFactor: number; + + insideTessellationFactor: number; + + maximumEdgeLength: number; + + screenSpace: boolean; + + smoothingMode: SCNTessellationSmoothingMode; + + tessellationFactorScale: number; + + tessellationPartitionMode: MTLTessellationPartitionMode; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + declare var SCNHitTestBackFaceCullingKey: string; declare var SCNHitTestBoundingBoxOnlyKey: string; @@ -1399,6 +1452,8 @@ declare var SCNHitTestIgnoreHiddenNodesKey: string; declare var SCNHitTestOptionCategoryBitMask: string; +declare var SCNHitTestOptionIgnoreLightArea: string; + declare var SCNHitTestOptionSearchMode: string; declare class SCNHitTestResult extends NSObject { @@ -1421,6 +1476,16 @@ declare class SCNHitTestResult extends NSObject { readonly node: SCNNode; + readonly simdLocalCoordinates: interop.Reference; + + readonly simdLocalNormal: interop.Reference; + + readonly simdModelTransform: simd_float4x4; + + readonly simdWorldCoordinates: interop.Reference; + + readonly simdWorldNormal: interop.Reference; + readonly worldCoordinates: SCNVector3; readonly worldNormal: SCNVector3; @@ -1501,9 +1566,9 @@ declare class SCNLevelOfDetail extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SCNLight extends NSObject implements NSCopying, NSSecureCoding, SCNAnimatable, SCNTechniqueSupport { @@ -1518,6 +1583,12 @@ declare class SCNLight extends NSObject implements NSCopying, NSSecureCoding, SC IESProfileURL: NSURL; + areaExtents: interop.Reference; + + areaPolygonVertices: NSArray; + + areaType: SCNLightAreaType; + attenuationEndDistance: number; attenuationFalloffExponent: number; @@ -1532,6 +1603,10 @@ declare class SCNLight extends NSObject implements NSCopying, NSSecureCoding, SC color: any; + doubleSided: boolean; + + drawsArea: boolean; + forcesBackFaceCasters: boolean; readonly gobo: SCNMaterialProperty; @@ -1544,6 +1619,22 @@ declare class SCNLight extends NSObject implements NSCopying, NSSecureCoding, SC orthographicScale: number; + parallaxCenterOffset: interop.Reference; + + parallaxCorrectionEnabled: boolean; + + parallaxExtentsFactor: interop.Reference; + + readonly probeEnvironment: SCNMaterialProperty; + + probeExtents: interop.Reference; + + probeOffset: interop.Reference; + + probeType: SCNLightProbeType; + + probeUpdateType: SCNLightProbeUpdateType; + sampleDistributedShadowMaps: boolean; shadowBias: number; @@ -1610,9 +1701,9 @@ declare class SCNLight extends NSObject implements NSCopying, NSSecureCoding, SC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isAnimationForKeyPaused(key: string): boolean; @@ -1649,8 +1740,31 @@ declare class SCNLight extends NSObject implements NSCopying, NSSecureCoding, SC setSpeedForAnimationKey(speed: number, key: string): void; } +declare const enum SCNLightAreaType { + + Rectangle = 1, + + Polygon = 4 +} + +declare const enum SCNLightProbeType { + + Irradiance = 0, + + Radiance = 1 +} + +declare const enum SCNLightProbeUpdateType { + + Never = 0, + + Realtime = 1 +} + declare var SCNLightTypeAmbient: string; +declare var SCNLightTypeArea: string; + declare var SCNLightTypeDirectional: string; declare var SCNLightTypeIES: string; @@ -1671,6 +1785,8 @@ declare var SCNLightingModelPhong: string; declare var SCNLightingModelPhysicallyBased: string; +declare var SCNLightingModelShadowOnly: string; + declare class SCNLookAtConstraint extends SCNConstraint { static alloc(): SCNLookAtConstraint; // inherited from NSObject @@ -1708,6 +1824,12 @@ declare class SCNMaterial extends NSObject implements NSCopying, NSSecureCoding, blendMode: SCNBlendMode; + readonly clearCoat: SCNMaterialProperty; + + readonly clearCoatNormal: SCNMaterialProperty; + + readonly clearCoatRoughness: SCNMaterialProperty; + colorBufferWriteMask: SCNColorMask; cullMode: SCNCullMode; @@ -1794,13 +1916,13 @@ declare class SCNMaterial extends NSObject implements NSCopying, NSSecureCoding, copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; handleBindingOfSymbolUsingBlock(symbol: string, block: (p1: number, p2: number, p3: SCNNode, p4: SCNRenderer) => void): void; handleUnbindingOfSymbolUsingBlock(symbol: string, block: (p1: number, p2: number, p3: SCNNode, p4: SCNRenderer) => void): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isAnimationForKeyPaused(key: string): boolean; @@ -1899,9 +2021,9 @@ declare class SCNMaterialProperty extends NSObject implements NSSecureCoding, SC conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isAnimationForKeyPaused(key: string): boolean; @@ -2024,9 +2146,9 @@ declare class SCNMorpher extends NSObject implements NSSecureCoding, SCNAnimatab conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isAnimationForKeyPaused(key: string): boolean; @@ -2289,7 +2411,7 @@ declare class SCNNode extends NSObject implements NSCopying, NSSecureCoding, SCN didUpdateFocusInContextWithAnimationCoordinator(context: UIFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateChildNodesUsingBlock(block: (p1: SCNNode, p2: interop.Pointer | interop.Reference) => void): void; @@ -2303,7 +2425,7 @@ declare class SCNNode extends NSObject implements NSCopying, NSSecureCoding, SCN hitTestWithSegmentFromPointToPointOptions(pointA: SCNVector3, pointB: SCNVector3, options: NSDictionary): NSArray; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; insertChildNodeAtIndex(child: SCNNode, index: number): void; @@ -2550,9 +2672,9 @@ declare class SCNParticlePropertyController extends NSObject implements NSCopyin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var SCNParticlePropertyFrame: string; @@ -2756,11 +2878,11 @@ declare class SCNParticleSystem extends NSObject implements NSCopying, NSSecureC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; handleEventForPropertiesWithBlock(event: SCNParticleEvent, properties: NSArray | string[], block: (p1: interop.Pointer | interop.Reference>, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: number) => void): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isAnimationForKeyPaused(key: string): boolean; @@ -2832,9 +2954,9 @@ declare class SCNPhysicsBehavior extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SCNPhysicsBody extends NSObject implements NSCopying, NSSecureCoding { @@ -2915,9 +3037,9 @@ declare class SCNPhysicsBody extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; resetTransform(): void; @@ -3055,9 +3177,9 @@ declare class SCNPhysicsField extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum SCNPhysicsFieldScope { @@ -3114,9 +3236,9 @@ declare class SCNPhysicsShape extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var SCNPhysicsShapeKeepAsCompoundKey: string; @@ -3243,9 +3365,9 @@ declare class SCNPhysicsVehicleWheel extends NSObject implements NSCopying, NSSe copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SCNPhysicsWorld extends NSObject implements NSSecureCoding { @@ -3276,9 +3398,9 @@ declare class SCNPhysicsWorld extends NSObject implements NSSecureCoding { convexSweepTestWithShapeFromTransformToTransformOptions(shape: SCNPhysicsShape, from: SCNMatrix4, to: SCNMatrix4, options: NSDictionary): NSArray; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; rayTestWithSegmentFromPointToPointOptions(origin: SCNVector3, dest: SCNVector3, options: NSDictionary): NSArray; @@ -3350,11 +3472,11 @@ declare class SCNProgram extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; handleBindingOfBufferNamedFrequencyUsingBlock(name: string, frequency: SCNBufferFrequency, block: (p1: SCNBufferStream, p2: SCNNode, p3: SCNShadable, p4: SCNRenderer) => void): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; semanticForSymbol(symbol: string): string; @@ -3457,16 +3579,28 @@ declare class SCNRenderer extends NSObject implements SCNSceneRenderer, SCNTechn autoenablesDefaultLighting: boolean; // inherited from SCNSceneRenderer + readonly colorPixelFormat: MTLPixelFormat; // inherited from SCNSceneRenderer + + readonly commandQueue: MTLCommandQueue; // inherited from SCNSceneRenderer + readonly context: interop.Pointer | interop.Reference; // inherited from SCNSceneRenderer + readonly currentRenderCommandEncoder: MTLRenderCommandEncoder; // inherited from SCNSceneRenderer + + readonly currentViewport: CGRect; // inherited from SCNSceneRenderer + readonly debugDescription: string; // inherited from NSObjectProtocol debugOptions: SCNDebugOptions; // inherited from SCNSceneRenderer delegate: SCNSceneRendererDelegate; // inherited from SCNSceneRenderer + readonly depthPixelFormat: MTLPixelFormat; // inherited from SCNSceneRenderer + readonly description: string; // inherited from NSObjectProtocol + readonly device: MTLDevice; // inherited from SCNSceneRenderer + readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol @@ -3489,10 +3623,16 @@ declare class SCNRenderer extends NSObject implements SCNSceneRenderer, SCNTechn showsStatistics: boolean; // inherited from SCNSceneRenderer + readonly stencilPixelFormat: MTLPixelFormat; // inherited from SCNSceneRenderer + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol technique: SCNTechnique; // inherited from SCNTechniqueSupport + temporalAntialiasingEnabled: boolean; // inherited from SCNSceneRenderer + + usesReverseZ: boolean; // inherited from SCNSceneRenderer + readonly // inherited from NSObjectProtocol class(): typeof NSObject; @@ -3614,6 +3754,14 @@ declare class SCNScene extends NSObject implements GKSceneRootNodeType, NSSecure readonly rootNode: SCNNode; + screenSpaceReflectionMaximumDistance: number; + + screenSpaceReflectionSampleCount: number; + + screenSpaceReflectionStride: number; + + wantsScreenSpaceReflection: boolean; + readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol @@ -3638,9 +3786,9 @@ declare class SCNScene extends NSObject implements GKSceneRootNodeType, NSSecure conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -3694,12 +3842,24 @@ interface SCNSceneRenderer extends NSObjectProtocol { autoenablesDefaultLighting: boolean; + colorPixelFormat: MTLPixelFormat; + + commandQueue: MTLCommandQueue; + context: interop.Pointer | interop.Reference; + currentRenderCommandEncoder: MTLRenderCommandEncoder; + + currentViewport: CGRect; + debugOptions: SCNDebugOptions; delegate: SCNSceneRendererDelegate; + depthPixelFormat: MTLPixelFormat; + + device: MTLDevice; + jitteringEnabled: boolean; loops: boolean; @@ -3718,6 +3878,12 @@ interface SCNSceneRenderer extends NSObjectProtocol { showsStatistics: boolean; + stencilPixelFormat: MTLPixelFormat; + + temporalAntialiasingEnabled: boolean; + + usesReverseZ: boolean; + hitTestOptions(point: CGPoint, options: NSDictionary): NSArray; isNodeInsideFrustumWithPointOfView(node: SCNNode, pointOfView: SCNNode): boolean; @@ -3941,9 +4107,9 @@ declare class SCNSkinner extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SCNSliderConstraint extends SCNConstraint { @@ -3994,6 +4160,8 @@ declare class SCNTechnique extends NSObject implements NSCopying, NSSecureCoding readonly dictionaryRepresentation: NSDictionary; + library: MTLLibrary; + readonly animationKeys: NSArray; // inherited from SCNAnimatable readonly debugDescription: string; // inherited from NSObjectProtocol @@ -4026,11 +4194,11 @@ declare class SCNTechnique extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; handleBindingOfSymbolUsingBlock(symbol: string, block: (p1: number, p2: number, p3: SCNNode, p4: SCNRenderer) => void): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isAnimationForKeyPaused(key: string): boolean; @@ -4080,6 +4248,15 @@ declare var SCNTechniqueSupport: { prototype: SCNTechniqueSupport; }; +declare const enum SCNTessellationSmoothingMode { + + None = 0, + + PNTriangles = 1, + + Phong = 2 +} + declare class SCNText extends SCNGeometry { static alloc(): SCNText; // inherited from NSObject @@ -4129,9 +4306,9 @@ declare class SCNTimingFunction extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SCNTorus extends SCNGeometry { @@ -4300,16 +4477,28 @@ declare class SCNView extends UIView implements SCNSceneRenderer, SCNTechniqueSu autoenablesDefaultLighting: boolean; // inherited from SCNSceneRenderer + readonly colorPixelFormat: MTLPixelFormat; // inherited from SCNSceneRenderer + + readonly commandQueue: MTLCommandQueue; // inherited from SCNSceneRenderer + readonly context: interop.Pointer | interop.Reference; // inherited from SCNSceneRenderer + readonly currentRenderCommandEncoder: MTLRenderCommandEncoder; // inherited from SCNSceneRenderer + + readonly currentViewport: CGRect; // inherited from SCNSceneRenderer + readonly debugDescription: string; // inherited from NSObjectProtocol debugOptions: SCNDebugOptions; // inherited from SCNSceneRenderer delegate: SCNSceneRendererDelegate; // inherited from SCNSceneRenderer + readonly depthPixelFormat: MTLPixelFormat; // inherited from SCNSceneRenderer + readonly description: string; // inherited from NSObjectProtocol + readonly device: MTLDevice; // inherited from SCNSceneRenderer + readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol @@ -4332,10 +4521,16 @@ declare class SCNView extends UIView implements SCNSceneRenderer, SCNTechniqueSu showsStatistics: boolean; // inherited from SCNSceneRenderer + readonly stencilPixelFormat: MTLPixelFormat; // inherited from SCNSceneRenderer + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol technique: SCNTechnique; // inherited from SCNTechniqueSupport + temporalAntialiasingEnabled: boolean; // inherited from SCNSceneRenderer + + usesReverseZ: boolean; // inherited from SCNSceneRenderer + readonly // inherited from NSObjectProtocol constructor(o: { frame: CGRect; options: NSDictionary; }); diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Security.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Security.d.ts index f898d484a0..f1485e9c3c 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Security.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Security.d.ts @@ -99,7 +99,7 @@ declare function SSLCopyRequestedPeerNameLength(ctx: any, peerNameLen: interop.P declare function SSLCreateContext(alloc: any, protocolSide: SSLProtocolSide, connectionType: SSLConnectionType): any; -declare function SSLGetBufferedReadSize(context: any, bufSize: interop.Pointer | interop.Reference): number; +declare function SSLGetBufferedReadSize(context: any, bufferSize: interop.Pointer | interop.Reference): number; declare function SSLGetClientCertificateState(context: any, clientState: interop.Pointer | interop.Reference): number; @@ -141,8 +141,6 @@ declare const enum SSLProtocol { kSSLProtocolUnknown = 0, - kSSLProtocol3 = 2, - kTLSProtocol1 = 4, kTLSProtocol11 = 7, @@ -153,10 +151,14 @@ declare const enum SSLProtocol { kTLSProtocol13 = 10, + kDTLSProtocol12 = 11, + kTLSProtocolMaxSupported = 999, kSSLProtocol2 = 1, + kSSLProtocol3 = 2, + kSSLProtocol3Only = 3, kTLSProtocol1Only = 5, @@ -333,6 +335,8 @@ declare const enum SecAccessControlCreateFlags { kSecAccessControlDevicePasscode = 16, + kSecAccessControlWatch = 32, + kSecAccessControlOr = 16384, kSecAccessControlAnd = 32768, @@ -500,6 +504,8 @@ declare function SecTrustEvaluate(trust: any, result: interop.Pointer | interop. declare function SecTrustEvaluateAsync(trust: any, queue: NSObject, result: (p1: any, p2: SecTrustResultType) => void): number; +declare function SecTrustEvaluateAsyncWithError(trust: any, queue: NSObject, result: (p1: any, p2: boolean, p3: NSError) => void): number; + declare function SecTrustEvaluateWithError(trust: any, error: interop.Pointer | interop.Reference): boolean; declare function SecTrustGetCertificateAtIndex(trust: any, ix: number): any; @@ -545,6 +551,8 @@ declare function SecTrustSetOCSPResponse(trust: any, responseData: any): number; declare function SecTrustSetPolicies(trust: any, policies: any): number; +declare function SecTrustSetSignedCertificateTimestamps(trust: any, sctArray: NSArray): number; + declare function SecTrustSetVerifyDate(trust: any, verifyDate: Date): number; declare const TLS_AES_128_CCM_8_SHA256: number; @@ -671,6 +679,10 @@ declare const TLS_ECDHE_ECDSA_WITH_NULL_SHA: number; declare const TLS_ECDHE_ECDSA_WITH_RC4_128_SHA: number; +declare const TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA: number; + +declare const TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA: number; + declare const TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA: number; declare const TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA: number; @@ -755,6 +767,8 @@ declare const TLS_PSK_WITH_AES_256_CBC_SHA384: number; declare const TLS_PSK_WITH_AES_256_GCM_SHA384: number; +declare const TLS_PSK_WITH_CHACHA20_POLY1305_SHA256: number; + declare const TLS_PSK_WITH_NULL_SHA: number; declare const TLS_PSK_WITH_NULL_SHA256: number; @@ -809,6 +823,20 @@ declare const TLS_RSA_WITH_RC4_128_MD5: number; declare const TLS_RSA_WITH_RC4_128_SHA: number; +declare const errSSLATSCertificateHashAlgorithmViolation: number; + +declare const errSSLATSCertificateTrustViolation: number; + +declare const errSSLATSCiphersuiteViolation: number; + +declare const errSSLATSLeafCertificateHashAlgorithmViolation: number; + +declare const errSSLATSMinimumKeySizeViolation: number; + +declare const errSSLATSMinimumVersionViolation: number; + +declare const errSSLATSViolation: number; + declare const errSSLBadCert: number; declare const errSSLBadCertificateStatusResponse: number; @@ -1007,12 +1035,18 @@ declare const errSecCertificateCannotOperate: number; declare const errSecCertificateExpired: number; +declare const errSecCertificateNameNotAllowed: number; + declare const errSecCertificateNotValidYet: number; +declare const errSecCertificatePolicyNotAllowed: number; + declare const errSecCertificateRevoked: number; declare const errSecCertificateSuspended: number; +declare const errSecCertificateValidityPeriodTooLong: number; + declare const errSecCodeSigningBadCertChainLength: number; declare const errSecCodeSigningBadPathLengthConstraint: number; @@ -2219,6 +2253,10 @@ declare var kSecUseAuthenticationUIFail: string; declare var kSecUseAuthenticationUISkip: string; +declare var kSecUseDataProtectionKeychain: string; + +declare var kSecUseItemList: string; + declare var kSecUseNoAuthenticationUI: string; declare var kSecUseOperationPrompt: string; @@ -2233,6 +2271,8 @@ declare function sec_certificate_copy_ref(certificate: NSObject): interop.Unmana declare function sec_certificate_create(certificate: any): NSObject; +declare function sec_identity_access_certificates(identity: NSObject, handler: (p1: NSObject) => void): boolean; + declare function sec_identity_copy_certificates_ref(identity: NSObject): interop.Unmanaged>; declare function sec_identity_copy_ref(identity: NSObject): interop.Unmanaged; @@ -2247,6 +2287,8 @@ declare function sec_protocol_metadata_access_ocsp_response(metadata: NSObject, declare function sec_protocol_metadata_access_peer_certificate_chain(metadata: NSObject, handler: (p1: NSObject) => void): boolean; +declare function sec_protocol_metadata_access_pre_shared_keys(metadata: NSObject, handler: (p1: NSObject, p2: NSObject) => void): boolean; + declare function sec_protocol_metadata_access_supported_signature_algorithms(metadata: NSObject, handler: (p1: number) => void): boolean; declare function sec_protocol_metadata_challenge_parameters_are_equal(metadataA: NSObject, metadataB: NSObject): boolean; @@ -2265,6 +2307,12 @@ declare function sec_protocol_metadata_get_negotiated_protocol(metadata: NSObjec declare function sec_protocol_metadata_get_negotiated_protocol_version(metadata: NSObject): SSLProtocol; +declare function sec_protocol_metadata_get_negotiated_tls_ciphersuite(metadata: NSObject): tls_ciphersuite_t; + +declare function sec_protocol_metadata_get_negotiated_tls_protocol_version(metadata: NSObject): tls_protocol_version_t; + +declare function sec_protocol_metadata_get_server_name(metadata: NSObject): string; + declare function sec_protocol_metadata_peers_are_equal(metadataA: NSObject, metadataB: NSObject): boolean; declare function sec_protocol_options_add_pre_shared_key(options: NSObject, psk: NSObject, psk_identity: NSObject): void; @@ -2275,14 +2323,34 @@ declare function sec_protocol_options_add_tls_ciphersuite(options: NSObject, cip declare function sec_protocol_options_add_tls_ciphersuite_group(options: NSObject, group: SSLCiphersuiteGroup): void; +declare function sec_protocol_options_append_tls_ciphersuite(options: NSObject, ciphersuite: tls_ciphersuite_t): void; + +declare function sec_protocol_options_append_tls_ciphersuite_group(options: NSObject, group: tls_ciphersuite_group_t): void; + +declare function sec_protocol_options_are_equal(optionsA: NSObject, optionsB: NSObject): boolean; + +declare function sec_protocol_options_get_default_max_dtls_protocol_version(): tls_protocol_version_t; + +declare function sec_protocol_options_get_default_max_tls_protocol_version(): tls_protocol_version_t; + +declare function sec_protocol_options_get_default_min_dtls_protocol_version(): tls_protocol_version_t; + +declare function sec_protocol_options_get_default_min_tls_protocol_version(): tls_protocol_version_t; + declare function sec_protocol_options_set_challenge_block(options: NSObject, challenge_block: (p1: NSObject, p2: (p1: NSObject) => void) => void, challenge_queue: NSObject): void; declare function sec_protocol_options_set_key_update_block(options: NSObject, key_update_block: (p1: NSObject, p2: () => void) => void, key_update_queue: NSObject): void; declare function sec_protocol_options_set_local_identity(options: NSObject, identity: NSObject): void; +declare function sec_protocol_options_set_max_tls_protocol_version(options: NSObject, version: tls_protocol_version_t): void; + +declare function sec_protocol_options_set_min_tls_protocol_version(options: NSObject, version: tls_protocol_version_t): void; + declare function sec_protocol_options_set_peer_authentication_required(options: NSObject, peer_authentication_required: boolean): void; +declare function sec_protocol_options_set_pre_shared_key_selection_block(options: NSObject, psk_selection_block: (p1: NSObject, p2: NSObject, p3: (p1: NSObject) => void) => void, psk_selection_queue: NSObject): void; + declare function sec_protocol_options_set_tls_diffie_hellman_parameters(options: NSObject, params: NSObject): void; declare function sec_protocol_options_set_tls_false_start_enabled(options: NSObject, false_start_enabled: boolean): void; @@ -2295,6 +2363,8 @@ declare function sec_protocol_options_set_tls_min_version(options: NSObject, ver declare function sec_protocol_options_set_tls_ocsp_enabled(options: NSObject, ocsp_enabled: boolean): void; +declare function sec_protocol_options_set_tls_pre_shared_key_identity_hint(options: NSObject, psk_identity_hint: NSObject): void; + declare function sec_protocol_options_set_tls_renegotiation_enabled(options: NSObject, renegotiation_enabled: boolean): void; declare function sec_protocol_options_set_tls_resumption_enabled(options: NSObject, resumption_enabled: boolean): void; @@ -2314,3 +2384,86 @@ declare function sec_retain(obj: interop.Pointer | interop.Reference): inte declare function sec_trust_copy_ref(trust: NSObject): interop.Unmanaged; declare function sec_trust_create(trust: any): NSObject; + +declare const enum tls_ciphersuite_group_t { + + tls_ciphersuite_group_default = 0, + + tls_ciphersuite_group_compatibility = 1, + + tls_ciphersuite_group_legacy = 2, + + tls_ciphersuite_group_ats = 3, + + tls_ciphersuite_group_ats_compatibility = 4 +} + +declare const enum tls_ciphersuite_t { + + RSA_WITH_3DES_EDE_CBC_SHA = 10, + + RSA_WITH_AES_128_CBC_SHA = 47, + + RSA_WITH_AES_256_CBC_SHA = 53, + + RSA_WITH_AES_128_GCM_SHA256 = 156, + + RSA_WITH_AES_256_GCM_SHA384 = 157, + + RSA_WITH_AES_128_CBC_SHA256 = 60, + + RSA_WITH_AES_256_CBC_SHA256 = 61, + + ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = 49160, + + ECDHE_ECDSA_WITH_AES_128_CBC_SHA = 49161, + + ECDHE_ECDSA_WITH_AES_256_CBC_SHA = 49162, + + ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = 49170, + + ECDHE_RSA_WITH_AES_128_CBC_SHA = 49171, + + ECDHE_RSA_WITH_AES_256_CBC_SHA = 49172, + + ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = 49187, + + ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = 49188, + + ECDHE_RSA_WITH_AES_128_CBC_SHA256 = 49191, + + ECDHE_RSA_WITH_AES_256_CBC_SHA384 = 49192, + + ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = 49195, + + ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = 49196, + + ECDHE_RSA_WITH_AES_128_GCM_SHA256 = 49199, + + ECDHE_RSA_WITH_AES_256_GCM_SHA384 = 49200, + + ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = 52392, + + ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = 52393, + + AES_128_GCM_SHA256 = 4865, + + AES_256_GCM_SHA384 = 4866, + + CHACHA20_POLY1305_SHA256 = 4867 +} + +declare const enum tls_protocol_version_t { + + TLSv10 = 769, + + TLSv11 = 770, + + TLSv12 = 771, + + TLSv13 = 772, + + DTLSv10 = 65279, + + DTLSv12 = 65277 +} diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!SoundAnalysis.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!SoundAnalysis.d.ts new file mode 100644 index 0000000000..201440a55b --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!SoundAnalysis.d.ts @@ -0,0 +1,189 @@ + +declare class SNAudioFileAnalyzer extends NSObject { + + static alloc(): SNAudioFileAnalyzer; // inherited from NSObject + + static new(): SNAudioFileAnalyzer; // inherited from NSObject + + constructor(o: { URL: NSURL; }); + + addRequestWithObserverError(request: SNRequest, observer: SNResultsObserving): boolean; + + analyze(): void; + + analyzeWithCompletionHandler(completionHandler: (p1: boolean) => void): void; + + cancelAnalysis(): void; + + initWithURLError(url: NSURL): this; + + removeAllRequests(): void; + + removeRequest(request: SNRequest): void; +} + +declare class SNAudioStreamAnalyzer extends NSObject { + + static alloc(): SNAudioStreamAnalyzer; // inherited from NSObject + + static new(): SNAudioStreamAnalyzer; // inherited from NSObject + + constructor(o: { format: AVAudioFormat; }); + + addRequestWithObserverError(request: SNRequest, observer: SNResultsObserving): boolean; + + analyzeAudioBufferAtAudioFramePosition(audioBuffer: AVAudioBuffer, audioFramePosition: number): void; + + completeAnalysis(): void; + + initWithFormat(format: AVAudioFormat): this; + + removeAllRequests(): void; + + removeRequest(request: SNRequest): void; +} + +declare class SNClassification extends NSObject { + + static alloc(): SNClassification; // inherited from NSObject + + static new(): SNClassification; // inherited from NSObject + + readonly confidence: number; + + readonly identifier: string; +} + +declare class SNClassificationResult extends NSObject implements SNResult { + + static alloc(): SNClassificationResult; // inherited from NSObject + + static new(): SNClassificationResult; // inherited from NSObject + + readonly classifications: NSArray; + + readonly timeRange: CMTimeRange; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class SNClassifySoundRequest extends NSObject implements SNRequest { + + static alloc(): SNClassifySoundRequest; // inherited from NSObject + + static new(): SNClassifySoundRequest; // inherited from NSObject + + overlapFactor: number; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + constructor(o: { MLModel: MLModel; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + initWithMLModelError(mlModel: MLModel): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare const enum SNErrorCode { + + UnknownError = 1, + + OperationFailed = 2, + + InvalidFormat = 3, + + InvalidModel = 4, + + InvalidFile = 5 +} + +declare var SNErrorDomain: string; + +interface SNRequest extends NSObjectProtocol { +} +declare var SNRequest: { + + prototype: SNRequest; +}; + +interface SNResult extends NSObjectProtocol { +} +declare var SNResult: { + + prototype: SNResult; +}; + +interface SNResultsObserving extends NSObjectProtocol { + + requestDidComplete?(request: SNRequest): void; + + requestDidFailWithError?(request: SNRequest, error: NSError): void; + + requestDidProduceResult(request: SNRequest, result: SNResult): void; +} +declare var SNResultsObserving: { + + prototype: SNResultsObserving; +}; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Speech.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Speech.d.ts index 497e778ef5..ec5a1131fc 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Speech.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Speech.d.ts @@ -1,4 +1,25 @@ +declare class SFAcousticFeature extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): SFAcousticFeature; // inherited from NSObject + + static new(): SFAcousticFeature; // inherited from NSObject + + readonly acousticFeatureValuePerFrame: NSArray; + + readonly frameDuration: number; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + declare class SFSpeechAudioBufferRecognitionRequest extends SFSpeechRecognitionRequest { static alloc(): SFSpeechAudioBufferRecognitionRequest; // inherited from NSObject @@ -24,6 +45,8 @@ declare class SFSpeechRecognitionRequest extends NSObject { interactionIdentifier: string; + requiresOnDeviceRecognition: boolean; + shouldReportPartialResults: boolean; taskHint: SFSpeechRecognitionTaskHint; @@ -47,9 +70,9 @@ declare class SFSpeechRecognitionResult extends NSObject implements NSCopying, N copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SFSpeechRecognitionTask extends NSObject { @@ -136,6 +159,8 @@ declare class SFSpeechRecognizer extends NSObject { queue: NSOperationQueue; + supportsOnDeviceRecognition: boolean; + constructor(o: { locale: NSLocale; }); initWithLocale(locale: NSLocale): this; @@ -184,19 +209,23 @@ declare class SFTranscription extends NSObject implements NSCopying, NSSecureCod static new(): SFTranscription; // inherited from NSObject + readonly averagePauseDuration: number; + readonly formattedString: string; readonly segments: NSArray; + readonly speakingRate: number; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SFTranscriptionSegment extends NSObject implements NSCopying, NSSecureCoding { @@ -217,13 +246,40 @@ declare class SFTranscriptionSegment extends NSObject implements NSCopying, NSSe readonly timestamp: number; + readonly voiceAnalytics: SFVoiceAnalytics; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class SFVoiceAnalytics extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): SFVoiceAnalytics; // inherited from NSObject + + static new(): SFVoiceAnalytics; // inherited from NSObject + + readonly jitter: SFAcousticFeature; + + readonly pitch: SFAcousticFeature; + + readonly shimmer: SFAcousticFeature; + + readonly voicing: SFAcousticFeature; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!SpriteKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!SpriteKit.d.ts index 6b41f0ff61..7c9632f011 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!SpriteKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!SpriteKit.d.ts @@ -246,9 +246,9 @@ declare class SKAction extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; reversedAction(): SKAction; } @@ -282,9 +282,9 @@ declare class SKAttribute extends NSObject implements NSSecureCoding { constructor(o: { name: string; type: SKAttributeType; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNameType(name: string, type: SKAttributeType): this; } @@ -336,9 +336,9 @@ declare class SKAttributeValue extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SKAudioNode extends SKNode implements NSSecureCoding { @@ -369,11 +369,11 @@ declare class SKAudioNode extends SKNode implements NSSecureCoding { constructor(o: { URL: NSURL; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAVAudioNode(node: AVAudioNode): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithFileNamed(name: string): this; @@ -394,7 +394,9 @@ declare const enum SKBlendMode { Screen = 5, - Replace = 6 + Replace = 6, + + MultiplyAlpha = 7 } declare class SKCameraNode extends SKNode { @@ -450,9 +452,9 @@ declare class SKConstraint extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SKCropNode extends SKNode { @@ -738,7 +740,7 @@ declare class SKKeyframeSequence extends NSObject implements NSCopying, NSSecure count(): number; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; getKeyframeTimeForIndex(index: number): number; @@ -746,7 +748,7 @@ declare class SKKeyframeSequence extends NSObject implements NSCopying, NSSecure initWithCapacity(numItems: number): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithKeyframeValuesTimes(values: NSArray | any[], times: NSArray | number[]): this; @@ -1008,7 +1010,7 @@ declare class SKNode extends UIResponder implements NSCopying, NSSecureCoding, U didUpdateFocusInContextWithAnimationCoordinator(context: UIFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateChildNodesWithNameUsingBlock(name: string, block: (p1: SKNode, p2: interop.Pointer | interop.Reference) => void): void; @@ -1016,7 +1018,7 @@ declare class SKNode extends UIResponder implements NSCopying, NSSecureCoding, U inParentHierarchy(parent: SKNode): boolean; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; insertChildAtIndex(node: SKNode, index: number): void; @@ -1191,9 +1193,9 @@ declare class SKPhysicsBody extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SKPhysicsContact extends NSObject { @@ -1242,9 +1244,9 @@ declare class SKPhysicsJoint extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SKPhysicsJointFixed extends SKPhysicsJoint { @@ -1338,7 +1340,7 @@ declare class SKPhysicsWorld extends NSObject implements NSSecureCoding { bodyInRect(rect: CGRect): SKPhysicsBody; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; enumerateBodiesAlongRayStartEndUsingBlock(start: CGPoint, end: CGPoint, block: (p1: SKPhysicsBody, p2: CGPoint, p3: CGVector, p4: interop.Pointer | interop.Reference) => void): void; @@ -1346,7 +1348,7 @@ declare class SKPhysicsWorld extends NSObject implements NSSecureCoding { enumerateBodiesInRectUsingBlock(rect: CGRect, block: (p1: SKPhysicsBody, p2: interop.Pointer | interop.Reference) => void): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; removeAllJoints(): void; @@ -1385,9 +1387,9 @@ declare class SKRange extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithLowerLimitUpperLimit(lower: number, upper: number): this; } @@ -1408,9 +1410,9 @@ declare class SKReachConstraints extends NSObject implements NSSecureCoding { constructor(o: { lowerAngleLimit: number; upperAngleLimit: number; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithLowerAngleLimitUpperAngleLimit(lowerAngleLimit: number, upperAngleLimit: number): this; } @@ -1468,9 +1470,9 @@ declare class SKRegion extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithPath(path: any): this; @@ -1487,6 +1489,37 @@ declare class SKRegion extends NSObject implements NSCopying, NSSecureCoding { regionByUnionWithRegion(region: SKRegion): this; } +declare class SKRenderer extends NSObject { + + static alloc(): SKRenderer; // inherited from NSObject + + static new(): SKRenderer; // inherited from NSObject + + static rendererWithDevice(device: MTLDevice): SKRenderer; + + ignoresSiblingOrder: boolean; + + scene: SKScene; + + shouldCullNonVisibleNodes: boolean; + + showsDrawCount: boolean; + + showsFields: boolean; + + showsNodeCount: boolean; + + showsPhysics: boolean; + + showsQuadCount: boolean; + + renderWithViewportCommandBufferRenderPassDescriptor(viewport: CGRect, commandBuffer: MTLCommandBuffer, renderPassDescriptor: MTLRenderPassDescriptor): void; + + renderWithViewportRenderCommandEncoderRenderPassDescriptorCommandQueue(viewport: CGRect, renderCommandEncoder: MTLRenderCommandEncoder, renderPassDescriptor: MTLRenderPassDescriptor, commandQueue: MTLCommandQueue): void; + + updateAtTime(currentTime: number): void; +} + declare const enum SKRepeatMode { Clamp = 1, @@ -1649,9 +1682,9 @@ declare class SKShader extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithSource(source: string): this; @@ -1872,9 +1905,9 @@ declare class SKTexture extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; preloadWithCompletionHandler(completionHandler: () => void): void; @@ -1909,9 +1942,9 @@ declare class SKTextureAtlas extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; preloadWithCompletionHandler(completionHandler: () => void): void; @@ -2050,9 +2083,9 @@ declare class SKTileDefinition extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTexture(texture: SKTexture): this; @@ -2102,9 +2135,9 @@ declare class SKTileGroup extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithRules(rules: NSArray | SKTileGroupRule[]): this; @@ -2133,11 +2166,11 @@ declare class SKTileGroupRule extends NSObject implements NSCopying, NSSecureCod copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAdjacencyTileDefinitions(adjacency: SKTileAdjacencyMask, tileDefinitions: NSArray | SKTileDefinition[]): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SKTileMapNode extends SKNode implements NSCopying, NSSecureCoding { @@ -2198,11 +2231,11 @@ declare class SKTileMapNode extends SKNode implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; fillWithTileGroup(tileGroup: SKTileGroup): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTileSetColumnsRowsTileSize(tileSet: SKTileSet, columns: number, rows: number, tileSize: CGSize): this; @@ -2257,9 +2290,9 @@ declare class SKTileSet extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTileGroups(tileGroups: NSArray | SKTileGroup[]): this; @@ -2426,9 +2459,9 @@ declare class SKUniform extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithName(name: string): this; @@ -2605,9 +2638,9 @@ declare class SKWarpGeometry extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class SKWarpGeometryGrid extends SKWarpGeometry implements NSSecureCoding { @@ -2636,13 +2669,13 @@ declare class SKWarpGeometryGrid extends SKWarpGeometry implements NSSecureCodin destPositionAtIndex(index: number): interop.Reference; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; gridByReplacingDestPositions(destPositions: interop.Pointer | interop.Reference>): this; gridByReplacingSourcePositions(sourcePositions: interop.Pointer | interop.Reference>): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithColumnsRowsSourcePositionsDestPositions(cols: number, rows: number, sourcePositions: interop.Pointer | interop.Reference>, destPositions: interop.Pointer | interop.Reference>): this; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!StoreKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!StoreKit.d.ts index a19559ace5..48975dde42 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!StoreKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!StoreKit.d.ts @@ -111,6 +111,8 @@ declare class SKDownload extends NSObject { readonly error: NSError; + readonly expectedContentLength: number; + readonly progress: number; readonly state: SKDownloadState; @@ -155,7 +157,19 @@ declare const enum SKErrorCode { CloudServiceNetworkConnectionFailed = 7, - CloudServiceRevoked = 8 + CloudServiceRevoked = 8, + + PrivacyAcknowledgementRequired = 9, + + UnauthorizedRequestData = 10, + + InvalidOfferIdentifier = 11, + + InvalidSignature = 12, + + MissingOfferParams = 13, + + InvalidOfferPrice = 14 } declare var SKErrorDomain: string; @@ -170,6 +184,8 @@ declare class SKMutablePayment extends SKPayment { applicationUsername: string; + paymentDiscount: SKPaymentDiscount; + productIdentifier: string; quantity: number; @@ -191,6 +207,8 @@ declare class SKPayment extends NSObject implements NSCopying, NSMutableCopying readonly applicationUsername: string; + readonly paymentDiscount: SKPaymentDiscount; + readonly productIdentifier: string; readonly quantity: number; @@ -204,6 +222,27 @@ declare class SKPayment extends NSObject implements NSCopying, NSMutableCopying mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } +declare class SKPaymentDiscount extends NSObject { + + static alloc(): SKPaymentDiscount; // inherited from NSObject + + static new(): SKPaymentDiscount; // inherited from NSObject + + readonly identifier: string; + + readonly keyIdentifier: string; + + readonly nonce: NSUUID; + + readonly signature: string; + + readonly timestamp: number; + + constructor(o: { identifier: string; keyIdentifier: string; nonce: NSUUID; signature: string; timestamp: number; }); + + initWithIdentifierKeyIdentifierNonceSignatureTimestamp(identifier: string, keyIdentifier: string, nonce: NSUUID, signature: string, timestamp: number): this; +} + declare class SKPaymentQueue extends NSObject { static alloc(): SKPaymentQueue; // inherited from NSObject @@ -214,6 +253,10 @@ declare class SKPaymentQueue extends NSObject { static new(): SKPaymentQueue; // inherited from NSObject + delegate: SKPaymentQueueDelegate; + + readonly storefront: SKStorefront; + readonly transactions: NSArray; addPayment(payment: SKPayment): void; @@ -237,6 +280,15 @@ declare class SKPaymentQueue extends NSObject { startDownloads(downloads: NSArray | SKDownload[]): void; } +interface SKPaymentQueueDelegate extends NSObjectProtocol { + + paymentQueueShouldContinueTransactionInStorefront?(paymentQueue: SKPaymentQueue, transaction: SKPaymentTransaction, newStorefront: SKStorefront): boolean; +} +declare var SKPaymentQueueDelegate: { + + prototype: SKPaymentQueueDelegate; +}; + declare class SKPaymentTransaction extends NSObject { static alloc(): SKPaymentTransaction; // inherited from NSObject @@ -262,6 +314,8 @@ declare class SKPaymentTransaction extends NSObject { interface SKPaymentTransactionObserver extends NSObjectProtocol { + paymentQueueDidChangeStorefront?(queue: SKPaymentQueue): void; + paymentQueueRemovedTransactions?(queue: SKPaymentQueue, transactions: NSArray | SKPaymentTransaction[]): void; paymentQueueRestoreCompletedTransactionsFailedWithError?(queue: SKPaymentQueue, error: NSError): void; @@ -298,14 +352,18 @@ declare class SKProduct extends NSObject { static new(): SKProduct; // inherited from NSObject + readonly contentVersion: string; + + readonly discounts: NSArray; + readonly downloadContentLengths: NSArray; readonly downloadContentVersion: string; - readonly downloadable: boolean; - readonly introductoryPrice: SKProductDiscount; + readonly isDownloadable: boolean; + readonly localizedDescription: string; readonly localizedTitle: string; @@ -327,6 +385,8 @@ declare class SKProductDiscount extends NSObject { static new(): SKProductDiscount; // inherited from NSObject + readonly identifier: string; + readonly numberOfPeriods: number; readonly paymentMode: SKProductDiscountPaymentMode; @@ -336,6 +396,8 @@ declare class SKProductDiscount extends NSObject { readonly priceLocale: NSLocale; readonly subscriptionPeriod: SKProductSubscriptionPeriod; + + readonly type: SKProductDiscountType; } declare const enum SKProductDiscountPaymentMode { @@ -347,6 +409,13 @@ declare const enum SKProductDiscountPaymentMode { FreeTrial = 2 } +declare const enum SKProductDiscountType { + + Introductory = 0, + + Subscription = 1 +} + declare const enum SKProductPeriodUnit { Day = 0, @@ -522,6 +591,17 @@ declare class SKStoreReviewController extends NSObject { static requestReview(): void; } +declare class SKStorefront extends NSObject { + + static alloc(): SKStorefront; // inherited from NSObject + + static new(): SKStorefront; // inherited from NSObject + + readonly countryCode: string; + + readonly identifier: string; +} + declare var SKStorefrontCountryCodeDidChangeNotification: string; declare var SKStorefrontIdentifierDidChangeNotification: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!UIKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!UIKit.d.ts index f11ed62350..87204f45de 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!UIKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!UIKit.d.ts @@ -23,6 +23,329 @@ declare var NSCharacterEncodingDocumentAttribute: string; declare var NSCharacterEncodingDocumentOption: string; +declare var NSCocoaVersionDocumentAttribute: string; + +declare class NSCollectionLayoutAnchor extends NSObject implements NSCopying { + + static alloc(): NSCollectionLayoutAnchor; // inherited from NSObject + + static layoutAnchorWithEdges(edges: NSDirectionalRectEdge): NSCollectionLayoutAnchor; + + static layoutAnchorWithEdgesAbsoluteOffset(edges: NSDirectionalRectEdge, absoluteOffset: CGPoint): NSCollectionLayoutAnchor; + + static layoutAnchorWithEdgesFractionalOffset(edges: NSDirectionalRectEdge, fractionalOffset: CGPoint): NSCollectionLayoutAnchor; + + static new(): NSCollectionLayoutAnchor; // inherited from NSObject + + readonly edges: NSDirectionalRectEdge; + + readonly isAbsoluteOffset: boolean; + + readonly isFractionalOffset: boolean; + + readonly offset: CGPoint; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class NSCollectionLayoutBoundarySupplementaryItem extends NSCollectionLayoutSupplementaryItem implements NSCopying { + + static alloc(): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSObject + + static boundarySupplementaryItemWithLayoutSizeElementKindAlignment(layoutSize: NSCollectionLayoutSize, elementKind: string, alignment: NSRectAlignment): NSCollectionLayoutBoundarySupplementaryItem; + + static boundarySupplementaryItemWithLayoutSizeElementKindAlignmentAbsoluteOffset(layoutSize: NSCollectionLayoutSize, elementKind: string, alignment: NSRectAlignment, absoluteOffset: CGPoint): NSCollectionLayoutBoundarySupplementaryItem; + + static itemWithLayoutSize(layoutSize: NSCollectionLayoutSize): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSCollectionLayoutItem + + static itemWithLayoutSizeSupplementaryItems(layoutSize: NSCollectionLayoutSize, supplementaryItems: NSArray | NSCollectionLayoutSupplementaryItem[]): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSCollectionLayoutItem + + static new(): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSObject + + static supplementaryItemWithLayoutSizeElementKindContainerAnchor(layoutSize: NSCollectionLayoutSize, elementKind: string, containerAnchor: NSCollectionLayoutAnchor): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSCollectionLayoutSupplementaryItem + + static supplementaryItemWithLayoutSizeElementKindContainerAnchorItemAnchor(layoutSize: NSCollectionLayoutSize, elementKind: string, containerAnchor: NSCollectionLayoutAnchor, itemAnchor: NSCollectionLayoutAnchor): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSCollectionLayoutSupplementaryItem + + readonly alignment: NSRectAlignment; + + extendsBoundary: boolean; + + readonly offset: CGPoint; + + pinToVisibleBounds: boolean; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +interface NSCollectionLayoutContainer extends NSObjectProtocol { + + contentInsets: NSDirectionalEdgeInsets; + + contentSize: CGSize; + + effectiveContentInsets: NSDirectionalEdgeInsets; + + effectiveContentSize: CGSize; +} +declare var NSCollectionLayoutContainer: { + + prototype: NSCollectionLayoutContainer; +}; + +declare class NSCollectionLayoutDecorationItem extends NSCollectionLayoutItem implements NSCopying { + + static alloc(): NSCollectionLayoutDecorationItem; // inherited from NSObject + + static backgroundDecorationItemWithElementKind(elementKind: string): NSCollectionLayoutDecorationItem; + + static itemWithLayoutSize(layoutSize: NSCollectionLayoutSize): NSCollectionLayoutDecorationItem; // inherited from NSCollectionLayoutItem + + static itemWithLayoutSizeSupplementaryItems(layoutSize: NSCollectionLayoutSize, supplementaryItems: NSArray | NSCollectionLayoutSupplementaryItem[]): NSCollectionLayoutDecorationItem; // inherited from NSCollectionLayoutItem + + static new(): NSCollectionLayoutDecorationItem; // inherited from NSObject + + readonly elementKind: string; + + zIndex: number; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class NSCollectionLayoutDimension extends NSObject implements NSCopying { + + static absoluteDimension(absoluteDimension: number): NSCollectionLayoutDimension; + + static alloc(): NSCollectionLayoutDimension; // inherited from NSObject + + static estimatedDimension(estimatedDimension: number): NSCollectionLayoutDimension; + + static fractionalHeightDimension(fractionalHeight: number): NSCollectionLayoutDimension; + + static fractionalWidthDimension(fractionalWidth: number): NSCollectionLayoutDimension; + + static new(): NSCollectionLayoutDimension; // inherited from NSObject + + readonly dimension: number; + + readonly isAbsolute: boolean; + + readonly isEstimated: boolean; + + readonly isFractionalHeight: boolean; + + readonly isFractionalWidth: boolean; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class NSCollectionLayoutEdgeSpacing extends NSObject implements NSCopying { + + static alloc(): NSCollectionLayoutEdgeSpacing; // inherited from NSObject + + static new(): NSCollectionLayoutEdgeSpacing; // inherited from NSObject + + static spacingForLeadingTopTrailingBottom(leading: NSCollectionLayoutSpacing, top: NSCollectionLayoutSpacing, trailing: NSCollectionLayoutSpacing, bottom: NSCollectionLayoutSpacing): NSCollectionLayoutEdgeSpacing; + + readonly bottom: NSCollectionLayoutSpacing; + + readonly leading: NSCollectionLayoutSpacing; + + readonly top: NSCollectionLayoutSpacing; + + readonly trailing: NSCollectionLayoutSpacing; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +interface NSCollectionLayoutEnvironment extends NSObjectProtocol { + + container: NSCollectionLayoutContainer; + + traitCollection: UITraitCollection; +} +declare var NSCollectionLayoutEnvironment: { + + prototype: NSCollectionLayoutEnvironment; +}; + +declare class NSCollectionLayoutGroup extends NSCollectionLayoutItem implements NSCopying { + + static alloc(): NSCollectionLayoutGroup; // inherited from NSObject + + static customGroupWithLayoutSizeItemProvider(layoutSize: NSCollectionLayoutSize, itemProvider: (p1: NSCollectionLayoutEnvironment) => NSArray): NSCollectionLayoutGroup; + + static horizontalGroupWithLayoutSizeSubitemCount(layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: number): NSCollectionLayoutGroup; + + static horizontalGroupWithLayoutSizeSubitems(layoutSize: NSCollectionLayoutSize, subitems: NSArray | NSCollectionLayoutItem[]): NSCollectionLayoutGroup; + + static itemWithLayoutSize(layoutSize: NSCollectionLayoutSize): NSCollectionLayoutGroup; // inherited from NSCollectionLayoutItem + + static itemWithLayoutSizeSupplementaryItems(layoutSize: NSCollectionLayoutSize, supplementaryItems: NSArray | NSCollectionLayoutSupplementaryItem[]): NSCollectionLayoutGroup; // inherited from NSCollectionLayoutItem + + static new(): NSCollectionLayoutGroup; // inherited from NSObject + + static verticalGroupWithLayoutSizeSubitemCount(layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: number): NSCollectionLayoutGroup; + + static verticalGroupWithLayoutSizeSubitems(layoutSize: NSCollectionLayoutSize, subitems: NSArray | NSCollectionLayoutItem[]): NSCollectionLayoutGroup; + + interItemSpacing: NSCollectionLayoutSpacing; + + readonly subitems: NSArray; + + supplementaryItems: NSArray; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + visualDescription(): string; +} + +declare class NSCollectionLayoutGroupCustomItem extends NSObject implements NSCopying { + + static alloc(): NSCollectionLayoutGroupCustomItem; // inherited from NSObject + + static customItemWithFrame(frame: CGRect): NSCollectionLayoutGroupCustomItem; + + static customItemWithFrameZIndex(frame: CGRect, zIndex: number): NSCollectionLayoutGroupCustomItem; + + static new(): NSCollectionLayoutGroupCustomItem; // inherited from NSObject + + readonly frame: CGRect; + + readonly zIndex: number; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class NSCollectionLayoutItem extends NSObject implements NSCopying { + + static alloc(): NSCollectionLayoutItem; // inherited from NSObject + + static itemWithLayoutSize(layoutSize: NSCollectionLayoutSize): NSCollectionLayoutItem; + + static itemWithLayoutSizeSupplementaryItems(layoutSize: NSCollectionLayoutSize, supplementaryItems: NSArray | NSCollectionLayoutSupplementaryItem[]): NSCollectionLayoutItem; + + static new(): NSCollectionLayoutItem; // inherited from NSObject + + contentInsets: NSDirectionalEdgeInsets; + + edgeSpacing: NSCollectionLayoutEdgeSpacing; + + readonly layoutSize: NSCollectionLayoutSize; + + readonly supplementaryItems: NSArray; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class NSCollectionLayoutSection extends NSObject implements NSCopying { + + static alloc(): NSCollectionLayoutSection; // inherited from NSObject + + static new(): NSCollectionLayoutSection; // inherited from NSObject + + static sectionWithGroup(group: NSCollectionLayoutGroup): NSCollectionLayoutSection; + + boundarySupplementaryItems: NSArray; + + contentInsets: NSDirectionalEdgeInsets; + + decorationItems: NSArray; + + interGroupSpacing: number; + + orthogonalScrollingBehavior: UICollectionLayoutSectionOrthogonalScrollingBehavior; + + supplementariesFollowContentInsets: boolean; + + visibleItemsInvalidationHandler: (p1: NSArray, p2: CGPoint, p3: NSCollectionLayoutEnvironment) => void; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class NSCollectionLayoutSize extends NSObject implements NSCopying { + + static alloc(): NSCollectionLayoutSize; // inherited from NSObject + + static new(): NSCollectionLayoutSize; // inherited from NSObject + + static sizeWithWidthDimensionHeightDimension(width: NSCollectionLayoutDimension, height: NSCollectionLayoutDimension): NSCollectionLayoutSize; + + readonly heightDimension: NSCollectionLayoutDimension; + + readonly widthDimension: NSCollectionLayoutDimension; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class NSCollectionLayoutSpacing extends NSObject implements NSCopying { + + static alloc(): NSCollectionLayoutSpacing; // inherited from NSObject + + static fixedSpacing(fixedSpacing: number): NSCollectionLayoutSpacing; + + static flexibleSpacing(flexibleSpacing: number): NSCollectionLayoutSpacing; + + static new(): NSCollectionLayoutSpacing; // inherited from NSObject + + readonly isFixedSpacing: boolean; + + readonly isFlexibleSpacing: boolean; + + readonly spacing: number; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class NSCollectionLayoutSupplementaryItem extends NSCollectionLayoutItem implements NSCopying { + + static alloc(): NSCollectionLayoutSupplementaryItem; // inherited from NSObject + + static itemWithLayoutSize(layoutSize: NSCollectionLayoutSize): NSCollectionLayoutSupplementaryItem; // inherited from NSCollectionLayoutItem + + static itemWithLayoutSizeSupplementaryItems(layoutSize: NSCollectionLayoutSize, supplementaryItems: NSArray | NSCollectionLayoutSupplementaryItem[]): NSCollectionLayoutSupplementaryItem; // inherited from NSCollectionLayoutItem + + static new(): NSCollectionLayoutSupplementaryItem; // inherited from NSObject + + static supplementaryItemWithLayoutSizeElementKindContainerAnchor(layoutSize: NSCollectionLayoutSize, elementKind: string, containerAnchor: NSCollectionLayoutAnchor): NSCollectionLayoutSupplementaryItem; + + static supplementaryItemWithLayoutSizeElementKindContainerAnchorItemAnchor(layoutSize: NSCollectionLayoutSize, elementKind: string, containerAnchor: NSCollectionLayoutAnchor, itemAnchor: NSCollectionLayoutAnchor): NSCollectionLayoutSupplementaryItem; + + readonly containerAnchor: NSCollectionLayoutAnchor; + + readonly elementKind: string; + + readonly itemAnchor: NSCollectionLayoutAnchor; + + zIndex: number; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +interface NSCollectionLayoutVisibleItem extends NSObjectProtocol, UIDynamicItem { + + alpha: number; + + frame: CGRect; + + hidden: boolean; + + indexPath: NSIndexPath; + + name: string; + + representedElementCategory: UICollectionElementCategory; + + representedElementKind: string; + + transform3D: CATransform3D; + + zIndex: number; +} +declare var NSCollectionLayoutVisibleItem: { + + prototype: NSCollectionLayoutVisibleItem; +}; + declare const enum NSControlCharacterAction { ZeroAdvancement = 1, @@ -79,6 +402,65 @@ declare var NSDefaultAttributesDocumentOption: string; declare var NSDefaultTabIntervalDocumentAttribute: string; +declare class NSDiffableDataSourceSnapshot extends NSObject implements NSCopying { + + static alloc(): NSDiffableDataSourceSnapshot; // inherited from NSObject + + static new(): NSDiffableDataSourceSnapshot; // inherited from NSObject + + readonly itemIdentifiers: NSArray; + + readonly numberOfItems: number; + + readonly numberOfSections: number; + + readonly sectionIdentifiers: NSArray; + + appendItemsWithIdentifiers(identifiers: NSArray | ItemIdentifierType[]): void; + + appendItemsWithIdentifiersIntoSectionWithIdentifier(identifiers: NSArray | ItemIdentifierType[], sectionIdentifier: SectionIdentifierType): void; + + appendSectionsWithIdentifiers(sectionIdentifiers: NSArray | any[]): void; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + deleteAllItems(): void; + + deleteItemsWithIdentifiers(identifiers: NSArray | ItemIdentifierType[]): void; + + deleteSectionsWithIdentifiers(sectionIdentifiers: NSArray | SectionIdentifierType[]): void; + + indexOfItemIdentifier(itemIdentifier: ItemIdentifierType): number; + + indexOfSectionIdentifier(sectionIdentifier: SectionIdentifierType): number; + + insertItemsWithIdentifiersAfterItemWithIdentifier(identifiers: NSArray | ItemIdentifierType[], itemIdentifier: ItemIdentifierType): void; + + insertItemsWithIdentifiersBeforeItemWithIdentifier(identifiers: NSArray | ItemIdentifierType[], itemIdentifier: ItemIdentifierType): void; + + insertSectionsWithIdentifiersAfterSectionWithIdentifier(sectionIdentifiers: NSArray | SectionIdentifierType[], toSectionIdentifier: SectionIdentifierType): void; + + insertSectionsWithIdentifiersBeforeSectionWithIdentifier(sectionIdentifiers: NSArray | SectionIdentifierType[], toSectionIdentifier: SectionIdentifierType): void; + + itemIdentifiersInSectionWithIdentifier(sectionIdentifier: SectionIdentifierType): NSArray; + + moveItemWithIdentifierAfterItemWithIdentifier(fromIdentifier: ItemIdentifierType, toIdentifier: ItemIdentifierType): void; + + moveItemWithIdentifierBeforeItemWithIdentifier(fromIdentifier: ItemIdentifierType, toIdentifier: ItemIdentifierType): void; + + moveSectionWithIdentifierAfterSectionWithIdentifier(fromSectionIdentifier: SectionIdentifierType, toSectionIdentifier: SectionIdentifierType): void; + + moveSectionWithIdentifierBeforeSectionWithIdentifier(fromSectionIdentifier: SectionIdentifierType, toSectionIdentifier: SectionIdentifierType): void; + + numberOfItemsInSection(sectionIdentifier: SectionIdentifierType): number; + + reloadItemsWithIdentifiers(identifiers: NSArray | ItemIdentifierType[]): void; + + reloadSectionsWithIdentifiers(sectionIdentifiers: NSArray | SectionIdentifierType[]): void; + + sectionIdentifierForSectionContainingItemIdentifier(itemIdentifier: ItemIdentifierType): SectionIdentifierType; +} + interface NSDirectionalEdgeInsets { top: number; leading: number; @@ -91,6 +473,21 @@ declare function NSDirectionalEdgeInsetsFromString(string: string): NSDirectiona declare var NSDirectionalEdgeInsetsZero: NSDirectionalEdgeInsets; +declare const enum NSDirectionalRectEdge { + + None = 0, + + Top = 1, + + Leading = 2, + + Bottom = 4, + + Trailing = 8, + + All = 15 +} + declare var NSDocumentTypeDocumentAttribute: string; declare var NSDocumentTypeDocumentOption: string; @@ -270,10 +667,10 @@ declare const enum NSLayoutFormatOptions { AlignAllLastBaseline = 2048, - AlignAllBaseline = 2048, - AlignAllFirstBaseline = 4096, + AlignAllBaseline = 2048, + AlignmentMask = 65535, DirectionLeadingToTrailing = 0, @@ -291,7 +688,7 @@ declare const enum NSLayoutFormatOptions { SpacingMask = 524288 } -declare class NSLayoutManager extends NSObject implements NSCoding { +declare class NSLayoutManager extends NSObject implements NSSecureCoding { static alloc(): NSLayoutManager; // inherited from NSObject @@ -323,8 +720,12 @@ declare class NSLayoutManager extends NSObject implements NSCoding { textStorage: NSTextStorage; + usesDefaultHyphenation: boolean; + usesFontLeading: boolean; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + constructor(o: { coder: NSCoder; }); // inherited from NSCoding CGGlyphAtIndex(glyphIndex: number): number; @@ -353,7 +754,7 @@ declare class NSLayoutManager extends NSObject implements NSCoding { drawsOutsideLineFragmentForGlyphAtIndex(glyphIndex: number): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; ensureGlyphsForCharacterRange(charRange: NSRange): void; @@ -403,7 +804,7 @@ declare class NSLayoutManager extends NSObject implements NSCoding { glyphRangeForTextContainer(container: NSTextContainer): NSRange; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; insertTextContainerAtIndex(container: NSTextContainer, index: number): void; @@ -455,6 +856,8 @@ declare class NSLayoutManager extends NSObject implements NSCoding { showCGGlyphsPositionsCountFontMatrixAttributesInContext(glyphs: interop.Pointer | interop.Reference, positions: interop.Pointer | interop.Reference, glyphCount: number, font: UIFont, textMatrix: CGAffineTransform, attributes: NSDictionary, graphicsContext: any): void; + showCGGlyphsPositionsCountFontTextMatrixAttributesInContext(glyphs: interop.Pointer | interop.Reference, positions: interop.Pointer | interop.Reference, glyphCount: number, font: UIFont, textMatrix: CGAffineTransform, attributes: NSDictionary, CGContext: any): void; + strikethroughGlyphRangeStrikethroughTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, strikethroughVal: NSUnderlineStyle, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void; textContainerChangedGeometry(container: NSTextContainer): void; @@ -658,9 +1061,9 @@ declare class NSParagraphStyle extends NSObject implements NSCopying, NSMutableC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } @@ -675,6 +1078,27 @@ declare var NSRTFTextDocumentType: string; declare var NSReadOnlyDocumentAttribute: string; +declare const enum NSRectAlignment { + + None = 0, + + Top = 1, + + TopLeading = 2, + + Leading = 3, + + BottomLeading = 4, + + Bottom = 5, + + BottomTrailing = 6, + + Trailing = 7, + + TopTrailing = 8 +} + declare class NSShadow extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSShadow; // inherited from NSObject @@ -693,13 +1117,17 @@ declare class NSShadow extends NSObject implements NSCopying, NSSecureCoding { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var NSShadowAttributeName: string; +declare var NSSourceTextScalingDocumentAttribute: string; + +declare var NSSourceTextScalingDocumentOption: string; + declare var NSStrikethroughColorAttributeName: string; declare var NSStrikethroughStyleAttributeName: string; @@ -754,6 +1182,8 @@ declare var NSStrokeWidthAttributeName: string; declare var NSTabColumnTerminatorsAttributeName: string; +declare var NSTargetTextScalingDocumentOption: string; + declare const enum NSTextAlignment { Left = 0, @@ -771,12 +1201,14 @@ declare function NSTextAlignmentFromCTTextAlignment(ctTextAlignment: CTTextAlign declare function NSTextAlignmentToCTTextAlignment(nsTextAlignment: NSTextAlignment): CTTextAlignment; -declare class NSTextAttachment extends NSObject implements NSCoding, NSTextAttachmentContainer, UIAccessibilityContentSizeCategoryImageAdjusting { +declare class NSTextAttachment extends NSObject implements NSSecureCoding, NSTextAttachmentContainer, UIAccessibilityContentSizeCategoryImageAdjusting { static alloc(): NSTextAttachment; // inherited from NSObject static new(): NSTextAttachment; // inherited from NSObject + static textAttachmentWithImage(image: UIImage): NSTextAttachment; + bounds: CGRect; contents: NSData; @@ -801,6 +1233,8 @@ declare class NSTextAttachment extends NSObject implements NSCoding, NSTextAttac readonly // inherited from NSObjectProtocol + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { data: NSData; ofType: string; }); @@ -811,11 +1245,11 @@ declare class NSTextAttachment extends NSObject implements NSCoding, NSTextAttac conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; imageForBoundsTextContainerCharacterIndex(imageBounds: CGRect, textContainer: NSTextContainer, charIndex: number): UIImage; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDataOfType(contentData: NSData, uti: string): this; @@ -849,7 +1283,7 @@ declare var NSTextAttachmentContainer: { prototype: NSTextAttachmentContainer; }; -declare class NSTextContainer extends NSObject implements NSCoding, NSTextLayoutOrientationProvider { +declare class NSTextContainer extends NSObject implements NSSecureCoding, NSTextLayoutOrientationProvider { static alloc(): NSTextContainer; // inherited from NSObject @@ -875,13 +1309,15 @@ declare class NSTextContainer extends NSObject implements NSCoding, NSTextLayout readonly layoutOrientation: NSTextLayoutOrientation; // inherited from NSTextLayoutOrientationProvider + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { size: CGSize; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithSize(size: CGSize): this; @@ -916,7 +1352,16 @@ declare var NSTextLayoutSectionRange: string; declare var NSTextLayoutSectionsAttribute: string; -declare class NSTextStorage extends NSMutableAttributedString { +declare var NSTextScalingDocumentAttribute: string; + +declare const enum NSTextScalingType { + + Standard = 0, + + iOS = 1 +} + +declare class NSTextStorage extends NSMutableAttributedString implements NSSecureCoding { static alloc(): NSTextStorage; // inherited from NSObject @@ -936,12 +1381,20 @@ declare class NSTextStorage extends NSMutableAttributedString { readonly layoutManagers: NSArray; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + addLayoutManager(aLayoutManager: NSLayoutManager): void; editedRangeChangeInLength(editedMask: NSTextStorageEditActions, editedRange: NSRange, delta: number): void; + encodeWithCoder(coder: NSCoder): void; + ensureAttributesAreFixedInRange(range: NSRange): void; + initWithCoder(coder: NSCoder): this; + invalidateAttributesInRange(range: NSRange): void; processEditing(): void; @@ -993,9 +1446,9 @@ declare class NSTextTab extends NSObject implements NSCoding, NSCopying, NSSecur copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTextAlignmentLocationOptions(alignment: NSTextAlignment, loc: number, options: NSDictionary): this; } @@ -1163,7 +1616,9 @@ declare const enum UIAccessibilityContainerType { List = 2, - Landmark = 3 + Landmark = 3, + + SemanticGroup = 4 } interface UIAccessibilityContentSizeCategoryImageAdjusting extends NSObjectProtocol { @@ -1175,6 +1630,15 @@ declare var UIAccessibilityContentSizeCategoryImageAdjusting: { prototype: UIAccessibilityContentSizeCategoryImageAdjusting; }; +declare const enum UIAccessibilityContrast { + + Unspecified = -1, + + Normal = 0, + + High = 1 +} + declare function UIAccessibilityConvertFrameToScreenCoordinates(rect: CGRect, view: UIView): CGRect; declare function UIAccessibilityConvertPathToScreenCoordinates(path: UIBezierPath, view: UIView): UIBezierPath; @@ -1185,6 +1649,8 @@ declare class UIAccessibilityCustomAction extends NSObject { static new(): UIAccessibilityCustomAction; // inherited from NSObject + actionHandler: (p1: UIAccessibilityCustomAction) => boolean; + attributedName: NSAttributedString; name: string; @@ -1193,12 +1659,20 @@ declare class UIAccessibilityCustomAction extends NSObject { target: any; + constructor(o: { attributedName: NSAttributedString; actionHandler: (p1: UIAccessibilityCustomAction) => boolean; }); + constructor(o: { attributedName: NSAttributedString; target: any; selector: string; }); + constructor(o: { name: string; actionHandler: (p1: UIAccessibilityCustomAction) => boolean; }); + constructor(o: { name: string; target: any; selector: string; }); + initWithAttributedNameActionHandler(attributedName: NSAttributedString, actionHandler: (p1: UIAccessibilityCustomAction) => boolean): this; + initWithAttributedNameTargetSelector(attributedName: NSAttributedString, target: any, selector: string): this; + initWithNameActionHandler(name: string, actionHandler: (p1: UIAccessibilityCustomAction) => boolean): this; + initWithNameTargetSelector(name: string, target: any, selector: string): this; } @@ -1307,7 +1781,7 @@ declare function UIAccessibilityDarkerSystemColorsEnabled(): boolean; declare var UIAccessibilityDarkerSystemColorsStatusDidChangeNotification: string; -declare class UIAccessibilityElement extends NSObject implements UIAccessibilityIdentification { +declare class UIAccessibilityElement extends UIResponder implements UIAccessibilityIdentification { static alloc(): UIAccessibilityElement; // inherited from NSObject @@ -1408,6 +1882,8 @@ declare function UIAccessibilityIsInvertColorsEnabled(): boolean; declare function UIAccessibilityIsMonoAudioEnabled(): boolean; +declare function UIAccessibilityIsOnOffSwitchLabelsEnabled(): boolean; + declare function UIAccessibilityIsReduceMotionEnabled(): boolean; declare function UIAccessibilityIsReduceTransparencyEnabled(): boolean; @@ -1420,6 +1896,8 @@ declare function UIAccessibilityIsSpeakSelectionEnabled(): boolean; declare function UIAccessibilityIsSwitchControlRunning(): boolean; +declare function UIAccessibilityIsVideoAutoplayEnabled(): boolean; + declare function UIAccessibilityIsVoiceOverRunning(): boolean; declare var UIAccessibilityLayoutChangedNotification: number; @@ -1466,6 +1944,8 @@ declare var UIAccessibilityNotificationSwitchControlIdentifier: string; declare var UIAccessibilityNotificationVoiceOverIdentifier: string; +declare var UIAccessibilityOnOffSwitchLabelsDidChangeNotification: string; + declare var UIAccessibilityPageScrolledNotification: number; declare var UIAccessibilityPauseAssistiveTechnologyNotification: number; @@ -1520,6 +2000,10 @@ declare const enum UIAccessibilityScrollDirection { declare var UIAccessibilityShakeToUndoDidChangeNotification: string; +declare function UIAccessibilityShouldDifferentiateWithoutColor(): boolean; + +declare var UIAccessibilityShouldDifferentiateWithoutColorDidChangeNotification: string; + declare var UIAccessibilitySpeakScreenStatusDidChangeNotification: string; declare var UIAccessibilitySpeakSelectionStatusDidChangeNotification: string; @@ -1534,12 +2018,30 @@ declare var UIAccessibilitySpeechAttributePunctuation: string; declare var UIAccessibilitySpeechAttributeQueueAnnouncement: string; +declare var UIAccessibilitySpeechAttributeSpellOut: string; + declare var UIAccessibilitySwitchControlStatusDidChangeNotification: string; +declare var UIAccessibilityTextAttributeContext: string; + declare var UIAccessibilityTextAttributeCustom: string; declare var UIAccessibilityTextAttributeHeadingLevel: string; +declare var UIAccessibilityTextualContextConsole: string; + +declare var UIAccessibilityTextualContextFileSystem: string; + +declare var UIAccessibilityTextualContextMessaging: string; + +declare var UIAccessibilityTextualContextNarrative: string; + +declare var UIAccessibilityTextualContextSourceCode: string; + +declare var UIAccessibilityTextualContextSpreadsheet: string; + +declare var UIAccessibilityTextualContextWordProcessing: string; + declare var UIAccessibilityTraitAdjustable: number; declare var UIAccessibilityTraitAllowsDirectInteraction: number; @@ -1578,6 +2080,8 @@ declare var UIAccessibilityTraitUpdatesFrequently: number; declare var UIAccessibilityUnfocusedElementKey: string; +declare var UIAccessibilityVideoAutoplayStatusDidChangeNotification: string; + declare var UIAccessibilityVoiceOverStatusChanged: string; declare var UIAccessibilityVoiceOverStatusDidChangeNotification: string; @@ -1589,6 +2093,27 @@ declare const enum UIAccessibilityZoomType { InsertionPoint = 0 } +declare class UIAction extends UIMenuElement { + + static actionWithTitleImageIdentifierHandler(title: string, image: UIImage, identifier: string, handler: (p1: UIAction) => void): UIAction; + + static alloc(): UIAction; // inherited from NSObject + + static new(): UIAction; // inherited from NSObject + + attributes: UIMenuElementAttributes; + + discoverabilityTitle: string; + + readonly identifier: string; + + image: UIImage; + + state: UIMenuElementState; + + title: string; +} + declare class UIActionSheet extends UIView { static alloc(): UIActionSheet; // inherited from NSObject @@ -1736,11 +2261,11 @@ declare class UIActivityIndicatorView extends UIView implements NSCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithActivityIndicatorStyle(style: UIActivityIndicatorViewStyle): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; startAnimating(): void; @@ -1749,6 +2274,10 @@ declare class UIActivityIndicatorView extends UIView implements NSCoding { declare const enum UIActivityIndicatorViewStyle { + Medium = 100, + + Large = 101, + WhiteLarge = 0, White = 1, @@ -1786,6 +2315,8 @@ declare class UIActivityItemProvider extends NSOperation implements UIActivityIt activityViewControllerItemForActivityType(activityViewController: UIActivityViewController, activityType: string): any; + activityViewControllerLinkMetadata(activityViewController: UIActivityViewController): LPLinkMetadata; + activityViewControllerPlaceholderItem(activityViewController: UIActivityViewController): any; activityViewControllerSubjectForActivityType(activityViewController: UIActivityViewController, activityType: string): string; @@ -1823,6 +2354,8 @@ interface UIActivityItemSource extends NSObjectProtocol { activityViewControllerItemForActivityType(activityViewController: UIActivityViewController, activityType: string): any; + activityViewControllerLinkMetadata?(activityViewController: UIActivityViewController): LPLinkMetadata; + activityViewControllerPlaceholderItem(activityViewController: UIActivityViewController): any; activityViewControllerSubjectForActivityType?(activityViewController: UIActivityViewController, activityType: string): string; @@ -1834,6 +2367,112 @@ declare var UIActivityItemSource: { prototype: UIActivityItemSource; }; +declare class UIActivityItemsConfiguration extends NSObject implements UIActivityItemsConfigurationReading { + + static activityItemsConfigurationWithItemProviders(itemProviders: NSArray | NSItemProvider[]): UIActivityItemsConfiguration; + + static activityItemsConfigurationWithObjects(objects: NSArray | NSItemProviderWriting[]): UIActivityItemsConfiguration; + + static alloc(): UIActivityItemsConfiguration; // inherited from NSObject + + static new(): UIActivityItemsConfiguration; // inherited from NSObject + + applicationActivitiesProvider: () => NSArray; + + localObject: any; + + metadataProvider: (p1: string) => any; + + perItemMetadataProvider: (p1: number, p2: string) => any; + + previewProvider: (p1: number, p2: string, p3: CGSize) => NSItemProvider; + + supportedInteractions: NSArray; + + readonly applicationActivitiesForActivityItemsConfiguration: NSArray; // inherited from UIActivityItemsConfigurationReading + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly itemProvidersForActivityItemsConfiguration: NSArray; // inherited from UIActivityItemsConfigurationReading + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + constructor(o: { itemProviders: NSArray | NSItemProvider[]; }); + + constructor(o: { objects: NSArray | NSItemProviderWriting[]; }); + + activityItemsConfigurationMetadataForItemAtIndexKey(index: number, key: string): any; + + activityItemsConfigurationMetadataForKey(key: string): any; + + activityItemsConfigurationPreviewForItemAtIndexIntentSuggestedSize(index: number, intent: string, suggestedSize: CGSize): NSItemProvider; + + activityItemsConfigurationSupportsInteraction(interaction: string): boolean; + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + initWithItemProviders(itemProviders: NSArray | NSItemProvider[]): this; + + initWithObjects(objects: NSArray | NSItemProviderWriting[]): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare var UIActivityItemsConfigurationInteractionShare: string; + +declare var UIActivityItemsConfigurationMetadataKeyMessageBody: string; + +declare var UIActivityItemsConfigurationMetadataKeyTitle: string; + +declare var UIActivityItemsConfigurationPreviewIntentFullSize: string; + +declare var UIActivityItemsConfigurationPreviewIntentThumbnail: string; + +interface UIActivityItemsConfigurationReading extends NSObjectProtocol { + + applicationActivitiesForActivityItemsConfiguration?: NSArray; + + itemProvidersForActivityItemsConfiguration: NSArray; + + activityItemsConfigurationMetadataForItemAtIndexKey?(index: number, key: string): any; + + activityItemsConfigurationMetadataForKey?(key: string): any; + + activityItemsConfigurationPreviewForItemAtIndexIntentSuggestedSize?(index: number, intent: string, suggestedSize: CGSize): NSItemProvider; + + activityItemsConfigurationSupportsInteraction?(interaction: string): boolean; +} +declare var UIActivityItemsConfigurationReading: { + + prototype: UIActivityItemsConfigurationReading; +}; + declare var UIActivityTypeAddToReadingList: string; declare var UIActivityTypeAirDrop: string; @@ -1889,8 +2528,16 @@ interface UIAdaptivePresentationControllerDelegate extends NSObjectProtocol { adaptivePresentationStyleForPresentationControllerTraitCollection?(controller: UIPresentationController, traitCollection: UITraitCollection): UIModalPresentationStyle; + presentationControllerDidAttemptToDismiss?(presentationController: UIPresentationController): void; + + presentationControllerDidDismiss?(presentationController: UIPresentationController): void; + + presentationControllerShouldDismiss?(presentationController: UIPresentationController): boolean; + presentationControllerViewControllerForAdaptivePresentationStyle?(controller: UIPresentationController, style: UIModalPresentationStyle): UIViewController; + presentationControllerWillDismiss?(presentationController: UIPresentationController): void; + presentationControllerWillPresentWithAdaptiveStyleTransitionCoordinator?(presentationController: UIPresentationController, style: UIModalPresentationStyle, transitionCoordinator: UIViewControllerTransitionCoordinator): void; } declare var UIAdaptivePresentationControllerDelegate: { @@ -2101,6 +2748,10 @@ declare class UIApplication extends UIResponder { static alloc(): UIApplication; // inherited from NSObject + static mdc_isAppExtension(): boolean; + + static mdc_safeSharedApplication(): UIApplication; + static new(): UIApplication; // inherited from NSObject static registerObjectForStateRestorationRestorationIdentifier(object: UIStateRestoring, restorationIdentifier: string): void; @@ -2117,6 +2768,8 @@ declare class UIApplication extends UIResponder { readonly backgroundTimeRemaining: number; + readonly connectedScenes: NSSet; + readonly currentUserNotificationSettings: UIUserNotificationSettings; delegate: UIApplicationDelegate; @@ -2129,6 +2782,8 @@ declare class UIApplication extends UIResponder { networkActivityIndicatorVisible: boolean; + readonly openSessions: NSSet; + readonly preferredContentSizeCategory: string; readonly protectedDataAvailable: boolean; @@ -2153,6 +2808,8 @@ declare class UIApplication extends UIResponder { readonly supportsAlternateIcons: boolean; + readonly supportsMultipleScenes: boolean; + readonly userInterfaceLayoutDirection: UIUserInterfaceLayoutDirection; readonly windows: NSArray; @@ -2201,6 +2858,12 @@ declare class UIApplication extends UIResponder { registerUserNotificationSettings(notificationSettings: UIUserNotificationSettings): void; + requestSceneSessionActivationUserActivityOptionsErrorHandler(sceneSession: UISceneSession, userActivity: NSUserActivity, options: UISceneActivationRequestOptions, errorHandler: (p1: NSError) => void): void; + + requestSceneSessionDestructionOptionsErrorHandler(sceneSession: UISceneSession, options: UISceneDestructionRequestOptions, errorHandler: (p1: NSError) => void): void; + + requestSceneSessionRefresh(sceneSession: UISceneSession): void; + scheduleLocalNotification(notification: UILocalNotification): void; sendActionToFromForEvent(action: string, target: any, sender: any, event: _UIEvent): boolean; @@ -2238,6 +2901,8 @@ interface UIApplicationDelegate extends NSObjectProtocol { window?: UIWindow; + applicationConfigurationForConnectingSceneSessionOptions?(application: UIApplication, connectingSceneSession: UISceneSession, options: UISceneConnectionOptions): UISceneConfiguration; + applicationContinueUserActivityRestorationHandler?(application: UIApplication, userActivity: NSUserActivity, restorationHandler: (p1: NSArray) => void): boolean; applicationDidBecomeActive?(application: UIApplication): void; @@ -2248,6 +2913,8 @@ interface UIApplicationDelegate extends NSObjectProtocol { applicationDidDecodeRestorableStateWithCoder?(application: UIApplication, coder: NSCoder): void; + applicationDidDiscardSceneSessions?(application: UIApplication, sceneSessions: NSSet): void; + applicationDidEnterBackground?(application: UIApplication): void; applicationDidFailToContinueUserActivityWithTypeError?(application: UIApplication, userActivityType: string, error: NSError): void; @@ -2256,7 +2923,7 @@ interface UIApplicationDelegate extends NSObjectProtocol { applicationDidFinishLaunching?(application: UIApplication): void; - applicationDidFinishLaunchingWithOptions?(application: UIApplication, launchOptions: NSDictionary): boolean; + applicationDidFinishLaunchingWithOptions?(application: UIApplication, launchOptions: NSDictionary): boolean; applicationDidReceiveLocalNotification?(application: UIApplication, notification: UILocalNotification): void; @@ -2326,7 +2993,7 @@ interface UIApplicationDelegate extends NSObjectProtocol { applicationWillEnterForeground?(application: UIApplication): void; - applicationWillFinishLaunchingWithOptions?(application: UIApplication, launchOptions: NSDictionary): boolean; + applicationWillFinishLaunchingWithOptions?(application: UIApplication, launchOptions: NSDictionary): boolean; applicationWillResignActive?(application: UIApplication): void; @@ -2401,6 +3068,8 @@ declare class UIApplicationShortcutIcon extends NSObject implements NSCopying { static iconWithContact(contact: CNContact): UIApplicationShortcutIcon; + static iconWithSystemImageName(systemImageName: string): UIApplicationShortcutIcon; + static iconWithTemplateImageName(templateImageName: string): UIApplicationShortcutIcon; static iconWithType(type: UIApplicationShortcutIconType): UIApplicationShortcutIcon; @@ -2483,6 +3152,8 @@ declare class UIApplicationShortcutItem extends NSObject implements NSCopying, N readonly localizedTitle: string; + readonly targetContentIdentifier: any; + readonly type: string; readonly userInfo: NSDictionary; @@ -2611,6 +3282,53 @@ declare const enum UIBackgroundRefreshStatus { declare var UIBackgroundTaskInvalid: number; +declare class UIBarAppearance extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): UIBarAppearance; // inherited from NSObject + + static new(): UIBarAppearance; // inherited from NSObject + + backgroundColor: UIColor; + + backgroundEffect: UIBlurEffect; + + backgroundImage: UIImage; + + backgroundImageContentMode: UIViewContentMode; + + readonly idiom: UIUserInterfaceIdiom; + + shadowColor: UIColor; + + shadowImage: UIImage; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { barAppearance: UIBarAppearance; }); + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { idiom: UIUserInterfaceIdiom; }); + + configureWithDefaultBackground(): void; + + configureWithOpaqueBackground(): void; + + configureWithTransparentBackground(): void; + + copy(): this; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithBarAppearance(barAppearance: UIBarAppearance): this; + + initWithCoder(coder: NSCoder): this; + + initWithIdiom(idiom: UIUserInterfaceIdiom): this; +} + declare class UIBarButtonItem extends UIBarItem implements NSCoding, UISpringLoadedInteractionSupporting { static alloc(): UIBarButtonItem; // inherited from NSObject @@ -2687,11 +3405,11 @@ declare class UIBarButtonItem extends UIBarItem implements NSCoding, UISpringLoa conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithBarButtonSystemItemTargetAction(systemItem: UIBarButtonSystemItem, target: any, action: string): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithCustomView(customView: UIView): this; @@ -2736,6 +3454,39 @@ declare class UIBarButtonItem extends UIBarItem implements NSCoding, UISpringLoa titlePositionAdjustmentForBarMetrics(barMetrics: UIBarMetrics): UIOffset; } +declare class UIBarButtonItemAppearance extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): UIBarButtonItemAppearance; // inherited from NSObject + + static new(): UIBarButtonItemAppearance; // inherited from NSObject + + readonly disabled: UIBarButtonItemStateAppearance; + + readonly focused: UIBarButtonItemStateAppearance; + + readonly highlighted: UIBarButtonItemStateAppearance; + + readonly normal: UIBarButtonItemStateAppearance; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { style: UIBarButtonItemStyle; }); + + configureWithDefaultForStyle(style: UIBarButtonItemStyle): void; + + copy(): this; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithStyle(style: UIBarButtonItemStyle): this; +} + declare class UIBarButtonItemGroup extends NSObject implements NSCoding { static alloc(): UIBarButtonItemGroup; // inherited from NSObject @@ -2752,11 +3503,26 @@ declare class UIBarButtonItemGroup extends NSObject implements NSCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithBarButtonItemsRepresentativeItem(barButtonItems: NSArray | UIBarButtonItem[], representativeItem: UIBarButtonItem): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; +} + +declare class UIBarButtonItemStateAppearance extends NSObject { + + static alloc(): UIBarButtonItemStateAppearance; // inherited from NSObject + + static new(): UIBarButtonItemStateAppearance; // inherited from NSObject + + backgroundImage: UIImage; + + backgroundImagePositionAdjustment: UIOffset; + + titlePositionAdjustment: UIOffset; + + titleTextAttributes: NSDictionary; } declare const enum UIBarButtonItemStyle { @@ -2816,7 +3582,9 @@ declare const enum UIBarButtonSystemItem { Redo = 22, - PageCurl = 23 + PageCurl = 23, + + Close = 24 } declare class UIBarItem extends NSObject implements NSCoding, UIAccessibilityIdentification, UIAppearance { @@ -2875,9 +3643,9 @@ declare class UIBarItem extends NSObject implements NSCoding, UIAccessibilityIde conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -3032,7 +3800,7 @@ declare class UIBezierPath extends NSObject implements NSCopying, NSSecureCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; fill(): void; @@ -3040,7 +3808,7 @@ declare class UIBezierPath extends NSObject implements NSCopying, NSSecureCoding getLineDashCountPhase(pattern: interop.Pointer | interop.Reference, count: interop.Pointer | interop.Reference, phase: interop.Pointer | interop.Reference): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; moveToPoint(point: CGPoint): void; @@ -3074,7 +3842,37 @@ declare const enum UIBlurEffectStyle { Regular = 4, - Prominent = 5 + Prominent = 5, + + SystemUltraThinMaterial = 6, + + SystemThinMaterial = 7, + + SystemMaterial = 8, + + SystemThickMaterial = 9, + + SystemChromeMaterial = 10, + + SystemUltraThinMaterialLight = 11, + + SystemThinMaterialLight = 12, + + SystemMaterialLight = 13, + + SystemThickMaterialLight = 14, + + SystemChromeMaterialLight = 15, + + SystemUltraThinMaterialDark = 16, + + SystemThinMaterialDark = 17, + + SystemMaterialDark = 18, + + SystemThickMaterialDark = 19, + + SystemChromeMaterialDark = 20 } declare class UIButton extends UIControl implements NSCoding, UIAccessibilityContentSizeCategoryImageAdjusting, UISpringLoadedInteractionSupporting { @@ -3097,6 +3895,8 @@ declare class UIButton extends UIControl implements NSCoding, UIAccessibilityCon static new(): UIButton; // inherited from NSObject + static systemButtonWithImageTargetAction(image: UIImage, target: any, action: string): UIButton; + adjustsImageWhenDisabled: boolean; adjustsImageWhenHighlighted: boolean; @@ -3111,6 +3911,8 @@ declare class UIButton extends UIControl implements NSCoding, UIAccessibilityCon readonly currentImage: UIImage; + readonly currentPreferredSymbolConfiguration: UIImageSymbolConfiguration; + readonly currentTitle: string; readonly currentTitleColor: UIColor; @@ -3165,13 +3967,13 @@ declare class UIButton extends UIControl implements NSCoding, UIAccessibilityCon contentRectForBounds(bounds: CGRect): CGRect; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; imageForState(state: UIControlState): UIImage; imageRectForContentRect(contentRect: CGRect): CGRect; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -3185,6 +3987,8 @@ declare class UIButton extends UIControl implements NSCoding, UIAccessibilityCon performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + preferredSymbolConfigurationForImageInState(state: UIControlState): UIImageSymbolConfiguration; + respondsToSelector(aSelector: string): boolean; retainCount(): number; @@ -3197,6 +4001,8 @@ declare class UIButton extends UIControl implements NSCoding, UIAccessibilityCon setImageForState(image: UIImage, state: UIControlState): void; + setPreferredSymbolConfigurationForImageInState(configuration: UIImageSymbolConfiguration, state: UIControlState): void; + setTitleColorForState(color: UIColor, state: UIControlState): void; setTitleForState(title: string, state: UIControlState): void; @@ -3228,6 +4034,8 @@ declare const enum UIButtonType { Plain = 6, + Close = 7, + RoundedRect = 1 } @@ -3299,6 +4107,21 @@ declare var UICollectionElementKindSectionFooter: string; declare var UICollectionElementKindSectionHeader: string; +declare const enum UICollectionLayoutSectionOrthogonalScrollingBehavior { + + None = 0, + + Continuous = 1, + + ContinuousGroupLeadingBoundary = 2, + + Paging = 3, + + GroupPaging = 4, + + GroupPagingCentered = 5 +} + declare class UICollectionReusableView extends UIView { static alloc(): UICollectionReusableView; // inherited from NSObject @@ -3563,7 +4386,47 @@ declare const enum UICollectionViewCellDragState { Lifting = 1, - Dragging = 2 + Dragging = 2 +} + +declare class UICollectionViewCompositionalLayout extends UICollectionViewLayout { + + static alloc(): UICollectionViewCompositionalLayout; // inherited from NSObject + + static new(): UICollectionViewCompositionalLayout; // inherited from NSObject + + configuration: UICollectionViewCompositionalLayoutConfiguration; + + constructor(o: { section: NSCollectionLayoutSection; }); + + constructor(o: { section: NSCollectionLayoutSection; configuration: UICollectionViewCompositionalLayoutConfiguration; }); + + constructor(o: { sectionProvider: (p1: number, p2: NSCollectionLayoutEnvironment) => NSCollectionLayoutSection; }); + + constructor(o: { sectionProvider: (p1: number, p2: NSCollectionLayoutEnvironment) => NSCollectionLayoutSection; configuration: UICollectionViewCompositionalLayoutConfiguration; }); + + initWithSection(section: NSCollectionLayoutSection): this; + + initWithSectionConfiguration(section: NSCollectionLayoutSection, configuration: UICollectionViewCompositionalLayoutConfiguration): this; + + initWithSectionProvider(sectionProvider: (p1: number, p2: NSCollectionLayoutEnvironment) => NSCollectionLayoutSection): this; + + initWithSectionProviderConfiguration(sectionProvider: (p1: number, p2: NSCollectionLayoutEnvironment) => NSCollectionLayoutSection, configuration: UICollectionViewCompositionalLayoutConfiguration): this; +} + +declare class UICollectionViewCompositionalLayoutConfiguration extends NSObject implements NSCopying { + + static alloc(): UICollectionViewCompositionalLayoutConfiguration; // inherited from NSObject + + static new(): UICollectionViewCompositionalLayoutConfiguration; // inherited from NSObject + + boundarySupplementaryItems: NSArray; + + interSectionSpacing: number; + + scrollDirection: UICollectionViewScrollDirection; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare class UICollectionViewController extends UIViewController implements UICollectionViewDataSource, UICollectionViewDelegate { @@ -3606,12 +4469,18 @@ declare class UICollectionViewController extends UIViewController implements UIC collectionViewCellForItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): UICollectionViewCell; + collectionViewContextMenuConfigurationForItemAtIndexPathPoint(collectionView: UICollectionView, indexPath: NSIndexPath, point: CGPoint): UIContextMenuConfiguration; + + collectionViewDidBeginMultipleSelectionInteractionAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void; + collectionViewDidDeselectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidEndDisplayingCellForItemAtIndexPath(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void; collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(collectionView: UICollectionView, view: UICollectionReusableView, elementKind: string, indexPath: NSIndexPath): void; + collectionViewDidEndMultipleSelectionInteraction(collectionView: UICollectionView): void; + collectionViewDidHighlightItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidSelectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void; @@ -3628,6 +4497,12 @@ declare class UICollectionViewController extends UIViewController implements UIC collectionViewPerformActionForItemAtIndexPathWithSender(collectionView: UICollectionView, action: string, indexPath: NSIndexPath, sender: any): void; + collectionViewPreviewForDismissingContextMenuWithConfiguration(collectionView: UICollectionView, configuration: UIContextMenuConfiguration): UITargetedPreview; + + collectionViewPreviewForHighlightingContextMenuWithConfiguration(collectionView: UICollectionView, configuration: UIContextMenuConfiguration): UITargetedPreview; + + collectionViewShouldBeginMultipleSelectionInteractionAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; + collectionViewShouldDeselectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewShouldHighlightItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; @@ -3648,10 +4523,14 @@ declare class UICollectionViewController extends UIViewController implements UIC collectionViewViewForSupplementaryElementOfKindAtIndexPath(collectionView: UICollectionView, kind: string, indexPath: NSIndexPath): UICollectionReusableView; + collectionViewWillCommitMenuWithAnimator(collectionView: UICollectionView, animator: UIContextMenuInteractionCommitAnimating): void; + collectionViewWillDisplayCellForItemAtIndexPath(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void; collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(collectionView: UICollectionView, view: UICollectionReusableView, elementKind: string, indexPath: NSIndexPath): void; + collectionViewWillPerformPreviewActionForMenuWithConfigurationAnimator(collectionView: UICollectionView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating): void; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; indexPathForPreferredFocusedViewInCollectionView(collectionView: UICollectionView): NSIndexPath; @@ -3749,12 +4628,18 @@ interface UICollectionViewDelegate extends UIScrollViewDelegate { collectionViewCanPerformActionForItemAtIndexPathWithSender?(collectionView: UICollectionView, action: string, indexPath: NSIndexPath, sender: any): boolean; + collectionViewContextMenuConfigurationForItemAtIndexPathPoint?(collectionView: UICollectionView, indexPath: NSIndexPath, point: CGPoint): UIContextMenuConfiguration; + + collectionViewDidBeginMultipleSelectionInteractionAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): void; + collectionViewDidDeselectItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidEndDisplayingCellForItemAtIndexPath?(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void; collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath?(collectionView: UICollectionView, view: UICollectionReusableView, elementKind: string, indexPath: NSIndexPath): void; + collectionViewDidEndMultipleSelectionInteraction?(collectionView: UICollectionView): void; + collectionViewDidHighlightItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidSelectItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): void; @@ -3765,6 +4650,12 @@ interface UICollectionViewDelegate extends UIScrollViewDelegate { collectionViewPerformActionForItemAtIndexPathWithSender?(collectionView: UICollectionView, action: string, indexPath: NSIndexPath, sender: any): void; + collectionViewPreviewForDismissingContextMenuWithConfiguration?(collectionView: UICollectionView, configuration: UIContextMenuConfiguration): UITargetedPreview; + + collectionViewPreviewForHighlightingContextMenuWithConfiguration?(collectionView: UICollectionView, configuration: UIContextMenuConfiguration): UITargetedPreview; + + collectionViewShouldBeginMultipleSelectionInteractionAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; + collectionViewShouldDeselectItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewShouldHighlightItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; @@ -3783,10 +4674,14 @@ interface UICollectionViewDelegate extends UIScrollViewDelegate { collectionViewTransitionLayoutForOldLayoutNewLayout?(collectionView: UICollectionView, fromLayout: UICollectionViewLayout, toLayout: UICollectionViewLayout): UICollectionViewTransitionLayout; + collectionViewWillCommitMenuWithAnimator?(collectionView: UICollectionView, animator: UIContextMenuInteractionCommitAnimating): void; + collectionViewWillDisplayCellForItemAtIndexPath?(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void; collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath?(collectionView: UICollectionView, view: UICollectionReusableView, elementKind: string, indexPath: NSIndexPath): void; + collectionViewWillPerformPreviewActionForMenuWithConfigurationAnimator?(collectionView: UICollectionView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating): void; + indexPathForPreferredFocusedViewInCollectionView?(collectionView: UICollectionView): NSIndexPath; } declare var UICollectionViewDelegate: { @@ -3813,6 +4708,79 @@ declare var UICollectionViewDelegateFlowLayout: { prototype: UICollectionViewDelegateFlowLayout; }; +declare class UICollectionViewDiffableDataSource extends NSObject implements UICollectionViewDataSource { + + static alloc(): UICollectionViewDiffableDataSource; // inherited from NSObject + + static new(): UICollectionViewDiffableDataSource; // inherited from NSObject + + supplementaryViewProvider: (p1: UICollectionView, p2: string, p3: NSIndexPath) => UICollectionReusableView; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + constructor(o: { collectionView: UICollectionView; cellProvider: (p1: UICollectionView, p2: NSIndexPath, p3: any) => UICollectionViewCell; }); + + applySnapshotAnimatingDifferences(snapshot: NSDiffableDataSourceSnapshot, animatingDifferences: boolean): void; + + applySnapshotAnimatingDifferencesCompletion(snapshot: NSDiffableDataSourceSnapshot, animatingDifferences: boolean, completion: () => void): void; + + class(): typeof NSObject; + + collectionViewCanMoveItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; + + collectionViewCellForItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): UICollectionViewCell; + + collectionViewIndexPathForIndexTitleAtIndex(collectionView: UICollectionView, title: string, index: number): NSIndexPath; + + collectionViewMoveItemAtIndexPathToIndexPath(collectionView: UICollectionView, sourceIndexPath: NSIndexPath, destinationIndexPath: NSIndexPath): void; + + collectionViewNumberOfItemsInSection(collectionView: UICollectionView, section: number): number; + + collectionViewViewForSupplementaryElementOfKindAtIndexPath(collectionView: UICollectionView, kind: string, indexPath: NSIndexPath): UICollectionReusableView; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + indexPathForItemIdentifier(identifier: ItemIdentifierType): NSIndexPath; + + indexTitlesForCollectionView(collectionView: UICollectionView): NSArray; + + initWithCollectionViewCellProvider(collectionView: UICollectionView, cellProvider: (p1: UICollectionView, p2: NSIndexPath, p3: any) => UICollectionViewCell): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + itemIdentifierForIndexPath(indexPath: NSIndexPath): ItemIdentifierType; + + numberOfSectionsInCollectionView(collectionView: UICollectionView): number; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; + + snapshot(): NSDiffableDataSourceSnapshot; +} + interface UICollectionViewDragDelegate extends NSObjectProtocol { collectionViewDragPreviewParametersForItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): UIDragPreviewParameters; @@ -4019,7 +4987,7 @@ declare class UICollectionViewLayout extends NSObject implements NSCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; finalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(elementKind: string, decorationIndexPath: NSIndexPath): UICollectionViewLayoutAttributes; @@ -4041,7 +5009,7 @@ declare class UICollectionViewLayout extends NSObject implements NSCoding { indexPathsToInsertForSupplementaryViewOfKind(elementKind: string): NSArray; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initialLayoutAttributesForAppearingDecorationElementOfKindAtIndexPath(elementKind: string, decorationIndexPath: NSIndexPath): UICollectionViewLayoutAttributes; @@ -4361,6 +5329,8 @@ declare class UIColor extends NSObject implements NSCopying, NSItemProviderReadi static colorWithDisplayP3RedGreenBlueAlpha(displayP3Red: number, green: number, blue: number, alpha: number): UIColor; + static colorWithDynamicProvider(dynamicProvider: (p1: UITraitCollection) => UIColor): UIColor; + static colorWithHueSaturationBrightnessAlpha(hue: number, saturation: number, brightness: number, alpha: number): UIColor; static colorWithPatternImage(image: UIImage): UIColor; @@ -4399,20 +5369,86 @@ declare class UIColor extends NSObject implements NSCopying, NSItemProviderReadi static readonly groupTableViewBackgroundColor: UIColor; + static readonly labelColor: UIColor; + static readonly lightGrayColor: UIColor; static readonly lightTextColor: UIColor; + static readonly linkColor: UIColor; + static readonly magentaColor: UIColor; + static readonly opaqueSeparatorColor: UIColor; + static readonly orangeColor: UIColor; + static readonly placeholderTextColor: UIColor; + static readonly purpleColor: UIColor; + static readonly quaternaryLabelColor: UIColor; + + static readonly quaternarySystemFillColor: UIColor; + static readonly redColor: UIColor; static readonly scrollViewTexturedBackgroundColor: UIColor; + static readonly secondaryLabelColor: UIColor; + + static readonly secondarySystemBackgroundColor: UIColor; + + static readonly secondarySystemFillColor: UIColor; + + static readonly secondarySystemGroupedBackgroundColor: UIColor; + + static readonly separatorColor: UIColor; + + static readonly systemBackgroundColor: UIColor; + + static readonly systemBlueColor: UIColor; + + static readonly systemFillColor: UIColor; + + static readonly systemGray2Color: UIColor; + + static readonly systemGray3Color: UIColor; + + static readonly systemGray4Color: UIColor; + + static readonly systemGray5Color: UIColor; + + static readonly systemGray6Color: UIColor; + + static readonly systemGrayColor: UIColor; + + static readonly systemGreenColor: UIColor; + + static readonly systemGroupedBackgroundColor: UIColor; + + static readonly systemIndigoColor: UIColor; + + static readonly systemOrangeColor: UIColor; + + static readonly systemPinkColor: UIColor; + + static readonly systemPurpleColor: UIColor; + + static readonly systemRedColor: UIColor; + + static readonly systemTealColor: UIColor; + + static readonly systemYellowColor: UIColor; + + static readonly tertiaryLabelColor: UIColor; + + static readonly tertiarySystemBackgroundColor: UIColor; + + static readonly tertiarySystemFillColor: UIColor; + + static readonly tertiarySystemGroupedBackgroundColor: UIColor; + static readonly underPageBackgroundColor: UIColor; static readonly viewFlipsideBackgroundColor: UIColor; @@ -4449,6 +5485,8 @@ declare class UIColor extends NSObject implements NSCopying, NSItemProviderReadi constructor(o: { displayP3Red: number; green: number; blue: number; alpha: number; }); + constructor(o: { dynamicProvider: (p1: UITraitCollection) => UIColor; }); + constructor(o: { hue: number; saturation: number; brightness: number; alpha: number; }); constructor(o: { patternImage: UIImage; }); @@ -4465,7 +5503,7 @@ declare class UIColor extends NSObject implements NSCopying, NSItemProviderReadi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; getHueSaturationBrightnessAlpha(hue: interop.Pointer | interop.Reference, saturation: interop.Pointer | interop.Reference, brightness: interop.Pointer | interop.Reference, alpha: interop.Pointer | interop.Reference): boolean; @@ -4477,10 +5515,12 @@ declare class UIColor extends NSObject implements NSCopying, NSItemProviderReadi initWithCIColor(ciColor: CIColor): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDisplayP3RedGreenBlueAlpha(displayP3Red: number, green: number, blue: number, alpha: number): this; + initWithDynamicProvider(dynamicProvider: (p1: UITraitCollection) => UIColor): this; + initWithHueSaturationBrightnessAlpha(hue: number, saturation: number, brightness: number, alpha: number): this; initWithPatternImage(image: UIImage): this; @@ -4505,6 +5545,8 @@ declare class UIColor extends NSObject implements NSCopying, NSItemProviderReadi performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + resolvedColorWithTraitCollection(traitCollection: UITraitCollection): UIColor; + respondsToSelector(aSelector: string): boolean; retainCount(): number; @@ -4518,67 +5560,241 @@ declare class UIColor extends NSObject implements NSCopying, NSItemProviderReadi setStroke(): void; } -interface UIContentContainer extends NSObjectProtocol { +declare class UICommand extends UIMenuElement { + + static alloc(): UICommand; // inherited from NSObject + + static commandWithTitleImageActionPropertyList(title: string, image: UIImage, action: string, propertyList: any): UICommand; + + static commandWithTitleImageActionPropertyListAlternates(title: string, image: UIImage, action: string, propertyList: any, alternates: NSArray | UICommandAlternate[]): UICommand; + + static new(): UICommand; // inherited from NSObject + + readonly action: string; + + readonly alternates: NSArray; + + attributes: UIMenuElementAttributes; + + discoverabilityTitle: string; + + image: UIImage; + + readonly propertyList: any; + + state: UIMenuElementState; + + title: string; +} + +declare class UICommandAlternate extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): UICommandAlternate; // inherited from NSObject + + static alternateWithTitleActionModifierFlags(title: string, action: string, modifierFlags: UIKeyModifierFlags): UICommandAlternate; + + static new(): UICommandAlternate; // inherited from NSObject + + readonly action: string; + + readonly modifierFlags: UIKeyModifierFlags; + + readonly title: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare var UICommandTagShare: string; + +interface UIContentContainer extends NSObjectProtocol { + + preferredContentSize: CGSize; + + preferredContentSizeDidChangeForChildContentContainer(container: UIContentContainer): void; + + sizeForChildContentContainerWithParentContainerSize(container: UIContentContainer, parentSize: CGSize): CGSize; + + systemLayoutFittingSizeDidChangeForChildContentContainer(container: UIContentContainer): void; + + viewWillTransitionToSizeWithTransitionCoordinator(size: CGSize, coordinator: UIViewControllerTransitionCoordinator): void; + + willTransitionToTraitCollectionWithTransitionCoordinator(newCollection: UITraitCollection, coordinator: UIViewControllerTransitionCoordinator): void; +} +declare var UIContentContainer: { + + prototype: UIContentContainer; +}; + +declare var UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: string; + +declare var UIContentSizeCategoryAccessibilityExtraExtraLarge: string; + +declare var UIContentSizeCategoryAccessibilityExtraLarge: string; + +declare var UIContentSizeCategoryAccessibilityLarge: string; + +declare var UIContentSizeCategoryAccessibilityMedium: string; + +interface UIContentSizeCategoryAdjusting extends NSObjectProtocol { + + adjustsFontForContentSizeCategory: boolean; +} +declare var UIContentSizeCategoryAdjusting: { + + prototype: UIContentSizeCategoryAdjusting; +}; + +declare function UIContentSizeCategoryCompareToCategory(lhs: string, rhs: string): NSComparisonResult; + +declare var UIContentSizeCategoryDidChangeNotification: string; + +declare var UIContentSizeCategoryExtraExtraExtraLarge: string; + +declare var UIContentSizeCategoryExtraExtraLarge: string; + +declare var UIContentSizeCategoryExtraLarge: string; + +declare var UIContentSizeCategoryExtraSmall: string; + +declare function UIContentSizeCategoryIsAccessibilityCategory(category: string): boolean; + +declare var UIContentSizeCategoryLarge: string; + +declare var UIContentSizeCategoryMedium: string; + +declare var UIContentSizeCategoryNewValueKey: string; + +declare var UIContentSizeCategorySmall: string; + +declare var UIContentSizeCategoryUnspecified: string; + +declare class UIContextMenuConfiguration extends NSObject { + + static alloc(): UIContextMenuConfiguration; // inherited from NSObject + + static configurationWithIdentifierPreviewProviderActionProvider(identifier: any, previewProvider: () => UIViewController, actionProvider: (p1: NSArray) => UIMenu): UIContextMenuConfiguration; + + static new(): UIContextMenuConfiguration; // inherited from NSObject + + readonly identifier: any; +} + +declare class UIContextMenuInteraction extends NSObject implements UIInteraction { + + static alloc(): UIContextMenuInteraction; // inherited from NSObject + + static new(): UIContextMenuInteraction; // inherited from NSObject + + readonly delegate: UIContextMenuInteractionDelegate; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly view: UIView; // inherited from UIInteraction + + readonly // inherited from NSObjectProtocol + + constructor(o: { delegate: UIContextMenuInteractionDelegate; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + didMoveToView(view: UIView): void; + + initWithDelegate(delegate: UIContextMenuInteractionDelegate): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + locationInView(view: UIView): CGPoint; + + performSelector(aSelector: string): any; - preferredContentSize: CGSize; + performSelectorWithObject(aSelector: string, object: any): any; - preferredContentSizeDidChangeForChildContentContainer(container: UIContentContainer): void; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - sizeForChildContentContainerWithParentContainerSize(container: UIContentContainer, parentSize: CGSize): CGSize; + respondsToSelector(aSelector: string): boolean; - systemLayoutFittingSizeDidChangeForChildContentContainer(container: UIContentContainer): void; + retainCount(): number; - viewWillTransitionToSizeWithTransitionCoordinator(size: CGSize, coordinator: UIViewControllerTransitionCoordinator): void; + self(): this; - willTransitionToTraitCollectionWithTransitionCoordinator(newCollection: UITraitCollection, coordinator: UIViewControllerTransitionCoordinator): void; + willMoveToView(view: UIView): void; } -declare var UIContentContainer: { - - prototype: UIContentContainer; -}; -declare var UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: string; +interface UIContextMenuInteractionAnimating extends NSObjectProtocol { -declare var UIContentSizeCategoryAccessibilityExtraExtraLarge: string; + previewViewController: UIViewController; -declare var UIContentSizeCategoryAccessibilityExtraLarge: string; + addAnimations(animations: () => void): void; -declare var UIContentSizeCategoryAccessibilityLarge: string; + addCompletion(completion: () => void): void; +} +declare var UIContextMenuInteractionAnimating: { -declare var UIContentSizeCategoryAccessibilityMedium: string; + prototype: UIContextMenuInteractionAnimating; +}; -interface UIContentSizeCategoryAdjusting extends NSObjectProtocol { +interface UIContextMenuInteractionCommitAnimating extends UIContextMenuInteractionAnimating { - adjustsFontForContentSizeCategory: boolean; + preferredCommitStyle: UIContextMenuInteractionCommitStyle; } -declare var UIContentSizeCategoryAdjusting: { +declare var UIContextMenuInteractionCommitAnimating: { - prototype: UIContentSizeCategoryAdjusting; + prototype: UIContextMenuInteractionCommitAnimating; }; -declare function UIContentSizeCategoryCompareToCategory(lhs: string, rhs: string): NSComparisonResult; +declare const enum UIContextMenuInteractionCommitStyle { -declare var UIContentSizeCategoryDidChangeNotification: string; + Dismiss = 0, -declare var UIContentSizeCategoryExtraExtraExtraLarge: string; + Pop = 1 +} -declare var UIContentSizeCategoryExtraExtraLarge: string; +interface UIContextMenuInteractionDelegate extends NSObjectProtocol { -declare var UIContentSizeCategoryExtraLarge: string; + contextMenuInteractionConfigurationForMenuAtLocation(interaction: UIContextMenuInteraction, location: CGPoint): UIContextMenuConfiguration; -declare var UIContentSizeCategoryExtraSmall: string; + contextMenuInteractionDidEnd?(interaction: UIContextMenuInteraction): void; -declare function UIContentSizeCategoryIsAccessibilityCategory(category: string): boolean; + contextMenuInteractionPreviewForDismissingMenuWithConfiguration?(interaction: UIContextMenuInteraction, configuration: UIContextMenuConfiguration): UITargetedPreview; -declare var UIContentSizeCategoryLarge: string; + contextMenuInteractionPreviewForHighlightingMenuWithConfiguration?(interaction: UIContextMenuInteraction, configuration: UIContextMenuConfiguration): UITargetedPreview; -declare var UIContentSizeCategoryMedium: string; + contextMenuInteractionWillCommitWithAnimator?(interaction: UIContextMenuInteraction, animator: UIContextMenuInteractionCommitAnimating): void; -declare var UIContentSizeCategoryNewValueKey: string; + contextMenuInteractionWillDisplayMenuForConfigurationAnimator?(interaction: UIContextMenuInteraction, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating): void; -declare var UIContentSizeCategorySmall: string; + contextMenuInteractionWillEndForConfigurationAnimator?(interaction: UIContextMenuInteraction, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating): void; -declare var UIContentSizeCategoryUnspecified: string; + contextMenuInteractionWillPerformPreviewActionForMenuWithConfigurationAnimator?(interaction: UIContextMenuInteraction, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating): void; + + contextMenuInteractionWillPresent?(interaction: UIContextMenuInteraction): void; +} +declare var UIContextMenuInteractionDelegate: { + + prototype: UIContextMenuInteractionDelegate; +}; declare class UIContextualAction extends NSObject { @@ -4794,11 +6010,11 @@ declare class UICubicTimingParameters extends NSObject implements UITimingCurveP copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAnimationCurve(curve: UIViewAnimationCurve): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithControlPoint1ControlPoint2(point1: CGPoint, point2: CGPoint): this; } @@ -4890,9 +6106,9 @@ declare class UIDatePicker extends UIControl implements NSCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; setDateAnimated(date: Date, animated: boolean): void; } @@ -5000,6 +6216,21 @@ declare class UIDictationPhrase extends NSObject { readonly text: string; } +declare const enum UIDirectionalRectEdge { + + None = 0, + + Top = 1, + + Leading = 2, + + Bottom = 4, + + Trailing = 8, + + All = 15 +} + declare const enum UIDisplayGamut { Unspecified = -1, @@ -5290,19 +6521,27 @@ declare class UIDocumentBrowserViewController extends UIViewController implement customActions: NSArray; + defaultDocumentAspectRatio: number; + delegate: UIDocumentBrowserViewControllerDelegate; + localizedCreateDocumentActionTitle: string; + + readonly recentDocumentsContentTypes: NSArray; + + shouldShowFileExtensions: boolean; + constructor(o: { forOpeningFilesWithContentTypes: NSArray | string[]; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; importDocumentAtURLNextToDocumentAtURLModeCompletionHandler(documentURL: NSURL, neighbourURL: NSURL, importMode: UIDocumentBrowserImportMode, completion: (p1: NSURL, p2: NSError) => void): void; initForOpeningFilesWithContentTypes(allowedContentTypes: NSArray | string[]): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; revealDocumentAtURLImportIfNeededCompletion(url: NSURL, importIfNeeded: boolean, completion: (p1: NSURL, p2: NSError) => void): void; @@ -5551,8 +6790,12 @@ declare class UIDocumentPickerViewController extends UIViewController { delegate: UIDocumentPickerDelegate; + directoryURL: NSURL; + readonly documentPickerMode: UIDocumentPickerMode; + shouldShowFileExtensions: boolean; + constructor(o: { documentTypes: NSArray | string[]; inMode: UIDocumentPickerMode; }); constructor(o: { URL: NSURL; inMode: UIDocumentPickerMode; }); @@ -5760,44 +7003,18 @@ declare class UIDragPreview extends NSObject implements NSCopying { initWithViewParameters(view: UIView, parameters: UIDragPreviewParameters): this; } -declare class UIDragPreviewParameters extends NSObject implements NSCopying { +declare class UIDragPreviewParameters extends UIPreviewParameters { static alloc(): UIDragPreviewParameters; // inherited from NSObject static new(): UIDragPreviewParameters; // inherited from NSObject - - backgroundColor: UIColor; - - visiblePath: UIBezierPath; - - constructor(o: { textLineRects: NSArray | NSValue[]; }); - - copyWithZone(zone: interop.Pointer | interop.Reference): any; - - initWithTextLineRects(textLineRects: NSArray | NSValue[]): this; } -declare class UIDragPreviewTarget extends NSObject implements NSCopying { +declare class UIDragPreviewTarget extends UIPreviewTarget { static alloc(): UIDragPreviewTarget; // inherited from NSObject static new(): UIDragPreviewTarget; // inherited from NSObject - - readonly center: CGPoint; - - readonly container: UIView; - - readonly transform: CGAffineTransform; - - constructor(o: { container: UIView; center: CGPoint; }); - - constructor(o: { container: UIView; center: CGPoint; transform: CGAffineTransform; }); - - copyWithZone(zone: interop.Pointer | interop.Reference): any; - - initWithContainerCenter(container: UIView, center: CGPoint): this; - - initWithContainerCenterTransform(container: UIView, center: CGPoint, transform: CGAffineTransform): this; } interface UIDragSession extends UIDragDropSession { @@ -6146,6 +7363,13 @@ declare function UIEdgeInsetsFromString(string: string): UIEdgeInsets; declare var UIEdgeInsetsZero: UIEdgeInsets; +declare const enum UIEditingInteractionConfiguration { + + None = 0, + + Default = 1 +} + declare class _UIEvent extends NSObject { static alloc(): _UIEvent; // inherited from NSObject @@ -6277,8 +7501,6 @@ declare var UIFloatRange: interop.StructType; declare var UIFloatRangeInfinite: UIFloatRange; -declare function UIFloatRangeIsEqualToRange(range: UIFloatRange, otherRange: UIFloatRange): boolean; - declare function UIFloatRangeIsInfinite(range: UIFloatRange): boolean; declare var UIFloatRangeZero: UIFloatRange; @@ -6492,8 +7714,14 @@ declare class UIFont extends NSObject implements NSCopying { static italicSystemFontOfSize(fontSize: number): UIFont; + static mdc_preferredFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont; + + static mdc_standardFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont; + static monospacedDigitSystemFontOfSizeWeight(fontSize: number, weight: number): UIFont; + static monospacedSystemFontOfSizeWeight(fontSize: number, weight: number): UIFont; + static new(): UIFont; // inherited from NSObject static preferredFontForTextStyle(style: string): UIFont; @@ -6520,6 +7748,8 @@ declare class UIFont extends NSObject implements NSCopying { readonly lineHeight: number; + mdc_scalingCurve: NSDictionary; + readonly pointSize: number; readonly xHeight: number; @@ -6537,6 +7767,18 @@ declare class UIFont extends NSObject implements NSCopying { copyWithZone(zone: interop.Pointer | interop.Reference): any; fontWithSize(fontSize: number): UIFont; + + mdc_fontSizedForMaterialTextStyleScaledForDynamicType(style: MDCFontTextStyle, scaled: boolean): UIFont; + + mdc_isSimplyEqual(font: UIFont): boolean; + + mdc_scaledFontAtDefaultSize(): UIFont; + + mdc_scaledFontForCurrentSizeCategory(): UIFont; + + mdc_scaledFontForSizeCategory(sizeCategory: string): UIFont; + + mdc_scaledFontForTraitEnvironment(traitEnvironment: UITraitEnvironment): UIFont; } declare class UIFontDescriptor extends NSObject implements NSCopying, NSSecureCoding { @@ -6549,6 +7791,10 @@ declare class UIFontDescriptor extends NSObject implements NSCopying, NSSecureCo static fontDescriptorWithNameSize(fontName: string, size: number): UIFontDescriptor; + static mdc_preferredFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor; + + static mdc_standardFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor; + static new(): UIFontDescriptor; // inherited from NSObject static preferredFontDescriptorWithTextStyle(style: string): UIFontDescriptor; @@ -6573,10 +7819,12 @@ declare class UIFontDescriptor extends NSObject implements NSCopying, NSSecureCo copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; fontDescriptorByAddingAttributes(attributes: NSDictionary): UIFontDescriptor; + fontDescriptorWithDesign(design: string): UIFontDescriptor; + fontDescriptorWithFace(newFace: string): UIFontDescriptor; fontDescriptorWithFamily(newFamily: string): UIFontDescriptor; @@ -6587,7 +7835,7 @@ declare class UIFontDescriptor extends NSObject implements NSCopying, NSSecureCo fontDescriptorWithSymbolicTraits(symbolicTraits: UIFontDescriptorSymbolicTraits): UIFontDescriptor; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithFontAttributes(attributes: NSDictionary): this; @@ -6659,6 +7907,14 @@ declare const enum UIFontDescriptorSymbolicTraits { ClassSymbolic = 3221225472 } +declare var UIFontDescriptorSystemDesignDefault: string; + +declare var UIFontDescriptorSystemDesignMonospaced: string; + +declare var UIFontDescriptorSystemDesignRounded: string; + +declare var UIFontDescriptorSystemDesignSerif: string; + declare var UIFontDescriptorTextStyleAttribute: string; declare var UIFontDescriptorTraitsAttribute: string; @@ -6696,6 +7952,53 @@ declare class UIFontMetrics extends NSObject { scaledValueForValueCompatibleWithTraitCollection(value: number, traitCollection: UITraitCollection): number; } +declare class UIFontPickerViewController extends UIViewController { + + static alloc(): UIFontPickerViewController; // inherited from NSObject + + static new(): UIFontPickerViewController; // inherited from NSObject + + readonly configuration: UIFontPickerViewControllerConfiguration; + + delegate: UIFontPickerViewControllerDelegate; + + selectedFontDescriptor: UIFontDescriptor; + + constructor(o: { configuration: UIFontPickerViewControllerConfiguration; }); + + initWithConfiguration(configuration: UIFontPickerViewControllerConfiguration): this; +} + +declare class UIFontPickerViewControllerConfiguration extends NSObject implements NSCopying { + + static alloc(): UIFontPickerViewControllerConfiguration; // inherited from NSObject + + static filterPredicateForFilteredLanguages(filteredLanguages: NSArray | string[]): NSPredicate; + + static new(): UIFontPickerViewControllerConfiguration; // inherited from NSObject + + displayUsingSystemFont: boolean; + + filteredLanguagesPredicate: NSPredicate; + + filteredTraits: UIFontDescriptorSymbolicTraits; + + includeFaces: boolean; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +interface UIFontPickerViewControllerDelegate extends NSObjectProtocol { + + fontPickerViewControllerDidCancel?(viewController: UIFontPickerViewController): void; + + fontPickerViewControllerDidPickFont?(viewController: UIFontPickerViewController): void; +} +declare var UIFontPickerViewControllerDelegate: { + + prototype: UIFontPickerViewControllerDelegate; +}; + declare var UIFontSlantTrait: string; declare var UIFontSymbolicTrait: string; @@ -6726,6 +8029,8 @@ declare var UIFontWeightBlack: number; declare var UIFontWeightBold: number; +declare function UIFontWeightForImageSymbolWeight(symbolWeight: UIImageSymbolWeight): number; + declare var UIFontWeightHeavy: number; declare var UIFontWeightLight: number; @@ -6779,10 +8084,12 @@ declare class UIGestureRecognizer extends NSObject { requiresExclusiveTouchType: boolean; - readonly state: UIGestureRecognizerState; + state: UIGestureRecognizerState; readonly view: UIView; + constructor(o: { coder: NSCoder; }); + constructor(o: { target: any; action: string; }); addTargetAction(target: any, action: string): void; @@ -6795,6 +8102,8 @@ declare class UIGestureRecognizer extends NSObject { ignoreTouchForEvent(touch: UITouch, event: _UIEvent): void; + initWithCoder(coder: NSCoder): this; + initWithTargetAction(target: any, action: string): this; locationInView(view: UIView): CGPoint; @@ -7099,6 +8408,30 @@ declare class UIGravityBehavior extends UIDynamicBehavior { setAngleMagnitude(angle: number, magnitude: number): void; } +declare const enum UIGuidedAccessAccessibilityFeature { + + VoiceOver = 1, + + Zoom = 2, + + AssistiveTouch = 4, + + InvertColors = 8, + + GrayscaleDisplay = 16 +} + +declare function UIGuidedAccessConfigureAccessibilityFeatures(features: UIGuidedAccessAccessibilityFeature, enabled: boolean, completion: (p1: boolean, p2: NSError) => void): void; + +declare const enum UIGuidedAccessErrorCode { + + PermissionDenied = 0, + + Failed = 9223372036854775807 +} + +declare var UIGuidedAccessErrorDomain: string; + interface UIGuidedAccessRestrictionDelegate extends NSObjectProtocol { guidedAccessRestrictionIdentifiers: NSArray; @@ -7123,6 +8456,13 @@ declare const enum UIGuidedAccessRestrictionState { declare function UIGuidedAccessRestrictionStateForIdentifier(restrictionIdentifier: string): UIGuidedAccessRestrictionState; +declare class UIHoverGestureRecognizer extends UIGestureRecognizer { + + static alloc(): UIHoverGestureRecognizer; // inherited from NSObject + + static new(): UIHoverGestureRecognizer; // inherited from NSObject +} + declare class UIImage extends NSObject implements NSItemProviderReading, NSItemProviderWriting, NSSecureCoding, UIAccessibilityIdentification, UIItemProviderPresentationSizeProviding { static alloc(): UIImage; // inherited from NSObject @@ -7139,6 +8479,8 @@ declare class UIImage extends NSObject implements NSItemProviderReading, NSItemP static imageNamedInBundleCompatibleWithTraitCollection(name: string, bundle: NSBundle, traitCollection: UITraitCollection): UIImage; + static imageNamedInBundleWithConfiguration(name: string, bundle: NSBundle, configuration: UIImageConfiguration): UIImage; + static imageWithCGImage(cgImage: any): UIImage; static imageWithCGImageScaleOrientation(cgImage: any, scale: number, orientation: UIImageOrientation): UIImage; @@ -7159,6 +8501,12 @@ declare class UIImage extends NSObject implements NSItemProviderReading, NSItemP static objectWithItemProviderDataTypeIdentifierError(data: NSData, typeIdentifier: string): UIImage; + static systemImageNamed(name: string): UIImage; + + static systemImageNamedCompatibleWithTraitCollection(name: string, traitCollection: UITraitCollection): UIImage; + + static systemImageNamedWithConfiguration(name: string, configuration: UIImageConfiguration): UIImage; + static tns_decodeImageWidthContentsOfFileCompletion(file: string, callback: (p1: UIImage) => void): void; static tns_decodeImageWithDataCompletion(data: NSData, callback: (p1: UIImage) => void): void; @@ -7173,12 +8521,18 @@ declare class UIImage extends NSObject implements NSItemProviderReading, NSItemP readonly alignmentRectInsets: UIEdgeInsets; + readonly baselineOffsetFromBottom: number; + readonly capInsets: UIEdgeInsets; + readonly configuration: UIImageConfiguration; + readonly duration: number; readonly flipsForRightToLeftLayoutDirection: boolean; + readonly hasBaseline: boolean; + readonly imageAsset: UIImageAsset; readonly imageOrientation: UIImageOrientation; @@ -7197,10 +8551,24 @@ declare class UIImage extends NSObject implements NSItemProviderReading, NSItemP readonly size: CGSize; + readonly symbolConfiguration: UIImageSymbolConfiguration; + + readonly symbolImage: boolean; + readonly topCapHeight: number; readonly traitCollection: UITraitCollection; + static readonly actionsImage: UIImage; + + static readonly addImage: UIImage; + + static readonly checkmarkImage: UIImage; + + static readonly removeImage: UIImage; + + static readonly strokedCheckmarkImage: UIImage; + accessibilityIdentifier: string; // inherited from UIAccessibilityIdentification readonly debugDescription: string; // inherited from NSObjectProtocol @@ -7255,16 +8623,28 @@ declare class UIImage extends NSObject implements NSItemProviderReading, NSItemP drawInRectBlendModeAlpha(rect: CGRect, blendMode: CGBlendMode, alpha: number): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; + + imageByApplyingSymbolConfiguration(configuration: UIImageSymbolConfiguration): UIImage; imageFlippedForRightToLeftLayoutDirection(): UIImage; imageWithAlignmentRectInsets(alignmentInsets: UIEdgeInsets): UIImage; + imageWithBaselineOffsetFromBottom(baselineOffset: number): UIImage; + + imageWithConfiguration(configuration: UIImageConfiguration): UIImage; + imageWithHorizontallyFlippedOrientation(): UIImage; imageWithRenderingMode(renderingMode: UIImageRenderingMode): UIImage; + imageWithTintColor(color: UIColor): UIImage; + + imageWithTintColorRenderingMode(color: UIColor, renderingMode: UIImageRenderingMode): UIImage; + + imageWithoutBaseline(): UIImage; + initWithCGImage(cgImage: any): this; initWithCGImageScaleOrientation(cgImage: any, scale: number, orientation: UIImageOrientation): this; @@ -7273,7 +8653,7 @@ declare class UIImage extends NSObject implements NSItemProviderReading, NSItemP initWithCIImageScaleOrientation(ciImage: CIImage, scale: number, orientation: UIImageOrientation): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithContentsOfFile(path: string): this; @@ -7291,6 +8671,8 @@ declare class UIImage extends NSObject implements NSItemProviderReading, NSItemP loadDataWithTypeIdentifierForItemProviderCompletionHandler(typeIdentifier: string, completionHandler: (p1: NSData, p2: NSError) => void): NSProgress; + mdf_imageWithHorizontallyFlippedOrientation(): UIImage; + performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; @@ -7320,17 +8702,46 @@ declare class UIImageAsset extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; + + imageWithConfiguration(configuration: UIImageConfiguration): UIImage; imageWithTraitCollection(traitCollection: UITraitCollection): UIImage; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; + + registerImageWithConfiguration(image: UIImage, configuration: UIImageConfiguration): void; registerImageWithTraitCollection(image: UIImage, traitCollection: UITraitCollection): void; + unregisterImageWithConfiguration(configuration: UIImageConfiguration): void; + unregisterImageWithTraitCollection(traitCollection: UITraitCollection): void; } +declare class UIImageConfiguration extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): UIImageConfiguration; // inherited from NSObject + + static new(): UIImageConfiguration; // inherited from NSObject + + readonly traitCollection: UITraitCollection; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + configurationByApplyingConfiguration(otherConfiguration: UIImageConfiguration): this; + + configurationWithTraitCollection(traitCollection: UITraitCollection): this; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + declare function UIImageJPEGRepresentation(image: UIImage, compressionQuality: number): NSData; declare const enum UIImageOrientation { @@ -7402,9 +8813,9 @@ declare class UIImagePickerController extends UINavigationController implements constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; startVideoCapture(): boolean; @@ -7470,52 +8881,127 @@ declare var UIImagePickerControllerMediaType: string; declare var UIImagePickerControllerMediaURL: string; -declare var UIImagePickerControllerOriginalImage: string; +declare var UIImagePickerControllerOriginalImage: string; + +declare var UIImagePickerControllerPHAsset: string; + +declare const enum UIImagePickerControllerQualityType { + + TypeHigh = 0, + + TypeMedium = 1, + + TypeLow = 2, + + Type640x480 = 3, + + TypeIFrame1280x720 = 4, + + TypeIFrame960x540 = 5 +} + +declare var UIImagePickerControllerReferenceURL: string; + +declare const enum UIImagePickerControllerSourceType { + + PhotoLibrary = 0, + + Camera = 1, + + SavedPhotosAlbum = 2 +} + +declare const enum UIImageRenderingMode { + + Automatic = 0, + + AlwaysOriginal = 1, + + AlwaysTemplate = 2 +} + +declare const enum UIImageResizingMode { + + Tile = 0, + + Stretch = 1 +} + +declare class UIImageSymbolConfiguration extends UIImageConfiguration { + + static alloc(): UIImageSymbolConfiguration; // inherited from NSObject + + static configurationWithFont(font: UIFont): UIImageSymbolConfiguration; + + static configurationWithFontScale(font: UIFont, scale: UIImageSymbolScale): UIImageSymbolConfiguration; + + static configurationWithPointSize(pointSize: number): UIImageSymbolConfiguration; + + static configurationWithPointSizeWeight(pointSize: number, weight: UIImageSymbolWeight): UIImageSymbolConfiguration; + + static configurationWithPointSizeWeightScale(pointSize: number, weight: UIImageSymbolWeight, scale: UIImageSymbolScale): UIImageSymbolConfiguration; + + static configurationWithScale(scale: UIImageSymbolScale): UIImageSymbolConfiguration; + + static configurationWithTextStyle(textStyle: string): UIImageSymbolConfiguration; + + static configurationWithTextStyleScale(textStyle: string, scale: UIImageSymbolScale): UIImageSymbolConfiguration; -declare var UIImagePickerControllerPHAsset: string; + static configurationWithWeight(weight: UIImageSymbolWeight): UIImageSymbolConfiguration; -declare const enum UIImagePickerControllerQualityType { + static new(): UIImageSymbolConfiguration; // inherited from NSObject - TypeHigh = 0, + static readonly unspecifiedConfiguration: UIImageSymbolConfiguration; - TypeMedium = 1, + configurationWithoutPointSizeAndWeight(): this; - TypeLow = 2, + configurationWithoutScale(): this; - Type640x480 = 3, + configurationWithoutTextStyle(): this; - TypeIFrame1280x720 = 4, + configurationWithoutWeight(): this; - TypeIFrame960x540 = 5 + isEqualToConfiguration(otherConfiguration: UIImageSymbolConfiguration): boolean; } -declare var UIImagePickerControllerReferenceURL: string; +declare const enum UIImageSymbolScale { -declare const enum UIImagePickerControllerSourceType { + Default = -1, - PhotoLibrary = 0, + Unspecified = 0, - Camera = 1, + Small = 1, - SavedPhotosAlbum = 2 + Medium = 2, + + Large = 3 } -declare const enum UIImageRenderingMode { +declare const enum UIImageSymbolWeight { - Automatic = 0, + Unspecified = 0, - AlwaysOriginal = 1, + UltraLight = 1, - AlwaysTemplate = 2 -} + Thin = 2, -declare const enum UIImageResizingMode { + Light = 3, - Tile = 0, + Regular = 4, - Stretch = 1 + Medium = 5, + + Semibold = 6, + + Bold = 7, + + Heavy = 8, + + Black = 9 } +declare function UIImageSymbolWeightForFontWeight(fontWeight: number): UIImageSymbolWeight; + declare class UIImageView extends UIView implements UIAccessibilityContentSizeCategoryImageAdjusting { static alloc(): UIImageView; // inherited from NSObject @@ -7550,6 +9036,8 @@ declare class UIImageView extends UIView implements UIAccessibilityContentSizeCa image: UIImage; + preferredSymbolConfiguration: UIImageSymbolConfiguration; + adjustsImageSizeForAccessibilityContentSizeCategory: boolean; // inherited from UIAccessibilityContentSizeCategoryImageAdjusting readonly debugDescription: string; // inherited from NSObjectProtocol @@ -7611,6 +9099,8 @@ declare class UIImpactFeedbackGenerator extends UIFeedbackGenerator { impactOccurred(): void; + impactOccurredWithIntensity(intensity: number): void; + initWithStyle(style: UIImpactFeedbackStyle): this; } @@ -7620,7 +9110,11 @@ declare const enum UIImpactFeedbackStyle { Medium = 1, - Heavy = 2 + Heavy = 2, + + Soft = 3, + + Rigid = 4 } declare class UIInputView extends UIView { @@ -7813,31 +9307,27 @@ declare var UIItemProviderPresentationSizeProviding: { prototype: UIItemProviderPresentationSizeProviding; }; -declare class UIKeyCommand extends NSObject implements NSCopying, NSSecureCoding { +declare class UIKeyCommand extends UICommand { static alloc(): UIKeyCommand; // inherited from NSObject + static commandWithTitleImageActionInputModifierFlagsPropertyList(title: string, image: UIImage, action: string, input: string, modifierFlags: UIKeyModifierFlags, propertyList: any): UIKeyCommand; + + static commandWithTitleImageActionInputModifierFlagsPropertyListAlternates(title: string, image: UIImage, action: string, input: string, modifierFlags: UIKeyModifierFlags, propertyList: any, alternates: NSArray | UICommandAlternate[]): UIKeyCommand; + + static commandWithTitleImageActionPropertyList(title: string, image: UIImage, action: string, propertyList: any): UIKeyCommand; // inherited from UICommand + + static commandWithTitleImageActionPropertyListAlternates(title: string, image: UIImage, action: string, propertyList: any, alternates: NSArray | UICommandAlternate[]): UIKeyCommand; // inherited from UICommand + static keyCommandWithInputModifierFlagsAction(input: string, modifierFlags: UIKeyModifierFlags, action: string): UIKeyCommand; static keyCommandWithInputModifierFlagsActionDiscoverabilityTitle(input: string, modifierFlags: UIKeyModifierFlags, action: string, discoverabilityTitle: string): UIKeyCommand; static new(): UIKeyCommand; // inherited from NSObject - discoverabilityTitle: string; - readonly input: string; readonly modifierFlags: UIKeyModifierFlags; - - static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding - - constructor(o: { coder: NSCoder; }); // inherited from NSCoding - - copyWithZone(zone: interop.Pointer | interop.Reference): any; - - encodeWithCoder(aCoder: NSCoder): void; - - initWithCoder(aDecoder: NSCoder): this; } interface UIKeyInput extends UITextInputTraits { @@ -8024,9 +9514,9 @@ declare class UILabel extends UIView implements NSCoding, UIContentSizeCategoryA drawTextInRect(rect: CGRect): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -8049,6 +9539,95 @@ declare class UILabel extends UIView implements NSCoding, UIContentSizeCategoryA textRectForBoundsLimitedToNumberOfLines(bounds: CGRect, numberOfLines: number): CGRect; } +declare class UILargeContentViewerInteraction extends NSObject implements UIInteraction { + + static alloc(): UILargeContentViewerInteraction; // inherited from NSObject + + static new(): UILargeContentViewerInteraction; // inherited from NSObject + + readonly delegate: UILargeContentViewerInteractionDelegate; + + readonly gestureRecognizerForExclusionRelationship: UIGestureRecognizer; + + static readonly enabled: boolean; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly view: UIView; // inherited from UIInteraction + + readonly // inherited from NSObjectProtocol + + constructor(o: { delegate: UILargeContentViewerInteractionDelegate; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + didMoveToView(view: UIView): void; + + initWithDelegate(delegate: UILargeContentViewerInteractionDelegate): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; + + willMoveToView(view: UIView): void; +} + +interface UILargeContentViewerInteractionDelegate extends NSObjectProtocol { + + largeContentViewerInteractionDidEndOnItemAtPoint?(interaction: UILargeContentViewerInteraction, item: UILargeContentViewerItem, point: CGPoint): void; + + largeContentViewerInteractionItemAtPoint?(interaction: UILargeContentViewerInteraction, point: CGPoint): UILargeContentViewerItem; + + viewControllerForLargeContentViewerInteraction?(interaction: UILargeContentViewerInteraction): UIViewController; +} +declare var UILargeContentViewerInteractionDelegate: { + + prototype: UILargeContentViewerInteractionDelegate; +}; + +declare var UILargeContentViewerInteractionEnabledStatusDidChangeNotification: string; + +interface UILargeContentViewerItem extends NSObjectProtocol { + + largeContentImage: UIImage; + + largeContentImageInsets: UIEdgeInsets; + + largeContentTitle: string; + + scalesLargeContentImage: boolean; + + showsLargeContentViewer: boolean; +} +declare var UILargeContentViewerItem: { + + prototype: UILargeContentViewerItem; +}; + declare const enum UILayoutConstraintAxis { Horizontal = 0, @@ -8098,19 +9677,25 @@ declare class UILayoutGuide extends NSObject implements NSCoding { constraintsAffectingLayoutForAxis(axis: UILayoutConstraintAxis): NSArray; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var UILayoutPriorityDefaultHigh: number; declare var UILayoutPriorityDefaultLow: number; +declare var UILayoutPriorityDragThatCanResizeScene: number; + +declare var UILayoutPriorityDragThatCannotResizeScene: number; + declare var UILayoutPriorityFittingSizeLevel: number; declare var UILayoutPriorityRequired: number; +declare var UILayoutPrioritySceneSizeStayPut: number; + interface UILayoutSupport extends NSObjectProtocol { bottomAnchor: NSLayoutYAxisAnchor; @@ -8126,6 +9711,15 @@ declare var UILayoutSupport: { prototype: UILayoutSupport; }; +declare const enum UILegibilityWeight { + + Unspecified = -1, + + Regular = 0, + + Bold = 1 +} + declare class UILexicon extends NSObject implements NSCopying { static alloc(): UILexicon; // inherited from NSObject @@ -8205,9 +9799,9 @@ declare class UILocalNotification extends NSObject implements NSCoding, NSCopyin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var UILocalNotificationDefaultSoundName: string; @@ -8286,6 +9880,64 @@ declare class UIMarkupTextPrintFormatter extends UIPrintFormatter { initWithMarkupText(markupText: string): this; } +declare class UIMenu extends UIMenuElement { + + static alloc(): UIMenu; // inherited from NSObject + + static menuWithTitleChildren(title: string, children: NSArray | UIMenuElement[]): UIMenu; + + static menuWithTitleImageIdentifierOptionsChildren(title: string, image: UIImage, identifier: string, options: UIMenuOptions, children: NSArray | UIMenuElement[]): UIMenu; + + static new(): UIMenu; // inherited from NSObject + + readonly children: NSArray; + + readonly identifier: string; + + readonly options: UIMenuOptions; + + menuByReplacingChildren(newChildren: NSArray | UIMenuElement[]): UIMenu; +} + +declare var UIMenuAbout: string; + +declare var UIMenuAlignment: string; + +declare var UIMenuApplication: string; + +declare var UIMenuBringAllToFront: string; + +interface UIMenuBuilder { + + system: UIMenuSystem; + + actionForIdentifier(identifier: string): UIAction; + + commandForActionPropertyList(action: string, propertyList: any): UICommand; + + insertChildMenuAtEndOfMenuForIdentifier(childMenu: UIMenu, parentIdentifier: string): void; + + insertChildMenuAtStartOfMenuForIdentifier(childMenu: UIMenu, parentIdentifier: string): void; + + insertSiblingMenuAfterMenuForIdentifier(siblingMenu: UIMenu, siblingIdentifier: string): void; + + insertSiblingMenuBeforeMenuForIdentifier(siblingMenu: UIMenu, siblingIdentifier: string): void; + + menuForIdentifier(identifier: string): UIMenu; + + removeMenuForIdentifier(removedIdentifier: string): void; + + replaceChildrenOfMenuForIdentifierFromChildrenBlock(parentIdentifier: string, childrenBlock: (p1: NSArray) => NSArray): void; + + replaceMenuForIdentifierWithMenu(replacedIdentifier: string, replacementMenu: UIMenu): void; +} +declare var UIMenuBuilder: { + + prototype: UIMenuBuilder; +}; + +declare var UIMenuClose: string; + declare class UIMenuController extends NSObject { static alloc(): UIMenuController; // inherited from NSObject @@ -8302,50 +9954,195 @@ declare class UIMenuController extends NSObject { static readonly sharedMenuController: UIMenuController; + hideMenu(): void; + + hideMenuFromView(targetView: UIView): void; + + setMenuVisible(menuVisible: boolean): void; + setMenuVisibleAnimated(menuVisible: boolean, animated: boolean): void; setTargetRectInView(targetRect: CGRect, targetView: UIView): void; + showMenuFromViewRect(targetView: UIView, targetRect: CGRect): void; + update(): void; } -declare const enum UIMenuControllerArrowDirection { +declare const enum UIMenuControllerArrowDirection { + + Default = 0, + + Up = 1, + + Down = 2, + + Left = 3, + + Right = 4 +} + +declare var UIMenuControllerDidHideMenuNotification: string; + +declare var UIMenuControllerDidShowMenuNotification: string; + +declare var UIMenuControllerMenuFrameDidChangeNotification: string; + +declare var UIMenuControllerWillHideMenuNotification: string; + +declare var UIMenuControllerWillShowMenuNotification: string; + +declare var UIMenuEdit: string; + +declare class UIMenuElement extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): UIMenuElement; // inherited from NSObject + + static new(): UIMenuElement; // inherited from NSObject + + readonly image: UIImage; + + readonly title: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare const enum UIMenuElementAttributes { + + Disabled = 1, + + Destructive = 2, + + Hidden = 4 +} + +declare const enum UIMenuElementState { + + Off = 0, + + On = 1, + + Mixed = 2 +} + +declare var UIMenuFile: string; + +declare var UIMenuFind: string; + +declare var UIMenuFont: string; + +declare var UIMenuFormat: string; + +declare var UIMenuFullscreen: string; + +declare var UIMenuHelp: string; + +declare var UIMenuHide: string; + +declare class UIMenuItem extends NSObject { + + static alloc(): UIMenuItem; // inherited from NSObject + + static new(): UIMenuItem; // inherited from NSObject + + action: string; + + title: string; + + constructor(o: { title: string; action: string; }); + + initWithTitleAction(title: string, action: string): this; +} + +declare var UIMenuLearn: string; + +declare var UIMenuLookup: string; + +declare var UIMenuMinimizeAndZoom: string; + +declare var UIMenuNewScene: string; + +declare const enum UIMenuOptions { + + DisplayInline = 1, + + Destructive = 2 +} + +declare var UIMenuPreferences: string; + +declare var UIMenuPrint: string; + +declare var UIMenuQuit: string; + +declare var UIMenuReplace: string; + +declare var UIMenuRoot: string; + +declare var UIMenuServices: string; + +declare var UIMenuShare: string; + +declare var UIMenuSpeech: string; + +declare var UIMenuSpelling: string; + +declare var UIMenuSpellingOptions: string; + +declare var UIMenuSpellingPanel: string; + +declare var UIMenuStandardEdit: string; + +declare var UIMenuSubstitutionOptions: string; + +declare var UIMenuSubstitutions: string; + +declare var UIMenuSubstitutionsPanel: string; + +declare class UIMenuSystem extends NSObject { + + static alloc(): UIMenuSystem; // inherited from NSObject - Default = 0, + static new(): UIMenuSystem; // inherited from NSObject - Up = 1, + static readonly contextSystem: UIMenuSystem; - Down = 2, + static readonly mainSystem: UIMenuSystem; - Left = 3, + setNeedsRebuild(): void; - Right = 4 + setNeedsRevalidate(): void; } -declare var UIMenuControllerDidHideMenuNotification: string; - -declare var UIMenuControllerDidShowMenuNotification: string; +declare var UIMenuText: string; -declare var UIMenuControllerMenuFrameDidChangeNotification: string; +declare var UIMenuTextColor: string; -declare var UIMenuControllerWillHideMenuNotification: string; +declare var UIMenuTextSize: string; -declare var UIMenuControllerWillShowMenuNotification: string; +declare var UIMenuTextStyle: string; -declare class UIMenuItem extends NSObject { +declare var UIMenuTextStylePasteboard: string; - static alloc(): UIMenuItem; // inherited from NSObject +declare var UIMenuToolbar: string; - static new(): UIMenuItem; // inherited from NSObject +declare var UIMenuTransformations: string; - action: string; +declare var UIMenuUndoRedo: string; - title: string; +declare var UIMenuView: string; - constructor(o: { title: string; action: string; }); +declare var UIMenuWindow: string; - initWithTitleAction(title: string, action: string): this; -} +declare var UIMenuWritingDirection: string; declare var UIMinimumKeepAliveTimeout: number; @@ -8369,7 +10166,9 @@ declare const enum UIModalPresentationStyle { BlurOverFullScreen = 8, - None = -1 + None = -1, + + Automatic = -2 } declare const enum UIModalTransitionStyle { @@ -8393,9 +10192,9 @@ declare class UIMotionEffect extends NSObject implements NSCoding, NSCopying { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; keyPathsAndRelativeValuesForViewerOffset(viewerOffset: UIOffset): NSDictionary; } @@ -8421,6 +10220,8 @@ declare class UIMutableApplicationShortcutItem extends UIApplicationShortcutItem localizedTitle: string; + targetContentIdentifier: any; + type: string; userInfo: NSDictionary; @@ -8486,6 +10287,8 @@ declare class UINavigationBar extends UIView implements NSCoding, UIBarPositioni barTintColor: UIColor; + compactAppearance: UINavigationBarAppearance; + delegate: UINavigationBarDelegate; items: NSArray; @@ -8494,8 +10297,12 @@ declare class UINavigationBar extends UIView implements NSCoding, UIBarPositioni prefersLargeTitles: boolean; + scrollEdgeAppearance: UINavigationBarAppearance; + shadowImage: UIImage; + standardAppearance: UINavigationBarAppearance; + titleTextAttributes: NSDictionary; readonly topItem: UINavigationItem; @@ -8526,9 +10333,9 @@ declare class UINavigationBar extends UIView implements NSCoding, UIBarPositioni conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -8563,6 +10370,31 @@ declare class UINavigationBar extends UIView implements NSCoding, UIBarPositioni titleVerticalPositionAdjustmentForBarMetrics(barMetrics: UIBarMetrics): number; } +declare class UINavigationBarAppearance extends UIBarAppearance { + + static alloc(): UINavigationBarAppearance; // inherited from NSObject + + static new(): UINavigationBarAppearance; // inherited from NSObject + + backButtonAppearance: UIBarButtonItemAppearance; + + readonly backIndicatorImage: UIImage; + + readonly backIndicatorTransitionMaskImage: UIImage; + + buttonAppearance: UIBarButtonItemAppearance; + + doneButtonAppearance: UIBarButtonItemAppearance; + + largeTitleTextAttributes: NSDictionary; + + titlePositionAdjustment: UIOffset; + + titleTextAttributes: NSDictionary; + + setBackIndicatorImageTransitionMaskImage(backIndicatorImage: UIImage, backIndicatorTransitionMaskImage: UIImage): void; +} + interface UINavigationBarDelegate extends UIBarPositioningDelegate { navigationBarDidPopItem?(navigationBar: UINavigationBar, item: UINavigationItem): void; @@ -8675,6 +10507,8 @@ declare class UINavigationItem extends NSObject implements NSCoding { backBarButtonItem: UIBarButtonItem; + compactAppearance: UINavigationBarAppearance; + hidesBackButton: boolean; hidesSearchBarWhenScrolling: boolean; @@ -8693,8 +10527,12 @@ declare class UINavigationItem extends NSObject implements NSCoding { rightBarButtonItems: NSArray; + scrollEdgeAppearance: UINavigationBarAppearance; + searchController: UISearchController; + standardAppearance: UINavigationBarAppearance; + title: string; titleView: UIView; @@ -8703,9 +10541,9 @@ declare class UINavigationItem extends NSObject implements NSCoding { constructor(o: { title: string; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTitle(title: string): this; @@ -8783,6 +10621,17 @@ declare function UIOffsetFromString(string: string): UIOffset; declare var UIOffsetZero: UIOffset; +declare class UIOpenURLContext extends NSObject { + + static alloc(): UIOpenURLContext; // inherited from NSObject + + static new(): UIOpenURLContext; // inherited from NSObject + + readonly URL: NSURL; + + readonly options: UISceneOpenURLOptions; +} + declare class UIPageControl extends UIControl { static alloc(): UIPageControl; // inherited from NSObject @@ -8954,11 +10803,11 @@ declare class UIPasteConfiguration extends NSObject implements NSCopying, NSSecu copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; initWithAcceptableTypeIdentifiers(acceptableTypeIdentifiers: NSArray | string[]): this; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithTypeIdentifiersForAcceptingClass(aClass: typeof NSObject): this; } @@ -9251,9 +11100,9 @@ declare class UIPickerView extends UIView implements NSCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; numberOfRowsInComponent(component: number): number; @@ -9276,9 +11125,13 @@ interface UIPickerViewAccessibilityDelegate extends UIPickerViewDelegate { pickerViewAccessibilityAttributedLabelForComponent?(pickerView: UIPickerView, component: number): NSAttributedString; + pickerViewAccessibilityAttributedUserInputLabelsForComponent?(pickerView: UIPickerView, component: number): NSArray; + pickerViewAccessibilityHintForComponent?(pickerView: UIPickerView, component: number): string; pickerViewAccessibilityLabelForComponent?(pickerView: UIPickerView, component: number): string; + + pickerViewAccessibilityUserInputLabelsForComponent?(pickerView: UIPickerView, component: number): NSArray; } declare var UIPickerViewAccessibilityDelegate: { @@ -9847,6 +11700,46 @@ declare var UIPreviewInteractionDelegate: { prototype: UIPreviewInteractionDelegate; }; +declare class UIPreviewParameters extends NSObject implements NSCopying { + + static alloc(): UIPreviewParameters; // inherited from NSObject + + static new(): UIPreviewParameters; // inherited from NSObject + + backgroundColor: UIColor; + + visiblePath: UIBezierPath; + + constructor(o: { textLineRects: NSArray | NSValue[]; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + initWithTextLineRects(textLineRects: NSArray | NSValue[]): this; +} + +declare class UIPreviewTarget extends NSObject implements NSCopying { + + static alloc(): UIPreviewTarget; // inherited from NSObject + + static new(): UIPreviewTarget; // inherited from NSObject + + readonly center: CGPoint; + + readonly container: UIView; + + readonly transform: CGAffineTransform; + + constructor(o: { container: UIView; center: CGPoint; }); + + constructor(o: { container: UIView; center: CGPoint; transform: CGAffineTransform; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + initWithContainerCenter(container: UIView, center: CGPoint): this; + + initWithContainerCenterTransform(container: UIView, center: CGPoint, transform: CGAffineTransform): this; +} + declare const enum UIPrintErrorCode { PrintingNotAvailableError = 1, @@ -9915,9 +11808,9 @@ declare class UIPrintInfo extends NSObject implements NSCoding, NSCopying { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare const enum UIPrintInfoDuplex { @@ -10208,9 +12101,9 @@ declare class UIProgressView extends UIView implements NSCoding { constructor(o: { progressViewStyle: UIProgressViewStyle; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithProgressViewStyle(style: UIProgressViewStyle): this; @@ -10360,9 +12253,9 @@ declare class UIRegion extends NSObject implements NSCoding, NSCopying { copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithRadius(radius: number): this; @@ -10398,10 +12291,14 @@ declare class UIResponder extends NSObject implements UIPasteConfigurationSuppor static new(): UIResponder; // inherited from NSObject + activityItemsConfiguration: UIActivityItemsConfigurationReading; + readonly canBecomeFirstResponder: boolean; readonly canResignFirstResponder: boolean; + readonly editingInteractionConfiguration: UIEditingInteractionConfiguration; + readonly inputAccessoryView: UIView; readonly inputAccessoryViewController: UIInputViewController; @@ -10442,6 +12339,8 @@ declare class UIResponder extends NSObject implements UIPasteConfigurationSuppor becomeFirstResponder(): boolean; + buildMenuWithBuilder(builder: UIMenuBuilder): void; + canPasteItemProviders(itemProviders: NSArray | NSItemProvider[]): boolean; canPerformActionWithSender(action: string, sender: any): boolean; @@ -10528,79 +12427,320 @@ declare class UIResponder extends NSObject implements UIPasteConfigurationSuppor touchesMovedWithEvent(touches: NSSet, event: _UIEvent): void; + updateTextAttributesWithConversionHandler(conversionHandler: (p1: NSDictionary) => NSDictionary): void; + updateUserActivityState(activity: NSUserActivity): void; + + validateCommand(command: UICommand): void; } interface UIResponderStandardEditActions extends NSObjectProtocol { - cut?(sender: any): void; + cut?(sender: any): void; + + decreaseSize?(sender: any): void; + + delete?(sender: any): void; + + increaseSize?(sender: any): void; + + makeTextWritingDirectionLeftToRight?(sender: any): void; + + makeTextWritingDirectionRightToLeft?(sender: any): void; + + paste?(sender: any): void; + + select?(sender: any): void; + + selectAll?(sender: any): void; + + toggleBoldface?(sender: any): void; + + toggleItalics?(sender: any): void; + + toggleUnderline?(sender: any): void; + + updateTextAttributesWithConversionHandler?(conversionHandler: (p1: NSDictionary) => NSDictionary): void; +} +declare var UIResponderStandardEditActions: { + + prototype: UIResponderStandardEditActions; +}; + +declare const enum UIReturnKeyType { + + Default = 0, + + Go = 1, + + Google = 2, + + Join = 3, + + Next = 4, + + Route = 5, + + Search = 6, + + Send = 7, + + Yahoo = 8, + + Done = 9, + + EmergencyCall = 10, + + Continue = 11 +} + +declare class UIRotationGestureRecognizer extends UIGestureRecognizer { + + static alloc(): UIRotationGestureRecognizer; // inherited from NSObject + + static new(): UIRotationGestureRecognizer; // inherited from NSObject + + rotation: number; + + readonly velocity: number; +} + +declare function UISaveVideoAtPathToSavedPhotosAlbum(videoPath: string, completionTarget: any, completionSelector: string, contextInfo: interop.Pointer | interop.Reference): void; + +declare class UIScene extends UIResponder { + + static alloc(): UIScene; // inherited from NSObject + + static new(): UIScene; // inherited from NSObject + + activationConditions: UISceneActivationConditions; + + readonly activationState: UISceneActivationState; + + delegate: UISceneDelegate; + + readonly session: UISceneSession; + + title: string; + + constructor(o: { session: UISceneSession; connectionOptions: UISceneConnectionOptions; }); + + initWithSessionConnectionOptions(session: UISceneSession, connectionOptions: UISceneConnectionOptions): this; + + openURLOptionsCompletionHandler(url: NSURL, options: UISceneOpenExternalURLOptions, completion: (p1: boolean) => void): void; +} + +declare class UISceneActivationConditions extends NSObject implements NSSecureCoding { + + static alloc(): UISceneActivationConditions; // inherited from NSObject + + static new(): UISceneActivationConditions; // inherited from NSObject + + canActivateForTargetContentIdentifierPredicate: NSPredicate; + + prefersToActivateForTargetContentIdentifierPredicate: NSPredicate; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class UISceneActivationRequestOptions extends NSObject { + + static alloc(): UISceneActivationRequestOptions; // inherited from NSObject + + static new(): UISceneActivationRequestOptions; // inherited from NSObject + + requestingScene: UIScene; +} + +declare const enum UISceneActivationState { + + Unattached = -1, + + ForegroundActive = 0, + + ForegroundInactive = 1, + + Background = 2 +} + +declare class UISceneConfiguration extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): UISceneConfiguration; // inherited from NSObject + + static configurationWithNameSessionRole(name: string, sessionRole: string): UISceneConfiguration; + + static new(): UISceneConfiguration; // inherited from NSObject + + delegateClass: typeof NSObject; + + readonly name: string; + + readonly role: string; + + sceneClass: typeof NSObject; + + storyboard: UIStoryboard; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { name: string; sessionRole: string; }); + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithNameSessionRole(name: string, sessionRole: string): this; +} + +declare class UISceneConnectionOptions extends NSObject { + + static alloc(): UISceneConnectionOptions; // inherited from NSObject + + static new(): UISceneConnectionOptions; // inherited from NSObject + + readonly URLContexts: NSSet; + + readonly cloudKitShareMetadata: CKShareMetadata; + + readonly handoffUserActivityType: string; + + readonly notificationResponse: UNNotificationResponse; + + readonly shortcutItem: UIApplicationShortcutItem; + + readonly sourceApplication: string; + + readonly userActivities: NSSet; +} + +interface UISceneDelegate extends NSObjectProtocol { + + sceneContinueUserActivity?(scene: UIScene, userActivity: NSUserActivity): void; + + sceneDidBecomeActive?(scene: UIScene): void; + + sceneDidDisconnect?(scene: UIScene): void; + + sceneDidEnterBackground?(scene: UIScene): void; + + sceneDidFailToContinueUserActivityWithTypeError?(scene: UIScene, userActivityType: string, error: NSError): void; + + sceneDidUpdateUserActivity?(scene: UIScene, userActivity: NSUserActivity): void; + + sceneOpenURLContexts?(scene: UIScene, URLContexts: NSSet): void; + + sceneWillConnectToSessionOptions?(scene: UIScene, session: UISceneSession, connectionOptions: UISceneConnectionOptions): void; + + sceneWillContinueUserActivityWithType?(scene: UIScene, userActivityType: string): void; + + sceneWillEnterForeground?(scene: UIScene): void; + + sceneWillResignActive?(scene: UIScene): void; + + stateRestorationActivityForScene?(scene: UIScene): NSUserActivity; +} +declare var UISceneDelegate: { + + prototype: UISceneDelegate; +}; + +declare class UISceneDestructionRequestOptions extends NSObject { + + static alloc(): UISceneDestructionRequestOptions; // inherited from NSObject + + static new(): UISceneDestructionRequestOptions; // inherited from NSObject +} + +declare var UISceneDidActivateNotification: string; + +declare var UISceneDidDisconnectNotification: string; + +declare var UISceneDidEnterBackgroundNotification: string; + +declare const enum UISceneErrorCode { + + MultipleScenesNotSupported = 0, + + RequestDenied = 1 +} - decreaseSize?(sender: any): void; +declare var UISceneErrorDomain: string; - delete?(sender: any): void; +declare class UISceneOpenExternalURLOptions extends NSObject { - increaseSize?(sender: any): void; + static alloc(): UISceneOpenExternalURLOptions; // inherited from NSObject - makeTextWritingDirectionLeftToRight?(sender: any): void; + static new(): UISceneOpenExternalURLOptions; // inherited from NSObject - makeTextWritingDirectionRightToLeft?(sender: any): void; + universalLinksOnly: boolean; +} - paste?(sender: any): void; +declare class UISceneOpenURLOptions extends NSObject { - select?(sender: any): void; + static alloc(): UISceneOpenURLOptions; // inherited from NSObject - selectAll?(sender: any): void; + static new(): UISceneOpenURLOptions; // inherited from NSObject - toggleBoldface?(sender: any): void; + readonly annotation: any; - toggleItalics?(sender: any): void; + readonly openInPlace: boolean; - toggleUnderline?(sender: any): void; + readonly sourceApplication: string; } -declare var UIResponderStandardEditActions: { - - prototype: UIResponderStandardEditActions; -}; -declare const enum UIReturnKeyType { +declare class UISceneSession extends NSObject implements NSSecureCoding { - Default = 0, + static alloc(): UISceneSession; // inherited from NSObject - Go = 1, + static new(): UISceneSession; // inherited from NSObject - Google = 2, + readonly configuration: UISceneConfiguration; - Join = 3, + readonly persistentIdentifier: string; - Next = 4, + readonly role: string; - Route = 5, + readonly scene: UIScene; - Search = 6, + stateRestorationActivity: NSUserActivity; - Send = 7, + userInfo: NSDictionary; - Yahoo = 8, + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding - Done = 9, + constructor(o: { coder: NSCoder; }); // inherited from NSCoding - EmergencyCall = 10, + encodeWithCoder(coder: NSCoder): void; - Continue = 11 + initWithCoder(coder: NSCoder): this; } -declare class UIRotationGestureRecognizer extends UIGestureRecognizer { +declare class UISceneSizeRestrictions extends NSObject { - static alloc(): UIRotationGestureRecognizer; // inherited from NSObject + static alloc(): UISceneSizeRestrictions; // inherited from NSObject - static new(): UIRotationGestureRecognizer; // inherited from NSObject + static new(): UISceneSizeRestrictions; // inherited from NSObject - rotation: number; + maximumSize: CGSize; - readonly velocity: number; + minimumSize: CGSize; } -declare function UISaveVideoAtPathToSavedPhotosAlbum(videoPath: string, completionTarget: any, completionSelector: string, contextInfo: interop.Pointer | interop.Reference): void; +declare var UISceneWillConnectNotification: string; + +declare var UISceneWillDeactivateNotification: string; + +declare var UISceneWillEnterForegroundNotification: string; declare class UIScreen extends NSObject implements UITraitEnvironment { @@ -10616,6 +12756,8 @@ declare class UIScreen extends NSObject implements UITraitEnvironment { brightness: number; + readonly calibratedLatency: number; + readonly captured: boolean; readonly coordinateSpace: UICoordinateSpace; @@ -10736,6 +12878,26 @@ declare const enum UIScreenOverscanCompensation { InsetApplicationFrame = 2 } +declare class UIScreenshotService extends NSObject { + + static alloc(): UIScreenshotService; // inherited from NSObject + + static new(): UIScreenshotService; // inherited from NSObject + + delegate: UIScreenshotServiceDelegate; + + readonly windowScene: UIWindowScene; +} + +interface UIScreenshotServiceDelegate extends NSObjectProtocol { + + screenshotServiceGeneratePDFRepresentationWithCompletion?(screenshotService: UIScreenshotService, completionHandler: (p1: NSData, p2: number, p3: CGRect) => void): void; +} +declare var UIScreenshotServiceDelegate: { + + prototype: UIScreenshotServiceDelegate; +}; + declare class UIScrollView extends UIView implements NSCoding, UIFocusItemScrollableContainer { static alloc(): UIScrollView; // inherited from NSObject @@ -10760,6 +12922,8 @@ declare class UIScrollView extends UIView implements NSCoding, UIFocusItemScroll alwaysBounceVertical: boolean; + automaticallyAdjustsScrollIndicatorInsets: boolean; + bounces: boolean; bouncesZoom: boolean; @@ -10790,6 +12954,8 @@ declare class UIScrollView extends UIView implements NSCoding, UIFocusItemScroll readonly frameLayoutGuide: UILayoutGuide; + horizontalScrollIndicatorInsets: UIEdgeInsets; + indexDisplayMode: UIScrollViewIndexDisplayMode; indicatorStyle: UIScrollViewIndicatorStyle; @@ -10820,6 +12986,8 @@ declare class UIScrollView extends UIView implements NSCoding, UIFocusItemScroll readonly tracking: boolean; + verticalScrollIndicatorInsets: UIEdgeInsets; + readonly zoomBouncing: boolean; zoomScale: number; @@ -10852,13 +13020,13 @@ declare class UIScrollView extends UIView implements NSCoding, UIFocusItemScroll conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; flashScrollIndicators(): void; focusItemsInRect(rect: CGRect): NSArray; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -11019,6 +13187,8 @@ declare class UISearchBar extends UIView implements UIBarPositioning, UITextInpu searchResultsButtonSelected: boolean; + readonly searchTextField: UISearchTextField; + searchTextPositionAdjustment: UIOffset; selectedScopeButtonIndex: number; @@ -11126,6 +13296,8 @@ declare class UISearchBar extends UIView implements UIBarPositioning, UITextInpu setSearchFieldBackgroundImageForState(backgroundImage: UIImage, state: UIControlState): void; setShowsCancelButtonAnimated(showsCancelButton: boolean, animated: boolean): void; + + setShowsScopeBarAnimated(show: boolean, animate: boolean): void; } interface UISearchBarDelegate extends UIBarPositioningDelegate { @@ -11198,6 +13370,12 @@ declare class UISearchController extends UIViewController implements UIViewContr active: boolean; + automaticallyShowsCancelButton: boolean; + + automaticallyShowsScopeBar: boolean; + + automaticallyShowsSearchResultsController: boolean; + delegate: UISearchControllerDelegate; dimsBackgroundDuringPresentation: boolean; @@ -11212,6 +13390,8 @@ declare class UISearchController extends UIViewController implements UIViewContr searchResultsUpdater: UISearchResultsUpdating; + showsSearchResultsController: boolean; + readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol @@ -11359,6 +13539,74 @@ declare var UISearchResultsUpdating: { prototype: UISearchResultsUpdating; }; +declare class UISearchTextField extends UITextField { + + static alloc(): UISearchTextField; // inherited from NSObject + + static appearance(): UISearchTextField; // inherited from UIAppearance + + static appearanceForTraitCollection(trait: UITraitCollection): UISearchTextField; // inherited from UIAppearance + + static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UISearchTextField; // inherited from UIAppearance + + static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): UISearchTextField; // inherited from UIAppearance + + static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UISearchTextField; // inherited from UIAppearance + + static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): UISearchTextField; // inherited from UIAppearance + + static new(): UISearchTextField; // inherited from NSObject + + allowsCopyingTokens: boolean; + + allowsDeletingTokens: boolean; + + readonly textualRange: UITextRange; + + tokenBackgroundColor: UIColor; + + tokens: NSArray; + + insertTokenAtIndex(token: UISearchToken, tokenIndex: number): void; + + positionOfTokenAtIndex(tokenIndex: number): UITextPosition; + + removeTokenAtIndex(tokenIndex: number): void; + + replaceTextualPortionOfRangeWithTokenAtIndex(textRange: UITextRange, token: UISearchToken, tokenIndex: number): void; + + tokensInRange(textRange: UITextRange): NSArray; +} + +interface UISearchTextFieldDelegate extends UITextFieldDelegate { + + searchTextFieldItemProviderForCopyingToken?(searchTextField: UISearchTextField, token: UISearchToken): NSItemProvider; +} +declare var UISearchTextFieldDelegate: { + + prototype: UISearchTextFieldDelegate; +}; + +interface UISearchTextFieldPasteItem extends UITextPasteItem { + + setSearchTokenResult(token: UISearchToken): void; +} +declare var UISearchTextFieldPasteItem: { + + prototype: UISearchTextFieldPasteItem; +}; + +declare class UISearchToken extends NSObject { + + static alloc(): UISearchToken; // inherited from NSObject + + static new(): UISearchToken; // inherited from NSObject + + static tokenWithIconText(icon: UIImage, text: string): UISearchToken; + + representedObject: any; +} + declare class UISegmentedControl extends UIControl implements NSCoding, UISpringLoadedInteractionSupporting { static alloc(): UISegmentedControl; // inherited from NSObject @@ -11387,6 +13635,8 @@ declare class UISegmentedControl extends UIControl implements NSCoding, UISpring selectedSegmentIndex: number; + selectedSegmentTintColor: UIColor; + readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol @@ -11417,11 +13667,11 @@ declare class UISegmentedControl extends UIControl implements NSCoding, UISpring dividerImageForLeftSegmentStateRightSegmentStateBarMetrics(leftState: UIControlState, rightState: UIControlState, barMetrics: UIBarMetrics): UIImage; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; imageForSegmentAtIndex(segment: number): UIImage; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithItems(items: NSArray | any[]): this; @@ -11595,9 +13845,9 @@ declare class UISlider extends UIControl implements NSCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; maximumTrackImageForState(state: UIControlState): UIImage; @@ -11661,6 +13911,8 @@ declare class UISplitViewController extends UIViewController { presentsWithGesture: boolean; + primaryBackgroundStyle: UISplitViewControllerBackgroundStyle; + readonly primaryColumnWidth: number; primaryEdge: UISplitViewControllerPrimaryEdge; @@ -11670,6 +13922,13 @@ declare class UISplitViewController extends UIViewController { declare var UISplitViewControllerAutomaticDimension: number; +declare const enum UISplitViewControllerBackgroundStyle { + + None = 0, + + Sidebar = 1 +} + interface UISplitViewControllerDelegate { primaryViewControllerForCollapsingSplitViewController?(splitViewController: UISplitViewController): UIViewController; @@ -11861,9 +14120,9 @@ declare class UISpringTimingParameters extends NSObject implements UITimingCurve copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithDampingRatio(ratio: number): this; @@ -11983,12 +14242,27 @@ declare const enum UIStatusBarAnimation { Slide = 2 } +declare class UIStatusBarManager extends NSObject { + + static alloc(): UIStatusBarManager; // inherited from NSObject + + static new(): UIStatusBarManager; // inherited from NSObject + + readonly statusBarFrame: CGRect; + + readonly statusBarHidden: boolean; + + readonly statusBarStyle: UIStatusBarStyle; +} + declare const enum UIStatusBarStyle { Default = 0, LightContent = 1, + DarkContent = 3, + BlackTranslucent = 1, BlackOpaque = 2 @@ -12053,7 +14327,11 @@ declare class UIStoryboard extends NSObject { instantiateInitialViewController(): UIViewController; + instantiateInitialViewControllerWithCreator(block: (p1: NSCoder) => UIViewController): UIViewController; + instantiateViewControllerWithIdentifier(identifier: string): UIViewController; + + instantiateViewControllerWithIdentifierCreator(identifier: string, block: (p1: NSCoder) => UIViewController): UIViewController; } declare class UIStoryboardPopoverSegue extends UIStoryboardSegue { @@ -12166,9 +14444,9 @@ declare class UISwitch extends UIControl implements NSCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; setOnAnimated(on: boolean, animated: boolean): void; } @@ -12222,6 +14500,8 @@ declare class UITabBar extends UIView implements UISpringLoadedInteractionSuppor shadowImage: UIImage; + standardAppearance: UITabBarAppearance; + translucent: boolean; unselectedItemTintColor: UIColor; @@ -12269,6 +14549,29 @@ declare class UITabBar extends UIView implements UISpringLoadedInteractionSuppor setItemsAnimated(items: NSArray | UITabBarItem[], animated: boolean): void; } +declare class UITabBarAppearance extends UIBarAppearance { + + static alloc(): UITabBarAppearance; // inherited from NSObject + + static new(): UITabBarAppearance; // inherited from NSObject + + compactInlineLayoutAppearance: UITabBarItemAppearance; + + inlineLayoutAppearance: UITabBarItemAppearance; + + selectionIndicatorImage: UIImage; + + selectionIndicatorTintColor: UIColor; + + stackedItemPositioning: UITabBarItemPositioning; + + stackedItemSpacing: number; + + stackedItemWidth: number; + + stackedLayoutAppearance: UITabBarItemAppearance; +} + declare class UITabBarController extends UIViewController implements NSCoding, UITabBarDelegate { static alloc(): UITabBarController; // inherited from NSObject @@ -12307,9 +14610,9 @@ declare class UITabBarController extends UIViewController implements NSCoding, U conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -12408,6 +14711,8 @@ declare class UITabBarItem extends UIBarItem implements UISpringLoadedInteractio selectedImage: UIImage; + standardAppearance: UITabBarAppearance; + titlePositionAdjustment: UIOffset; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -12469,6 +14774,48 @@ declare class UITabBarItem extends UIBarItem implements UISpringLoadedInteractio setFinishedSelectedImageWithFinishedUnselectedImage(selectedImage: UIImage, unselectedImage: UIImage): void; } +declare class UITabBarItemAppearance extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): UITabBarItemAppearance; // inherited from NSObject + + static new(): UITabBarItemAppearance; // inherited from NSObject + + readonly disabled: UITabBarItemStateAppearance; + + readonly focused: UITabBarItemStateAppearance; + + readonly normal: UITabBarItemStateAppearance; + + readonly selected: UITabBarItemStateAppearance; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + constructor(o: { style: UITabBarItemAppearanceStyle; }); + + configureWithDefaultForStyle(style: UITabBarItemAppearanceStyle): void; + + copy(): this; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; + + initWithStyle(style: UITabBarItemAppearanceStyle): this; +} + +declare const enum UITabBarItemAppearanceStyle { + + Stacked = 0, + + Inline = 1, + + CompactInline = 2 +} + declare const enum UITabBarItemPositioning { Automatic = 0, @@ -12478,6 +14825,27 @@ declare const enum UITabBarItemPositioning { Centered = 2 } +declare class UITabBarItemStateAppearance extends NSObject { + + static alloc(): UITabBarItemStateAppearance; // inherited from NSObject + + static new(): UITabBarItemStateAppearance; // inherited from NSObject + + badgeBackgroundColor: UIColor; + + badgePositionAdjustment: UIOffset; + + badgeTextAttributes: NSDictionary; + + badgeTitlePositionAdjustment: UIOffset; + + iconColor: UIColor; + + titlePositionAdjustment: UIOffset; + + titleTextAttributes: NSDictionary; +} + declare const enum UITabBarSystemItem { More = 0, @@ -12647,7 +15015,7 @@ declare class UITableView extends UIScrollView implements NSCoding, UIDataSource deselectRowAtIndexPathAnimated(indexPath: NSIndexPath, animated: boolean): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; endUpdates(): void; @@ -12661,7 +15029,7 @@ declare class UITableView extends UIScrollView implements NSCoding, UIDataSource indexPathsForRowsInRect(rect: CGRect): NSArray; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithFrameStyle(frame: CGRect, style: UITableViewStyle): this; @@ -12854,7 +15222,7 @@ declare class UITableViewCell extends UIView implements NSCoding, UIGestureRecog dragStateDidChange(dragState: UITableViewCellDragState): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; gestureRecognizerShouldBeRequiredToFailByGestureRecognizer(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; @@ -12868,7 +15236,7 @@ declare class UITableViewCell extends UIView implements NSCoding, UIGestureRecog gestureRecognizerShouldRequireFailureOfGestureRecognizer(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithFrameReuseIdentifier(frame: CGRect, reuseIdentifier: string): this; @@ -13079,6 +15447,10 @@ declare class UITableViewController extends UIViewController implements UITableV tableViewCommitEditingStyleForRowAtIndexPath(tableView: UITableView, editingStyle: UITableViewCellEditingStyle, indexPath: NSIndexPath): void; + tableViewContextMenuConfigurationForRowAtIndexPathPoint(tableView: UITableView, indexPath: NSIndexPath, point: CGPoint): UIContextMenuConfiguration; + + tableViewDidBeginMultipleSelectionInteractionAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + tableViewDidDeselectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidEndDisplayingCellForRowAtIndexPath(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; @@ -13089,6 +15461,8 @@ declare class UITableViewController extends UIViewController implements UITableV tableViewDidEndEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + tableViewDidEndMultipleSelectionInteraction(tableView: UITableView): void; + tableViewDidHighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; @@ -13123,8 +15497,14 @@ declare class UITableViewController extends UIViewController implements UITableV tableViewPerformActionForRowAtIndexPathWithSender(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): void; + tableViewPreviewForDismissingContextMenuWithConfiguration(tableView: UITableView, configuration: UIContextMenuConfiguration): UITargetedPreview; + + tableViewPreviewForHighlightingContextMenuWithConfiguration(tableView: UITableView, configuration: UIContextMenuConfiguration): UITargetedPreview; + tableViewSectionForSectionIndexTitleAtIndex(tableView: UITableView, title: string, index: number): number; + tableViewShouldBeginMultipleSelectionInteractionAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + tableViewShouldHighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewShouldIndentWhileEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; @@ -13151,6 +15531,8 @@ declare class UITableViewController extends UIViewController implements UITableV tableViewWillBeginEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + tableViewWillCommitMenuWithAnimator(tableView: UITableView, animator: UIContextMenuInteractionCommitAnimating): void; + tableViewWillDeselectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; tableViewWillDisplayCellForRowAtIndexPath(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; @@ -13159,6 +15541,8 @@ declare class UITableViewController extends UIViewController implements UITableV tableViewWillDisplayHeaderViewForSection(tableView: UITableView, view: UIView, section: number): void; + tableViewWillPerformPreviewActionForMenuWithConfigurationAnimator(tableView: UITableView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating): void; + tableViewWillSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; viewForZoomingInScrollView(scrollView: UIScrollView): UIView; @@ -13216,6 +15600,10 @@ interface UITableViewDelegate extends NSObjectProtocol, UIScrollViewDelegate { tableViewCanPerformActionForRowAtIndexPathWithSender?(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): boolean; + tableViewContextMenuConfigurationForRowAtIndexPathPoint?(tableView: UITableView, indexPath: NSIndexPath, point: CGPoint): UIContextMenuConfiguration; + + tableViewDidBeginMultipleSelectionInteractionAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; + tableViewDidDeselectRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidEndDisplayingCellForRowAtIndexPath?(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; @@ -13226,6 +15614,8 @@ interface UITableViewDelegate extends NSObjectProtocol, UIScrollViewDelegate { tableViewDidEndEditingRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; + tableViewDidEndMultipleSelectionInteraction?(tableView: UITableView): void; + tableViewDidHighlightRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidSelectRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; @@ -13256,6 +15646,12 @@ interface UITableViewDelegate extends NSObjectProtocol, UIScrollViewDelegate { tableViewPerformActionForRowAtIndexPathWithSender?(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): void; + tableViewPreviewForDismissingContextMenuWithConfiguration?(tableView: UITableView, configuration: UIContextMenuConfiguration): UITargetedPreview; + + tableViewPreviewForHighlightingContextMenuWithConfiguration?(tableView: UITableView, configuration: UIContextMenuConfiguration): UITargetedPreview; + + tableViewShouldBeginMultipleSelectionInteractionAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): boolean; + tableViewShouldHighlightRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewShouldIndentWhileEditingRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): boolean; @@ -13278,6 +15674,8 @@ interface UITableViewDelegate extends NSObjectProtocol, UIScrollViewDelegate { tableViewWillBeginEditingRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; + tableViewWillCommitMenuWithAnimator?(tableView: UITableView, animator: UIContextMenuInteractionCommitAnimating): void; + tableViewWillDeselectRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; tableViewWillDisplayCellForRowAtIndexPath?(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; @@ -13286,12 +15684,93 @@ interface UITableViewDelegate extends NSObjectProtocol, UIScrollViewDelegate { tableViewWillDisplayHeaderViewForSection?(tableView: UITableView, view: UIView, section: number): void; + tableViewWillPerformPreviewActionForMenuWithConfigurationAnimator?(tableView: UITableView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating): void; + tableViewWillSelectRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; } declare var UITableViewDelegate: { - prototype: UITableViewDelegate; -}; + prototype: UITableViewDelegate; +}; + +declare class UITableViewDiffableDataSource extends NSObject implements UITableViewDataSource { + + static alloc(): UITableViewDiffableDataSource; // inherited from NSObject + + static new(): UITableViewDiffableDataSource; // inherited from NSObject + + defaultRowAnimation: UITableViewRowAnimation; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + constructor(o: { tableView: UITableView; cellProvider: (p1: UITableView, p2: NSIndexPath, p3: any) => UITableViewCell; }); + + applySnapshotAnimatingDifferences(snapshot: NSDiffableDataSourceSnapshot, animatingDifferences: boolean): void; + + applySnapshotAnimatingDifferencesCompletion(snapshot: NSDiffableDataSourceSnapshot, animatingDifferences: boolean, completion: () => void): void; + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + indexPathForItemIdentifier(identifier: ItemIdentifierType): NSIndexPath; + + initWithTableViewCellProvider(tableView: UITableView, cellProvider: (p1: UITableView, p2: NSIndexPath, p3: any) => UITableViewCell): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + itemIdentifierForIndexPath(indexPath: NSIndexPath): ItemIdentifierType; + + numberOfSectionsInTableView(tableView: UITableView): number; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + sectionIndexTitlesForTableView(tableView: UITableView): NSArray; + + self(): this; + + snapshot(): NSDiffableDataSourceSnapshot; + + tableViewCanEditRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + + tableViewCanMoveRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + + tableViewCellForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCell; + + tableViewCommitEditingStyleForRowAtIndexPath(tableView: UITableView, editingStyle: UITableViewCellEditingStyle, indexPath: NSIndexPath): void; + + tableViewMoveRowAtIndexPathToIndexPath(tableView: UITableView, sourceIndexPath: NSIndexPath, destinationIndexPath: NSIndexPath): void; + + tableViewNumberOfRowsInSection(tableView: UITableView, section: number): number; + + tableViewSectionForSectionIndexTitleAtIndex(tableView: UITableView, title: string, index: number): number; + + tableViewTitleForFooterInSection(tableView: UITableView, section: number): string; + + tableViewTitleForHeaderInSection(tableView: UITableView, section: number): string; +} interface UITableViewDragDelegate extends NSObjectProtocol { @@ -13549,7 +16028,9 @@ declare const enum UITableViewStyle { Plain = 0, - Grouped = 1 + Grouped = 1, + + InsetGrouped = 2 } declare class UITapGestureRecognizer extends UIGestureRecognizer { @@ -13563,7 +16044,7 @@ declare class UITapGestureRecognizer extends UIGestureRecognizer { numberOfTouchesRequired: number; } -declare class UITargetedDragPreview extends NSObject implements NSCopying { +declare class UITargetedDragPreview extends UITargetedPreview { static alloc(): UITargetedDragPreview; // inherited from NSObject @@ -13573,29 +16054,38 @@ declare class UITargetedDragPreview extends NSObject implements NSCopying { static previewForURLTitleTarget(url: NSURL, title: string, target: UIDragPreviewTarget): UITargetedDragPreview; - readonly parameters: UIDragPreviewParameters; + retargetedPreviewWithTarget(newTarget: UIDragPreviewTarget): UITargetedDragPreview; +} + +declare class UITargetedPreview extends NSObject implements NSCopying { + + static alloc(): UITargetedPreview; // inherited from NSObject + + static new(): UITargetedPreview; // inherited from NSObject + + readonly parameters: UIPreviewParameters; readonly size: CGSize; - readonly target: UIDragPreviewTarget; + readonly target: UIPreviewTarget; readonly view: UIView; constructor(o: { view: UIView; }); - constructor(o: { view: UIView; parameters: UIDragPreviewParameters; }); + constructor(o: { view: UIView; parameters: UIPreviewParameters; }); - constructor(o: { view: UIView; parameters: UIDragPreviewParameters; target: UIDragPreviewTarget; }); + constructor(o: { view: UIView; parameters: UIPreviewParameters; target: UIPreviewTarget; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; initWithView(view: UIView): this; - initWithViewParameters(view: UIView, parameters: UIDragPreviewParameters): this; + initWithViewParameters(view: UIView, parameters: UIPreviewParameters): this; - initWithViewParametersTarget(view: UIView, parameters: UIDragPreviewParameters, target: UIDragPreviewTarget): this; + initWithViewParametersTarget(view: UIView, parameters: UIPreviewParameters, target: UIPreviewTarget): this; - retargetedPreviewWithTarget(newTarget: UIDragPreviewTarget): UITargetedDragPreview; + retargetedPreviewWithTarget(newTarget: UIPreviewTarget): UITargetedPreview; } declare const enum UITextAlignment { @@ -13607,6 +16097,13 @@ declare const enum UITextAlignment { Right = 2 } +declare const enum UITextAlternativeStyle { + + None = 0, + + LowConfidence = 1 +} + declare var UITextAttributeFont: string; declare var UITextAttributeTextColor: string; @@ -13738,6 +16235,10 @@ interface UITextDocumentProxy extends UIKeyInput { selectedText: string; adjustTextPositionByCharacterOffset(offset: number): void; + + setMarkedTextSelectedRange(markedText: string, selectedRange: NSRange): void; + + unmarkText(): void; } declare var UITextDocumentProxy: { @@ -14079,7 +16580,7 @@ declare class UITextField extends UIControl implements NSCoding, UIContentSizeCa constructor(o: { coder: NSCoder; }); // inherited from NSCoding - baseWritingDirectionForPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): UITextWritingDirection; + baseWritingDirectionForPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): NSWritingDirection; beginFloatingCursorAtPoint(point: CGPoint): void; @@ -14119,7 +16620,7 @@ declare class UITextField extends UIControl implements NSCoding, UIContentSizeCa editingRectForBounds(bounds: CGRect): CGRect; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; endFloatingCursor(): void; @@ -14127,12 +16628,16 @@ declare class UITextField extends UIControl implements NSCoding, UIContentSizeCa frameForDictationResultPlaceholder(placeholder: any): CGRect; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; insertDictationResult(dictationResult: NSArray | UIDictationPhrase[]): void; insertText(text: string): void; + insertTextAlternativesStyle(text: string, alternatives: NSArray | string[], style: UITextAlternativeStyle): void; + + insertTextPlaceholderWithSize(size: CGSize): UITextPlaceholder; + isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; @@ -14163,6 +16668,8 @@ declare class UITextField extends UIControl implements NSCoding, UIContentSizeCa removeDictationResultPlaceholderWillInsertResult(placeholder: any, willInsertResult: boolean): void; + removeTextPlaceholder(textPlaceholder: UITextPlaceholder): void; + replaceRangeWithText(range: UITextRange, text: string): void; respondsToSelector(aSelector: string): boolean; @@ -14175,7 +16682,9 @@ declare class UITextField extends UIControl implements NSCoding, UIContentSizeCa self(): this; - setBaseWritingDirectionForRange(writingDirection: UITextWritingDirection, range: UITextRange): void; + setAttributedMarkedTextSelectedRange(markedText: NSAttributedString, selectedRange: NSRange): void; + + setBaseWritingDirectionForRange(writingDirection: NSWritingDirection, range: UITextRange): void; setMarkedTextSelectedRange(markedText: string, selectedRange: NSRange): void; @@ -14198,6 +16707,8 @@ interface UITextFieldDelegate extends NSObjectProtocol { textFieldDidBeginEditing?(textField: UITextField): void; + textFieldDidChangeSelection?(textField: UITextField): void; + textFieldDidEndEditing?(textField: UITextField): void; textFieldDidEndEditingReason?(textField: UITextField, reason: UITextFieldDidEndEditingReason): void; @@ -14243,6 +16754,74 @@ declare const enum UITextFieldViewMode { Always = 3 } +declare class UITextFormattingCoordinator extends NSObject implements UIFontPickerViewControllerDelegate { + + static alloc(): UITextFormattingCoordinator; // inherited from NSObject + + static new(): UITextFormattingCoordinator; // inherited from NSObject + + static textFormattingCoordinatorForWindowScene(windowScene: UIWindowScene): UITextFormattingCoordinator; + + static toggleFontPanel(sender: any): void; + + delegate: UITextFormattingCoordinatorDelegate; + + static readonly fontPanelVisible: boolean; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + constructor(o: { windowScene: UIWindowScene; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + fontPickerViewControllerDidCancel(viewController: UIFontPickerViewController): void; + + fontPickerViewControllerDidPickFont(viewController: UIFontPickerViewController): void; + + initWithWindowScene(windowScene: UIWindowScene): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; + + setSelectedAttributesIsMultiple(attributes: NSDictionary, flag: boolean): void; +} + +interface UITextFormattingCoordinatorDelegate extends NSObjectProtocol { + + updateTextAttributesWithConversionHandler(conversionHandler: (p1: NSDictionary) => NSDictionary): void; +} +declare var UITextFormattingCoordinatorDelegate: { + + prototype: UITextFormattingCoordinatorDelegate; +}; + declare const enum UITextGranularity { Character = 0, @@ -14280,7 +16859,7 @@ interface UITextInput extends UIKeyInput { tokenizer: UITextInputTokenizer; - baseWritingDirectionForPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): UITextWritingDirection; + baseWritingDirectionForPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): NSWritingDirection; beginFloatingCursorAtPoint?(point: CGPoint): void; @@ -14310,6 +16889,10 @@ interface UITextInput extends UIKeyInput { insertDictationResult?(dictationResult: NSArray | UIDictationPhrase[]): void; + insertTextAlternativesStyle?(text: string, alternatives: NSArray | string[], style: UITextAlternativeStyle): void; + + insertTextPlaceholderWithSize?(size: CGSize): UITextPlaceholder; + offsetFromPositionToPosition(from: UITextPosition, toPosition: UITextPosition): number; positionFromPositionInDirectionOffset(position: UITextPosition, direction: UITextLayoutDirection, offset: number): UITextPosition; @@ -14322,11 +16905,15 @@ interface UITextInput extends UIKeyInput { removeDictationResultPlaceholderWillInsertResult?(placeholder: any, willInsertResult: boolean): void; + removeTextPlaceholder?(textPlaceholder: UITextPlaceholder): void; + replaceRangeWithText(range: UITextRange, text: string): void; selectionRectsForRange(range: UITextRange): NSArray; - setBaseWritingDirectionForRange(writingDirection: UITextWritingDirection, range: UITextRange): void; + setAttributedMarkedTextSelectedRange?(markedText: NSAttributedString, selectedRange: NSRange): void; + + setBaseWritingDirectionForRange(writingDirection: NSWritingDirection, range: UITextRange): void; setMarkedTextSelectedRange(markedText: string, selectedRange: NSRange): void; @@ -14393,9 +16980,9 @@ declare class UITextInputMode extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class UITextInputPasswordRules extends NSObject implements NSCopying, NSSecureCoding { @@ -14414,9 +17001,9 @@ declare class UITextInputPasswordRules extends NSObject implements NSCopying, NS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class UITextInputStringTokenizer extends NSObject implements UITextInputTokenizer { @@ -14526,6 +17113,83 @@ declare var UITextInputTraits: { prototype: UITextInputTraits; }; +declare class UITextInteraction extends NSObject implements UIInteraction { + + static alloc(): UITextInteraction; // inherited from NSObject + + static new(): UITextInteraction; // inherited from NSObject + + static textInteractionForMode(mode: UITextInteractionMode): UITextInteraction; + + delegate: UITextInteractionDelegate; + + readonly gesturesForFailureRequirements: NSArray; + + textInput: UIResponder; + + readonly textInteractionMode: UITextInteractionMode; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly view: UIView; // inherited from UIInteraction + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + didMoveToView(view: UIView): void; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; + + willMoveToView(view: UIView): void; +} + +interface UITextInteractionDelegate extends NSObjectProtocol { + + interactionDidEnd?(interaction: UITextInteraction): void; + + interactionShouldBeginAtPoint?(interaction: UITextInteraction, point: CGPoint): boolean; + + interactionWillBegin?(interaction: UITextInteraction): void; +} +declare var UITextInteractionDelegate: { + + prototype: UITextInteractionDelegate; +}; + +declare const enum UITextInteractionMode { + + Editable = 0, + + NonEditable = 1 +} + declare const enum UITextItemInteraction { InvokeDefaultAction = 0, @@ -14593,6 +17257,15 @@ declare var UITextPasteItem: { prototype: UITextPasteItem; }; +declare class UITextPlaceholder extends NSObject { + + static alloc(): UITextPlaceholder; // inherited from NSObject + + static new(): UITextPlaceholder; // inherited from NSObject + + readonly rects: NSArray; +} + declare class UITextPosition extends NSObject { static alloc(): UITextPosition; // inherited from NSObject @@ -14627,7 +17300,7 @@ declare class UITextSelectionRect extends NSObject { readonly rect: CGRect; - readonly writingDirection: UITextWritingDirection; + readonly writingDirection: NSWritingDirection; } declare const enum UITextSmartDashesType { @@ -14731,6 +17404,8 @@ declare class UITextView extends UIScrollView implements UIContentSizeCategoryAd typingAttributes: NSDictionary; + usesStandardTextScaling: boolean; + adjustsFontForContentSizeCategory: boolean; // inherited from UIContentSizeCategoryAdjusting autocapitalizationType: UITextAutocapitalizationType; // inherited from UITextInputTraits @@ -14813,7 +17488,7 @@ declare class UITextView extends UIScrollView implements UIContentSizeCategoryAd constructor(o: { frame: CGRect; textContainer: NSTextContainer; }); - baseWritingDirectionForPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): UITextWritingDirection; + baseWritingDirectionForPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): NSWritingDirection; beginFloatingCursorAtPoint(point: CGPoint): void; @@ -14855,6 +17530,10 @@ declare class UITextView extends UIScrollView implements UIContentSizeCategoryAd insertText(text: string): void; + insertTextAlternativesStyle(text: string, alternatives: NSArray | string[], style: UITextAlternativeStyle): void; + + insertTextPlaceholderWithSize(size: CGSize): UITextPlaceholder; + isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; @@ -14881,6 +17560,8 @@ declare class UITextView extends UIScrollView implements UIContentSizeCategoryAd removeDictationResultPlaceholderWillInsertResult(placeholder: any, willInsertResult: boolean): void; + removeTextPlaceholder(textPlaceholder: UITextPlaceholder): void; + replaceRangeWithText(range: UITextRange, text: string): void; respondsToSelector(aSelector: string): boolean; @@ -14893,7 +17574,9 @@ declare class UITextView extends UIScrollView implements UIContentSizeCategoryAd self(): this; - setBaseWritingDirectionForRange(writingDirection: UITextWritingDirection, range: UITextRange): void; + setAttributedMarkedTextSelectedRange(markedText: NSAttributedString, selectedRange: NSRange): void; + + setBaseWritingDirectionForRange(writingDirection: NSWritingDirection, range: UITextRange): void; setMarkedTextSelectedRange(markedText: string, selectedRange: NSRange): void; @@ -14945,14 +17628,11 @@ declare var UITextViewTextDidChangeNotification: string; declare var UITextViewTextDidEndEditingNotification: string; -declare const enum UITextWritingDirection { - - Natural = -1, +declare var UITextWritingDirectionLeftToRight: NSWritingDirection; - LeftToRight = 0, +declare var UITextWritingDirectionNatural: NSWritingDirection; - RightToLeft = 1 -} +declare var UITextWritingDirectionRightToLeft: NSWritingDirection; interface UITimingCurveProvider extends NSCoding, NSCopying { @@ -15000,10 +17680,14 @@ declare class UIToolbar extends UIView implements UIBarPositioning { barTintColor: UIColor; + compactAppearance: UIToolbarAppearance; + delegate: UIToolbarDelegate; items: NSArray; + standardAppearance: UIToolbarAppearance; + translucent: boolean; readonly barPosition: UIBarPosition; // inherited from UIBarPositioning @@ -15053,6 +17737,17 @@ declare class UIToolbar extends UIView implements UIBarPositioning { shadowImageForToolbarPosition(topOrBottom: UIBarPosition): UIImage; } +declare class UIToolbarAppearance extends UIBarAppearance { + + static alloc(): UIToolbarAppearance; // inherited from NSObject + + static new(): UIToolbarAppearance; // inherited from NSObject + + buttonAppearance: UIBarButtonItemAppearance; + + doneButtonAppearance: UIBarButtonItemAppearance; +} + interface UIToolbarDelegate extends UIBarPositioningDelegate { } declare var UIToolbarDelegate: { @@ -15156,6 +17851,8 @@ declare class UITraitCollection extends NSObject implements NSCopying, NSSecureC static new(): UITraitCollection; // inherited from NSObject + static traitCollectionWithAccessibilityContrast(accessibilityContrast: UIAccessibilityContrast): UITraitCollection; + static traitCollectionWithDisplayGamut(displayGamut: UIDisplayGamut): UITraitCollection; static traitCollectionWithDisplayScale(scale: number): UITraitCollection; @@ -15166,16 +17863,22 @@ declare class UITraitCollection extends NSObject implements NSCopying, NSSecureC static traitCollectionWithLayoutDirection(layoutDirection: UITraitEnvironmentLayoutDirection): UITraitCollection; + static traitCollectionWithLegibilityWeight(legibilityWeight: UILegibilityWeight): UITraitCollection; + static traitCollectionWithPreferredContentSizeCategory(preferredContentSizeCategory: string): UITraitCollection; static traitCollectionWithTraitsFromCollections(traitCollections: NSArray | UITraitCollection[]): UITraitCollection; static traitCollectionWithUserInterfaceIdiom(idiom: UIUserInterfaceIdiom): UITraitCollection; + static traitCollectionWithUserInterfaceLevel(userInterfaceLevel: UIUserInterfaceLevel): UITraitCollection; + static traitCollectionWithUserInterfaceStyle(userInterfaceStyle: UIUserInterfaceStyle): UITraitCollection; static traitCollectionWithVerticalSizeClass(verticalSizeClass: UIUserInterfaceSizeClass): UITraitCollection; + readonly accessibilityContrast: UIAccessibilityContrast; + readonly displayGamut: UIDisplayGamut; readonly displayScale: number; @@ -15184,16 +17887,24 @@ declare class UITraitCollection extends NSObject implements NSCopying, NSSecureC readonly horizontalSizeClass: UIUserInterfaceSizeClass; + readonly imageConfiguration: UIImageConfiguration; + readonly layoutDirection: UITraitEnvironmentLayoutDirection; + readonly legibilityWeight: UILegibilityWeight; + readonly preferredContentSizeCategory: string; readonly userInterfaceIdiom: UIUserInterfaceIdiom; + readonly userInterfaceLevel: UIUserInterfaceLevel; + readonly userInterfaceStyle: UIUserInterfaceStyle; readonly verticalSizeClass: UIUserInterfaceSizeClass; + static currentTraitCollection: UITraitCollection; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding @@ -15202,9 +17913,13 @@ declare class UITraitCollection extends NSObject implements NSCopying, NSSecureC copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + hasDifferentColorAppearanceComparedToTraitCollection(traitCollection: UITraitCollection): boolean; + + initWithCoder(coder: NSCoder): this; + + performAsCurrentTraitCollection(actions: () => void): void; } interface UITraitEnvironment extends NSObjectProtocol { @@ -15264,6 +17979,15 @@ declare const enum UIUserInterfaceLayoutDirection { RightToLeft = 1 } +declare const enum UIUserInterfaceLevel { + + Unspecified = -1, + + Base = 0, + + Elevated = 1 +} + declare const enum UIUserInterfaceSizeClass { Unspecified = 0, @@ -15308,9 +18032,9 @@ declare class UIUserNotificationAction extends NSObject implements NSCopying, NS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } @@ -15354,9 +18078,9 @@ declare class UIUserNotificationCategory extends NSObject implements NSCopying, copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } @@ -15393,15 +18117,38 @@ declare class UIVibrancyEffect extends UIVisualEffect { static effectForBlurEffect(blurEffect: UIBlurEffect): UIVibrancyEffect; + static effectForBlurEffectStyle(blurEffect: UIBlurEffect, style: UIVibrancyEffectStyle): UIVibrancyEffect; + static new(): UIVibrancyEffect; // inherited from NSObject static notificationCenterVibrancyEffect(): UIVibrancyEffect; + static widgetEffectForVibrancyStyle(vibrancyStyle: UIVibrancyEffectStyle): UIVibrancyEffect; + static widgetPrimaryVibrancyEffect(): UIVibrancyEffect; static widgetSecondaryVibrancyEffect(): UIVibrancyEffect; } +declare const enum UIVibrancyEffectStyle { + + Label = 0, + + SecondaryLabel = 1, + + TertiaryLabel = 2, + + QuaternaryLabel = 3, + + Fill = 4, + + SecondaryFill = 5, + + TertiaryFill = 6, + + Separator = 7 +} + declare function UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(videoPath: string): boolean; declare class UIVideoEditorController extends UINavigationController { @@ -15434,7 +18181,7 @@ declare var UIVideoEditorControllerDelegate: { prototype: UIVideoEditorControllerDelegate; }; -declare class UIView extends UIResponder implements CALayerDelegate, NSCoding, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusItem, UIFocusItemContainer, UITraitEnvironment { +declare class UIView extends UIResponder implements CALayerDelegate, NSCoding, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UITraitEnvironment { static addKeyframeWithRelativeStartTimeRelativeDurationAnimations(frameStartTime: number, frameDuration: number, animations: () => void): void; @@ -15466,6 +18213,14 @@ declare class UIView extends UIResponder implements CALayerDelegate, NSCoding, U static commitAnimations(): void; + static mdc_animateWithTimingFunctionDurationDelayOptionsAnimationsCompletion(timingFunction: CAMediaTimingFunction, duration: number, delay: number, options: UIViewAnimationOptions, animations: () => void, completion: (p1: boolean) => void): void; + + static mdf_userInterfaceLayoutDirectionForSemanticContentAttribute(semanticContentAttribute: UISemanticContentAttribute): UIUserInterfaceLayoutDirection; + + static mdf_userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(semanticContentAttribute: UISemanticContentAttribute, layoutDirection: UIUserInterfaceLayoutDirection): UIUserInterfaceLayoutDirection; + + static modifyAnimationsWithRepeatCountAutoreversesAnimations(count: number, autoreverses: boolean, animations: () => void): void; + static new(): UIView; // inherited from NSObject static performSystemAnimationOnViewsOptionsAnimationsCompletion(animation: UISystemAnimation, views: NSArray | UIView[], options: UIViewAnimationOptions, parallelAnimations: () => void, completion: (p1: boolean) => void): void; @@ -15562,6 +18317,12 @@ declare class UIView extends UIResponder implements CALayerDelegate, NSCoding, U readonly intrinsicContentSize: CGSize; + largeContentImage: UIImage; + + largeContentImageInsets: UIEdgeInsets; + + largeContentTitle: string; + readonly lastBaselineAnchor: NSLayoutYAxisAnchor; readonly layer: CALayer; @@ -15578,12 +18339,18 @@ declare class UIView extends UIResponder implements CALayerDelegate, NSCoding, U maskView: UIView; + readonly mdf_effectiveUserInterfaceLayoutDirection: UIUserInterfaceLayoutDirection; + + mdf_semanticContentAttribute: UISemanticContentAttribute; + motionEffects: NSArray; multipleTouchEnabled: boolean; opaque: boolean; + overrideUserInterfaceStyle: UIUserInterfaceStyle; + preservesSuperviewLayoutMargins: boolean; readonly readableContentGuide: UILayoutGuide; @@ -15596,8 +18363,12 @@ declare class UIView extends UIResponder implements CALayerDelegate, NSCoding, U readonly safeAreaLayoutGuide: UILayoutGuide; + scalesLargeContentImage: boolean; + semanticContentAttribute: UISemanticContentAttribute; + showsLargeContentViewer: boolean; + readonly subviews: NSArray; readonly superview: UIView; @@ -15612,6 +18383,8 @@ declare class UIView extends UIResponder implements CALayerDelegate, NSCoding, U readonly trailingAnchor: NSLayoutXAxisAnchor; + transform3D: CATransform3D; + translatesAutoresizingMaskIntoConstraints: boolean; userInteractionEnabled: boolean; @@ -15742,7 +18515,7 @@ declare class UIView extends UIResponder implements CALayerDelegate, NSCoding, U encodeRestorableStateWithCoder(coder: NSCoder): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; endEditing(force: boolean): boolean; @@ -15758,7 +18531,7 @@ declare class UIView extends UIResponder implements CALayerDelegate, NSCoding, U hitTestWithEvent(point: CGPoint, event: _UIEvent): UIView; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithFrame(frame: CGRect): this; @@ -16101,6 +18874,8 @@ declare class UIViewController extends UIResponder implements NSCoding, NSExtens modalInPopover: boolean; + modalInPresentation: boolean; + modalPresentationCapturesStatusBarAppearance: boolean; modalPresentationStyle: UIModalPresentationStyle; @@ -16123,8 +18898,12 @@ declare class UIViewController extends UIResponder implements NSCoding, NSExtens readonly originalContentView: UIView; + overrideUserInterfaceStyle: UIUserInterfaceStyle; + readonly parentViewController: UIViewController; + readonly performsActionsWhilePresentingModally: boolean; + readonly popoverPresentationController: UIPopoverPresentationController; preferredContentSize: CGSize; @@ -16243,6 +19022,8 @@ declare class UIViewController extends UIResponder implements NSCoding, NSExtens beginRequestWithExtensionContext(context: NSExtensionContext): void; + canPerformUnwindSegueActionFromViewControllerSender(action: string, fromViewController: UIViewController, sender: any): boolean; + canPerformUnwindSegueActionFromViewControllerWithSender(action: string, fromViewController: UIViewController, sender: any): boolean; childViewControllerContainingSegueSource(source: UIStoryboardUnwindSegueSource): UIViewController; @@ -16273,11 +19054,11 @@ declare class UIViewController extends UIResponder implements NSCoding, NSExtens encodeRestorableStateWithCoder(coder: NSCoder): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; endAppearanceTransition(): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithNibNameBundle(nibNameOrNil: string, nibBundleOrNil: NSBundle): this; @@ -16766,9 +19547,9 @@ declare class UIVisualEffect extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class UIVisualEffectView extends UIView implements NSSecureCoding { @@ -16799,9 +19580,9 @@ declare class UIVisualEffectView extends UIView implements NSSecureCoding { constructor(o: { effect: UIVisualEffect; }); - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; initWithEffect(effect: UIVisualEffect): this; } @@ -16904,13 +19685,13 @@ declare class UIWebView extends UIView implements NSCoding, UIScrollViewDelegate conformsToProtocol(aProtocol: any /* Protocol */): boolean; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; goBack(): void; goForward(): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; isEqual(object: any): boolean; @@ -17019,6 +19800,8 @@ declare class UIWindow extends UIView { static new(): UIWindow; // inherited from NSObject + canResizeToFitContent: boolean; + readonly keyWindow: boolean; rootViewController: UIViewController; @@ -17027,6 +19810,10 @@ declare class UIWindow extends UIView { windowLevel: number; + windowScene: UIWindowScene; + + constructor(o: { windowScene: UIWindowScene; }); + becomeKeyWindow(): void; convertPointFromWindow(point: CGPoint, window: UIWindow): CGPoint; @@ -17037,6 +19824,8 @@ declare class UIWindow extends UIView { convertRectToWindow(rect: CGRect, window: UIWindow): CGRect; + initWithWindowScene(windowScene: UIWindowScene): this; + makeKeyAndVisible(): void; makeKeyWindow(): void; @@ -17044,6 +19833,8 @@ declare class UIWindow extends UIView { resignKeyWindow(): void; sendEvent(event: _UIEvent): void; + + setScreen(screen: UIScreen): void; } declare var UIWindowDidBecomeHiddenNotification: string; @@ -17059,3 +19850,63 @@ declare var UIWindowLevelAlert: number; declare var UIWindowLevelNormal: number; declare var UIWindowLevelStatusBar: number; + +declare class UIWindowScene extends UIScene { + + static alloc(): UIWindowScene; // inherited from NSObject + + static new(): UIWindowScene; // inherited from NSObject + + readonly coordinateSpace: UICoordinateSpace; + + readonly interfaceOrientation: UIInterfaceOrientation; + + readonly screen: UIScreen; + + readonly screenshotService: UIScreenshotService; + + readonly sizeRestrictions: UISceneSizeRestrictions; + + readonly statusBarManager: UIStatusBarManager; + + readonly traitCollection: UITraitCollection; + + readonly windows: NSArray; +} + +interface UIWindowSceneDelegate extends UISceneDelegate { + + window?: UIWindow; + + windowSceneDidUpdateCoordinateSpaceInterfaceOrientationTraitCollection?(windowScene: UIWindowScene, previousCoordinateSpace: UICoordinateSpace, previousInterfaceOrientation: UIInterfaceOrientation, previousTraitCollection: UITraitCollection): void; + + windowScenePerformActionForShortcutItemCompletionHandler?(windowScene: UIWindowScene, shortcutItem: UIApplicationShortcutItem, completionHandler: (p1: boolean) => void): void; + + windowSceneUserDidAcceptCloudKitShareWithMetadata?(windowScene: UIWindowScene, cloudKitShareMetadata: CKShareMetadata): void; +} +declare var UIWindowSceneDelegate: { + + prototype: UIWindowSceneDelegate; +}; + +declare class UIWindowSceneDestructionRequestOptions extends UISceneDestructionRequestOptions { + + static alloc(): UIWindowSceneDestructionRequestOptions; // inherited from NSObject + + static new(): UIWindowSceneDestructionRequestOptions; // inherited from NSObject + + windowDismissalAnimation: UIWindowSceneDismissalAnimation; +} + +declare const enum UIWindowSceneDismissalAnimation { + + Standard = 1, + + Commit = 2, + + Decline = 3 +} + +declare var UIWindowSceneSessionRoleApplication: string; + +declare var UIWindowSceneSessionRoleExternalDisplay: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!UserNotifications.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!UserNotifications.d.ts index b46777f8c5..28b9bac14c 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!UserNotifications.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!UserNotifications.d.ts @@ -24,7 +24,9 @@ declare const enum UNAuthorizationOptions { ProvidesAppNotificationSettings = 32, - Provisional = 64 + Provisional = 64, + + Announcement = 128 } declare const enum UNAuthorizationStatus { @@ -109,6 +111,8 @@ declare class UNMutableNotificationContent extends UNNotificationContent { summaryArgumentCount: number; + targetContentIdentifier: string; + threadIdentifier: string; title: string; @@ -132,9 +136,9 @@ declare class UNNotification extends NSObject implements NSCopying, NSSecureCodi copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class UNNotificationAction extends NSObject implements NSCopying, NSSecureCoding { @@ -157,9 +161,9 @@ declare class UNNotificationAction extends NSObject implements NSCopying, NSSecu copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var UNNotificationActionOptionNone: UNNotificationActionOptions; @@ -193,9 +197,9 @@ declare class UNNotificationAttachment extends NSObject implements NSCopying, NS copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var UNNotificationAttachmentOptionsThumbnailClippingRectKey: string; @@ -236,9 +240,9 @@ declare class UNNotificationCategory extends NSObject implements NSCopying, NSSe copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare var UNNotificationCategoryOptionNone: UNNotificationCategoryOptions; @@ -251,7 +255,9 @@ declare const enum UNNotificationCategoryOptions { HiddenPreviewsShowTitle = 4, - HiddenPreviewsShowSubtitle = 8 + HiddenPreviewsShowSubtitle = 8, + + AllowAnnouncement = 16 } declare class UNNotificationContent extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { @@ -278,6 +284,8 @@ declare class UNNotificationContent extends NSObject implements NSCopying, NSMut readonly summaryArgumentCount: number; + readonly targetContentIdentifier: string; + readonly threadIdentifier: string; readonly title: string; @@ -290,9 +298,9 @@ declare class UNNotificationContent extends NSObject implements NSCopying, NSMut copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } @@ -332,9 +340,9 @@ declare class UNNotificationRequest extends NSObject implements NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class UNNotificationResponse extends NSObject implements NSCopying, NSSecureCoding { @@ -347,15 +355,17 @@ declare class UNNotificationResponse extends NSObject implements NSCopying, NSSe readonly notification: UNNotification; + readonly targetScene: UIScene; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class UNNotificationServiceExtension extends NSObject { @@ -388,6 +398,8 @@ declare class UNNotificationSettings extends NSObject implements NSCopying, NSSe readonly alertStyle: UNAlertStyle; + readonly announcementSetting: UNNotificationSetting; + readonly authorizationStatus: UNAuthorizationStatus; readonly badgeSetting: UNNotificationSetting; @@ -412,9 +424,9 @@ declare class UNNotificationSettings extends NSObject implements NSCopying, NSSe copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class UNNotificationSound extends NSObject implements NSCopying, NSSecureCoding { @@ -441,9 +453,9 @@ declare class UNNotificationSound extends NSObject implements NSCopying, NSSecur copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class UNNotificationTrigger extends NSObject implements NSCopying, NSSecureCoding { @@ -460,9 +472,9 @@ declare class UNNotificationTrigger extends NSObject implements NSCopying, NSSec copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class UNPushNotificationTrigger extends UNNotificationTrigger { diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!VideoSubscriberAccount.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!VideoSubscriberAccount.d.ts index 8ab209b70b..2dd26a55a7 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!VideoSubscriberAccount.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!VideoSubscriberAccount.d.ts @@ -68,6 +68,8 @@ declare class VSAccountMetadataRequest extends NSObject { static new(): VSAccountMetadataRequest; // inherited from NSObject + accountProviderAuthenticationToken: string; + attributeNames: NSArray; channelIdentifier: string; @@ -91,6 +93,8 @@ declare class VSAccountMetadataRequest extends NSObject { verificationToken: string; } +declare var VSAccountProviderAuthenticationSchemeAPI: string; + declare var VSAccountProviderAuthenticationSchemeSAML: string; declare class VSAccountProviderResponse extends NSObject { @@ -120,7 +124,9 @@ declare const enum VSErrorCode { ProviderRejected = 4, - InvalidVerificationToken = 5 + InvalidVerificationToken = 5, + + Rejected = 6 } declare var VSErrorDomain: string; @@ -133,6 +139,8 @@ declare var VSErrorInfoKeySAMLResponseStatus: string; declare var VSErrorInfoKeyUnsupportedProviderIdentifier: string; +declare var VSOpenTVProviderSettingsURLString: string; + declare class VSSubscription extends NSObject { static alloc(): VSSubscription; // inherited from NSObject diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!VideoToolbox.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!VideoToolbox.d.ts index c7f8e5e3c7..5fe20b70c1 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!VideoToolbox.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!VideoToolbox.d.ts @@ -129,6 +129,10 @@ declare function VTSessionSetProperty(session: any, propertyKey: string, propert declare const kVTAllocationFailedErr: number; +declare var kVTAlphaChannelMode_PremultipliedAlpha: string; + +declare var kVTAlphaChannelMode_StraightAlpha: string; + declare const kVTColorCorrectionImageRotationFailedErr: number; declare const kVTColorCorrectionPixelTransferFailedErr: number; @@ -141,6 +145,8 @@ declare var kVTCompressionPropertyKey_AllowOpenGOP: string; declare var kVTCompressionPropertyKey_AllowTemporalCompression: string; +declare var kVTCompressionPropertyKey_AlphaChannelMode: string; + declare var kVTCompressionPropertyKey_AspectRatio16x9: string; declare var kVTCompressionPropertyKey_AverageBitRate: string; @@ -167,6 +173,8 @@ declare var kVTCompressionPropertyKey_FieldCount: string; declare var kVTCompressionPropertyKey_FieldDetail: string; +declare var kVTCompressionPropertyKey_GammaLevel: string; + declare var kVTCompressionPropertyKey_H264EntropyMode: string; declare var kVTCompressionPropertyKey_ICCProfile: string; @@ -207,8 +215,12 @@ declare var kVTCompressionPropertyKey_RealTime: string; declare var kVTCompressionPropertyKey_SourceFrameCount: string; +declare var kVTCompressionPropertyKey_TargetQualityForAlpha: string; + declare var kVTCompressionPropertyKey_TransferFunction: string; +declare var kVTCompressionPropertyKey_UsingGPURegistryID: string; + declare var kVTCompressionPropertyKey_VideoEncoderPixelBufferAttributes: string; declare var kVTCompressionPropertyKey_YCbCrMatrix: string; @@ -265,6 +277,8 @@ declare var kVTDecompressionPropertyKey_SupportedPixelFormatsOrderedByQuality: s declare var kVTDecompressionPropertyKey_ThreadCount: string; +declare var kVTDecompressionPropertyKey_UsingGPURegistryID: string; + declare var kVTDecompressionProperty_DeinterlaceMode_Temporal: string; declare var kVTDecompressionProperty_DeinterlaceMode_VerticalFilter: string; @@ -341,6 +355,8 @@ declare var kVTPixelTransferPropertyKey_DestinationYCbCrMatrix: string; declare var kVTPixelTransferPropertyKey_DownsamplingMode: string; +declare var kVTPixelTransferPropertyKey_RealTime: string; + declare var kVTPixelTransferPropertyKey_ScalingMode: string; declare var kVTProfileLevel_H263_Profile0_Level10: string; @@ -509,8 +525,24 @@ declare var kVTVideoEncoderList_EncoderID: string; declare var kVTVideoEncoderList_EncoderName: string; +declare var kVTVideoEncoderList_GPURegistryID: string; + +declare var kVTVideoEncoderList_InstanceLimit: string; + +declare var kVTVideoEncoderList_IsHardwareAccelerated: string; + +declare var kVTVideoEncoderList_PerformanceRating: string; + +declare var kVTVideoEncoderList_QualityRating: string; + +declare var kVTVideoEncoderList_SupportedSelectionProperties: string; + declare const kVTVideoEncoderMalfunctionErr: number; declare const kVTVideoEncoderNotAvailableNowErr: number; declare var kVTVideoEncoderSpecification_EncoderID: string; + +declare var kVTVideoEncoderSpecification_PreferredEncoderGPURegistryID: string; + +declare var kVTVideoEncoderSpecification_RequiredEncoderGPURegistryID: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!Vision.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!Vision.d.ts index 8da9312984..acbeecbd6d 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!Vision.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!Vision.d.ts @@ -1,4 +1,12 @@ +declare var VNAnimalDetectorCat: string; + +declare var VNAnimalDetectorDog: string; + +declare var VNAnimalIdentifierCat: string; + +declare var VNAnimalIdentifierDog: string; + declare class VNBarcodeObservation extends VNRectangleObservation { static alloc(): VNBarcodeObservation; // inherited from NSObject @@ -9,6 +17,8 @@ declare class VNBarcodeObservation extends VNRectangleObservation { static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNBarcodeObservation; // inherited from VNDetectedObjectObservation + static rectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision: number, topLeft: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint, topRight: CGPoint): VNBarcodeObservation; // inherited from VNRectangleObservation + readonly barcodeDescriptor: CIBarcodeDescriptor; readonly payloadStringValue: string; @@ -56,15 +66,34 @@ declare class VNClassificationObservation extends VNObservation { static new(): VNClassificationObservation; // inherited from NSObject + readonly hasPrecisionRecallCurve: boolean; + readonly identifier: string; + + hasMinimumPrecisionForRecall(minimumPrecision: number, recall: number): boolean; + + hasMinimumRecallForPrecision(minimumRecall: number, precision: number): boolean; } +declare class VNClassifyImageRequest extends VNImageBasedRequest { + + static alloc(): VNClassifyImageRequest; // inherited from NSObject + + static knownClassificationsForRevisionError(requestRevision: number): NSArray; + + static new(): VNClassifyImageRequest; // inherited from NSObject +} + +declare var VNClassifyImageRequestRevision1: number; + declare class VNCoreMLFeatureValueObservation extends VNObservation { static alloc(): VNCoreMLFeatureValueObservation; // inherited from NSObject static new(): VNCoreMLFeatureValueObservation; // inherited from NSObject + readonly featureName: string; + readonly featureValue: MLFeatureValue; } @@ -75,6 +104,10 @@ declare class VNCoreMLModel extends NSObject { static modelForMLModelError(model: MLModel): VNCoreMLModel; static new(): VNCoreMLModel; // inherited from NSObject + + featureProvider: MLFeatureProvider; + + inputImageFeatureName: string; } declare class VNCoreMLRequest extends VNImageBasedRequest { @@ -111,12 +144,61 @@ declare class VNDetectBarcodesRequest extends VNImageBasedRequest { declare var VNDetectBarcodesRequestRevision1: number; +declare class VNDetectFaceCaptureQualityRequest extends VNImageBasedRequest implements VNFaceObservationAccepting { + + static alloc(): VNDetectFaceCaptureQualityRequest; // inherited from NSObject + + static new(): VNDetectFaceCaptureQualityRequest; // inherited from NSObject + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + inputFaceObservations: NSArray; // inherited from VNFaceObservationAccepting + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare var VNDetectFaceCaptureQualityRequestRevision1: number; + declare class VNDetectFaceLandmarksRequest extends VNImageBasedRequest implements VNFaceObservationAccepting { static alloc(): VNDetectFaceLandmarksRequest; // inherited from NSObject static new(): VNDetectFaceLandmarksRequest; // inherited from NSObject + static revisionSupportsConstellation(requestRevision: number, constellation: VNRequestFaceLandmarksConstellation): boolean; + + constellation: VNRequestFaceLandmarksConstellation; + readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol @@ -158,6 +240,8 @@ declare var VNDetectFaceLandmarksRequestRevision1: number; declare var VNDetectFaceLandmarksRequestRevision2: number; +declare var VNDetectFaceLandmarksRequestRevision3: number; + declare class VNDetectFaceRectanglesRequest extends VNImageBasedRequest { static alloc(): VNDetectFaceRectanglesRequest; // inherited from NSObject @@ -178,6 +262,15 @@ declare class VNDetectHorizonRequest extends VNImageBasedRequest { declare var VNDetectHorizonRequestRevision1: number; +declare class VNDetectHumanRectanglesRequest extends VNImageBasedRequest { + + static alloc(): VNDetectHumanRectanglesRequest; // inherited from NSObject + + static new(): VNDetectHumanRectanglesRequest; // inherited from NSObject +} + +declare var VNDetectHumanRectanglesRequestRevision1: number; + declare class VNDetectRectanglesRequest extends VNImageBasedRequest { static alloc(): VNDetectRectanglesRequest; // inherited from NSObject @@ -223,6 +316,17 @@ declare class VNDetectedObjectObservation extends VNObservation { readonly boundingBox: CGRect; } +declare const enum VNElementType { + + Unknown = 0, + + Float = 1, + + Double = 2 +} + +declare function VNElementTypeSize(elementType: VNElementType): number; + declare const enum VNErrorCode { OK = 0, @@ -257,18 +361,32 @@ declare const enum VNErrorCode { InvalidModel = 15, - UnsupportedRevision = 16 + UnsupportedRevision = 16, + + DataUnavailable = 17 } declare var VNErrorDomain: string; -declare class VNFaceLandmarkRegion extends NSObject { +declare class VNFaceLandmarkRegion extends NSObject implements NSCopying, NSSecureCoding, VNRequestRevisionProviding { static alloc(): VNFaceLandmarkRegion; // inherited from NSObject static new(): VNFaceLandmarkRegion; // inherited from NSObject readonly pointCount: number; + + readonly requestRevision: number; // inherited from VNRequestRevisionProviding + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } declare class VNFaceLandmarkRegion2D extends VNFaceLandmarkRegion { @@ -279,16 +397,30 @@ declare class VNFaceLandmarkRegion2D extends VNFaceLandmarkRegion { readonly normalizedPoints: interop.Pointer | interop.Reference; + readonly precisionEstimatesPerPoint: NSArray; + pointsInImageOfSize(imageSize: CGSize): interop.Pointer | interop.Reference; } -declare class VNFaceLandmarks extends NSObject { +declare class VNFaceLandmarks extends NSObject implements NSCopying, NSSecureCoding, VNRequestRevisionProviding { static alloc(): VNFaceLandmarks; // inherited from NSObject static new(): VNFaceLandmarks; // inherited from NSObject readonly confidence: number; + + readonly requestRevision: number; // inherited from VNRequestRevisionProviding + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; } declare class VNFaceLandmarks2D extends VNFaceLandmarks { @@ -336,6 +468,8 @@ declare class VNFaceObservation extends VNDetectedObjectObservation { static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNFaceObservation; // inherited from VNDetectedObjectObservation + readonly faceCaptureQuality: number; + readonly landmarks: VNFaceLandmarks2D; readonly roll: number; @@ -352,6 +486,50 @@ declare var VNFaceObservationAccepting: { prototype: VNFaceObservationAccepting; }; +declare class VNFeaturePrintObservation extends VNObservation { + + static alloc(): VNFeaturePrintObservation; // inherited from NSObject + + static new(): VNFeaturePrintObservation; // inherited from NSObject + + readonly data: NSData; + + readonly elementCount: number; + + readonly elementType: VNElementType; + + computeDistanceToFeaturePrintObservationError(outDistance: interop.Pointer | interop.Reference, featurePrint: VNFeaturePrintObservation): boolean; +} + +declare class VNGenerateAttentionBasedSaliencyImageRequest extends VNImageBasedRequest { + + static alloc(): VNGenerateAttentionBasedSaliencyImageRequest; // inherited from NSObject + + static new(): VNGenerateAttentionBasedSaliencyImageRequest; // inherited from NSObject +} + +declare var VNGenerateAttentionBasedSaliencyImageRequestRevision1: number; + +declare class VNGenerateImageFeaturePrintRequest extends VNImageBasedRequest { + + static alloc(): VNGenerateImageFeaturePrintRequest; // inherited from NSObject + + static new(): VNGenerateImageFeaturePrintRequest; // inherited from NSObject + + imageCropAndScaleOption: VNImageCropAndScaleOption; +} + +declare var VNGenerateImageFeaturePrintRequestRevision1: number; + +declare class VNGenerateObjectnessBasedSaliencyImageRequest extends VNImageBasedRequest { + + static alloc(): VNGenerateObjectnessBasedSaliencyImageRequest; // inherited from NSObject + + static new(): VNGenerateObjectnessBasedSaliencyImageRequest; // inherited from NSObject +} + +declare var VNGenerateObjectnessBasedSaliencyImageRequestRevision1: number; + declare class VNHomographicImageRegistrationRequest extends VNImageRegistrationRequest { static alloc(): VNHomographicImageRegistrationRequest; // inherited from NSObject @@ -509,9 +687,9 @@ declare class VNObservation extends NSObject implements NSCopying, NSSecureCodin copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class VNPixelBufferObservation extends VNObservation { @@ -520,9 +698,81 @@ declare class VNPixelBufferObservation extends VNObservation { static new(): VNPixelBufferObservation; // inherited from NSObject + readonly featureName: string; + readonly pixelBuffer: any; } +declare class VNRecognizeAnimalsRequest extends VNImageBasedRequest { + + static alloc(): VNRecognizeAnimalsRequest; // inherited from NSObject + + static knownAnimalIdentifiersForRevisionError(requestRevision: number): NSArray; + + static new(): VNRecognizeAnimalsRequest; // inherited from NSObject +} + +declare var VNRecognizeAnimalsRequestRevision1: number; + +declare class VNRecognizeTextRequest extends VNImageBasedRequest implements VNRequestProgressProviding { + + static alloc(): VNRecognizeTextRequest; // inherited from NSObject + + static new(): VNRecognizeTextRequest; // inherited from NSObject + + static supportedRecognitionLanguagesForTextRecognitionLevelRevisionError(recognitionLevel: VNRequestTextRecognitionLevel, requestRevision: number): NSArray; + + customWords: NSArray; + + minimumTextHeight: number; + + recognitionLanguages: NSArray; + + recognitionLevel: VNRequestTextRecognitionLevel; + + usesLanguageCorrection: boolean; + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly indeterminate: boolean; // inherited from VNRequestProgressProviding + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + progressHandler: (p1: VNRequest, p2: number, p3: NSError) => void; // inherited from VNRequestProgressProviding + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare var VNRecognizeTextRequestRevision1: number; + declare class VNRecognizedObjectObservation extends VNDetectedObjectObservation { static alloc(): VNRecognizedObjectObservation; // inherited from NSObject @@ -536,6 +786,44 @@ declare class VNRecognizedObjectObservation extends VNDetectedObjectObservation readonly labels: NSArray; } +declare class VNRecognizedText extends NSObject implements NSCopying, NSSecureCoding { + + static alloc(): VNRecognizedText; // inherited from NSObject + + static new(): VNRecognizedText; // inherited from NSObject + + readonly confidence: number; + + readonly string: string; + + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding + + constructor(o: { coder: NSCoder; }); // inherited from NSCoding + + boundingBoxForRangeError(range: NSRange): VNRectangleObservation; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + encodeWithCoder(coder: NSCoder): void; + + initWithCoder(coder: NSCoder): this; +} + +declare class VNRecognizedTextObservation extends VNRectangleObservation { + + static alloc(): VNRecognizedTextObservation; // inherited from NSObject + + static new(): VNRecognizedTextObservation; // inherited from NSObject + + static observationWithBoundingBox(boundingBox: CGRect): VNRecognizedTextObservation; // inherited from VNDetectedObjectObservation + + static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNRecognizedTextObservation; // inherited from VNDetectedObjectObservation + + static rectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision: number, topLeft: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint, topRight: CGPoint): VNRecognizedTextObservation; // inherited from VNRectangleObservation + + topCandidates(maxCandidateCount: number): NSArray; +} + declare class VNRectangleObservation extends VNDetectedObjectObservation { static alloc(): VNRectangleObservation; // inherited from NSObject @@ -546,6 +834,8 @@ declare class VNRectangleObservation extends VNDetectedObjectObservation { static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNRectangleObservation; // inherited from VNDetectedObjectObservation + static rectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision: number, topLeft: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint, topRight: CGPoint): VNRectangleObservation; + readonly bottomLeft: CGPoint; readonly bottomRight: CGPoint; @@ -579,11 +869,33 @@ declare class VNRequest extends NSObject implements NSCopying { constructor(o: { completionHandler: (p1: VNRequest, p2: NSError) => void; }); + cancel(): void; + copyWithZone(zone: interop.Pointer | interop.Reference): any; initWithCompletionHandler(completionHandler: (p1: VNRequest, p2: NSError) => void): this; } +declare const enum VNRequestFaceLandmarksConstellation { + + ConstellationNotDefined = 0, + + Constellation65Points = 1, + + Constellation76Points = 2 +} + +interface VNRequestProgressProviding extends NSObjectProtocol { + + indeterminate: boolean; + + progressHandler: (p1: VNRequest, p2: number, p3: NSError) => void; +} +declare var VNRequestProgressProviding: { + + prototype: VNRequestProgressProviding; +}; + interface VNRequestRevisionProviding { requestRevision: number; @@ -595,6 +907,13 @@ declare var VNRequestRevisionProviding: { declare var VNRequestRevisionUnspecified: number; +declare const enum VNRequestTextRecognitionLevel { + + Accurate = 0, + + Fast = 1 +} + declare const enum VNRequestTrackingLevel { Accurate = 0, @@ -602,6 +921,15 @@ declare const enum VNRequestTrackingLevel { Fast = 1 } +declare class VNSaliencyImageObservation extends VNPixelBufferObservation { + + static alloc(): VNSaliencyImageObservation; // inherited from NSObject + + static new(): VNSaliencyImageObservation; // inherited from NSObject + + readonly salientObjects: NSArray; +} + declare class VNSequenceRequestHandler extends NSObject { static alloc(): VNSequenceRequestHandler; // inherited from NSObject @@ -726,6 +1054,8 @@ declare class VNTextObservation extends VNRectangleObservation { static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNTextObservation; // inherited from VNDetectedObjectObservation + static rectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision: number, topLeft: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint, topRight: CGPoint): VNTextObservation; // inherited from VNRectangleObservation + readonly characterBoxes: NSArray; } @@ -746,6 +1076,8 @@ declare class VNTrackObjectRequest extends VNTrackingRequest { declare var VNTrackObjectRequestRevision1: number; +declare var VNTrackObjectRequestRevision2: number; + declare class VNTrackRectangleRequest extends VNTrackingRequest { static alloc(): VNTrackRectangleRequest; // inherited from NSObject diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!VisionKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!VisionKit.d.ts new file mode 100644 index 0000000000..5cf66cdf50 --- /dev/null +++ b/tns-platform-declarations/ios/objc-x86_64/objc!VisionKit.d.ts @@ -0,0 +1,37 @@ + +declare class VNDocumentCameraScan extends NSObject { + + static alloc(): VNDocumentCameraScan; // inherited from NSObject + + static new(): VNDocumentCameraScan; // inherited from NSObject + + readonly pageCount: number; + + readonly title: string; + + imageOfPageAtIndex(index: number): UIImage; +} + +declare class VNDocumentCameraViewController extends UIViewController { + + static alloc(): VNDocumentCameraViewController; // inherited from NSObject + + static new(): VNDocumentCameraViewController; // inherited from NSObject + + delegate: VNDocumentCameraViewControllerDelegate; + + static readonly supported: boolean; +} + +interface VNDocumentCameraViewControllerDelegate extends NSObjectProtocol { + + documentCameraViewControllerDidCancel?(controller: VNDocumentCameraViewController): void; + + documentCameraViewControllerDidFailWithError?(controller: VNDocumentCameraViewController, error: NSError): void; + + documentCameraViewControllerDidFinishWithScan?(controller: VNDocumentCameraViewController, scan: VNDocumentCameraScan): void; +} +declare var VNDocumentCameraViewControllerDelegate: { + + prototype: VNDocumentCameraViewControllerDelegate; +}; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!WatchConnectivity.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!WatchConnectivity.d.ts index b40a81bcc3..a7c37b3fb1 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!WatchConnectivity.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!WatchConnectivity.d.ts @@ -33,7 +33,11 @@ declare const enum WCErrorCode { SessionInactive = 7016, - TransferTimedOut = 7017 + TransferTimedOut = 7017, + + CompanionAppNotInstalled = 7018, + + WatchOnlyApp = 7019 } declare var WCErrorDomain: string; @@ -177,7 +181,7 @@ declare class WCSessionUserInfoTransfer extends NSObject implements NSSecureCodi cancel(): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!WatchKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!WatchKit.d.ts deleted file mode 100644 index be82950bb1..0000000000 --- a/tns-platform-declarations/ios/objc-x86_64/objc!WatchKit.d.ts +++ /dev/null @@ -1,512 +0,0 @@ - -declare var UIUserNotificationActionResponseTypedTextKey: string; - -declare class WKAccessibilityImageRegion extends NSObject { - - static alloc(): WKAccessibilityImageRegion; // inherited from NSObject - - static new(): WKAccessibilityImageRegion; // inherited from NSObject - - frame: CGRect; - - label: string; -} - -interface WKImageAnimatable extends NSObjectProtocol { - - startAnimating(): void; - - startAnimatingWithImagesInRangeDurationRepeatCount(imageRange: NSRange, duration: number, repeatCount: number): void; - - stopAnimating(): void; -} -declare var WKImageAnimatable: { - - prototype: WKImageAnimatable; -}; - -declare class WKInterfaceButton extends WKInterfaceObject { - - static alloc(): WKInterfaceButton; // inherited from NSObject - - static new(): WKInterfaceButton; // inherited from NSObject - - setAttributedTitle(attributedTitle: NSAttributedString): void; - - setBackgroundColor(color: UIColor): void; - - setBackgroundImage(image: UIImage): void; - - setBackgroundImageData(imageData: NSData): void; - - setBackgroundImageNamed(imageName: string): void; - - setEnabled(enabled: boolean): void; - - setTitle(title: string): void; -} - -declare class WKInterfaceController extends NSObject { - - static alloc(): WKInterfaceController; // inherited from NSObject - - static new(): WKInterfaceController; // inherited from NSObject - - static openParentApplicationReply(userInfo: NSDictionary, reply: (p1: NSDictionary, p2: NSError) => void): boolean; - - static reloadRootControllersWithNamesContexts(names: NSArray | string[], contexts: NSArray | any[]): void; - - readonly contentFrame: CGRect; - - addMenuItemWithImageNamedTitleAction(imageName: string, title: string, action: string): void; - - addMenuItemWithImageTitleAction(image: UIImage, title: string, action: string): void; - - addMenuItemWithItemIconTitleAction(itemIcon: WKMenuItemIcon, title: string, action: string): void; - - awakeWithContext(context: any): void; - - becomeCurrentPage(): void; - - beginGlanceUpdates(): void; - - clearAllMenuItems(): void; - - contextForSegueWithIdentifier(segueIdentifier: string): any; - - contextForSegueWithIdentifierInTableRowIndex(segueIdentifier: string, table: WKInterfaceTable, rowIndex: number): any; - - contextsForSegueWithIdentifier(segueIdentifier: string): NSArray; - - contextsForSegueWithIdentifierInTableRowIndex(segueIdentifier: string, table: WKInterfaceTable, rowIndex: number): NSArray; - - didDeactivate(): void; - - dismissController(): void; - - dismissTextInputController(): void; - - endGlanceUpdates(): void; - - handleActionWithIdentifierForLocalNotification(identifier: string, localNotification: UILocalNotification): void; - - handleActionWithIdentifierForNotification(identifier: string, notification: UNNotification): void; - - handleActionWithIdentifierForRemoteNotification(identifier: string, remoteNotification: NSDictionary): void; - - handleUserActivity(userInfo: NSDictionary): void; - - invalidateUserActivity(): void; - - popController(): void; - - popToRootController(): void; - - presentControllerWithNameContext(name: string, context: any): void; - - presentControllerWithNamesContexts(names: NSArray | string[], contexts: NSArray | any[]): void; - - presentTextInputControllerWithSuggestionsAllowedInputModeCompletion(suggestions: NSArray | string[], inputMode: WKTextInputMode, completion: (p1: NSArray) => void): void; - - presentTextInputControllerWithSuggestionsForLanguageAllowedInputModeCompletion(suggestionsHandler: (p1: string) => NSArray, inputMode: WKTextInputMode, completion: (p1: NSArray) => void): void; - - pushControllerWithNameContext(name: string, context: any): void; - - setTitle(title: string): void; - - tableDidSelectRowAtIndex(table: WKInterfaceTable, rowIndex: number): void; - - updateUserActivityUserInfoWebpageURL(type: string, userInfo: NSDictionary, webpageURL: NSURL): void; - - willActivate(): void; -} - -declare class WKInterfaceDate extends WKInterfaceObject { - - static alloc(): WKInterfaceDate; // inherited from NSObject - - static new(): WKInterfaceDate; // inherited from NSObject - - setCalendar(calendar: NSCalendar): void; - - setTextColor(color: UIColor): void; - - setTimeZone(timeZone: NSTimeZone): void; -} - -declare class WKInterfaceDevice extends NSObject { - - static alloc(): WKInterfaceDevice; // inherited from NSObject - - static currentDevice(): WKInterfaceDevice; - - static new(): WKInterfaceDevice; // inherited from NSObject - - readonly cachedImages: NSDictionary; - - readonly localizedModel: string; - - readonly model: string; - - readonly name: string; - - readonly preferredContentSizeCategory: string; - - readonly screenBounds: CGRect; - - readonly screenScale: number; - - readonly systemName: string; - - readonly systemVersion: string; - - addCachedImageName(image: UIImage, name: string): boolean; - - addCachedImageWithDataName(imageData: NSData, name: string): boolean; - - removeAllCachedImages(): void; - - removeCachedImageWithName(name: string): void; -} - -declare class WKInterfaceGroup extends WKInterfaceObject implements WKImageAnimatable { - - static alloc(): WKInterfaceGroup; // inherited from NSObject - - static new(): WKInterfaceGroup; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly // inherited from NSObjectProtocol - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - setBackgroundColor(color: UIColor): void; - - setBackgroundImage(image: UIImage): void; - - setBackgroundImageData(imageData: NSData): void; - - setBackgroundImageNamed(imageName: string): void; - - setCornerRadius(cornerRadius: number): void; - - startAnimating(): void; - - startAnimatingWithImagesInRangeDurationRepeatCount(imageRange: NSRange, duration: number, repeatCount: number): void; - - stopAnimating(): void; -} - -declare class WKInterfaceImage extends WKInterfaceObject implements WKImageAnimatable { - - static alloc(): WKInterfaceImage; // inherited from NSObject - - static new(): WKInterfaceImage; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly // inherited from NSObjectProtocol - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - setImage(image: UIImage): void; - - setImageData(imageData: NSData): void; - - setImageNamed(imageName: string): void; - - setTintColor(tintColor: UIColor): void; - - startAnimating(): void; - - startAnimatingWithImagesInRangeDurationRepeatCount(imageRange: NSRange, duration: number, repeatCount: number): void; - - stopAnimating(): void; -} - -declare class WKInterfaceLabel extends WKInterfaceObject { - - static alloc(): WKInterfaceLabel; // inherited from NSObject - - static new(): WKInterfaceLabel; // inherited from NSObject - - setAttributedText(attributedText: NSAttributedString): void; - - setText(text: string): void; - - setTextColor(color: UIColor): void; -} - -declare class WKInterfaceMap extends WKInterfaceObject { - - static alloc(): WKInterfaceMap; // inherited from NSObject - - static new(): WKInterfaceMap; // inherited from NSObject - - addAnnotationWithImageCenterOffset(location: CLLocationCoordinate2D, image: UIImage, offset: CGPoint): void; - - addAnnotationWithImageNamedCenterOffset(location: CLLocationCoordinate2D, name: string, offset: CGPoint): void; - - addAnnotationWithPinColor(location: CLLocationCoordinate2D, pinColor: WKInterfaceMapPinColor): void; - - removeAllAnnotations(): void; - - setRegion(coordinateRegion: MKCoordinateRegion): void; - - setVisibleMapRect(mapRect: MKMapRect): void; -} - -declare const enum WKInterfaceMapPinColor { - - Red = 0, - - Green = 1, - - Purple = 2 -} - -declare class WKInterfaceObject extends NSObject { - - static alloc(): WKInterfaceObject; // inherited from NSObject - - static new(): WKInterfaceObject; // inherited from NSObject - - readonly interfaceProperty: string; - - setAccessibilityHint(accessibilityHint: string): void; - - setAccessibilityIdentifier(accessibilityIdentifier: string): void; - - setAccessibilityImageRegions(accessibilityImageRegions: NSArray | WKAccessibilityImageRegion[]): void; - - setAccessibilityLabel(accessibilityLabel: string): void; - - setAccessibilityTraits(accessibilityTraits: number): void; - - setAccessibilityValue(accessibilityValue: string): void; - - setAlpha(alpha: number): void; - - setHeight(height: number): void; - - setHidden(hidden: boolean): void; - - setIsAccessibilityElement(isAccessibilityElement: boolean): void; - - setWidth(width: number): void; -} - -declare class WKInterfaceSeparator extends WKInterfaceObject { - - static alloc(): WKInterfaceSeparator; // inherited from NSObject - - static new(): WKInterfaceSeparator; // inherited from NSObject - - setColor(color: UIColor): void; -} - -declare class WKInterfaceSlider extends WKInterfaceObject { - - static alloc(): WKInterfaceSlider; // inherited from NSObject - - static new(): WKInterfaceSlider; // inherited from NSObject - - setColor(color: UIColor): void; - - setEnabled(enabled: boolean): void; - - setNumberOfSteps(numberOfSteps: number): void; - - setValue(value: number): void; -} - -declare class WKInterfaceSwitch extends WKInterfaceObject { - - static alloc(): WKInterfaceSwitch; // inherited from NSObject - - static new(): WKInterfaceSwitch; // inherited from NSObject - - setAttributedTitle(attributedTitle: NSAttributedString): void; - - setColor(color: UIColor): void; - - setEnabled(enabled: boolean): void; - - setOn(on: boolean): void; - - setTitle(title: string): void; -} - -declare class WKInterfaceTable extends WKInterfaceObject { - - static alloc(): WKInterfaceTable; // inherited from NSObject - - static new(): WKInterfaceTable; // inherited from NSObject - - readonly numberOfRows: number; - - insertRowsAtIndexesWithRowType(rows: NSIndexSet, rowType: string): void; - - removeRowsAtIndexes(rows: NSIndexSet): void; - - rowControllerAtIndex(index: number): any; - - scrollToRowAtIndex(index: number): void; - - setNumberOfRowsWithRowType(numberOfRows: number, rowType: string): void; - - setRowTypes(rowTypes: NSArray | string[]): void; -} - -declare class WKInterfaceTimer extends WKInterfaceObject { - - static alloc(): WKInterfaceTimer; // inherited from NSObject - - static new(): WKInterfaceTimer; // inherited from NSObject - - setDate(date: Date): void; - - setTextColor(color: UIColor): void; - - start(): void; - - stop(): void; -} - -declare const enum WKMenuItemIcon { - - Accept = 0, - - Add = 1, - - Block = 2, - - Decline = 3, - - Info = 4, - - Maybe = 5, - - More = 6, - - Mute = 7, - - Pause = 8, - - Play = 9, - - Repeat = 10, - - Resume = 11, - - Share = 12, - - Shuffle = 13, - - Speaker = 14, - - Trash = 15 -} - -declare const enum WKTextInputMode { - - Plain = 0, - - AllowEmoji = 1, - - AllowAnimatedEmoji = 2 -} - -declare class WKUserNotificationInterfaceController extends WKInterfaceController { - - static alloc(): WKUserNotificationInterfaceController; // inherited from NSObject - - static new(): WKUserNotificationInterfaceController; // inherited from NSObject - - didReceiveLocalNotificationWithCompletion(localNotification: UILocalNotification, completionHandler: (p1: WKUserNotificationInterfaceType) => void): void; - - didReceiveNotificationWithCompletion(notification: UNNotification, completionHandler: (p1: WKUserNotificationInterfaceType) => void): void; - - didReceiveRemoteNotificationWithCompletion(remoteNotification: NSDictionary, completionHandler: (p1: WKUserNotificationInterfaceType) => void): void; -} - -declare const enum WKUserNotificationInterfaceType { - - Default = 0, - - Custom = 1 -} - -declare const enum WatchKitErrorCode { - - UnknownError = 1, - - ApplicationDelegateWatchKitRequestReplyNotCalledError = 2, - - InvalidArgumentError = 3, - - MediaPlayerError = 4, - - DownloadError = 5, - - RecordingFailedError = 6 -} - -declare var WatchKitErrorDomain: string; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!WebKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!WebKit.d.ts index 374743a55b..ec97fb9494 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!WebKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!WebKit.d.ts @@ -1,4 +1,6 @@ +declare var NSReadAccessURLDocumentOption: string; + declare const enum WKAudiovisualMediaTypes { None = 0, @@ -42,6 +44,15 @@ declare class WKBackForwardListItem extends NSObject { readonly title: string; } +declare const enum WKContentMode { + + Recommended = 0, + + Mobile = 1, + + Desktop = 2 +} + declare class WKContentRuleList extends NSObject { static alloc(): WKContentRuleList; // inherited from NSObject @@ -70,6 +81,15 @@ declare class WKContentRuleListStore extends NSObject { removeContentRuleListForIdentifierCompletionHandler(identifier: string, completionHandler: (p1: NSError) => void): void; } +declare class WKContextMenuElementInfo extends NSObject { + + static alloc(): WKContextMenuElementInfo; // inherited from NSObject + + static new(): WKContextMenuElementInfo; // inherited from NSObject + + readonly linkURL: NSURL; +} + declare const enum WKDataDetectorTypes { None = 0, @@ -111,7 +131,11 @@ declare const enum WKErrorCode { ContentRuleListStoreRemoveFailed = 8, - ContentRuleListStoreVersionMismatch = 9 + ContentRuleListStoreVersionMismatch = 9, + + AttributedStringContentFailedToLoad = 10, + + AttributedStringContentLoadTimedOut = 11 } declare var WKErrorDomain: string; @@ -164,6 +188,8 @@ declare class WKNavigation extends NSObject { static alloc(): WKNavigation; // inherited from NSObject static new(): WKNavigation; // inherited from NSObject + + readonly effectiveContentMode: WKContentMode; } declare class WKNavigationAction extends NSObject { @@ -192,6 +218,8 @@ interface WKNavigationDelegate extends NSObjectProtocol { webViewDecidePolicyForNavigationActionDecisionHandler?(webView: WKWebView, navigationAction: WKNavigationAction, decisionHandler: (p1: WKNavigationActionPolicy) => void): void; + webViewDecidePolicyForNavigationActionPreferencesDecisionHandler?(webView: WKWebView, navigationAction: WKNavigationAction, preferences: WKWebpagePreferences, decisionHandler: (p1: WKNavigationActionPolicy, p2: WKWebpagePreferences) => void): void; + webViewDecidePolicyForNavigationResponseDecisionHandler?(webView: WKWebView, navigationResponse: WKNavigationResponse, decisionHandler: (p1: WKNavigationResponsePolicy) => void): void; webViewDidCommitNavigation?(webView: WKWebView, navigation: WKNavigation): void; @@ -256,19 +284,25 @@ declare class WKPreferences extends NSObject implements NSSecureCoding { static new(): WKPreferences; // inherited from NSObject + fraudulentWebsiteWarningEnabled: boolean; + + javaEnabled: boolean; + javaScriptCanOpenWindowsAutomatically: boolean; javaScriptEnabled: boolean; minimumFontSize: number; + plugInsEnabled: boolean; + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } interface WKPreviewActionItem extends UIPreviewActionItem { @@ -309,9 +343,9 @@ declare class WKProcessPool extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; } declare class WKScriptMessage extends NSObject { @@ -364,6 +398,8 @@ declare class WKSnapshotConfiguration extends NSObject implements NSCopying { static new(): WKSnapshotConfiguration; // inherited from NSObject + afterScreenUpdates: boolean; + rect: CGRect; snapshotWidth: number; @@ -375,6 +411,14 @@ interface WKUIDelegate extends NSObjectProtocol { webViewCommitPreviewingViewController?(webView: WKWebView, previewingViewController: UIViewController): void; + webViewContextMenuConfigurationForElementCompletionHandler?(webView: WKWebView, elementInfo: WKContextMenuElementInfo, completionHandler: (p1: UIContextMenuConfiguration) => void): void; + + webViewContextMenuDidEndForElement?(webView: WKWebView, elementInfo: WKContextMenuElementInfo): void; + + webViewContextMenuForElementWillCommitWithAnimator?(webView: WKWebView, elementInfo: WKContextMenuElementInfo, animator: UIContextMenuInteractionCommitAnimating): void; + + webViewContextMenuWillPresentForElement?(webView: WKWebView, elementInfo: WKContextMenuElementInfo): void; + webViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures?(webView: WKWebView, configuration: WKWebViewConfiguration, navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures): WKWebView; webViewDidClose?(webView: WKWebView): void; @@ -440,9 +484,9 @@ declare class WKUserContentController extends NSObject implements NSSecureCoding addUserScript(userScript: WKUserScript): void; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; removeAllContentRuleLists(): void; @@ -578,6 +622,8 @@ declare class WKWebViewConfiguration extends NSObject implements NSCopying, NSSe dataDetectorTypes: WKDataDetectorTypes; + defaultWebpagePreferences: WKWebpagePreferences; + ignoresViewportScaleLimits: boolean; mediaPlaybackAllowsAirPlay: boolean; @@ -606,15 +652,24 @@ declare class WKWebViewConfiguration extends NSObject implements NSCopying, NSSe copyWithZone(zone: interop.Pointer | interop.Reference): any; - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; setURLSchemeHandlerForURLScheme(urlSchemeHandler: WKURLSchemeHandler, urlScheme: string): void; urlSchemeHandlerForURLScheme(urlScheme: string): WKURLSchemeHandler; } +declare class WKWebpagePreferences extends NSObject { + + static alloc(): WKWebpagePreferences; // inherited from NSObject + + static new(): WKWebpagePreferences; // inherited from NSObject + + preferredContentMode: WKContentMode; +} + declare class WKWebsiteDataRecord extends NSObject { static alloc(): WKWebsiteDataRecord; // inherited from NSObject @@ -646,11 +701,11 @@ declare class WKWebsiteDataStore extends NSObject implements NSSecureCoding { constructor(o: { coder: NSCoder; }); // inherited from NSCoding - encodeWithCoder(aCoder: NSCoder): void; + encodeWithCoder(coder: NSCoder): void; fetchDataRecordsOfTypesCompletionHandler(dataTypes: NSSet, completionHandler: (p1: NSArray) => void): void; - initWithCoder(aDecoder: NSCoder): this; + initWithCoder(coder: NSCoder): this; removeDataOfTypesForDataRecordsCompletionHandler(dataTypes: NSSet, dataRecords: NSArray | WKWebsiteDataRecord[], completionHandler: () => void): void; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!_Builtin_intrinsics.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!_Builtin_intrinsics.d.ts index 88030821ec..2f785ad607 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!_Builtin_intrinsics.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!_Builtin_intrinsics.d.ts @@ -64,7 +64,7 @@ interface __mm_storel_epi64_struct { } declare var __mm_storel_epi64_struct: interop.StructType<__mm_storel_epi64_struct>; -declare function _mm_clflush(p1: interop.Pointer | interop.Reference): void; +declare function _mm_clflush(__p: interop.Pointer | interop.Reference): void; declare function _mm_getcsr(): number; @@ -74,7 +74,7 @@ declare function _mm_mfence(): void; declare function _mm_pause(): void; -declare function _mm_setcsr(p1: number): void; +declare function _mm_setcsr(__i: number): void; declare function _mm_sfence(): void; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!dnssd.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!dnssd.d.ts index 0499d8311d..aed8691cb1 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!dnssd.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!dnssd.d.ts @@ -74,6 +74,8 @@ declare const kDNSServiceErr_BadState: number; declare const kDNSServiceErr_BadTime: number; +declare const kDNSServiceErr_DefunctConnection: number; + declare const kDNSServiceErr_DoubleNAT: number; declare const kDNSServiceErr_Firewall: number; @@ -120,6 +122,8 @@ declare const kDNSServiceErr_Unknown: number; declare const kDNSServiceErr_Unsupported: number; +declare const kDNSServiceFlagAnsweredFromCache: number; + declare const kDNSServiceFlagsAdd: number; declare const kDNSServiceFlagsAllowExpiredAnswers: number; @@ -158,7 +162,7 @@ declare const kDNSServiceFlagsMoreComing: number; declare const kDNSServiceFlagsNoAutoRename: number; -declare const kDNSServiceFlagsNonBrowsable: number; +declare const kDNSServiceFlagsPrivateFive: number; declare const kDNSServiceFlagsPrivateFour: number; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!libxml2.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!libxml2.d.ts index 7c0424baf5..272e20d6ce 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!libxml2.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!libxml2.d.ts @@ -1,10 +1,110 @@ -declare function __xmlParserInputBufferCreateFilename(URI: string, enc: xmlCharEncodingEnum): number; +declare function UTF8ToHtml(out: string, outlen: interop.Pointer | interop.Reference, _in: string, inlen: interop.Pointer | interop.Reference): number; + +declare function UTF8Toisolat1(out: string, outlen: interop.Pointer | interop.Reference, _in: string, inlen: interop.Pointer | interop.Reference): number; + +declare function __docbDefaultSAXHandler(): interop.Pointer | interop.Reference<_xmlSAXHandlerV1>; + +declare function __htmlDefaultSAXHandler(): interop.Pointer | interop.Reference<_xmlSAXHandlerV1>; + +declare function __oldXMLWDcompatibility(): interop.Pointer | interop.Reference; + +declare function __xmlBufferAllocScheme(): interop.Pointer | interop.Reference; + +declare function __xmlDefaultBufferSize(): interop.Pointer | interop.Reference; + +declare function __xmlDefaultSAXHandler(): interop.Pointer | interop.Reference<_xmlSAXHandlerV1>; + +declare function __xmlDefaultSAXLocator(): interop.Pointer | interop.Reference<_xmlSAXLocator>; + +declare function __xmlDeregisterNodeDefaultValue(): interop.Pointer | interop.Reference) => void>>; + +declare function __xmlDoValidityCheckingDefaultValue(): interop.Pointer | interop.Reference; + +declare function __xmlGenericError(): interop.Pointer | interop.Reference, p2: string) => void>>; + +declare function __xmlGenericErrorContext(): interop.Pointer | interop.Reference>; + +declare function __xmlGetWarningsDefaultValue(): interop.Pointer | interop.Reference; + +declare function __xmlIndentTreeOutput(): interop.Pointer | interop.Reference; + +declare function __xmlKeepBlanksDefaultValue(): interop.Pointer | interop.Reference; + +declare function __xmlLastError(): interop.Pointer | interop.Reference<_xmlError>; + +declare function __xmlLineNumbersDefaultValue(): interop.Pointer | interop.Reference; + +declare function __xmlLoadExtDtdDefaultValue(): interop.Pointer | interop.Reference; + +declare function __xmlOutputBufferCreateFilename(URI: string, encoder: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>, compression: number): interop.Pointer | interop.Reference<_xmlOutputBuffer>; + +declare function __xmlOutputBufferCreateFilenameValue(): interop.Pointer | interop.Reference, p3: number) => interop.Pointer | interop.Reference<_xmlOutputBuffer>>>; + +declare function __xmlParserDebugEntities(): interop.Pointer | interop.Reference; + +declare function __xmlParserInputBufferCreateFilename(URI: string, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserInputBuffer>; + +declare function __xmlParserInputBufferCreateFilenameValue(): interop.Pointer | interop.Reference interop.Pointer | interop.Reference<_xmlParserInputBuffer>>>; + +declare function __xmlParserVersion(): interop.Pointer | interop.Reference; + +declare function __xmlPedanticParserDefaultValue(): interop.Pointer | interop.Reference; + +declare function __xmlRegisterNodeDefaultValue(): interop.Pointer | interop.Reference) => void>>; + +declare function __xmlSaveNoEmptyTags(): interop.Pointer | interop.Reference; + +declare function __xmlStructuredError(): interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>>; + +declare function __xmlStructuredErrorContext(): interop.Pointer | interop.Reference>; + +declare function __xmlSubstituteEntitiesDefaultValue(): interop.Pointer | interop.Reference; + +declare function __xmlTreeIndentString(): interop.Pointer | interop.Reference; + +interface _htmlElemDesc { + name: string; + startTag: number; + endTag: number; + saveEndTag: number; + empty: number; + depr: number; + dtd: number; + isinline: number; + desc: string; + subelts: interop.Pointer | interop.Reference; + defaultsubelt: string; + attrs_opt: interop.Pointer | interop.Reference; + attrs_depr: interop.Pointer | interop.Reference; + attrs_req: interop.Pointer | interop.Reference; +} +declare var _htmlElemDesc: interop.StructType<_htmlElemDesc>; + +interface _htmlEntityDesc { + value: number; + name: string; + desc: string; +} +declare var _htmlEntityDesc: interop.StructType<_htmlEntityDesc>; + +interface _uconv_t { + uconv: interop.Pointer | interop.Reference; + utf8: interop.Pointer | interop.Reference; +} +declare var _uconv_t: interop.StructType<_uconv_t>; + +interface _xlinkHandler { + simple: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlNode>, p3: string, p4: string, p5: string) => void>; + extended: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlNode>, p3: number, p4: interop.Pointer | interop.Reference, p5: interop.Pointer | interop.Reference, p6: number, p7: interop.Pointer | interop.Reference, p8: interop.Pointer | interop.Reference, p9: interop.Pointer | interop.Reference, p10: interop.Pointer | interop.Reference, p11: number, p12: interop.Pointer | interop.Reference, p13: interop.Pointer | interop.Reference) => void>; + set: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlNode>, p3: number, p4: interop.Pointer | interop.Reference, p5: interop.Pointer | interop.Reference, p6: number, p7: interop.Pointer | interop.Reference, p8: interop.Pointer | interop.Reference) => void>; +} +declare var _xlinkHandler: interop.StructType<_xlinkHandler>; interface _xmlAttr { _private: interop.Pointer | interop.Reference; type: xmlElementType; - name: interop.Pointer | interop.Reference; + name: string; children: interop.Pointer | interop.Reference<_xmlNode>; last: interop.Pointer | interop.Reference<_xmlNode>; parent: interop.Pointer | interop.Reference<_xmlNode>; @@ -20,7 +120,7 @@ declare var _xmlAttr: interop.StructType<_xmlAttr>; interface _xmlAttribute { _private: interop.Pointer | interop.Reference; type: xmlElementType; - name: interop.Pointer | interop.Reference; + name: string; children: interop.Pointer | interop.Reference<_xmlNode>; last: interop.Pointer | interop.Reference<_xmlNode>; parent: interop.Pointer | interop.Reference<_xmlDtd>; @@ -30,19 +130,19 @@ interface _xmlAttribute { nexth: interop.Pointer | interop.Reference<_xmlAttribute>; atype: xmlAttributeType; def: xmlAttributeDefault; - defaultValue: interop.Pointer | interop.Reference; + defaultValue: string; tree: interop.Pointer | interop.Reference<_xmlEnumeration>; - prefix: interop.Pointer | interop.Reference; - elem: interop.Pointer | interop.Reference; + prefix: string; + elem: string; } declare var _xmlAttribute: interop.StructType<_xmlAttribute>; interface _xmlBuffer { - content: interop.Pointer | interop.Reference; + content: string; use: number; size: number; - alloc: number; - contentIO: interop.Pointer | interop.Reference; + alloc: xmlBufferAllocationScheme; + contentIO: string; } declare var _xmlBuffer: interop.StructType<_xmlBuffer>; @@ -70,6 +170,8 @@ interface _xmlCharEncodingHandler { name: string; input: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference, p3: string, p4: interop.Pointer | interop.Reference) => number>; output: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference, p3: string, p4: interop.Pointer | interop.Reference) => number>; + uconv_in: interop.Pointer | interop.Reference<_uconv_t>; + uconv_out: interop.Pointer | interop.Reference<_uconv_t>; } declare var _xmlCharEncodingHandler: interop.StructType<_xmlCharEncodingHandler>; @@ -77,7 +179,7 @@ interface _xmlDOMWrapCtxt { _private: interop.Pointer | interop.Reference; type: number; namespaceMap: interop.Pointer | interop.Reference; - getNsForNodeFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlDOMWrapCtxt>, p2: interop.Pointer | interop.Reference<_xmlNode>, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference) => interop.Pointer | interop.Reference<_xmlNs>>; + getNsForNodeFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlDOMWrapCtxt>, p2: interop.Pointer | interop.Reference<_xmlNode>, p3: string, p4: string) => interop.Pointer | interop.Reference<_xmlNs>>; } declare var _xmlDOMWrapCtxt: interop.StructType<_xmlDOMWrapCtxt>; @@ -96,11 +198,11 @@ interface _xmlDoc { intSubset: interop.Pointer | interop.Reference<_xmlDtd>; extSubset: interop.Pointer | interop.Reference<_xmlDtd>; oldNs: interop.Pointer | interop.Reference<_xmlNs>; - version: interop.Pointer | interop.Reference; - encoding: interop.Pointer | interop.Reference; + version: string; + encoding: string; ids: interop.Pointer | interop.Reference; refs: interop.Pointer | interop.Reference; - URL: interop.Pointer | interop.Reference; + URL: string; charset: number; dict: interop.Pointer | interop.Reference; psvi: interop.Pointer | interop.Reference; @@ -112,7 +214,7 @@ declare var _xmlDoc: interop.StructType<_xmlDoc>; interface _xmlDtd { _private: interop.Pointer | interop.Reference; type: xmlElementType; - name: interop.Pointer | interop.Reference; + name: string; children: interop.Pointer | interop.Reference<_xmlNode>; last: interop.Pointer | interop.Reference<_xmlNode>; parent: interop.Pointer | interop.Reference<_xmlDoc>; @@ -123,8 +225,8 @@ interface _xmlDtd { elements: interop.Pointer | interop.Reference; attributes: interop.Pointer | interop.Reference; entities: interop.Pointer | interop.Reference; - ExternalID: interop.Pointer | interop.Reference; - SystemID: interop.Pointer | interop.Reference; + ExternalID: string; + SystemID: string; pentities: interop.Pointer | interop.Reference; } declare var _xmlDtd: interop.StructType<_xmlDtd>; @@ -132,7 +234,7 @@ declare var _xmlDtd: interop.StructType<_xmlDtd>; interface _xmlElement { _private: interop.Pointer | interop.Reference; type: xmlElementType; - name: interop.Pointer | interop.Reference; + name: string; children: interop.Pointer | interop.Reference<_xmlNode>; last: interop.Pointer | interop.Reference<_xmlNode>; parent: interop.Pointer | interop.Reference<_xmlDtd>; @@ -142,7 +244,7 @@ interface _xmlElement { etype: xmlElementTypeVal; content: interop.Pointer | interop.Reference<_xmlElementContent>; attributes: interop.Pointer | interop.Reference<_xmlAttribute>; - prefix: interop.Pointer | interop.Reference; + prefix: string; contModel: interop.Pointer | interop.Reference; } declare var _xmlElement: interop.StructType<_xmlElement>; @@ -150,32 +252,32 @@ declare var _xmlElement: interop.StructType<_xmlElement>; interface _xmlElementContent { type: xmlElementContentType; ocur: xmlElementContentOccur; - name: interop.Pointer | interop.Reference; + name: string; c1: interop.Pointer | interop.Reference<_xmlElementContent>; c2: interop.Pointer | interop.Reference<_xmlElementContent>; parent: interop.Pointer | interop.Reference<_xmlElementContent>; - prefix: interop.Pointer | interop.Reference; + prefix: string; } declare var _xmlElementContent: interop.StructType<_xmlElementContent>; interface _xmlEntity { _private: interop.Pointer | interop.Reference; type: xmlElementType; - name: interop.Pointer | interop.Reference; + name: string; children: interop.Pointer | interop.Reference<_xmlNode>; last: interop.Pointer | interop.Reference<_xmlNode>; parent: interop.Pointer | interop.Reference<_xmlDtd>; next: interop.Pointer | interop.Reference<_xmlNode>; prev: interop.Pointer | interop.Reference<_xmlNode>; doc: interop.Pointer | interop.Reference<_xmlDoc>; - orig: interop.Pointer | interop.Reference; - content: interop.Pointer | interop.Reference; + orig: string; + content: string; length: number; etype: xmlEntityType; - ExternalID: interop.Pointer | interop.Reference; - SystemID: interop.Pointer | interop.Reference; + ExternalID: string; + SystemID: string; nexte: interop.Pointer | interop.Reference<_xmlEntity>; - URI: interop.Pointer | interop.Reference; + URI: string; owner: number; checked: number; } @@ -183,7 +285,7 @@ declare var _xmlEntity: interop.StructType<_xmlEntity>; interface _xmlEnumeration { next: interop.Pointer | interop.Reference<_xmlEnumeration>; - name: interop.Pointer | interop.Reference; + name: string; } declare var _xmlEnumeration: interop.StructType<_xmlEnumeration>; @@ -206,19 +308,19 @@ declare var _xmlError: interop.StructType<_xmlError>; interface _xmlGlobalState { xmlParserVersion: string; - xmlDefaultSAXLocator: number; - xmlDefaultSAXHandler: number; - docbDefaultSAXHandler: number; - htmlDefaultSAXHandler: number; - xmlFree: number; - xmlMalloc: number; - xmlMemStrdup: number; - xmlRealloc: number; - xmlGenericError: number; - xmlStructuredError: number; + xmlDefaultSAXLocator: _xmlSAXLocator; + xmlDefaultSAXHandler: _xmlSAXHandlerV1; + docbDefaultSAXHandler: _xmlSAXHandlerV1; + htmlDefaultSAXHandler: _xmlSAXHandlerV1; + xmlFree: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>; + xmlMalloc: interop.FunctionReference<(p1: number) => interop.Pointer | interop.Reference>; + xmlMemStrdup: interop.FunctionReference<(p1: string) => string>; + xmlRealloc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number) => interop.Pointer | interop.Reference>; + xmlGenericError: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + xmlStructuredError: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>; xmlGenericErrorContext: interop.Pointer | interop.Reference; oldXMLWDcompatibility: number; - xmlBufferAllocScheme: number; + xmlBufferAllocScheme: xmlBufferAllocationScheme; xmlDefaultBufferSize: number; xmlSubstituteEntitiesDefaultValue: number; xmlDoValidityCheckingDefaultValue: number; @@ -231,21 +333,21 @@ interface _xmlGlobalState { xmlSaveNoEmptyTags: number; xmlIndentTreeOutput: number; xmlTreeIndentString: string; - xmlRegisterNodeDefaultValue: interop.FunctionReference<(p1: number) => void>; - xmlDeregisterNodeDefaultValue: interop.FunctionReference<(p1: number) => void>; - xmlMallocAtomic: number; - xmlLastError: number; - xmlParserInputBufferCreateFilenameValue: number; - xmlOutputBufferCreateFilenameValue: number; + xmlRegisterNodeDefaultValue: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlNode>) => void>; + xmlDeregisterNodeDefaultValue: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlNode>) => void>; + xmlMallocAtomic: interop.FunctionReference<(p1: number) => interop.Pointer | interop.Reference>; + xmlLastError: _xmlError; + xmlParserInputBufferCreateFilenameValue: interop.FunctionReference<(p1: string, p2: xmlCharEncoding) => interop.Pointer | interop.Reference<_xmlParserInputBuffer>>; + xmlOutputBufferCreateFilenameValue: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>, p3: number) => interop.Pointer | interop.Reference<_xmlOutputBuffer>>; xmlStructuredErrorContext: interop.Pointer | interop.Reference; } declare var _xmlGlobalState: interop.StructType<_xmlGlobalState>; interface _xmlID { next: interop.Pointer | interop.Reference<_xmlID>; - value: interop.Pointer | interop.Reference; + value: string; attr: interop.Pointer | interop.Reference<_xmlAttr>; - name: interop.Pointer | interop.Reference; + name: string; lineno: number; doc: interop.Pointer | interop.Reference<_xmlDoc>; } @@ -261,7 +363,7 @@ declare var _xmlLocationSet: interop.StructType<_xmlLocationSet>; interface _xmlNode { _private: interop.Pointer | interop.Reference; type: xmlElementType; - name: interop.Pointer | interop.Reference; + name: string; children: interop.Pointer | interop.Reference<_xmlNode>; last: interop.Pointer | interop.Reference<_xmlNode>; parent: interop.Pointer | interop.Reference<_xmlNode>; @@ -269,7 +371,7 @@ interface _xmlNode { prev: interop.Pointer | interop.Reference<_xmlNode>; doc: interop.Pointer | interop.Reference<_xmlDoc>; ns: interop.Pointer | interop.Reference<_xmlNs>; - content: interop.Pointer | interop.Reference; + content: string; properties: interop.Pointer | interop.Reference<_xmlAttr>; nsDef: interop.Pointer | interop.Reference<_xmlNs>; psvi: interop.Pointer | interop.Reference; @@ -286,40 +388,52 @@ interface _xmlNodeSet { declare var _xmlNodeSet: interop.StructType<_xmlNodeSet>; interface _xmlNotation { - name: interop.Pointer | interop.Reference; - PublicID: interop.Pointer | interop.Reference; - SystemID: interop.Pointer | interop.Reference; + name: string; + PublicID: string; + SystemID: string; } declare var _xmlNotation: interop.StructType<_xmlNotation>; interface _xmlNs { next: interop.Pointer | interop.Reference<_xmlNs>; type: xmlElementType; - href: interop.Pointer | interop.Reference; - prefix: interop.Pointer | interop.Reference; + href: string; + prefix: string; _private: interop.Pointer | interop.Reference; context: interop.Pointer | interop.Reference<_xmlDoc>; } declare var _xmlNs: interop.StructType<_xmlNs>; +interface _xmlOutputBuffer { + context: interop.Pointer | interop.Reference; + writecallback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>; + closecallback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; + encoder: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>; + buffer: interop.Pointer | interop.Reference; + conv: interop.Pointer | interop.Reference; + written: number; + error: number; +} +declare var _xmlOutputBuffer: interop.StructType<_xmlOutputBuffer>; + interface _xmlParserCtxt { sax: interop.Pointer | interop.Reference<_xmlSAXHandler>; userData: interop.Pointer | interop.Reference; - myDoc: number; + myDoc: interop.Pointer | interop.Reference<_xmlDoc>; wellFormed: number; replaceEntities: number; - version: interop.Pointer | interop.Reference; - encoding: interop.Pointer | interop.Reference; + version: string; + encoding: string; standalone: number; html: number; - input: number; + input: interop.Pointer | interop.Reference<_xmlParserInput>; inputNr: number; inputMax: number; - inputTab: interop.Pointer | interop.Reference; - node: number; + inputTab: interop.Pointer | interop.Reference>; + node: interop.Pointer | interop.Reference<_xmlNode>; nodeNr: number; nodeMax: number; - nodeTab: interop.Pointer | interop.Reference; + nodeTab: interop.Pointer | interop.Reference>; record_info: number; node_seq: _xmlParserNodeInfoSeq; errNo: number; @@ -328,28 +442,28 @@ interface _xmlParserCtxt { external: number; valid: number; validate: number; - vctxt: number; + vctxt: _xmlValidCtxt; instate: xmlParserInputState; token: number; directory: string; - name: interop.Pointer | interop.Reference; + name: string; nameNr: number; nameMax: number; - nameTab: interop.Pointer | interop.Reference>; + nameTab: interop.Pointer | interop.Reference; nbChars: number; checkIndex: number; keepBlanks: number; disableSAX: number; inSubset: number; - intSubName: interop.Pointer | interop.Reference; - extSubURI: interop.Pointer | interop.Reference; - extSubSystem: interop.Pointer | interop.Reference; + intSubName: string; + extSubURI: string; + extSubSystem: string; space: interop.Pointer | interop.Reference; spaceNr: number; spaceMax: number; spaceTab: interop.Pointer | interop.Reference; depth: number; - entity: number; + entity: interop.Pointer | interop.Reference<_xmlParserInput>; charset: number; nodelen: number; nodemem: number; @@ -360,29 +474,29 @@ interface _xmlParserCtxt { catalogs: interop.Pointer | interop.Reference; recovery: number; progressive: number; - dict: number; - atts: interop.Pointer | interop.Reference>; + dict: interop.Pointer | interop.Reference; + atts: interop.Pointer | interop.Reference; maxatts: number; docdict: number; - str_xml: interop.Pointer | interop.Reference; - str_xmlns: interop.Pointer | interop.Reference; - str_xml_ns: interop.Pointer | interop.Reference; + str_xml: string; + str_xmlns: string; + str_xml_ns: string; sax2: number; nsNr: number; nsMax: number; - nsTab: interop.Pointer | interop.Reference>; + nsTab: interop.Pointer | interop.Reference; attallocs: interop.Pointer | interop.Reference; pushTab: interop.Pointer | interop.Reference>; - attsDefault: number; - attsSpecial: number; + attsDefault: interop.Pointer | interop.Reference; + attsSpecial: interop.Pointer | interop.Reference; nsWellFormed: number; options: number; dictNames: number; freeElemsNr: number; - freeElems: number; + freeElems: interop.Pointer | interop.Reference<_xmlNode>; freeAttrsNr: number; - freeAttrs: number; - lastError: number; + freeAttrs: interop.Pointer | interop.Reference<_xmlAttr>; + lastError: _xmlError; parseMode: xmlParserMode; nbentities: number; sizeentities: number; @@ -396,19 +510,19 @@ interface _xmlParserCtxt { declare var _xmlParserCtxt: interop.StructType<_xmlParserCtxt>; interface _xmlParserInput { - buf: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; + buf: interop.Pointer | interop.Reference<_xmlParserInputBuffer>; filename: string; directory: string; - base: interop.Pointer | interop.Reference; - cur: interop.Pointer | interop.Reference; - end: interop.Pointer | interop.Reference; + base: string; + cur: string; + end: string; length: number; line: number; col: number; consumed: number; - free: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>; - encoding: interop.Pointer | interop.Reference; - version: interop.Pointer | interop.Reference; + free: interop.FunctionReference<(p1: string) => void>; + encoding: string; + version: string; standalone: number; id: number; } @@ -416,8 +530,8 @@ declare var _xmlParserInput: interop.StructType<_xmlParserInput>; interface _xmlParserInputBuffer { context: interop.Pointer | interop.Reference; - readcallback: number; - closecallback: number; + readcallback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>; + closecallback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; encoder: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>; buffer: interop.Pointer | interop.Reference; raw: interop.Pointer | interop.Reference; @@ -445,89 +559,299 @@ declare var _xmlParserNodeInfoSeq: interop.StructType<_xmlParserNodeInfoSeq>; interface _xmlRef { next: interop.Pointer | interop.Reference<_xmlRef>; - value: interop.Pointer | interop.Reference; + value: string; attr: interop.Pointer | interop.Reference<_xmlAttr>; - name: interop.Pointer | interop.Reference; + name: string; lineno: number; } declare var _xmlRef: interop.StructType<_xmlRef>; interface _xmlSAXHandler { - internalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference) => void>; + internalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string) => void>; isStandalone: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; hasInternalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; hasExternalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; - resolveEntity: number; - getEntity: number; - entityDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: interop.Pointer | interop.Reference, p5: interop.Pointer | interop.Reference, p6: interop.Pointer | interop.Reference) => void>; - notationDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference) => void>; - attributeDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: number, p5: number, p6: interop.Pointer | interop.Reference, p7: number) => void>; - elementDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: number) => void>; - unparsedEntityDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference, p5: interop.Pointer | interop.Reference) => void>; - setDocumentLocator: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number) => void>; + resolveEntity: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string) => interop.Pointer | interop.Reference<_xmlParserInput>>; + getEntity: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => interop.Pointer | interop.Reference<_xmlEntity>>; + entityDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number, p4: string, p5: string, p6: string) => void>; + notationDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string) => void>; + attributeDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: number, p5: number, p6: string, p7: interop.Pointer | interop.Reference<_xmlEnumeration>) => void>; + elementDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number, p4: interop.Pointer | interop.Reference<_xmlElementContent>) => void>; + unparsedEntityDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string, p5: string) => void>; + setDocumentLocator: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlSAXLocator>) => void>; startDocument: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>; endDocument: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>; - startElement: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference>) => void>; - endElement: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void>; - reference: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void>; - characters: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number) => void>; - ignorableWhitespace: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number) => void>; - processingInstruction: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference) => void>; - comment: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void>; - warning: number; - error: number; - fatalError: number; - getParameterEntity: number; - cdataBlock: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number) => void>; - externalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference) => void>; + startElement: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: interop.Pointer | interop.Reference) => void>; + endElement: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + reference: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + characters: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => void>; + ignorableWhitespace: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => void>; + processingInstruction: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string) => void>; + comment: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + warning: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + error: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + fatalError: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + getParameterEntity: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => interop.Pointer | interop.Reference<_xmlEntity>>; + cdataBlock: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => void>; + externalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string) => void>; initialized: number; _private: interop.Pointer | interop.Reference; - startElementNs: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference, p5: number, p6: interop.Pointer | interop.Reference>, p7: number, p8: number, p9: interop.Pointer | interop.Reference>) => void>; - endElementNs: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference) => void>; - serror: number; + startElementNs: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string, p5: number, p6: interop.Pointer | interop.Reference, p7: number, p8: number, p9: interop.Pointer | interop.Reference) => void>; + endElementNs: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string) => void>; + serror: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>; } declare var _xmlSAXHandler: interop.StructType<_xmlSAXHandler>; interface _xmlSAXHandlerV1 { - internalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference) => void>; + internalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string) => void>; isStandalone: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; hasInternalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; hasExternalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; - resolveEntity: number; - getEntity: number; - entityDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: interop.Pointer | interop.Reference, p5: interop.Pointer | interop.Reference, p6: interop.Pointer | interop.Reference) => void>; - notationDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference) => void>; - attributeDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: number, p5: number, p6: interop.Pointer | interop.Reference, p7: number) => void>; - elementDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: number) => void>; - unparsedEntityDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference, p5: interop.Pointer | interop.Reference) => void>; - setDocumentLocator: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number) => void>; + resolveEntity: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string) => interop.Pointer | interop.Reference<_xmlParserInput>>; + getEntity: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => interop.Pointer | interop.Reference<_xmlEntity>>; + entityDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number, p4: string, p5: string, p6: string) => void>; + notationDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string) => void>; + attributeDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: number, p5: number, p6: string, p7: interop.Pointer | interop.Reference<_xmlEnumeration>) => void>; + elementDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number, p4: interop.Pointer | interop.Reference<_xmlElementContent>) => void>; + unparsedEntityDecl: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string, p5: string) => void>; + setDocumentLocator: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlSAXLocator>) => void>; startDocument: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>; endDocument: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>; - startElement: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference>) => void>; - endElement: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void>; - reference: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void>; - characters: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number) => void>; - ignorableWhitespace: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number) => void>; - processingInstruction: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference) => void>; - comment: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => void>; - warning: number; - error: number; - fatalError: number; - getParameterEntity: number; - cdataBlock: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number) => void>; - externalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference) => void>; + startElement: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: interop.Pointer | interop.Reference) => void>; + endElement: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + reference: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + characters: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => void>; + ignorableWhitespace: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => void>; + processingInstruction: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string) => void>; + comment: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + warning: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + error: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + fatalError: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + getParameterEntity: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => interop.Pointer | interop.Reference<_xmlEntity>>; + cdataBlock: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => void>; + externalSubset: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string) => void>; initialized: number; } declare var _xmlSAXHandlerV1: interop.StructType<_xmlSAXHandlerV1>; interface _xmlSAXLocator { - getPublicId: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => interop.Pointer | interop.Reference>; - getSystemId: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => interop.Pointer | interop.Reference>; + getPublicId: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => string>; + getSystemId: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => string>; getLineNumber: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; getColumnNumber: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; } declare var _xmlSAXLocator: interop.StructType<_xmlSAXLocator>; +interface _xmlSchema { + name: string; + targetNamespace: string; + version: string; + id: string; + doc: interop.Pointer | interop.Reference<_xmlDoc>; + annot: interop.Pointer | interop.Reference<_xmlSchemaAnnot>; + flags: number; + typeDecl: interop.Pointer | interop.Reference; + attrDecl: interop.Pointer | interop.Reference; + attrgrpDecl: interop.Pointer | interop.Reference; + elemDecl: interop.Pointer | interop.Reference; + notaDecl: interop.Pointer | interop.Reference; + schemasImports: interop.Pointer | interop.Reference; + _private: interop.Pointer | interop.Reference; + groupDecl: interop.Pointer | interop.Reference; + dict: interop.Pointer | interop.Reference; + includes: interop.Pointer | interop.Reference; + preserve: number; + counter: number; + idcDef: interop.Pointer | interop.Reference; + volatiles: interop.Pointer | interop.Reference; +} +declare var _xmlSchema: interop.StructType<_xmlSchema>; + +interface _xmlSchemaAnnot { + next: interop.Pointer | interop.Reference<_xmlSchemaAnnot>; + content: interop.Pointer | interop.Reference<_xmlNode>; +} +declare var _xmlSchemaAnnot: interop.StructType<_xmlSchemaAnnot>; + +interface _xmlSchemaAttribute { + type: xmlSchemaTypeType; + next: interop.Pointer | interop.Reference<_xmlSchemaAttribute>; + name: string; + id: string; + ref: string; + refNs: string; + typeName: string; + typeNs: string; + annot: interop.Pointer | interop.Reference<_xmlSchemaAnnot>; + base: interop.Pointer | interop.Reference<_xmlSchemaType>; + occurs: number; + defValue: string; + subtypes: interop.Pointer | interop.Reference<_xmlSchemaType>; + node: interop.Pointer | interop.Reference<_xmlNode>; + targetNamespace: string; + flags: number; + refPrefix: string; + defVal: interop.Pointer | interop.Reference; + refDecl: interop.Pointer | interop.Reference<_xmlSchemaAttribute>; +} +declare var _xmlSchemaAttribute: interop.StructType<_xmlSchemaAttribute>; + +interface _xmlSchemaAttributeGroup { + type: xmlSchemaTypeType; + next: interop.Pointer | interop.Reference<_xmlSchemaAttribute>; + name: string; + id: string; + ref: string; + refNs: string; + annot: interop.Pointer | interop.Reference<_xmlSchemaAnnot>; + attributes: interop.Pointer | interop.Reference<_xmlSchemaAttribute>; + node: interop.Pointer | interop.Reference<_xmlNode>; + flags: number; + attributeWildcard: interop.Pointer | interop.Reference<_xmlSchemaWildcard>; + refPrefix: string; + refItem: interop.Pointer | interop.Reference<_xmlSchemaAttributeGroup>; + targetNamespace: string; + attrUses: interop.Pointer | interop.Reference; +} +declare var _xmlSchemaAttributeGroup: interop.StructType<_xmlSchemaAttributeGroup>; + +interface _xmlSchemaAttributeLink { + next: interop.Pointer | interop.Reference<_xmlSchemaAttributeLink>; + attr: interop.Pointer | interop.Reference<_xmlSchemaAttribute>; +} +declare var _xmlSchemaAttributeLink: interop.StructType<_xmlSchemaAttributeLink>; + +interface _xmlSchemaElement { + type: xmlSchemaTypeType; + next: interop.Pointer | interop.Reference<_xmlSchemaType>; + name: string; + id: string; + ref: string; + refNs: string; + annot: interop.Pointer | interop.Reference<_xmlSchemaAnnot>; + subtypes: interop.Pointer | interop.Reference<_xmlSchemaType>; + attributes: interop.Pointer | interop.Reference<_xmlSchemaAttribute>; + node: interop.Pointer | interop.Reference<_xmlNode>; + minOccurs: number; + maxOccurs: number; + flags: number; + targetNamespace: string; + namedType: string; + namedTypeNs: string; + substGroup: string; + substGroupNs: string; + scope: string; + value: string; + refDecl: interop.Pointer | interop.Reference<_xmlSchemaElement>; + contModel: interop.Pointer | interop.Reference; + contentType: xmlSchemaContentType; + refPrefix: string; + defVal: interop.Pointer | interop.Reference; + idcs: interop.Pointer | interop.Reference; +} +declare var _xmlSchemaElement: interop.StructType<_xmlSchemaElement>; + +interface _xmlSchemaFacet { + type: xmlSchemaTypeType; + next: interop.Pointer | interop.Reference<_xmlSchemaFacet>; + value: string; + id: string; + annot: interop.Pointer | interop.Reference<_xmlSchemaAnnot>; + node: interop.Pointer | interop.Reference<_xmlNode>; + fixed: number; + whitespace: number; + val: interop.Pointer | interop.Reference; + regexp: interop.Pointer | interop.Reference; +} +declare var _xmlSchemaFacet: interop.StructType<_xmlSchemaFacet>; + +interface _xmlSchemaFacetLink { + next: interop.Pointer | interop.Reference<_xmlSchemaFacetLink>; + facet: interop.Pointer | interop.Reference<_xmlSchemaFacet>; +} +declare var _xmlSchemaFacetLink: interop.StructType<_xmlSchemaFacetLink>; + +interface _xmlSchemaNotation { + type: xmlSchemaTypeType; + name: string; + annot: interop.Pointer | interop.Reference<_xmlSchemaAnnot>; + identifier: string; + targetNamespace: string; +} +declare var _xmlSchemaNotation: interop.StructType<_xmlSchemaNotation>; + +interface _xmlSchemaType { + type: xmlSchemaTypeType; + next: interop.Pointer | interop.Reference<_xmlSchemaType>; + name: string; + id: string; + ref: string; + refNs: string; + annot: interop.Pointer | interop.Reference<_xmlSchemaAnnot>; + subtypes: interop.Pointer | interop.Reference<_xmlSchemaType>; + attributes: interop.Pointer | interop.Reference<_xmlSchemaAttribute>; + node: interop.Pointer | interop.Reference<_xmlNode>; + minOccurs: number; + maxOccurs: number; + flags: number; + contentType: xmlSchemaContentType; + base: string; + baseNs: string; + baseType: interop.Pointer | interop.Reference<_xmlSchemaType>; + facets: interop.Pointer | interop.Reference<_xmlSchemaFacet>; + redef: interop.Pointer | interop.Reference<_xmlSchemaType>; + recurse: number; + attributeUses: interop.Pointer | interop.Reference>; + attributeWildcard: interop.Pointer | interop.Reference<_xmlSchemaWildcard>; + builtInType: number; + memberTypes: interop.Pointer | interop.Reference<_xmlSchemaTypeLink>; + facetSet: interop.Pointer | interop.Reference<_xmlSchemaFacetLink>; + refPrefix: string; + contentTypeDef: interop.Pointer | interop.Reference<_xmlSchemaType>; + contModel: interop.Pointer | interop.Reference; + targetNamespace: string; + attrUses: interop.Pointer | interop.Reference; +} +declare var _xmlSchemaType: interop.StructType<_xmlSchemaType>; + +interface _xmlSchemaTypeLink { + next: interop.Pointer | interop.Reference<_xmlSchemaTypeLink>; + type: interop.Pointer | interop.Reference<_xmlSchemaType>; +} +declare var _xmlSchemaTypeLink: interop.StructType<_xmlSchemaTypeLink>; + +interface _xmlSchemaWildcard { + type: xmlSchemaTypeType; + id: string; + annot: interop.Pointer | interop.Reference<_xmlSchemaAnnot>; + node: interop.Pointer | interop.Reference<_xmlNode>; + minOccurs: number; + maxOccurs: number; + processContents: number; + any: number; + nsSet: interop.Pointer | interop.Reference<_xmlSchemaWildcardNs>; + negNsSet: interop.Pointer | interop.Reference<_xmlSchemaWildcardNs>; + flags: number; +} +declare var _xmlSchemaWildcard: interop.StructType<_xmlSchemaWildcard>; + +interface _xmlSchemaWildcardNs { + next: interop.Pointer | interop.Reference<_xmlSchemaWildcardNs>; + value: string; +} +declare var _xmlSchemaWildcardNs: interop.StructType<_xmlSchemaWildcardNs>; + +interface _xmlShellCtxt { + filename: string; + doc: interop.Pointer | interop.Reference<_xmlDoc>; + node: interop.Pointer | interop.Reference<_xmlNode>; + pctxt: interop.Pointer | interop.Reference<_xmlXPathContext>; + loaded: number; + output: interop.Pointer | interop.Reference; + input: interop.FunctionReference<(p1: string) => string>; +} +declare var _xmlShellCtxt: interop.StructType<_xmlShellCtxt>; + interface _xmlURI { scheme: string; opaque: string; @@ -545,8 +869,8 @@ declare var _xmlURI: interop.StructType<_xmlURI>; interface _xmlValidCtxt { userData: interop.Pointer | interop.Reference; - error: number; - warning: number; + error: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; + warning: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>; node: interop.Pointer | interop.Reference<_xmlNode>; nodeNr: number; nodeMax: number; @@ -564,7 +888,7 @@ interface _xmlValidCtxt { declare var _xmlValidCtxt: interop.StructType<_xmlValidCtxt>; interface _xmlXPathAxis { - name: interop.Pointer | interop.Reference; + name: string; func: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: interop.Pointer | interop.Reference<_xmlXPathObject>) => interop.Pointer | interop.Reference<_xmlXPathObject>>; } declare var _xmlXPathAxis: interop.StructType<_xmlXPathAxis>; @@ -593,18 +917,18 @@ interface _xmlXPathContext { here: interop.Pointer | interop.Reference<_xmlNode>; origin: interop.Pointer | interop.Reference<_xmlNode>; nsHash: interop.Pointer | interop.Reference; - varLookupFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference) => interop.Pointer | interop.Reference<_xmlXPathObject>>; + varLookupFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string) => interop.Pointer | interop.Reference<_xmlXPathObject>>; varLookupData: interop.Pointer | interop.Reference; extra: interop.Pointer | interop.Reference; - function: interop.Pointer | interop.Reference; - functionURI: interop.Pointer | interop.Reference; - funcLookupFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference) => interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>>; + function: string; + functionURI: string; + funcLookupFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string) => interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>>; funcLookupData: interop.Pointer | interop.Reference; tmpNsList: interop.Pointer | interop.Reference>; tmpNsNr: number; userData: interop.Pointer | interop.Reference; - error: number; - lastError: number; + error: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>; + lastError: _xmlError; debugNode: interop.Pointer | interop.Reference<_xmlNode>; dict: interop.Pointer | interop.Reference; flags: number; @@ -613,7 +937,7 @@ interface _xmlXPathContext { declare var _xmlXPathContext: interop.StructType<_xmlXPathContext>; interface _xmlXPathFunct { - name: interop.Pointer | interop.Reference; + name: string; func: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>; } declare var _xmlXPathFunct: interop.StructType<_xmlXPathFunct>; @@ -623,7 +947,7 @@ interface _xmlXPathObject { nodesetval: interop.Pointer | interop.Reference<_xmlNodeSet>; boolval: number; floatval: number; - stringval: interop.Pointer | interop.Reference; + stringval: string; user: interop.Pointer | interop.Reference; index: number; user2: interop.Pointer | interop.Reference; @@ -632,8 +956,8 @@ interface _xmlXPathObject { declare var _xmlXPathObject: interop.StructType<_xmlXPathObject>; interface _xmlXPathParserContext { - cur: interop.Pointer | interop.Reference; - base: interop.Pointer | interop.Reference; + cur: string; + base: string; error: number; context: interop.Pointer | interop.Reference<_xmlXPathContext>; value: interop.Pointer | interop.Reference<_xmlXPathObject>; @@ -648,2698 +972,5392 @@ interface _xmlXPathParserContext { declare var _xmlXPathParserContext: interop.StructType<_xmlXPathParserContext>; interface _xmlXPathType { - name: interop.Pointer | interop.Reference; + name: string; func: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathObject>, p2: number) => number>; } declare var _xmlXPathType: interop.StructType<_xmlXPathType>; interface _xmlXPathVariable { - name: interop.Pointer | interop.Reference; + name: string; value: interop.Pointer | interop.Reference<_xmlXPathObject>; } declare var _xmlXPathVariable: interop.StructType<_xmlXPathVariable>; -declare function inputPop(ctxt: number): number; - -declare function nodePop(ctxt: number): number; +declare function attribute(ctx: interop.Pointer | interop.Reference, fullname: string, value: string): void; -declare var size_t: number; +declare function attributeDecl(ctx: interop.Pointer | interop.Reference, elem: string, fullname: string, type: number, def: number, defaultValue: string, tree: interop.Pointer | interop.Reference<_xmlEnumeration>): void; -declare var size_tVar: number; +declare function cdataBlock(ctx: interop.Pointer | interop.Reference, value: string, len: number): void; -declare var size_tVar2: number; +declare function characters(ctx: interop.Pointer | interop.Reference, ch: string, len: number): void; -declare var size_tVar3: number; - -declare function valuePop(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; - -declare function valuePush(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, value: interop.Pointer | interop.Reference<_xmlXPathObject>): number; +declare function checkNamespace(ctx: interop.Pointer | interop.Reference, nameSpace: string): number; -declare function xmlAddAttributeDecl(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, dtd: interop.Pointer | interop.Reference<_xmlDtd>, elem: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, ns: interop.Pointer | interop.Reference, type: xmlAttributeType, def: xmlAttributeDefault, defaultValue: interop.Pointer | interop.Reference, tree: interop.Pointer | interop.Reference<_xmlEnumeration>): number; +declare function comment(ctx: interop.Pointer | interop.Reference, value: string): void; -declare function xmlAddDocEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: interop.Pointer | interop.Reference, type: number, ExternalID: interop.Pointer | interop.Reference, SystemID: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function docbDefaultSAXHandlerInit(): void; -declare function xmlAddDtdEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: interop.Pointer | interop.Reference, type: number, ExternalID: interop.Pointer | interop.Reference, SystemID: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function elementDecl(ctx: interop.Pointer | interop.Reference, name: string, type: number, content: interop.Pointer | interop.Reference<_xmlElementContent>): void; -declare function xmlAddElementDecl(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, dtd: interop.Pointer | interop.Reference<_xmlDtd>, name: interop.Pointer | interop.Reference, type: xmlElementTypeVal, content: interop.Pointer | interop.Reference<_xmlElementContent>): number; +declare var emptyExp: interop.Pointer | interop.Reference; -declare function xmlAddID(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, value: interop.Pointer | interop.Reference, attr: interop.Pointer | interop.Reference<_xmlAttr>): number; +declare function endDocument(ctx: interop.Pointer | interop.Reference): void; -declare function xmlAddNotationDecl(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, dtd: interop.Pointer | interop.Reference<_xmlDtd>, name: interop.Pointer | interop.Reference, PublicID: interop.Pointer | interop.Reference, SystemID: interop.Pointer | interop.Reference): number; +declare function endElement(ctx: interop.Pointer | interop.Reference, name: string): void; -declare function xmlAddRef(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, value: interop.Pointer | interop.Reference, attr: interop.Pointer | interop.Reference<_xmlAttr>): number; +declare function entityDecl(ctx: interop.Pointer | interop.Reference, name: string, type: number, publicId: string, systemId: string, content: string): void; -declare function xmlAllocParserInputBuffer(enc: xmlCharEncodingEnum): number; +declare function externalSubset(ctx: interop.Pointer | interop.Reference, name: string, ExternalID: string, SystemID: string): void; -declare var xmlAttrPtr: number; +declare var forbiddenExp: interop.Pointer | interop.Reference; -declare var xmlAttrPtrVar: number; +declare function getColumnNumber(ctx: interop.Pointer | interop.Reference): number; -declare var xmlAttrPtrVar2: number; +declare function getEntity(ctx: interop.Pointer | interop.Reference, name: string): interop.Pointer | interop.Reference<_xmlEntity>; -declare var xmlAttrPtrVar3: number; +declare function getLineNumber(ctx: interop.Pointer | interop.Reference): number; -declare var xmlAttrPtrVar4: number; +declare function getNamespace(ctx: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlNs>; -declare var xmlAttrPtrVar5: number; +declare function getParameterEntity(ctx: interop.Pointer | interop.Reference, name: string): interop.Pointer | interop.Reference<_xmlEntity>; -declare var xmlAttrPtrVar6: number; +declare function getPublicId(ctx: interop.Pointer | interop.Reference): string; -declare var xmlAttrPtrVar7: number; +declare function getSystemId(ctx: interop.Pointer | interop.Reference): string; -declare const enum xmlAttributeDefault { +declare function globalNamespace(ctx: interop.Pointer | interop.Reference, href: string, prefix: string): void; - XML_ATTRIBUTE_NONE = 1, +declare function hasExternalSubset(ctx: interop.Pointer | interop.Reference): number; - XML_ATTRIBUTE_REQUIRED = 2, +declare function hasInternalSubset(ctx: interop.Pointer | interop.Reference): number; - XML_ATTRIBUTE_IMPLIED = 3, +declare function htmlAttrAllowed(p1: interop.Pointer | interop.Reference<_htmlElemDesc>, p2: string, p3: number): htmlStatus; - XML_ATTRIBUTE_FIXED = 4 -} +declare function htmlAutoCloseTag(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string, elem: interop.Pointer | interop.Reference<_xmlNode>): number; -declare var xmlAttributePtr: number; +declare function htmlCreateFileParserCtxt(filename: string, encoding: string): interop.Pointer | interop.Reference<_xmlParserCtxt>; -declare var xmlAttributePtrVar: number; +declare function htmlCreateMemoryParserCtxt(buffer: string, size: number): interop.Pointer | interop.Reference<_xmlParserCtxt>; -declare var xmlAttributePtrVar2: number; +declare function htmlCreatePushParserCtxt(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, user_data: interop.Pointer | interop.Reference, chunk: string, size: number, filename: string, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserCtxt>; -declare const enum xmlAttributeType { +declare function htmlCtxtReadDoc(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, cur: string, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; - XML_ATTRIBUTE_CDATA = 1, +declare function htmlCtxtReadFd(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, fd: number, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; - XML_ATTRIBUTE_ID = 2, +declare function htmlCtxtReadFile(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, filename: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; - XML_ATTRIBUTE_IDREF = 3, +declare function htmlCtxtReadIO(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, ioread: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, ioclose: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, ioctx: interop.Pointer | interop.Reference, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; - XML_ATTRIBUTE_IDREFS = 4, +declare function htmlCtxtReadMemory(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, buffer: string, size: number, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; - XML_ATTRIBUTE_ENTITY = 5, +declare function htmlCtxtReset(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; - XML_ATTRIBUTE_ENTITIES = 6, +declare function htmlCtxtUseOptions(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, options: number): number; - XML_ATTRIBUTE_NMTOKEN = 7, +declare function htmlDefaultSAXHandlerInit(): void; - XML_ATTRIBUTE_NMTOKENS = 8, +declare function htmlDocContentDumpFormatOutput(buf: interop.Pointer | interop.Reference<_xmlOutputBuffer>, cur: interop.Pointer | interop.Reference<_xmlDoc>, encoding: string, format: number): void; - XML_ATTRIBUTE_ENUMERATION = 9, +declare function htmlDocContentDumpOutput(buf: interop.Pointer | interop.Reference<_xmlOutputBuffer>, cur: interop.Pointer | interop.Reference<_xmlDoc>, encoding: string): void; - XML_ATTRIBUTE_NOTATION = 10 -} +declare function htmlDocDump(f: interop.Pointer | interop.Reference, cur: interop.Pointer | interop.Reference<_xmlDoc>): number; -declare var xmlBufferAllocationScheme: number; +declare function htmlDocDumpMemory(cur: interop.Pointer | interop.Reference<_xmlDoc>, mem: interop.Pointer | interop.Reference, size: interop.Pointer | interop.Reference): void; -declare const enum xmlBufferAllocationSchemeEnum { +declare function htmlDocDumpMemoryFormat(cur: interop.Pointer | interop.Reference<_xmlDoc>, mem: interop.Pointer | interop.Reference, size: interop.Pointer | interop.Reference, format: number): void; - XML_BUFFER_ALLOC_DOUBLEIT = 0, +declare function htmlElementAllowedHere(p1: interop.Pointer | interop.Reference<_htmlElemDesc>, p2: string): number; - XML_BUFFER_ALLOC_EXACT = 1, +declare function htmlElementStatusHere(p1: interop.Pointer | interop.Reference<_htmlElemDesc>, p2: interop.Pointer | interop.Reference<_htmlElemDesc>): htmlStatus; - XML_BUFFER_ALLOC_IMMUTABLE = 2, +declare function htmlEncodeEntities(out: string, outlen: interop.Pointer | interop.Reference, _in: string, inlen: interop.Pointer | interop.Reference, quoteChar: number): number; - XML_BUFFER_ALLOC_IO = 3, +declare function htmlEntityLookup(name: string): interop.Pointer | interop.Reference<_htmlEntityDesc>; - XML_BUFFER_ALLOC_HYBRID = 4, +declare function htmlEntityValueLookup(value: number): interop.Pointer | interop.Reference<_htmlEntityDesc>; - XML_BUFFER_ALLOC_BOUNDED = 5 -} +declare function htmlFreeParserCtxt(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; -declare var xmlBufferAllocationSchemeVar: number; +declare function htmlGetMetaEncoding(doc: interop.Pointer | interop.Reference<_xmlDoc>): string; -declare var xmlBufferAllocationSchemeVar2: number; +declare function htmlHandleOmittedElem(val: number): number; -declare var xmlBufferAllocationSchemeVar3: number; +declare function htmlInitAutoClose(): void; -declare var xmlBufferPtr: number; +declare function htmlIsAutoClosed(doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>): number; -declare var xmlBufferPtrVar: number; +declare function htmlIsBooleanAttr(name: string): number; -declare var xmlBufferPtrVar2: number; +declare function htmlIsScriptAttribute(name: string): number; -declare var xmlChar: number; +declare function htmlNewDoc(URI: string, ExternalID: string): interop.Pointer | interop.Reference<_xmlDoc>; -declare var xmlCharEncoding: number; +declare function htmlNewDocNoDtD(URI: string, ExternalID: string): interop.Pointer | interop.Reference<_xmlDoc>; -declare const enum xmlCharEncodingEnum { +declare function htmlNewParserCtxt(): interop.Pointer | interop.Reference<_xmlParserCtxt>; - XML_CHAR_ENCODING_ERROR = -1, +declare function htmlNodeDump(buf: interop.Pointer | interop.Reference<_xmlBuffer>, doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_CHAR_ENCODING_NONE = 0, +declare function htmlNodeDumpFile(out: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlNode>): void; - XML_CHAR_ENCODING_UTF8 = 1, +declare function htmlNodeDumpFileFormat(out: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlNode>, encoding: string, format: number): number; - XML_CHAR_ENCODING_UTF16LE = 2, +declare function htmlNodeDumpFormatOutput(buf: interop.Pointer | interop.Reference<_xmlOutputBuffer>, doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlNode>, encoding: string, format: number): void; - XML_CHAR_ENCODING_UTF16BE = 3, +declare function htmlNodeDumpOutput(buf: interop.Pointer | interop.Reference<_xmlOutputBuffer>, doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlNode>, encoding: string): void; - XML_CHAR_ENCODING_UCS4LE = 4, +declare function htmlNodeStatus(p1: interop.Pointer | interop.Reference<_xmlNode>, p2: number): htmlStatus; - XML_CHAR_ENCODING_UCS4BE = 5, +declare function htmlParseCharRef(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; - XML_CHAR_ENCODING_EBCDIC = 6, +declare function htmlParseChunk(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, chunk: string, size: number, terminate: number): number; - XML_CHAR_ENCODING_UCS4_2143 = 7, +declare function htmlParseDoc(cur: string, encoding: string): interop.Pointer | interop.Reference<_xmlDoc>; - XML_CHAR_ENCODING_UCS4_3412 = 8, +declare function htmlParseDocument(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; - XML_CHAR_ENCODING_UCS2 = 9, +declare function htmlParseElement(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; - XML_CHAR_ENCODING_8859_1 = 10, +declare function htmlParseEntityRef(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, str: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_htmlEntityDesc>; - XML_CHAR_ENCODING_8859_2 = 11, +declare function htmlParseFile(filename: string, encoding: string): interop.Pointer | interop.Reference<_xmlDoc>; - XML_CHAR_ENCODING_8859_3 = 12, +declare const enum htmlParserOption { - XML_CHAR_ENCODING_8859_4 = 13, + HTML_PARSE_RECOVER = 1, - XML_CHAR_ENCODING_8859_5 = 14, + HTML_PARSE_NODEFDTD = 4, - XML_CHAR_ENCODING_8859_6 = 15, + HTML_PARSE_NOERROR = 32, - XML_CHAR_ENCODING_8859_7 = 16, + HTML_PARSE_NOWARNING = 64, - XML_CHAR_ENCODING_8859_8 = 17, + HTML_PARSE_PEDANTIC = 128, - XML_CHAR_ENCODING_8859_9 = 18, + HTML_PARSE_NOBLANKS = 256, - XML_CHAR_ENCODING_2022_JP = 19, + HTML_PARSE_NONET = 2048, - XML_CHAR_ENCODING_SHIFT_JIS = 20, + HTML_PARSE_NOIMPLIED = 8192, - XML_CHAR_ENCODING_EUC_JP = 21, + HTML_PARSE_COMPACT = 65536, - XML_CHAR_ENCODING_ASCII = 22 + HTML_PARSE_IGNORE_ENC = 2097152 } -declare var xmlCharEncodingHandlerPtr: number; - -declare var xmlCharEncodingHandlerPtrVar: number; +declare function htmlReadDoc(cur: string, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare var xmlCharEncodingHandlerPtrVar2: number; +declare function htmlReadFd(fd: number, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare var xmlCharEncodingVar: number; +declare function htmlReadFile(URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare function xmlCharStrdup(cur: string): interop.Pointer | interop.Reference; +declare function htmlReadIO(ioread: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, ioclose: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, ioctx: interop.Pointer | interop.Reference, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare function xmlCharStrndup(cur: string, len: number): interop.Pointer | interop.Reference; +declare function htmlReadMemory(buffer: string, size: number, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare var xmlCharVar: number; +declare function htmlSAXParseDoc(cur: string, encoding: string, sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, userData: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlDoc>; -declare var xmlCharVar10: number; +declare function htmlSAXParseFile(filename: string, encoding: string, sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, userData: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlDoc>; -declare var xmlCharVar11: number; +declare function htmlSaveFile(filename: string, cur: interop.Pointer | interop.Reference<_xmlDoc>): number; -declare var xmlCharVar12: number; +declare function htmlSaveFileEnc(filename: string, cur: interop.Pointer | interop.Reference<_xmlDoc>, encoding: string): number; -declare var xmlCharVar13: number; +declare function htmlSaveFileFormat(filename: string, cur: interop.Pointer | interop.Reference<_xmlDoc>, encoding: string, format: number): number; -declare var xmlCharVar14: number; +declare function htmlSetMetaEncoding(doc: interop.Pointer | interop.Reference<_xmlDoc>, encoding: string): number; -declare var xmlCharVar15: number; +declare const enum htmlStatus { -declare var xmlCharVar16: number; + HTML_NA = 0, -declare var xmlCharVar17: number; + HTML_INVALID = 1, -declare var xmlCharVar18: number; + HTML_DEPRECATED = 2, -declare var xmlCharVar19: number; + HTML_VALID = 4, -declare var xmlCharVar2: number; - -declare var xmlCharVar20: number; + HTML_REQUIRED = 12 +} -declare var xmlCharVar21: number; +declare function htmlTagLookup(tag: string): interop.Pointer | interop.Reference<_htmlElemDesc>; -declare var xmlCharVar22: number; +declare function ignorableWhitespace(ctx: interop.Pointer | interop.Reference, ch: string, len: number): void; -declare var xmlCharVar23: number; +declare function initGenericErrorDefaultFunc(handler: interop.Pointer | interop.Reference, p2: string) => void>>): void; -declare var xmlCharVar24: number; +declare function initdocbDefaultSAXHandler(hdlr: interop.Pointer | interop.Reference<_xmlSAXHandlerV1>): void; -declare var xmlCharVar25: number; +declare function inithtmlDefaultSAXHandler(hdlr: interop.Pointer | interop.Reference<_xmlSAXHandlerV1>): void; -declare var xmlCharVar26: number; +declare function initxmlDefaultSAXHandler(hdlr: interop.Pointer | interop.Reference<_xmlSAXHandlerV1>, warning: number): void; -declare var xmlCharVar27: number; +declare function inputPop(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): interop.Pointer | interop.Reference<_xmlParserInput>; -declare var xmlCharVar28: number; +declare function inputPush(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, value: interop.Pointer | interop.Reference<_xmlParserInput>): number; -declare var xmlCharVar29: number; +declare function internalSubset(ctx: interop.Pointer | interop.Reference, name: string, ExternalID: string, SystemID: string): void; -declare var xmlCharVar3: number; +declare function isStandalone(ctx: interop.Pointer | interop.Reference): number; -declare var xmlCharVar30: number; +declare function isolat1ToUTF8(out: string, outlen: interop.Pointer | interop.Reference, _in: string, inlen: interop.Pointer | interop.Reference): number; -declare var xmlCharVar31: number; +declare function namePop(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; -declare var xmlCharVar32: number; +declare function namePush(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, value: string): number; -declare var xmlCharVar33: number; +declare function namespaceDecl(ctx: interop.Pointer | interop.Reference, href: string, prefix: string): void; -declare var xmlCharVar34: number; +declare function nodePop(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): interop.Pointer | interop.Reference<_xmlNode>; -declare var xmlCharVar4: number; +declare function nodePush(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, value: interop.Pointer | interop.Reference<_xmlNode>): number; -declare var xmlCharVar5: number; +declare function notationDecl(ctx: interop.Pointer | interop.Reference, name: string, publicId: string, systemId: string): void; -declare var xmlCharVar6: number; +declare function processingInstruction(ctx: interop.Pointer | interop.Reference, target: string, data: string): void; -declare var xmlCharVar7: number; +declare function reference(ctx: interop.Pointer | interop.Reference, name: string): void; -declare var xmlCharVar8: number; +declare function resolveEntity(ctx: interop.Pointer | interop.Reference, publicId: string, systemId: string): interop.Pointer | interop.Reference<_xmlParserInput>; -declare var xmlCharVar9: number; +declare function setDocumentLocator(ctx: interop.Pointer | interop.Reference, loc: interop.Pointer | interop.Reference<_xmlSAXLocator>): void; -declare function xmlCheckHTTPInput(ctxt: number, ret: number): number; +declare function setNamespace(ctx: interop.Pointer | interop.Reference, name: string): void; -declare function xmlCheckUTF8(utf: string): number; +declare function startDocument(ctx: interop.Pointer | interop.Reference): void; -declare function xmlCheckVersion(version: number): void; +declare function startElement(ctx: interop.Pointer | interop.Reference, fullname: string, atts: interop.Pointer | interop.Reference): void; -declare function xmlCopyDocElementContent(doc: interop.Pointer | interop.Reference<_xmlDoc>, content: interop.Pointer | interop.Reference<_xmlElementContent>): number; +declare function unparsedEntityDecl(ctx: interop.Pointer | interop.Reference, name: string, publicId: string, systemId: string, notationName: string): void; -declare function xmlCopyElementContent(content: interop.Pointer | interop.Reference<_xmlElementContent>): number; +declare function valuePop(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; -declare function xmlCreateEntitiesTable(): number; +declare function valuePush(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, value: interop.Pointer | interop.Reference<_xmlXPathObject>): number; -declare function xmlCreateEntityParserCtxt(URL: interop.Pointer | interop.Reference, ID: interop.Pointer | interop.Reference, base: interop.Pointer | interop.Reference): number; +declare const enum xlinkActuate { -declare function xmlCreateEnumeration(name: interop.Pointer | interop.Reference): number; + XLINK_ACTUATE_NONE = 0, -declare function xmlCreateFileParserCtxt(filename: string): number; + XLINK_ACTUATE_AUTO = 1, -declare function xmlCreateMemoryParserCtxt(buffer: string, size: number): number; + XLINK_ACTUATE_ONREQUEST = 2 +} -declare function xmlCreateURI(): number; +declare function xlinkGetDefaultDetect(): interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlNode>) => void>; -declare function xmlCreateURLParserCtxt(filename: string, options: number): number; +declare function xlinkGetDefaultHandler(): interop.Pointer | interop.Reference<_xlinkHandler>; -declare function xmlCtxtGetLastError(ctx: interop.Pointer | interop.Reference): number; +declare function xlinkIsLink(doc: interop.Pointer | interop.Reference<_xmlDoc>, node: interop.Pointer | interop.Reference<_xmlNode>): xlinkType; -declare var xmlDOMWrapCtxtPtr: number; +declare function xlinkSetDefaultDetect(func: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlNode>) => void>): void; -declare var xmlDeregisterNodeFunc: number; +declare function xlinkSetDefaultHandler(handler: interop.Pointer | interop.Reference<_xlinkHandler>): void; -declare var xmlDeregisterNodeFuncVar: number; +declare const enum xlinkShow { -declare var xmlDeregisterNodeFuncVar2: number; + XLINK_SHOW_NONE = 0, -declare var xmlDeregisterNodeFuncVar3: number; + XLINK_SHOW_NEW = 1, -declare function xmlDetectCharEncoding(_in: string, len: number): number; + XLINK_SHOW_EMBED = 2, -declare function xmlDictCreate(): number; + XLINK_SHOW_REPLACE = 3 +} -declare function xmlDictCreateSub(sub: interop.Pointer | interop.Reference): number; +declare const enum xlinkType { -declare function xmlDictGetUsage(dict: interop.Pointer | interop.Reference): number; + XLINK_TYPE_NONE = 0, -declare var xmlDictPtr: number; + XLINK_TYPE_SIMPLE = 1, -declare var xmlDictPtrVar: number; + XLINK_TYPE_EXTENDED = 2, -declare function xmlDictSetLimit(dict: interop.Pointer | interop.Reference, limit: number): number; + XLINK_TYPE_EXTENDED_SET = 3 +} -declare const enum xmlDocProperties { +declare function xmlACatalogAdd(catal: interop.Pointer | interop.Reference, type: string, orig: string, replace: string): number; - XML_DOC_WELLFORMED = 1, +declare function xmlACatalogDump(catal: interop.Pointer | interop.Reference, out: interop.Pointer | interop.Reference): void; - XML_DOC_NSVALID = 2, +declare function xmlACatalogRemove(catal: interop.Pointer | interop.Reference, value: string): number; - XML_DOC_OLD10 = 4, +declare function xmlACatalogResolve(catal: interop.Pointer | interop.Reference, pubID: string, sysID: string): string; - XML_DOC_DTDVALID = 8, +declare function xmlACatalogResolvePublic(catal: interop.Pointer | interop.Reference, pubID: string): string; - XML_DOC_XINCLUDE = 16, +declare function xmlACatalogResolveSystem(catal: interop.Pointer | interop.Reference, sysID: string): string; - XML_DOC_USERBUILT = 32, +declare function xmlACatalogResolveURI(catal: interop.Pointer | interop.Reference, URI: string): string; - XML_DOC_INTERNAL = 64, +declare function xmlAddAttributeDecl(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, dtd: interop.Pointer | interop.Reference<_xmlDtd>, elem: string, name: string, ns: string, type: xmlAttributeType, def: xmlAttributeDefault, defaultValue: string, tree: interop.Pointer | interop.Reference<_xmlEnumeration>): interop.Pointer | interop.Reference<_xmlAttribute>; - XML_DOC_HTML = 128 -} +declare function xmlAddChild(parent: interop.Pointer | interop.Reference<_xmlNode>, cur: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; -declare var xmlDocPtr: number; +declare function xmlAddChildList(parent: interop.Pointer | interop.Reference<_xmlNode>, cur: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; -declare var xmlDocPtrVar: number; +declare function xmlAddDocEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string, type: number, ExternalID: string, SystemID: string, content: string): interop.Pointer | interop.Reference<_xmlEntity>; -declare var xmlDocPtrVar10: number; +declare function xmlAddDtdEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string, type: number, ExternalID: string, SystemID: string, content: string): interop.Pointer | interop.Reference<_xmlEntity>; -declare var xmlDocPtrVar2: number; +declare function xmlAddElementDecl(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, dtd: interop.Pointer | interop.Reference<_xmlDtd>, name: string, type: xmlElementTypeVal, content: interop.Pointer | interop.Reference<_xmlElementContent>): interop.Pointer | interop.Reference<_xmlElement>; -declare var xmlDocPtrVar3: number; +declare function xmlAddEncodingAlias(name: string, alias: string): number; -declare var xmlDocPtrVar4: number; +declare function xmlAddID(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, value: string, attr: interop.Pointer | interop.Reference<_xmlAttr>): interop.Pointer | interop.Reference<_xmlID>; -declare var xmlDocPtrVar5: number; +declare function xmlAddNextSibling(cur: interop.Pointer | interop.Reference<_xmlNode>, elem: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; -declare var xmlDocPtrVar6: number; +declare function xmlAddNotationDecl(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, dtd: interop.Pointer | interop.Reference<_xmlDtd>, name: string, PublicID: string, SystemID: string): interop.Pointer | interop.Reference<_xmlNotation>; -declare var xmlDocPtrVar7: number; +declare function xmlAddPrevSibling(cur: interop.Pointer | interop.Reference<_xmlNode>, elem: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; -declare var xmlDocPtrVar8: number; +declare function xmlAddRef(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, value: string, attr: interop.Pointer | interop.Reference<_xmlAttr>): interop.Pointer | interop.Reference<_xmlRef>; -declare var xmlDocPtrVar9: number; +declare function xmlAddSibling(cur: interop.Pointer | interop.Reference<_xmlNode>, elem: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; -declare var xmlDtdPtr: number; +declare function xmlAllocOutputBuffer(encoder: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>): interop.Pointer | interop.Reference<_xmlOutputBuffer>; -declare var xmlDtdPtrVar: number; +declare function xmlAllocParserInputBuffer(enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserInputBuffer>; -declare var xmlDtdPtrVar2: number; +declare function xmlAttrSerializeTxtContent(buf: interop.Pointer | interop.Reference<_xmlBuffer>, doc: interop.Pointer | interop.Reference<_xmlDoc>, attr: interop.Pointer | interop.Reference<_xmlAttr>, string: string): void; -declare const enum xmlElementContentOccur { +declare const enum xmlAttributeDefault { - XML_ELEMENT_CONTENT_ONCE = 1, + XML_ATTRIBUTE_NONE = 1, - XML_ELEMENT_CONTENT_OPT = 2, + XML_ATTRIBUTE_REQUIRED = 2, - XML_ELEMENT_CONTENT_MULT = 3, + XML_ATTRIBUTE_IMPLIED = 3, - XML_ELEMENT_CONTENT_PLUS = 4 + XML_ATTRIBUTE_FIXED = 4 } -declare var xmlElementContentPtr: number; +declare const enum xmlAttributeType { -declare var xmlElementContentPtrVar: number; + XML_ATTRIBUTE_CDATA = 1, -declare var xmlElementContentPtrVar2: number; + XML_ATTRIBUTE_ID = 2, -declare var xmlElementContentPtrVar3: number; + XML_ATTRIBUTE_IDREF = 3, -declare var xmlElementContentPtrVar4: number; + XML_ATTRIBUTE_IDREFS = 4, -declare var xmlElementContentPtrVar5: number; + XML_ATTRIBUTE_ENTITY = 5, -declare const enum xmlElementContentType { + XML_ATTRIBUTE_ENTITIES = 6, - XML_ELEMENT_CONTENT_PCDATA = 1, + XML_ATTRIBUTE_NMTOKEN = 7, - XML_ELEMENT_CONTENT_ELEMENT = 2, + XML_ATTRIBUTE_NMTOKENS = 8, - XML_ELEMENT_CONTENT_SEQ = 3, + XML_ATTRIBUTE_ENUMERATION = 9, - XML_ELEMENT_CONTENT_OR = 4 + XML_ATTRIBUTE_NOTATION = 10 } -declare var xmlElementPtr: number; +declare function xmlAutomataCompile(am: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; -declare var xmlElementPtrVar: number; +declare function xmlAutomataGetInitState(am: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; -declare var xmlElementPtrVar2: number; +declare function xmlAutomataIsDeterminist(am: interop.Pointer | interop.Reference): number; -declare const enum xmlElementType { +declare function xmlAutomataNewAllTrans(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference, lax: number): interop.Pointer | interop.Reference; - XML_ELEMENT_NODE = 1, +declare function xmlAutomataNewCountTrans(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference, token: string, min: number, max: number, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_ATTRIBUTE_NODE = 2, +declare function xmlAutomataNewCountTrans2(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference, token: string, token2: string, min: number, max: number, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_TEXT_NODE = 3, +declare function xmlAutomataNewCountedTrans(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference, counter: number): interop.Pointer | interop.Reference; - XML_CDATA_SECTION_NODE = 4, +declare function xmlAutomataNewCounter(am: interop.Pointer | interop.Reference, min: number, max: number): number; - XML_ENTITY_REF_NODE = 5, +declare function xmlAutomataNewCounterTrans(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference, counter: number): interop.Pointer | interop.Reference; - XML_ENTITY_NODE = 6, +declare function xmlAutomataNewEpsilon(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_PI_NODE = 7, +declare function xmlAutomataNewNegTrans(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference, token: string, token2: string, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_COMMENT_NODE = 8, +declare function xmlAutomataNewOnceTrans(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference, token: string, min: number, max: number, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_DOCUMENT_NODE = 9, +declare function xmlAutomataNewOnceTrans2(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference, token: string, token2: string, min: number, max: number, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_DOCUMENT_TYPE_NODE = 10, +declare function xmlAutomataNewState(am: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_DOCUMENT_FRAG_NODE = 11, +declare function xmlAutomataNewTransition(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference, token: string, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_NOTATION_NODE = 12, +declare function xmlAutomataNewTransition2(am: interop.Pointer | interop.Reference, from: interop.Pointer | interop.Reference, to: interop.Pointer | interop.Reference, token: string, token2: string, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_HTML_DOCUMENT_NODE = 13, +declare function xmlAutomataSetFinalState(am: interop.Pointer | interop.Reference, state: interop.Pointer | interop.Reference): number; - XML_DTD_NODE = 14, +declare function xmlBoolToText(boolval: number): string; - XML_ELEMENT_DECL = 15, +declare function xmlBufContent(buf: interop.Pointer | interop.Reference): string; - XML_ATTRIBUTE_DECL = 16, +declare function xmlBufEnd(buf: interop.Pointer | interop.Reference): string; - XML_ENTITY_DECL = 17, +declare function xmlBufGetNodeContent(buf: interop.Pointer | interop.Reference, cur: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_NAMESPACE_DECL = 18, +declare function xmlBufNodeDump(buf: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlNode>, level: number, format: number): number; - XML_XINCLUDE_START = 19, +declare function xmlBufShrink(buf: interop.Pointer | interop.Reference, len: number): number; - XML_XINCLUDE_END = 20 -} +declare function xmlBufUse(buf: interop.Pointer | interop.Reference): number; -declare const enum xmlElementTypeVal { +declare function xmlBufferAdd(buf: interop.Pointer | interop.Reference<_xmlBuffer>, str: string, len: number): number; - XML_ELEMENT_TYPE_UNDEFINED = 0, +declare function xmlBufferAddHead(buf: interop.Pointer | interop.Reference<_xmlBuffer>, str: string, len: number): number; - XML_ELEMENT_TYPE_EMPTY = 1, +declare const enum xmlBufferAllocationScheme { - XML_ELEMENT_TYPE_ANY = 2, + XML_BUFFER_ALLOC_DOUBLEIT = 0, - XML_ELEMENT_TYPE_MIXED = 3, + XML_BUFFER_ALLOC_EXACT = 1, - XML_ELEMENT_TYPE_ELEMENT = 4 -} + XML_BUFFER_ALLOC_IMMUTABLE = 2, -declare var xmlEntitiesTablePtr: number; + XML_BUFFER_ALLOC_IO = 3, -declare var xmlEntityPtr: number; + XML_BUFFER_ALLOC_HYBRID = 4, -declare var xmlEntityPtrVar: number; + XML_BUFFER_ALLOC_BOUNDED = 5 +} -declare var xmlEntityPtrVar2: number; +declare function xmlBufferCCat(buf: interop.Pointer | interop.Reference<_xmlBuffer>, str: string): number; -declare var xmlEntityPtrVar3: number; +declare function xmlBufferCat(buf: interop.Pointer | interop.Reference<_xmlBuffer>, str: string): number; -declare var xmlEntityPtrVar4: number; +declare function xmlBufferContent(buf: interop.Pointer | interop.Reference<_xmlBuffer>): string; -declare var xmlEntityPtrVar5: number; +declare function xmlBufferCreate(): interop.Pointer | interop.Reference<_xmlBuffer>; -declare var xmlEntityPtrVar6: number; +declare function xmlBufferCreateSize(size: number): interop.Pointer | interop.Reference<_xmlBuffer>; -declare var xmlEntityPtrVar7: number; +declare function xmlBufferCreateStatic(mem: interop.Pointer | interop.Reference, size: number): interop.Pointer | interop.Reference<_xmlBuffer>; -declare var xmlEntityPtrVar8: number; +declare function xmlBufferDetach(buf: interop.Pointer | interop.Reference<_xmlBuffer>): string; -declare var xmlEntityPtrVar9: number; +declare function xmlBufferDump(file: interop.Pointer | interop.Reference, buf: interop.Pointer | interop.Reference<_xmlBuffer>): number; -declare const enum xmlEntityType { +declare function xmlBufferEmpty(buf: interop.Pointer | interop.Reference<_xmlBuffer>): void; - XML_INTERNAL_GENERAL_ENTITY = 1, +declare function xmlBufferFree(buf: interop.Pointer | interop.Reference<_xmlBuffer>): void; - XML_EXTERNAL_GENERAL_PARSED_ENTITY = 2, +declare function xmlBufferGrow(buf: interop.Pointer | interop.Reference<_xmlBuffer>, len: number): number; - XML_EXTERNAL_GENERAL_UNPARSED_ENTITY = 3, +declare function xmlBufferLength(buf: interop.Pointer | interop.Reference<_xmlBuffer>): number; - XML_INTERNAL_PARAMETER_ENTITY = 4, +declare function xmlBufferResize(buf: interop.Pointer | interop.Reference<_xmlBuffer>, size: number): number; - XML_EXTERNAL_PARAMETER_ENTITY = 5, +declare function xmlBufferSetAllocationScheme(buf: interop.Pointer | interop.Reference<_xmlBuffer>, scheme: xmlBufferAllocationScheme): void; - XML_INTERNAL_PREDEFINED_ENTITY = 6 -} +declare function xmlBufferShrink(buf: interop.Pointer | interop.Reference<_xmlBuffer>, len: number): number; -declare var xmlEnumerationPtr: number; +declare function xmlBufferWriteCHAR(buf: interop.Pointer | interop.Reference<_xmlBuffer>, string: string): void; -declare var xmlEnumerationPtrVar: number; +declare function xmlBufferWriteChar(buf: interop.Pointer | interop.Reference<_xmlBuffer>, string: string): void; -declare var xmlEnumerationPtrVar2: number; +declare function xmlBufferWriteQuotedString(buf: interop.Pointer | interop.Reference<_xmlBuffer>, string: string): void; -declare var xmlError: number; +declare function xmlBuildQName(ncname: string, prefix: string, memory: string, len: number): string; -declare const enum xmlErrorDomain { +declare function xmlBuildRelativeURI(URI: string, base: string): string; - XML_FROM_NONE = 0, +declare function xmlBuildURI(URI: string, base: string): string; - XML_FROM_PARSER = 1, +declare function xmlByteConsumed(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; - XML_FROM_TREE = 2, +declare function xmlC14NDocDumpMemory(doc: interop.Pointer | interop.Reference<_xmlDoc>, nodes: interop.Pointer | interop.Reference<_xmlNodeSet>, mode: number, inclusive_ns_prefixes: interop.Pointer | interop.Reference, with_comments: number, doc_txt_ptr: interop.Pointer | interop.Reference): number; - XML_FROM_NAMESPACE = 3, +declare function xmlC14NDocSave(doc: interop.Pointer | interop.Reference<_xmlDoc>, nodes: interop.Pointer | interop.Reference<_xmlNodeSet>, mode: number, inclusive_ns_prefixes: interop.Pointer | interop.Reference, with_comments: number, filename: string, compression: number): number; - XML_FROM_DTD = 4, +declare function xmlC14NDocSaveTo(doc: interop.Pointer | interop.Reference<_xmlDoc>, nodes: interop.Pointer | interop.Reference<_xmlNodeSet>, mode: number, inclusive_ns_prefixes: interop.Pointer | interop.Reference, with_comments: number, buf: interop.Pointer | interop.Reference<_xmlOutputBuffer>): number; - XML_FROM_HTML = 5, +declare function xmlC14NExecute(doc: interop.Pointer | interop.Reference<_xmlDoc>, is_visible_callback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlNode>, p3: interop.Pointer | interop.Reference<_xmlNode>) => number>, user_data: interop.Pointer | interop.Reference, mode: number, inclusive_ns_prefixes: interop.Pointer | interop.Reference, with_comments: number, buf: interop.Pointer | interop.Reference<_xmlOutputBuffer>): number; - XML_FROM_MEMORY = 6, +declare const enum xmlC14NMode { - XML_FROM_OUTPUT = 7, + XML_C14N_1_0 = 0, - XML_FROM_IO = 8, + XML_C14N_EXCLUSIVE_1_0 = 1, - XML_FROM_FTP = 9, + XML_C14N_1_1 = 2 +} - XML_FROM_HTTP = 10, +declare function xmlCanonicPath(path: string): string; - XML_FROM_XINCLUDE = 11, +declare function xmlCatalogAdd(type: string, orig: string, replace: string): number; - XML_FROM_XPATH = 12, +declare function xmlCatalogAddLocal(catalogs: interop.Pointer | interop.Reference, URL: string): interop.Pointer | interop.Reference; - XML_FROM_XPOINTER = 13, +declare const enum xmlCatalogAllow { - XML_FROM_REGEXP = 14, + XML_CATA_ALLOW_NONE = 0, - XML_FROM_DATATYPE = 15, + XML_CATA_ALLOW_GLOBAL = 1, - XML_FROM_SCHEMASP = 16, + XML_CATA_ALLOW_DOCUMENT = 2, - XML_FROM_SCHEMASV = 17, + XML_CATA_ALLOW_ALL = 3 +} - XML_FROM_RELAXNGP = 18, +declare function xmlCatalogCleanup(): void; - XML_FROM_RELAXNGV = 19, +declare function xmlCatalogConvert(): number; - XML_FROM_CATALOG = 20, +declare function xmlCatalogDump(out: interop.Pointer | interop.Reference): void; - XML_FROM_C14N = 21, +declare function xmlCatalogFreeLocal(catalogs: interop.Pointer | interop.Reference): void; - XML_FROM_XSLT = 22, +declare function xmlCatalogGetDefaults(): xmlCatalogAllow; - XML_FROM_VALID = 23, +declare function xmlCatalogGetPublic(pubID: string): string; - XML_FROM_CHECK = 24, +declare function xmlCatalogGetSystem(sysID: string): string; - XML_FROM_WRITER = 25, +declare function xmlCatalogIsEmpty(catal: interop.Pointer | interop.Reference): number; - XML_FROM_MODULE = 26, +declare function xmlCatalogLocalResolve(catalogs: interop.Pointer | interop.Reference, pubID: string, sysID: string): string; - XML_FROM_I18N = 27, +declare function xmlCatalogLocalResolveURI(catalogs: interop.Pointer | interop.Reference, URI: string): string; - XML_FROM_SCHEMATRONV = 28, +declare const enum xmlCatalogPrefer { - XML_FROM_BUFFER = 29, + XML_CATA_PREFER_NONE = 0, - XML_FROM_URI = 30 + XML_CATA_PREFER_PUBLIC = 1, + + XML_CATA_PREFER_SYSTEM = 2 } -declare const enum xmlErrorLevel { +declare function xmlCatalogRemove(value: string): number; - XML_ERR_NONE = 0, +declare function xmlCatalogResolve(pubID: string, sysID: string): string; - XML_ERR_WARNING = 1, +declare function xmlCatalogResolvePublic(pubID: string): string; - XML_ERR_ERROR = 2, +declare function xmlCatalogResolveSystem(sysID: string): string; - XML_ERR_FATAL = 3 -} +declare function xmlCatalogResolveURI(URI: string): string; -declare var xmlErrorPtr: number; +declare function xmlCatalogSetDebug(level: number): number; -declare var xmlErrorPtrVar: number; +declare function xmlCatalogSetDefaultPrefer(prefer: xmlCatalogPrefer): xmlCatalogPrefer; -declare var xmlErrorVar: number; +declare function xmlCatalogSetDefaults(allow: xmlCatalogAllow): void; -declare var xmlExternalEntityLoader: number; +declare function xmlCharEncCloseFunc(handler: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>): number; -declare const enum xmlFeature { +declare function xmlCharEncFirstLine(handler: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>, out: interop.Pointer | interop.Reference<_xmlBuffer>, _in: interop.Pointer | interop.Reference<_xmlBuffer>): number; - XML_WITH_THREAD = 1, +declare function xmlCharEncInFunc(handler: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>, out: interop.Pointer | interop.Reference<_xmlBuffer>, _in: interop.Pointer | interop.Reference<_xmlBuffer>): number; - XML_WITH_TREE = 2, +declare function xmlCharEncOutFunc(handler: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>, out: interop.Pointer | interop.Reference<_xmlBuffer>, _in: interop.Pointer | interop.Reference<_xmlBuffer>): number; - XML_WITH_OUTPUT = 3, +declare const enum xmlCharEncoding { - XML_WITH_PUSH = 4, + XML_CHAR_ENCODING_ERROR = -1, - XML_WITH_READER = 5, + XML_CHAR_ENCODING_NONE = 0, - XML_WITH_PATTERN = 6, + XML_CHAR_ENCODING_UTF8 = 1, - XML_WITH_WRITER = 7, + XML_CHAR_ENCODING_UTF16LE = 2, - XML_WITH_SAX1 = 8, + XML_CHAR_ENCODING_UTF16BE = 3, - XML_WITH_FTP = 9, + XML_CHAR_ENCODING_UCS4LE = 4, - XML_WITH_HTTP = 10, + XML_CHAR_ENCODING_UCS4BE = 5, - XML_WITH_VALID = 11, + XML_CHAR_ENCODING_EBCDIC = 6, - XML_WITH_HTML = 12, + XML_CHAR_ENCODING_UCS4_2143 = 7, - XML_WITH_LEGACY = 13, + XML_CHAR_ENCODING_UCS4_3412 = 8, - XML_WITH_C14N = 14, + XML_CHAR_ENCODING_UCS2 = 9, - XML_WITH_CATALOG = 15, + XML_CHAR_ENCODING_8859_1 = 10, - XML_WITH_XPATH = 16, + XML_CHAR_ENCODING_8859_2 = 11, - XML_WITH_XPTR = 17, + XML_CHAR_ENCODING_8859_3 = 12, - XML_WITH_XINCLUDE = 18, + XML_CHAR_ENCODING_8859_4 = 13, - XML_WITH_ICONV = 19, + XML_CHAR_ENCODING_8859_5 = 14, - XML_WITH_ISO8859X = 20, + XML_CHAR_ENCODING_8859_6 = 15, - XML_WITH_UNICODE = 21, + XML_CHAR_ENCODING_8859_7 = 16, - XML_WITH_REGEXP = 22, + XML_CHAR_ENCODING_8859_8 = 17, - XML_WITH_AUTOMATA = 23, + XML_CHAR_ENCODING_8859_9 = 18, - XML_WITH_EXPR = 24, + XML_CHAR_ENCODING_2022_JP = 19, - XML_WITH_SCHEMAS = 25, + XML_CHAR_ENCODING_SHIFT_JIS = 20, - XML_WITH_SCHEMATRON = 26, + XML_CHAR_ENCODING_EUC_JP = 21, - XML_WITH_MODULES = 27, + XML_CHAR_ENCODING_ASCII = 22 +} - XML_WITH_DEBUG = 28, +declare function xmlCharInRange(val: number, group: interop.Pointer | interop.Reference<_xmlChRangeGroup>): number; - XML_WITH_DEBUG_MEM = 29, +declare function xmlCharStrdup(cur: string): string; - XML_WITH_DEBUG_RUN = 30, +declare function xmlCharStrndup(cur: string, len: number): string; - XML_WITH_ZLIB = 31, +declare function xmlCheckFilename(path: string): number; - XML_WITH_ICU = 32, +declare function xmlCheckHTTPInput(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, ret: interop.Pointer | interop.Reference<_xmlParserInput>): interop.Pointer | interop.Reference<_xmlParserInput>; - XML_WITH_LZMA = 33, +declare function xmlCheckLanguageID(lang: string): number; - XML_WITH_NONE = 99999 -} +declare function xmlCheckUTF8(utf: string): number; -declare function xmlFindCharEncodingHandler(name: string): number; +declare function xmlCheckVersion(version: number): void; -declare var xmlFreeFunc: number; +declare function xmlChildElementCount(parent: interop.Pointer | interop.Reference<_xmlNode>): number; -declare function xmlFreeTextWriter(writer: interop.Pointer | interop.Reference): void; +declare function xmlCleanupCharEncodingHandlers(): void; -declare var xmlGenericErrorFunc: number; +declare function xmlCleanupEncodingAliases(): void; -declare var xmlGenericErrorFuncVar: number; +declare function xmlCleanupGlobals(): void; -declare function xmlGetCharEncodingHandler(enc: xmlCharEncodingEnum): number; +declare function xmlCleanupInputCallbacks(): void; -declare function xmlGetDocEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: interop.Pointer | interop.Reference): number; +declare function xmlCleanupMemory(): void; -declare function xmlGetDtdAttrDesc(dtd: interop.Pointer | interop.Reference<_xmlDtd>, elem: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference): number; +declare function xmlCleanupOutputCallbacks(): void; -declare function xmlGetDtdElementDesc(dtd: interop.Pointer | interop.Reference<_xmlDtd>, name: interop.Pointer | interop.Reference): number; +declare function xmlCleanupParser(): void; -declare function xmlGetDtdEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: interop.Pointer | interop.Reference): number; +declare function xmlCleanupPredefinedEntities(): void; -declare function xmlGetDtdNotationDesc(dtd: interop.Pointer | interop.Reference<_xmlDtd>, name: interop.Pointer | interop.Reference): number; +declare function xmlCleanupThreads(): void; -declare function xmlGetDtdQAttrDesc(dtd: interop.Pointer | interop.Reference<_xmlDtd>, elem: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, prefix: interop.Pointer | interop.Reference): number; +declare function xmlClearNodeInfoSeq(seq: interop.Pointer | interop.Reference<_xmlParserNodeInfoSeq>): void; -declare function xmlGetDtdQElementDesc(dtd: interop.Pointer | interop.Reference<_xmlDtd>, name: interop.Pointer | interop.Reference, prefix: interop.Pointer | interop.Reference): number; +declare function xmlClearParserCtxt(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; -declare function xmlGetID(doc: interop.Pointer | interop.Reference<_xmlDoc>, ID: interop.Pointer | interop.Reference): number; +declare function xmlConvertSGMLCatalog(catal: interop.Pointer | interop.Reference): number; -declare function xmlGetLastError(): number; +declare function xmlCopyAttributeTable(table: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; -declare function xmlGetParameterEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: interop.Pointer | interop.Reference): number; +declare function xmlCopyChar(len: number, out: string, val: number): number; -declare function xmlGetPredefinedEntity(name: interop.Pointer | interop.Reference): number; +declare function xmlCopyCharMultiByte(out: string, val: number): number; -declare function xmlGetRefs(doc: interop.Pointer | interop.Reference<_xmlDoc>, ID: interop.Pointer | interop.Reference): number; +declare function xmlCopyDoc(doc: interop.Pointer | interop.Reference<_xmlDoc>, recursive: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare function xmlGetUTF8Char(utf: string, len: interop.Pointer | interop.Reference): number; +declare function xmlCopyDocElementContent(doc: interop.Pointer | interop.Reference<_xmlDoc>, content: interop.Pointer | interop.Reference<_xmlElementContent>): interop.Pointer | interop.Reference<_xmlElementContent>; -declare var xmlGlobalStatePtr: number; +declare function xmlCopyDtd(dtd: interop.Pointer | interop.Reference<_xmlDtd>): interop.Pointer | interop.Reference<_xmlDtd>; -declare function xmlHashCopy(table: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => interop.Pointer | interop.Reference>): number; +declare function xmlCopyElementContent(content: interop.Pointer | interop.Reference<_xmlElementContent>): interop.Pointer | interop.Reference<_xmlElementContent>; -declare function xmlHashCreate(size: number): number; +declare function xmlCopyElementTable(table: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; -declare function xmlHashCreateDict(size: number, dict: interop.Pointer | interop.Reference): number; +declare function xmlCopyEntitiesTable(table: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; -declare var xmlHashTablePtr: number; +declare function xmlCopyEnumeration(cur: interop.Pointer | interop.Reference<_xmlEnumeration>): interop.Pointer | interop.Reference<_xmlEnumeration>; -declare var xmlHashTablePtrVar: number; +declare function xmlCopyError(from: interop.Pointer | interop.Reference<_xmlError>, to: interop.Pointer | interop.Reference<_xmlError>): number; -declare var xmlHashTablePtrVar2: number; +declare function xmlCopyNamespace(cur: interop.Pointer | interop.Reference<_xmlNs>): interop.Pointer | interop.Reference<_xmlNs>; -declare var xmlIDPtr: number; +declare function xmlCopyNamespaceList(cur: interop.Pointer | interop.Reference<_xmlNs>): interop.Pointer | interop.Reference<_xmlNs>; -declare var xmlLinkPtr: number; +declare function xmlCopyNode(node: interop.Pointer | interop.Reference<_xmlNode>, recursive: number): interop.Pointer | interop.Reference<_xmlNode>; -declare var xmlLinkPtrVar: number; +declare function xmlCopyNodeList(node: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; -declare function xmlListCreate(deallocator: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>, compare: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => number>): number; +declare function xmlCopyNotationTable(table: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; -declare function xmlListDup(old: interop.Pointer | interop.Reference): number; +declare function xmlCopyProp(target: interop.Pointer | interop.Reference<_xmlNode>, cur: interop.Pointer | interop.Reference<_xmlAttr>): interop.Pointer | interop.Reference<_xmlAttr>; -declare function xmlListEnd(l: interop.Pointer | interop.Reference): number; +declare function xmlCopyPropList(target: interop.Pointer | interop.Reference<_xmlNode>, cur: interop.Pointer | interop.Reference<_xmlAttr>): interop.Pointer | interop.Reference<_xmlAttr>; -declare function xmlListFront(l: interop.Pointer | interop.Reference): number; +declare function xmlCreateDocParserCtxt(cur: string): interop.Pointer | interop.Reference<_xmlParserCtxt>; -declare var xmlListPtr: number; +declare function xmlCreateEntitiesTable(): interop.Pointer | interop.Reference; -declare var xmlListPtrVar: number; +declare function xmlCreateEntityParserCtxt(URL: string, ID: string, base: string): interop.Pointer | interop.Reference<_xmlParserCtxt>; -declare var xmlListPtrVar2: number; +declare function xmlCreateEnumeration(name: string): interop.Pointer | interop.Reference<_xmlEnumeration>; -declare var xmlMallocFunc: number; +declare function xmlCreateFileParserCtxt(filename: string): interop.Pointer | interop.Reference<_xmlParserCtxt>; -declare var xmlMallocFuncVar: number; +declare function xmlCreateIOParserCtxt(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, user_data: interop.Pointer | interop.Reference, ioread: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, ioclose: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, ioctx: interop.Pointer | interop.Reference, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserCtxt>; -declare var xmlMutexPtr: number; +declare function xmlCreateIntSubset(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string, ExternalID: string, SystemID: string): interop.Pointer | interop.Reference<_xmlDtd>; -declare function xmlNewCharEncodingHandler(name: string, input: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference, p3: string, p4: interop.Pointer | interop.Reference) => number>, output: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference, p3: string, p4: interop.Pointer | interop.Reference) => number>): number; +declare function xmlCreateMemoryParserCtxt(buffer: string, size: number): interop.Pointer | interop.Reference<_xmlParserCtxt>; -declare function xmlNewDocElementContent(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: interop.Pointer | interop.Reference, type: xmlElementContentType): number; +declare function xmlCreatePushParserCtxt(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, user_data: interop.Pointer | interop.Reference, chunk: string, size: number, filename: string): interop.Pointer | interop.Reference<_xmlParserCtxt>; -declare function xmlNewElementContent(name: interop.Pointer | interop.Reference, type: xmlElementContentType): number; +declare function xmlCreateURI(): interop.Pointer | interop.Reference<_xmlURI>; -declare function xmlNewEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: interop.Pointer | interop.Reference, type: number, ExternalID: interop.Pointer | interop.Reference, SystemID: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlCreateURLParserCtxt(filename: string, options: number): interop.Pointer | interop.Reference<_xmlParserCtxt>; -declare function xmlNewEntityInputStream(ctxt: number, entity: number): number; +declare function xmlCtxtGetLastError(ctx: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlError>; -declare function xmlNewInputFromFile(ctxt: number, filename: string): number; +declare function xmlCtxtReadDoc(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, cur: string, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare function xmlNewInputStream(ctxt: number): number; +declare function xmlCtxtReadFd(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, fd: number, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare function xmlNewStringInputStream(ctxt: number, buffer: interop.Pointer | interop.Reference): number; +declare function xmlCtxtReadFile(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, filename: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare function xmlNewTextWriter(out: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>): interop.Pointer | interop.Reference; +declare function xmlCtxtReadIO(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, ioread: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, ioclose: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, ioctx: interop.Pointer | interop.Reference, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare function xmlNewTextWriterDoc(doc: interop.Pointer | interop.Reference>, compression: number): interop.Pointer | interop.Reference; +declare function xmlCtxtReadMemory(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, buffer: string, size: number, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; -declare function xmlNewTextWriterFilename(uri: string, compression: number): interop.Pointer | interop.Reference; +declare function xmlCtxtReset(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; -declare function xmlNewTextWriterMemory(buf: interop.Pointer | interop.Reference<_xmlBuffer>, compression: number): interop.Pointer | interop.Reference; +declare function xmlCtxtResetLastError(ctx: interop.Pointer | interop.Reference): void; -declare function xmlNewTextWriterPushParser(ctxt: number, compression: number): interop.Pointer | interop.Reference; +declare function xmlCtxtResetPush(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, chunk: string, size: number, filename: string, encoding: string): number; -declare function xmlNewTextWriterTree(doc: interop.Pointer | interop.Reference<_xmlDoc>, node: interop.Pointer | interop.Reference<_xmlNode>, compression: number): interop.Pointer | interop.Reference; +declare function xmlCtxtUseOptions(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, options: number): number; -declare function xmlNoNetExternalEntityLoader(URL: string, ID: string, ctxt: number): number; +declare function xmlCurrentChar(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, len: interop.Pointer | interop.Reference): number; -declare var xmlNodePtr: number; +declare function xmlDOMWrapAdoptNode(ctxt: interop.Pointer | interop.Reference<_xmlDOMWrapCtxt>, sourceDoc: interop.Pointer | interop.Reference<_xmlDoc>, node: interop.Pointer | interop.Reference<_xmlNode>, destDoc: interop.Pointer | interop.Reference<_xmlDoc>, destParent: interop.Pointer | interop.Reference<_xmlNode>, options: number): number; -declare var xmlNodePtrVar: number; +declare function xmlDOMWrapCloneNode(ctxt: interop.Pointer | interop.Reference<_xmlDOMWrapCtxt>, sourceDoc: interop.Pointer | interop.Reference<_xmlDoc>, node: interop.Pointer | interop.Reference<_xmlNode>, clonedNode: interop.Pointer | interop.Reference>, destDoc: interop.Pointer | interop.Reference<_xmlDoc>, destParent: interop.Pointer | interop.Reference<_xmlNode>, deep: number, options: number): number; -declare var xmlNodePtrVar10: number; +declare function xmlDOMWrapFreeCtxt(ctxt: interop.Pointer | interop.Reference<_xmlDOMWrapCtxt>): void; -declare var xmlNodePtrVar11: number; +declare function xmlDOMWrapNewCtxt(): interop.Pointer | interop.Reference<_xmlDOMWrapCtxt>; -declare var xmlNodePtrVar12: number; +declare function xmlDOMWrapReconcileNamespaces(ctxt: interop.Pointer | interop.Reference<_xmlDOMWrapCtxt>, elem: interop.Pointer | interop.Reference<_xmlNode>, options: number): number; -declare var xmlNodePtrVar13: number; +declare function xmlDOMWrapRemoveNode(ctxt: interop.Pointer | interop.Reference<_xmlDOMWrapCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, node: interop.Pointer | interop.Reference<_xmlNode>, options: number): number; -declare var xmlNodePtrVar14: number; +declare function xmlDebugCheckDocument(output: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>): number; -declare var xmlNodePtrVar15: number; +declare function xmlDebugDumpAttr(output: interop.Pointer | interop.Reference, attr: interop.Pointer | interop.Reference<_xmlAttr>, depth: number): void; -declare var xmlNodePtrVar16: number; +declare function xmlDebugDumpAttrList(output: interop.Pointer | interop.Reference, attr: interop.Pointer | interop.Reference<_xmlAttr>, depth: number): void; -declare var xmlNodePtrVar17: number; +declare function xmlDebugDumpDTD(output: interop.Pointer | interop.Reference, dtd: interop.Pointer | interop.Reference<_xmlDtd>): void; -declare var xmlNodePtrVar18: number; +declare function xmlDebugDumpDocument(output: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>): void; -declare var xmlNodePtrVar19: number; +declare function xmlDebugDumpDocumentHead(output: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>): void; -declare var xmlNodePtrVar2: number; +declare function xmlDebugDumpEntities(output: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>): void; -declare var xmlNodePtrVar20: number; +declare function xmlDebugDumpNode(output: interop.Pointer | interop.Reference, node: interop.Pointer | interop.Reference<_xmlNode>, depth: number): void; -declare var xmlNodePtrVar21: number; +declare function xmlDebugDumpNodeList(output: interop.Pointer | interop.Reference, node: interop.Pointer | interop.Reference<_xmlNode>, depth: number): void; -declare var xmlNodePtrVar22: number; +declare function xmlDebugDumpOneNode(output: interop.Pointer | interop.Reference, node: interop.Pointer | interop.Reference<_xmlNode>, depth: number): void; -declare var xmlNodePtrVar23: number; +declare function xmlDebugDumpString(output: interop.Pointer | interop.Reference, str: string): void; -declare var xmlNodePtrVar24: number; +declare function xmlDecodeEntities(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, len: number, what: number, end: number, end2: number, end3: number): string; -declare var xmlNodePtrVar25: number; +declare function xmlDefaultSAXHandlerInit(): void; -declare var xmlNodePtrVar26: number; +declare function xmlDelEncodingAlias(alias: string): number; -declare var xmlNodePtrVar27: number; +declare function xmlDeregisterNodeDefault(func: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlNode>) => void>): interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlNode>) => void>; -declare var xmlNodePtrVar28: number; +declare function xmlDetectCharEncoding(_in: string, len: number): xmlCharEncoding; -declare var xmlNodePtrVar3: number; +declare function xmlDictCleanup(): void; -declare var xmlNodePtrVar4: number; +declare function xmlDictCreate(): interop.Pointer | interop.Reference; -declare var xmlNodePtrVar5: number; +declare function xmlDictCreateSub(sub: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; -declare var xmlNodePtrVar6: number; +declare function xmlDictExists(dict: interop.Pointer | interop.Reference, name: string, len: number): string; -declare var xmlNodePtrVar7: number; +declare function xmlDictFree(dict: interop.Pointer | interop.Reference): void; -declare var xmlNodePtrVar8: number; +declare function xmlDictGetUsage(dict: interop.Pointer | interop.Reference): number; -declare var xmlNodePtrVar9: number; +declare function xmlDictLookup(dict: interop.Pointer | interop.Reference, name: string, len: number): string; -declare var xmlNotationPtr: number; +declare function xmlDictOwns(dict: interop.Pointer | interop.Reference, str: string): number; -declare var xmlNotationPtrVar: number; +declare function xmlDictQLookup(dict: interop.Pointer | interop.Reference, prefix: string, name: string): string; -declare var xmlNsPtr: number; +declare function xmlDictReference(dict: interop.Pointer | interop.Reference): number; -declare var xmlNsPtrVar: number; +declare function xmlDictSetLimit(dict: interop.Pointer | interop.Reference, limit: number): number; -declare var xmlNsPtrVar2: number; +declare function xmlDictSize(dict: interop.Pointer | interop.Reference): number; -declare var xmlNsPtrVar3: number; +declare function xmlDocCopyNode(node: interop.Pointer | interop.Reference<_xmlNode>, doc: interop.Pointer | interop.Reference<_xmlDoc>, recursive: number): interop.Pointer | interop.Reference<_xmlNode>; -declare var xmlNsPtrVar4: number; +declare function xmlDocCopyNodeList(doc: interop.Pointer | interop.Reference<_xmlDoc>, node: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; -declare var xmlOutputBufferCreateFilenameFunc: number; +declare function xmlDocDump(f: interop.Pointer | interop.Reference, cur: interop.Pointer | interop.Reference<_xmlDoc>): number; -declare var xmlOutputBufferCreateFilenameFuncVar: number; +declare function xmlDocDumpFormatMemory(cur: interop.Pointer | interop.Reference<_xmlDoc>, mem: interop.Pointer | interop.Reference, size: interop.Pointer | interop.Reference, format: number): void; -declare var xmlOutputBufferCreateFilenameFuncVar2: number; +declare function xmlDocDumpFormatMemoryEnc(out_doc: interop.Pointer | interop.Reference<_xmlDoc>, doc_txt_ptr: interop.Pointer | interop.Reference, doc_txt_len: interop.Pointer | interop.Reference, txt_encoding: string, format: number): void; -declare var xmlOutputBufferCreateFilenameFuncVar3: number; +declare function xmlDocDumpMemory(cur: interop.Pointer | interop.Reference<_xmlDoc>, mem: interop.Pointer | interop.Reference, size: interop.Pointer | interop.Reference): void; -declare function xmlParseCharEncoding(name: string): number; +declare function xmlDocDumpMemoryEnc(out_doc: interop.Pointer | interop.Reference<_xmlDoc>, doc_txt_ptr: interop.Pointer | interop.Reference, doc_txt_len: interop.Pointer | interop.Reference, txt_encoding: string): void; -declare function xmlParseElementChildrenContentDecl(ctxt: number, inputchk: number): number; +declare function xmlDocFormatDump(f: interop.Pointer | interop.Reference, cur: interop.Pointer | interop.Reference<_xmlDoc>, format: number): number; -declare function xmlParseElementMixedContentDecl(ctxt: number, inputchk: number): number; +declare function xmlDocGetRootElement(doc: interop.Pointer | interop.Reference<_xmlDoc>): interop.Pointer | interop.Reference<_xmlNode>; -declare function xmlParseEntityRef(ctxt: number): number; +declare const enum xmlDocProperties { -declare function xmlParseEnumerationType(ctxt: number): number; + XML_DOC_WELLFORMED = 1, -declare function xmlParseNotationType(ctxt: number): number; + XML_DOC_NSVALID = 2, -declare function xmlParseURI(str: string): number; + XML_DOC_OLD10 = 4, -declare function xmlParseURIRaw(str: string, raw: number): number; + XML_DOC_DTDVALID = 8, -declare var xmlParserCtxtPtr: number; + XML_DOC_XINCLUDE = 16, -declare var xmlParserCtxtPtrVar: number; + XML_DOC_USERBUILT = 32, -declare var xmlParserCtxtPtrVar2: number; + XML_DOC_INTERNAL = 64, -declare var xmlParserCtxtPtrVar3: number; + XML_DOC_HTML = 128 +} -declare var xmlParserCtxtPtrVar4: number; +declare function xmlDocSetRootElement(doc: interop.Pointer | interop.Reference<_xmlDoc>, root: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; -declare var xmlParserCtxtPtrVar5: number; +declare function xmlDumpAttributeDecl(buf: interop.Pointer | interop.Reference<_xmlBuffer>, attr: interop.Pointer | interop.Reference<_xmlAttribute>): void; -declare var xmlParserCtxtPtrVar6: number; +declare function xmlDumpAttributeTable(buf: interop.Pointer | interop.Reference<_xmlBuffer>, table: interop.Pointer | interop.Reference): void; -declare var xmlParserErrors: number; +declare function xmlDumpElementDecl(buf: interop.Pointer | interop.Reference<_xmlBuffer>, elem: interop.Pointer | interop.Reference<_xmlElement>): void; -declare const enum xmlParserErrorsEnum { +declare function xmlDumpElementTable(buf: interop.Pointer | interop.Reference<_xmlBuffer>, table: interop.Pointer | interop.Reference): void; - XML_ERR_OK = 0, +declare function xmlDumpEntitiesTable(buf: interop.Pointer | interop.Reference<_xmlBuffer>, table: interop.Pointer | interop.Reference): void; - XML_ERR_INTERNAL_ERROR = 1, +declare function xmlDumpEntityDecl(buf: interop.Pointer | interop.Reference<_xmlBuffer>, ent: interop.Pointer | interop.Reference<_xmlEntity>): void; - XML_ERR_NO_MEMORY = 2, +declare function xmlDumpNotationDecl(buf: interop.Pointer | interop.Reference<_xmlBuffer>, nota: interop.Pointer | interop.Reference<_xmlNotation>): void; - XML_ERR_DOCUMENT_START = 3, +declare function xmlDumpNotationTable(buf: interop.Pointer | interop.Reference<_xmlBuffer>, table: interop.Pointer | interop.Reference): void; - XML_ERR_DOCUMENT_EMPTY = 4, +declare function xmlElemDump(f: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlNode>): void; - XML_ERR_DOCUMENT_END = 5, +declare const enum xmlElementContentOccur { - XML_ERR_INVALID_HEX_CHARREF = 6, + XML_ELEMENT_CONTENT_ONCE = 1, - XML_ERR_INVALID_DEC_CHARREF = 7, + XML_ELEMENT_CONTENT_OPT = 2, - XML_ERR_INVALID_CHARREF = 8, + XML_ELEMENT_CONTENT_MULT = 3, - XML_ERR_INVALID_CHAR = 9, + XML_ELEMENT_CONTENT_PLUS = 4 +} - XML_ERR_CHARREF_AT_EOF = 10, +declare const enum xmlElementContentType { - XML_ERR_CHARREF_IN_PROLOG = 11, + XML_ELEMENT_CONTENT_PCDATA = 1, - XML_ERR_CHARREF_IN_EPILOG = 12, + XML_ELEMENT_CONTENT_ELEMENT = 2, - XML_ERR_CHARREF_IN_DTD = 13, + XML_ELEMENT_CONTENT_SEQ = 3, - XML_ERR_ENTITYREF_AT_EOF = 14, + XML_ELEMENT_CONTENT_OR = 4 +} - XML_ERR_ENTITYREF_IN_PROLOG = 15, +declare const enum xmlElementType { - XML_ERR_ENTITYREF_IN_EPILOG = 16, + XML_ELEMENT_NODE = 1, - XML_ERR_ENTITYREF_IN_DTD = 17, + XML_ATTRIBUTE_NODE = 2, - XML_ERR_PEREF_AT_EOF = 18, + XML_TEXT_NODE = 3, - XML_ERR_PEREF_IN_PROLOG = 19, + XML_CDATA_SECTION_NODE = 4, - XML_ERR_PEREF_IN_EPILOG = 20, + XML_ENTITY_REF_NODE = 5, - XML_ERR_PEREF_IN_INT_SUBSET = 21, + XML_ENTITY_NODE = 6, - XML_ERR_ENTITYREF_NO_NAME = 22, + XML_PI_NODE = 7, - XML_ERR_ENTITYREF_SEMICOL_MISSING = 23, + XML_COMMENT_NODE = 8, - XML_ERR_PEREF_NO_NAME = 24, + XML_DOCUMENT_NODE = 9, - XML_ERR_PEREF_SEMICOL_MISSING = 25, + XML_DOCUMENT_TYPE_NODE = 10, - XML_ERR_UNDECLARED_ENTITY = 26, + XML_DOCUMENT_FRAG_NODE = 11, - XML_WAR_UNDECLARED_ENTITY = 27, + XML_NOTATION_NODE = 12, - XML_ERR_UNPARSED_ENTITY = 28, + XML_HTML_DOCUMENT_NODE = 13, - XML_ERR_ENTITY_IS_EXTERNAL = 29, + XML_DTD_NODE = 14, - XML_ERR_ENTITY_IS_PARAMETER = 30, + XML_ELEMENT_DECL = 15, - XML_ERR_UNKNOWN_ENCODING = 31, + XML_ATTRIBUTE_DECL = 16, - XML_ERR_UNSUPPORTED_ENCODING = 32, + XML_ENTITY_DECL = 17, - XML_ERR_STRING_NOT_STARTED = 33, + XML_NAMESPACE_DECL = 18, - XML_ERR_STRING_NOT_CLOSED = 34, + XML_XINCLUDE_START = 19, - XML_ERR_NS_DECL_ERROR = 35, + XML_XINCLUDE_END = 20, - XML_ERR_ENTITY_NOT_STARTED = 36, + XML_DOCB_DOCUMENT_NODE = 21 +} - XML_ERR_ENTITY_NOT_FINISHED = 37, +declare const enum xmlElementTypeVal { - XML_ERR_LT_IN_ATTRIBUTE = 38, + XML_ELEMENT_TYPE_UNDEFINED = 0, - XML_ERR_ATTRIBUTE_NOT_STARTED = 39, + XML_ELEMENT_TYPE_EMPTY = 1, - XML_ERR_ATTRIBUTE_NOT_FINISHED = 40, + XML_ELEMENT_TYPE_ANY = 2, - XML_ERR_ATTRIBUTE_WITHOUT_VALUE = 41, + XML_ELEMENT_TYPE_MIXED = 3, - XML_ERR_ATTRIBUTE_REDEFINED = 42, + XML_ELEMENT_TYPE_ELEMENT = 4 +} - XML_ERR_LITERAL_NOT_STARTED = 43, +declare function xmlEncodeEntities(doc: interop.Pointer | interop.Reference<_xmlDoc>, input: string): string; - XML_ERR_LITERAL_NOT_FINISHED = 44, +declare function xmlEncodeEntitiesReentrant(doc: interop.Pointer | interop.Reference<_xmlDoc>, input: string): string; - XML_ERR_COMMENT_NOT_FINISHED = 45, +declare function xmlEncodeSpecialChars(doc: interop.Pointer | interop.Reference<_xmlDoc>, input: string): string; - XML_ERR_PI_NOT_STARTED = 46, +declare const enum xmlEntityType { - XML_ERR_PI_NOT_FINISHED = 47, + XML_INTERNAL_GENERAL_ENTITY = 1, - XML_ERR_NOTATION_NOT_STARTED = 48, + XML_EXTERNAL_GENERAL_PARSED_ENTITY = 2, - XML_ERR_NOTATION_NOT_FINISHED = 49, + XML_EXTERNAL_GENERAL_UNPARSED_ENTITY = 3, - XML_ERR_ATTLIST_NOT_STARTED = 50, + XML_INTERNAL_PARAMETER_ENTITY = 4, - XML_ERR_ATTLIST_NOT_FINISHED = 51, + XML_EXTERNAL_PARAMETER_ENTITY = 5, - XML_ERR_MIXED_NOT_STARTED = 52, + XML_INTERNAL_PREDEFINED_ENTITY = 6 +} - XML_ERR_MIXED_NOT_FINISHED = 53, +declare const enum xmlErrorDomain { - XML_ERR_ELEMCONTENT_NOT_STARTED = 54, + XML_FROM_NONE = 0, - XML_ERR_ELEMCONTENT_NOT_FINISHED = 55, + XML_FROM_PARSER = 1, - XML_ERR_XMLDECL_NOT_STARTED = 56, + XML_FROM_TREE = 2, - XML_ERR_XMLDECL_NOT_FINISHED = 57, + XML_FROM_NAMESPACE = 3, - XML_ERR_CONDSEC_NOT_STARTED = 58, + XML_FROM_DTD = 4, - XML_ERR_CONDSEC_NOT_FINISHED = 59, + XML_FROM_HTML = 5, - XML_ERR_EXT_SUBSET_NOT_FINISHED = 60, + XML_FROM_MEMORY = 6, - XML_ERR_DOCTYPE_NOT_FINISHED = 61, + XML_FROM_OUTPUT = 7, - XML_ERR_MISPLACED_CDATA_END = 62, + XML_FROM_IO = 8, - XML_ERR_CDATA_NOT_FINISHED = 63, + XML_FROM_FTP = 9, + + XML_FROM_HTTP = 10, + + XML_FROM_XINCLUDE = 11, + + XML_FROM_XPATH = 12, + + XML_FROM_XPOINTER = 13, + + XML_FROM_REGEXP = 14, + + XML_FROM_DATATYPE = 15, + + XML_FROM_SCHEMASP = 16, + + XML_FROM_SCHEMASV = 17, + + XML_FROM_RELAXNGP = 18, + + XML_FROM_RELAXNGV = 19, + + XML_FROM_CATALOG = 20, + + XML_FROM_C14N = 21, + + XML_FROM_XSLT = 22, + + XML_FROM_VALID = 23, + + XML_FROM_CHECK = 24, + + XML_FROM_WRITER = 25, + + XML_FROM_MODULE = 26, + + XML_FROM_I18N = 27, + + XML_FROM_SCHEMATRONV = 28, + + XML_FROM_BUFFER = 29, + + XML_FROM_URI = 30 +} + +declare const enum xmlErrorLevel { + + XML_ERR_NONE = 0, + + XML_ERR_WARNING = 1, + + XML_ERR_ERROR = 2, + + XML_ERR_FATAL = 3 +} + +declare function xmlExpCtxtNbCons(ctxt: interop.Pointer | interop.Reference): number; + +declare function xmlExpCtxtNbNodes(ctxt: interop.Pointer | interop.Reference): number; + +declare function xmlExpDump(buf: interop.Pointer | interop.Reference<_xmlBuffer>, expr: interop.Pointer | interop.Reference): void; + +declare function xmlExpExpDerive(ctxt: interop.Pointer | interop.Reference, expr: interop.Pointer | interop.Reference, sub: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlExpFree(ctxt: interop.Pointer | interop.Reference, expr: interop.Pointer | interop.Reference): void; + +declare function xmlExpFreeCtxt(ctxt: interop.Pointer | interop.Reference): void; + +declare function xmlExpGetLanguage(ctxt: interop.Pointer | interop.Reference, expr: interop.Pointer | interop.Reference, langList: interop.Pointer | interop.Reference, len: number): number; + +declare function xmlExpGetStart(ctxt: interop.Pointer | interop.Reference, expr: interop.Pointer | interop.Reference, tokList: interop.Pointer | interop.Reference, len: number): number; + +declare function xmlExpIsNillable(expr: interop.Pointer | interop.Reference): number; + +declare function xmlExpMaxToken(expr: interop.Pointer | interop.Reference): number; + +declare function xmlExpNewAtom(ctxt: interop.Pointer | interop.Reference, name: string, len: number): interop.Pointer | interop.Reference; + +declare function xmlExpNewCtxt(maxNodes: number, dict: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlExpNewOr(ctxt: interop.Pointer | interop.Reference, left: interop.Pointer | interop.Reference, right: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlExpNewRange(ctxt: interop.Pointer | interop.Reference, subset: interop.Pointer | interop.Reference, min: number, max: number): interop.Pointer | interop.Reference; + +declare function xmlExpNewSeq(ctxt: interop.Pointer | interop.Reference, left: interop.Pointer | interop.Reference, right: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare const enum xmlExpNodeType { + + XML_EXP_EMPTY = 0, + + XML_EXP_FORBID = 1, + + XML_EXP_ATOM = 2, + + XML_EXP_SEQ = 3, + + XML_EXP_OR = 4, + + XML_EXP_COUNT = 5 +} + +declare function xmlExpParse(ctxt: interop.Pointer | interop.Reference, expr: string): interop.Pointer | interop.Reference; + +declare function xmlExpRef(expr: interop.Pointer | interop.Reference): void; + +declare function xmlExpStringDerive(ctxt: interop.Pointer | interop.Reference, expr: interop.Pointer | interop.Reference, str: string, len: number): interop.Pointer | interop.Reference; + +declare function xmlExpSubsume(ctxt: interop.Pointer | interop.Reference, expr: interop.Pointer | interop.Reference, sub: interop.Pointer | interop.Reference): number; + +declare const enum xmlFeature { + + XML_WITH_THREAD = 1, + + XML_WITH_TREE = 2, + + XML_WITH_OUTPUT = 3, + + XML_WITH_PUSH = 4, + + XML_WITH_READER = 5, + + XML_WITH_PATTERN = 6, + + XML_WITH_WRITER = 7, + + XML_WITH_SAX1 = 8, + + XML_WITH_FTP = 9, + + XML_WITH_HTTP = 10, + + XML_WITH_VALID = 11, + + XML_WITH_HTML = 12, + + XML_WITH_LEGACY = 13, + + XML_WITH_C14N = 14, + + XML_WITH_CATALOG = 15, + + XML_WITH_XPATH = 16, + + XML_WITH_XPTR = 17, + + XML_WITH_XINCLUDE = 18, + + XML_WITH_ICONV = 19, + + XML_WITH_ISO8859X = 20, + + XML_WITH_UNICODE = 21, + + XML_WITH_REGEXP = 22, + + XML_WITH_AUTOMATA = 23, + + XML_WITH_EXPR = 24, + + XML_WITH_SCHEMAS = 25, + + XML_WITH_SCHEMATRON = 26, + + XML_WITH_MODULES = 27, + + XML_WITH_DEBUG = 28, + + XML_WITH_DEBUG_MEM = 29, + + XML_WITH_DEBUG_RUN = 30, + + XML_WITH_ZLIB = 31, + + XML_WITH_ICU = 32, + + XML_WITH_LZMA = 33, + + XML_WITH_NONE = 99999 +} + +declare function xmlFileClose(context: interop.Pointer | interop.Reference): number; + +declare function xmlFileMatch(filename: string): number; + +declare function xmlFileOpen(filename: string): interop.Pointer | interop.Reference; + +declare function xmlFileRead(context: interop.Pointer | interop.Reference, buffer: string, len: number): number; + +declare function xmlFindCharEncodingHandler(name: string): interop.Pointer | interop.Reference<_xmlCharEncodingHandler>; + +declare function xmlFirstElementChild(parent: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; + +declare var xmlFree: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>; + +declare function xmlFreeAttributeTable(table: interop.Pointer | interop.Reference): void; + +declare function xmlFreeAutomata(am: interop.Pointer | interop.Reference): void; + +declare function xmlFreeCatalog(catal: interop.Pointer | interop.Reference): void; + +declare function xmlFreeDoc(cur: interop.Pointer | interop.Reference<_xmlDoc>): void; + +declare function xmlFreeDocElementContent(doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlElementContent>): void; + +declare function xmlFreeDtd(cur: interop.Pointer | interop.Reference<_xmlDtd>): void; + +declare function xmlFreeElementContent(cur: interop.Pointer | interop.Reference<_xmlElementContent>): void; + +declare function xmlFreeElementTable(table: interop.Pointer | interop.Reference): void; + +declare function xmlFreeEntitiesTable(table: interop.Pointer | interop.Reference): void; + +declare function xmlFreeEnumeration(cur: interop.Pointer | interop.Reference<_xmlEnumeration>): void; + +declare function xmlFreeIDTable(table: interop.Pointer | interop.Reference): void; + +declare function xmlFreeInputStream(input: interop.Pointer | interop.Reference<_xmlParserInput>): void; + +declare function xmlFreeMutex(tok: interop.Pointer | interop.Reference): void; + +declare function xmlFreeNode(cur: interop.Pointer | interop.Reference<_xmlNode>): void; + +declare function xmlFreeNodeList(cur: interop.Pointer | interop.Reference<_xmlNode>): void; + +declare function xmlFreeNotationTable(table: interop.Pointer | interop.Reference): void; + +declare function xmlFreeNs(cur: interop.Pointer | interop.Reference<_xmlNs>): void; + +declare function xmlFreeNsList(cur: interop.Pointer | interop.Reference<_xmlNs>): void; + +declare function xmlFreeParserCtxt(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlFreeParserInputBuffer(_in: interop.Pointer | interop.Reference<_xmlParserInputBuffer>): void; + +declare function xmlFreePattern(comp: interop.Pointer | interop.Reference): void; + +declare function xmlFreePatternList(comp: interop.Pointer | interop.Reference): void; + +declare function xmlFreeProp(cur: interop.Pointer | interop.Reference<_xmlAttr>): void; + +declare function xmlFreePropList(cur: interop.Pointer | interop.Reference<_xmlAttr>): void; + +declare function xmlFreeRMutex(tok: interop.Pointer | interop.Reference): void; + +declare function xmlFreeRefTable(table: interop.Pointer | interop.Reference): void; + +declare function xmlFreeStreamCtxt(stream: interop.Pointer | interop.Reference): void; + +declare function xmlFreeTextReader(reader: interop.Pointer | interop.Reference): void; + +declare function xmlFreeTextWriter(writer: interop.Pointer | interop.Reference): void; + +declare function xmlFreeURI(uri: interop.Pointer | interop.Reference<_xmlURI>): void; + +declare function xmlFreeValidCtxt(p1: interop.Pointer | interop.Reference<_xmlValidCtxt>): void; + +declare function xmlGcMemGet(freeFunc: interop.Pointer | interop.Reference) => void>>, mallocFunc: interop.Pointer | interop.Reference interop.Pointer | interop.Reference>>, mallocAtomicFunc: interop.Pointer | interop.Reference interop.Pointer | interop.Reference>>, reallocFunc: interop.Pointer | interop.Reference, p2: number) => interop.Pointer | interop.Reference>>, strdupFunc: interop.Pointer | interop.Reference string>>): number; + +declare function xmlGcMemSetup(freeFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>, mallocFunc: interop.FunctionReference<(p1: number) => interop.Pointer | interop.Reference>, mallocAtomicFunc: interop.FunctionReference<(p1: number) => interop.Pointer | interop.Reference>, reallocFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number) => interop.Pointer | interop.Reference>, strdupFunc: interop.FunctionReference<(p1: string) => string>): number; + +declare function xmlGetBufferAllocationScheme(): xmlBufferAllocationScheme; + +declare function xmlGetCharEncodingHandler(enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlCharEncodingHandler>; + +declare function xmlGetCharEncodingName(enc: xmlCharEncoding): string; + +declare function xmlGetCompressMode(): number; + +declare function xmlGetDocCompressMode(doc: interop.Pointer | interop.Reference<_xmlDoc>): number; + +declare function xmlGetDocEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string): interop.Pointer | interop.Reference<_xmlEntity>; + +declare function xmlGetDtdAttrDesc(dtd: interop.Pointer | interop.Reference<_xmlDtd>, elem: string, name: string): interop.Pointer | interop.Reference<_xmlAttribute>; + +declare function xmlGetDtdElementDesc(dtd: interop.Pointer | interop.Reference<_xmlDtd>, name: string): interop.Pointer | interop.Reference<_xmlElement>; + +declare function xmlGetDtdEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string): interop.Pointer | interop.Reference<_xmlEntity>; + +declare function xmlGetDtdNotationDesc(dtd: interop.Pointer | interop.Reference<_xmlDtd>, name: string): interop.Pointer | interop.Reference<_xmlNotation>; + +declare function xmlGetDtdQAttrDesc(dtd: interop.Pointer | interop.Reference<_xmlDtd>, elem: string, name: string, prefix: string): interop.Pointer | interop.Reference<_xmlAttribute>; + +declare function xmlGetDtdQElementDesc(dtd: interop.Pointer | interop.Reference<_xmlDtd>, name: string, prefix: string): interop.Pointer | interop.Reference<_xmlElement>; + +declare function xmlGetEncodingAlias(alias: string): string; + +declare function xmlGetExternalEntityLoader(): interop.FunctionReference<(p1: string, p2: string, p3: interop.Pointer | interop.Reference<_xmlParserCtxt>) => interop.Pointer | interop.Reference<_xmlParserInput>>; + +declare function xmlGetFeature(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, name: string, result: interop.Pointer | interop.Reference): number; + +declare function xmlGetFeaturesList(len: interop.Pointer | interop.Reference, result: interop.Pointer | interop.Reference): number; + +declare function xmlGetGlobalState(): interop.Pointer | interop.Reference<_xmlGlobalState>; + +declare function xmlGetID(doc: interop.Pointer | interop.Reference<_xmlDoc>, ID: string): interop.Pointer | interop.Reference<_xmlAttr>; + +declare function xmlGetIntSubset(doc: interop.Pointer | interop.Reference<_xmlDoc>): interop.Pointer | interop.Reference<_xmlDtd>; + +declare function xmlGetLastChild(parent: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlGetLastError(): interop.Pointer | interop.Reference<_xmlError>; + +declare function xmlGetLineNo(node: interop.Pointer | interop.Reference<_xmlNode>): number; + +declare function xmlGetNoNsProp(node: interop.Pointer | interop.Reference<_xmlNode>, name: string): string; + +declare function xmlGetNodePath(node: interop.Pointer | interop.Reference<_xmlNode>): string; + +declare function xmlGetNsList(doc: interop.Pointer | interop.Reference<_xmlDoc>, node: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference>; + +declare function xmlGetNsProp(node: interop.Pointer | interop.Reference<_xmlNode>, name: string, nameSpace: string): string; + +declare function xmlGetParameterEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string): interop.Pointer | interop.Reference<_xmlEntity>; + +declare function xmlGetPredefinedEntity(name: string): interop.Pointer | interop.Reference<_xmlEntity>; + +declare function xmlGetProp(node: interop.Pointer | interop.Reference<_xmlNode>, name: string): string; + +declare function xmlGetRefs(doc: interop.Pointer | interop.Reference<_xmlDoc>, ID: string): interop.Pointer | interop.Reference; + +declare function xmlGetThreadId(): number; + +declare function xmlGetUTF8Char(utf: string, len: interop.Pointer | interop.Reference): number; + +declare function xmlHandleEntity(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, entity: interop.Pointer | interop.Reference<_xmlEntity>): void; + +declare function xmlHasFeature(feature: xmlFeature): number; + +declare function xmlHasNsProp(node: interop.Pointer | interop.Reference<_xmlNode>, name: string, nameSpace: string): interop.Pointer | interop.Reference<_xmlAttr>; + +declare function xmlHasProp(node: interop.Pointer | interop.Reference<_xmlNode>, name: string): interop.Pointer | interop.Reference<_xmlAttr>; + +declare function xmlHashAddEntry(table: interop.Pointer | interop.Reference, name: string, userdata: interop.Pointer | interop.Reference): number; + +declare function xmlHashAddEntry2(table: interop.Pointer | interop.Reference, name: string, name2: string, userdata: interop.Pointer | interop.Reference): number; + +declare function xmlHashAddEntry3(table: interop.Pointer | interop.Reference, name: string, name2: string, name3: string, userdata: interop.Pointer | interop.Reference): number; + +declare function xmlHashCopy(table: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; + +declare function xmlHashCreate(size: number): interop.Pointer | interop.Reference; + +declare function xmlHashCreateDict(size: number, dict: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlHashFree(table: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>): void; + +declare function xmlHashLookup(table: interop.Pointer | interop.Reference, name: string): interop.Pointer | interop.Reference; + +declare function xmlHashLookup2(table: interop.Pointer | interop.Reference, name: string, name2: string): interop.Pointer | interop.Reference; + +declare function xmlHashLookup3(table: interop.Pointer | interop.Reference, name: string, name2: string, name3: string): interop.Pointer | interop.Reference; + +declare function xmlHashQLookup(table: interop.Pointer | interop.Reference, name: string, prefix: string): interop.Pointer | interop.Reference; + +declare function xmlHashQLookup2(table: interop.Pointer | interop.Reference, name: string, prefix: string, name2: string, prefix2: string): interop.Pointer | interop.Reference; + +declare function xmlHashQLookup3(table: interop.Pointer | interop.Reference, name: string, prefix: string, name2: string, prefix2: string, name3: string, prefix3: string): interop.Pointer | interop.Reference; + +declare function xmlHashRemoveEntry(table: interop.Pointer | interop.Reference, name: string, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>): number; + +declare function xmlHashRemoveEntry2(table: interop.Pointer | interop.Reference, name: string, name2: string, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>): number; + +declare function xmlHashRemoveEntry3(table: interop.Pointer | interop.Reference, name: string, name2: string, name3: string, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>): number; + +declare function xmlHashScan(table: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: string) => void>, data: interop.Pointer | interop.Reference): void; + +declare function xmlHashScan3(table: interop.Pointer | interop.Reference, name: string, name2: string, name3: string, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: string) => void>, data: interop.Pointer | interop.Reference): void; + +declare function xmlHashScanFull(table: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: string, p4: string, p5: string) => void>, data: interop.Pointer | interop.Reference): void; + +declare function xmlHashScanFull3(table: interop.Pointer | interop.Reference, name: string, name2: string, name3: string, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: string, p4: string, p5: string) => void>, data: interop.Pointer | interop.Reference): void; + +declare function xmlHashSize(table: interop.Pointer | interop.Reference): number; + +declare function xmlHashUpdateEntry(table: interop.Pointer | interop.Reference, name: string, userdata: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>): number; + +declare function xmlHashUpdateEntry2(table: interop.Pointer | interop.Reference, name: string, name2: string, userdata: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>): number; + +declare function xmlHashUpdateEntry3(table: interop.Pointer | interop.Reference, name: string, name2: string, name3: string, userdata: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>): number; + +declare function xmlIOFTPClose(context: interop.Pointer | interop.Reference): number; + +declare function xmlIOFTPMatch(filename: string): number; + +declare function xmlIOFTPOpen(filename: string): interop.Pointer | interop.Reference; + +declare function xmlIOFTPRead(context: interop.Pointer | interop.Reference, buffer: string, len: number): number; + +declare function xmlIOHTTPClose(context: interop.Pointer | interop.Reference): number; + +declare function xmlIOHTTPMatch(filename: string): number; + +declare function xmlIOHTTPOpen(filename: string): interop.Pointer | interop.Reference; + +declare function xmlIOHTTPOpenW(post_uri: string, compression: number): interop.Pointer | interop.Reference; + +declare function xmlIOHTTPRead(context: interop.Pointer | interop.Reference, buffer: string, len: number): number; + +declare function xmlIOParseDTD(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, input: interop.Pointer | interop.Reference<_xmlParserInputBuffer>, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlDtd>; + +declare function xmlInitCharEncodingHandlers(): void; + +declare function xmlInitGlobals(): void; + +declare function xmlInitMemory(): number; + +declare function xmlInitNodeInfoSeq(seq: interop.Pointer | interop.Reference<_xmlParserNodeInfoSeq>): void; + +declare function xmlInitParser(): void; + +declare function xmlInitParserCtxt(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; + +declare function xmlInitThreads(): void; + +declare function xmlInitializeCatalog(): void; + +declare function xmlInitializeDict(): number; + +declare function xmlInitializeGlobalState(gs: interop.Pointer | interop.Reference<_xmlGlobalState>): void; + +declare function xmlInitializePredefinedEntities(): void; + +declare function xmlIsBaseChar(ch: number): number; + +declare var xmlIsBaseCharGroup: _xmlChRangeGroup; + +declare function xmlIsBlank(ch: number): number; + +declare function xmlIsBlankNode(node: interop.Pointer | interop.Reference<_xmlNode>): number; + +declare function xmlIsChar(ch: number): number; + +declare var xmlIsCharGroup: _xmlChRangeGroup; + +declare function xmlIsCombining(ch: number): number; + +declare var xmlIsCombiningGroup: _xmlChRangeGroup; + +declare function xmlIsDigit(ch: number): number; + +declare var xmlIsDigitGroup: _xmlChRangeGroup; + +declare function xmlIsExtender(ch: number): number; + +declare var xmlIsExtenderGroup: _xmlChRangeGroup; + +declare function xmlIsID(doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>, attr: interop.Pointer | interop.Reference<_xmlAttr>): number; + +declare function xmlIsIdeographic(ch: number): number; + +declare var xmlIsIdeographicGroup: _xmlChRangeGroup; + +declare function xmlIsLetter(c: number): number; + +declare function xmlIsMainThread(): number; + +declare function xmlIsMixedElement(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string): number; + +declare function xmlIsPubidChar(ch: number): number; + +declare var xmlIsPubidChar_tab: interop.Reference; + +declare function xmlIsRef(doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>, attr: interop.Pointer | interop.Reference<_xmlAttr>): number; + +declare function xmlIsXHTML(systemID: string, publicID: string): number; + +declare function xmlKeepBlanksDefault(val: number): number; + +declare function xmlLastElementChild(parent: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlLineNumbersDefault(val: number): number; + +declare function xmlLinkGetData(lk: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlListAppend(l: interop.Pointer | interop.Reference, data: interop.Pointer | interop.Reference): number; + +declare function xmlListClear(l: interop.Pointer | interop.Reference): void; + +declare function xmlListCopy(cur: interop.Pointer | interop.Reference, old: interop.Pointer | interop.Reference): number; + +declare function xmlListCreate(deallocator: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>, compare: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => number>): interop.Pointer | interop.Reference; + +declare function xmlListDelete(l: interop.Pointer | interop.Reference): void; + +declare function xmlListDup(old: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlListEmpty(l: interop.Pointer | interop.Reference): number; + +declare function xmlListEnd(l: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlListFront(l: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlListInsert(l: interop.Pointer | interop.Reference, data: interop.Pointer | interop.Reference): number; + +declare function xmlListMerge(l1: interop.Pointer | interop.Reference, l2: interop.Pointer | interop.Reference): void; + +declare function xmlListPopBack(l: interop.Pointer | interop.Reference): void; + +declare function xmlListPopFront(l: interop.Pointer | interop.Reference): void; + +declare function xmlListPushBack(l: interop.Pointer | interop.Reference, data: interop.Pointer | interop.Reference): number; + +declare function xmlListPushFront(l: interop.Pointer | interop.Reference, data: interop.Pointer | interop.Reference): number; + +declare function xmlListRemoveAll(l: interop.Pointer | interop.Reference, data: interop.Pointer | interop.Reference): number; + +declare function xmlListRemoveFirst(l: interop.Pointer | interop.Reference, data: interop.Pointer | interop.Reference): number; + +declare function xmlListRemoveLast(l: interop.Pointer | interop.Reference, data: interop.Pointer | interop.Reference): number; + +declare function xmlListReverse(l: interop.Pointer | interop.Reference): void; + +declare function xmlListReverseSearch(l: interop.Pointer | interop.Reference, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlListReverseWalk(l: interop.Pointer | interop.Reference, walker: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => number>, user: interop.Pointer | interop.Reference): void; + +declare function xmlListSearch(l: interop.Pointer | interop.Reference, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlListSize(l: interop.Pointer | interop.Reference): number; + +declare function xmlListSort(l: interop.Pointer | interop.Reference): void; + +declare function xmlListWalk(l: interop.Pointer | interop.Reference, walker: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference) => number>, user: interop.Pointer | interop.Reference): void; + +declare function xmlLoadACatalog(filename: string): interop.Pointer | interop.Reference; + +declare function xmlLoadCatalog(filename: string): number; + +declare function xmlLoadCatalogs(paths: string): void; + +declare function xmlLoadExternalEntity(URL: string, ID: string, ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): interop.Pointer | interop.Reference<_xmlParserInput>; + +declare function xmlLoadSGMLSuperCatalog(filename: string): interop.Pointer | interop.Reference; + +declare function xmlLockLibrary(): void; + +declare function xmlLsCountNode(node: interop.Pointer | interop.Reference<_xmlNode>): number; + +declare function xmlLsOneNode(output: interop.Pointer | interop.Reference, node: interop.Pointer | interop.Reference<_xmlNode>): void; + +declare var xmlMalloc: interop.FunctionReference<(p1: number) => interop.Pointer | interop.Reference>; + +declare var xmlMallocAtomic: interop.FunctionReference<(p1: number) => interop.Pointer | interop.Reference>; + +declare function xmlMallocAtomicLoc(size: number, file: string, line: number): interop.Pointer | interop.Reference; + +declare function xmlMallocLoc(size: number, file: string, line: number): interop.Pointer | interop.Reference; + +declare function xmlMemBlocks(): number; + +declare function xmlMemDisplay(fp: interop.Pointer | interop.Reference): void; + +declare function xmlMemDisplayLast(fp: interop.Pointer | interop.Reference, nbBytes: number): void; + +declare function xmlMemFree(ptr: interop.Pointer | interop.Reference): void; + +declare function xmlMemGet(freeFunc: interop.Pointer | interop.Reference) => void>>, mallocFunc: interop.Pointer | interop.Reference interop.Pointer | interop.Reference>>, reallocFunc: interop.Pointer | interop.Reference, p2: number) => interop.Pointer | interop.Reference>>, strdupFunc: interop.Pointer | interop.Reference string>>): number; + +declare function xmlMemMalloc(size: number): interop.Pointer | interop.Reference; + +declare function xmlMemRealloc(ptr: interop.Pointer | interop.Reference, size: number): interop.Pointer | interop.Reference; + +declare function xmlMemSetup(freeFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => void>, mallocFunc: interop.FunctionReference<(p1: number) => interop.Pointer | interop.Reference>, reallocFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number) => interop.Pointer | interop.Reference>, strdupFunc: interop.FunctionReference<(p1: string) => string>): number; + +declare function xmlMemShow(fp: interop.Pointer | interop.Reference, nr: number): void; + +declare var xmlMemStrdup: interop.FunctionReference<(p1: string) => string>; + +declare function xmlMemStrdupLoc(str: string, file: string, line: number): string; + +declare function xmlMemUsed(): number; + +declare function xmlMemoryDump(): void; + +declare function xmlMemoryStrdup(str: string): string; + +declare function xmlModuleClose(module: interop.Pointer | interop.Reference): number; + +declare function xmlModuleFree(module: interop.Pointer | interop.Reference): number; + +declare function xmlModuleOpen(filename: string, options: number): interop.Pointer | interop.Reference; + +declare const enum xmlModuleOption { + + XML_MODULE_LAZY = 1, + + XML_MODULE_LOCAL = 2 +} + +declare function xmlModuleSymbol(module: interop.Pointer | interop.Reference, name: string, result: interop.Pointer | interop.Reference>): number; + +declare function xmlMutexLock(tok: interop.Pointer | interop.Reference): void; + +declare function xmlMutexUnlock(tok: interop.Pointer | interop.Reference): void; + +declare function xmlNamespaceParseNCName(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlNamespaceParseNSDef(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlNamespaceParseQName(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, prefix: interop.Pointer | interop.Reference): string; + +declare function xmlNanoFTPCheckResponse(ctx: interop.Pointer | interop.Reference): number; + +declare function xmlNanoFTPCleanup(): void; + +declare function xmlNanoFTPClose(ctx: interop.Pointer | interop.Reference): number; + +declare function xmlNanoFTPCloseConnection(ctx: interop.Pointer | interop.Reference): number; + +declare function xmlNanoFTPConnect(ctx: interop.Pointer | interop.Reference): number; + +declare function xmlNanoFTPConnectTo(server: string, port: number): interop.Pointer | interop.Reference; + +declare function xmlNanoFTPCwd(ctx: interop.Pointer | interop.Reference, directory: string): number; + +declare function xmlNanoFTPDele(ctx: interop.Pointer | interop.Reference, file: string): number; + +declare function xmlNanoFTPFreeCtxt(ctx: interop.Pointer | interop.Reference): void; + +declare function xmlNanoFTPGet(ctx: interop.Pointer | interop.Reference, callback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => void>, userData: interop.Pointer | interop.Reference, filename: string): number; + +declare function xmlNanoFTPGetConnection(ctx: interop.Pointer | interop.Reference): number; + +declare function xmlNanoFTPGetResponse(ctx: interop.Pointer | interop.Reference): number; + +declare function xmlNanoFTPGetSocket(ctx: interop.Pointer | interop.Reference, filename: string): number; + +declare function xmlNanoFTPInit(): void; + +declare function xmlNanoFTPList(ctx: interop.Pointer | interop.Reference, callback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string, p4: string, p5: string, p6: number, p7: number, p8: number, p9: string, p10: number, p11: number, p12: number) => void>, userData: interop.Pointer | interop.Reference, filename: string): number; + +declare function xmlNanoFTPNewCtxt(URL: string): interop.Pointer | interop.Reference; + +declare function xmlNanoFTPOpen(URL: string): interop.Pointer | interop.Reference; + +declare function xmlNanoFTPProxy(host: string, port: number, user: string, passwd: string, type: number): void; + +declare function xmlNanoFTPQuit(ctx: interop.Pointer | interop.Reference): number; + +declare function xmlNanoFTPRead(ctx: interop.Pointer | interop.Reference, dest: interop.Pointer | interop.Reference, len: number): number; + +declare function xmlNanoFTPScanProxy(URL: string): void; + +declare function xmlNanoFTPUpdateURL(ctx: interop.Pointer | interop.Reference, URL: string): number; + +declare function xmlNanoHTTPAuthHeader(ctx: interop.Pointer | interop.Reference): string; + +declare function xmlNanoHTTPCleanup(): void; + +declare function xmlNanoHTTPClose(ctx: interop.Pointer | interop.Reference): void; + +declare function xmlNanoHTTPContentLength(ctx: interop.Pointer | interop.Reference): number; + +declare function xmlNanoHTTPEncoding(ctx: interop.Pointer | interop.Reference): string; + +declare function xmlNanoHTTPFetch(URL: string, filename: string, contentType: interop.Pointer | interop.Reference): number; + +declare function xmlNanoHTTPInit(): void; + +declare function xmlNanoHTTPMethod(URL: string, method: string, input: string, contentType: interop.Pointer | interop.Reference, headers: string, ilen: number): interop.Pointer | interop.Reference; + +declare function xmlNanoHTTPMethodRedir(URL: string, method: string, input: string, contentType: interop.Pointer | interop.Reference, redir: interop.Pointer | interop.Reference, headers: string, ilen: number): interop.Pointer | interop.Reference; + +declare function xmlNanoHTTPMimeType(ctx: interop.Pointer | interop.Reference): string; + +declare function xmlNanoHTTPOpen(URL: string, contentType: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlNanoHTTPOpenRedir(URL: string, contentType: interop.Pointer | interop.Reference, redir: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlNanoHTTPRead(ctx: interop.Pointer | interop.Reference, dest: interop.Pointer | interop.Reference, len: number): number; + +declare function xmlNanoHTTPRedir(ctx: interop.Pointer | interop.Reference): string; + +declare function xmlNanoHTTPReturnCode(ctx: interop.Pointer | interop.Reference): number; + +declare function xmlNanoHTTPSave(ctxt: interop.Pointer | interop.Reference, filename: string): number; + +declare function xmlNanoHTTPScanProxy(URL: string): void; + +declare function xmlNewAutomata(): interop.Pointer | interop.Reference; + +declare function xmlNewCDataBlock(doc: interop.Pointer | interop.Reference<_xmlDoc>, content: string, len: number): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewCatalog(sgml: number): interop.Pointer | interop.Reference; + +declare function xmlNewCharEncodingHandler(name: string, input: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference, p3: string, p4: interop.Pointer | interop.Reference) => number>, output: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference, p3: string, p4: interop.Pointer | interop.Reference) => number>): interop.Pointer | interop.Reference<_xmlCharEncodingHandler>; + +declare function xmlNewCharRef(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewChild(parent: interop.Pointer | interop.Reference<_xmlNode>, ns: interop.Pointer | interop.Reference<_xmlNs>, name: string, content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewComment(content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewDoc(version: string): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlNewDocComment(doc: interop.Pointer | interop.Reference<_xmlDoc>, content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewDocElementContent(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string, type: xmlElementContentType): interop.Pointer | interop.Reference<_xmlElementContent>; + +declare function xmlNewDocFragment(doc: interop.Pointer | interop.Reference<_xmlDoc>): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewDocNode(doc: interop.Pointer | interop.Reference<_xmlDoc>, ns: interop.Pointer | interop.Reference<_xmlNs>, name: string, content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewDocNodeEatName(doc: interop.Pointer | interop.Reference<_xmlDoc>, ns: interop.Pointer | interop.Reference<_xmlNs>, name: string, content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewDocPI(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string, content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewDocProp(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string, value: string): interop.Pointer | interop.Reference<_xmlAttr>; + +declare function xmlNewDocRawNode(doc: interop.Pointer | interop.Reference<_xmlDoc>, ns: interop.Pointer | interop.Reference<_xmlNs>, name: string, content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewDocText(doc: interop.Pointer | interop.Reference<_xmlDoc>, content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewDocTextLen(doc: interop.Pointer | interop.Reference<_xmlDoc>, content: string, len: number): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewDtd(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string, ExternalID: string, SystemID: string): interop.Pointer | interop.Reference<_xmlDtd>; + +declare function xmlNewElementContent(name: string, type: xmlElementContentType): interop.Pointer | interop.Reference<_xmlElementContent>; + +declare function xmlNewEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string, type: number, ExternalID: string, SystemID: string, content: string): interop.Pointer | interop.Reference<_xmlEntity>; + +declare function xmlNewEntityInputStream(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, entity: interop.Pointer | interop.Reference<_xmlEntity>): interop.Pointer | interop.Reference<_xmlParserInput>; + +declare function xmlNewGlobalNs(doc: interop.Pointer | interop.Reference<_xmlDoc>, href: string, prefix: string): interop.Pointer | interop.Reference<_xmlNs>; + +declare function xmlNewIOInputStream(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, input: interop.Pointer | interop.Reference<_xmlParserInputBuffer>, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserInput>; + +declare function xmlNewInputFromFile(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, filename: string): interop.Pointer | interop.Reference<_xmlParserInput>; + +declare function xmlNewInputStream(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): interop.Pointer | interop.Reference<_xmlParserInput>; + +declare function xmlNewMutex(): interop.Pointer | interop.Reference; + +declare function xmlNewNode(ns: interop.Pointer | interop.Reference<_xmlNs>, name: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewNodeEatName(ns: interop.Pointer | interop.Reference<_xmlNs>, name: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewNs(node: interop.Pointer | interop.Reference<_xmlNode>, href: string, prefix: string): interop.Pointer | interop.Reference<_xmlNs>; + +declare function xmlNewNsProp(node: interop.Pointer | interop.Reference<_xmlNode>, ns: interop.Pointer | interop.Reference<_xmlNs>, name: string, value: string): interop.Pointer | interop.Reference<_xmlAttr>; + +declare function xmlNewNsPropEatName(node: interop.Pointer | interop.Reference<_xmlNode>, ns: interop.Pointer | interop.Reference<_xmlNs>, name: string, value: string): interop.Pointer | interop.Reference<_xmlAttr>; + +declare function xmlNewPI(name: string, content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewParserCtxt(): interop.Pointer | interop.Reference<_xmlParserCtxt>; + +declare function xmlNewProp(node: interop.Pointer | interop.Reference<_xmlNode>, name: string, value: string): interop.Pointer | interop.Reference<_xmlAttr>; + +declare function xmlNewRMutex(): interop.Pointer | interop.Reference; + +declare function xmlNewReference(doc: interop.Pointer | interop.Reference<_xmlDoc>, name: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewStringInputStream(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, buffer: string): interop.Pointer | interop.Reference<_xmlParserInput>; + +declare function xmlNewText(content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewTextChild(parent: interop.Pointer | interop.Reference<_xmlNode>, ns: interop.Pointer | interop.Reference<_xmlNs>, name: string, content: string): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewTextLen(content: string, len: number): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNewTextReader(input: interop.Pointer | interop.Reference<_xmlParserInputBuffer>, URI: string): interop.Pointer | interop.Reference; + +declare function xmlNewTextReaderFilename(URI: string): interop.Pointer | interop.Reference; + +declare function xmlNewTextWriter(out: interop.Pointer | interop.Reference<_xmlOutputBuffer>): interop.Pointer | interop.Reference; + +declare function xmlNewTextWriterDoc(doc: interop.Pointer | interop.Reference>, compression: number): interop.Pointer | interop.Reference; + +declare function xmlNewTextWriterFilename(uri: string, compression: number): interop.Pointer | interop.Reference; + +declare function xmlNewTextWriterMemory(buf: interop.Pointer | interop.Reference<_xmlBuffer>, compression: number): interop.Pointer | interop.Reference; + +declare function xmlNewTextWriterPushParser(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, compression: number): interop.Pointer | interop.Reference; + +declare function xmlNewTextWriterTree(doc: interop.Pointer | interop.Reference<_xmlDoc>, node: interop.Pointer | interop.Reference<_xmlNode>, compression: number): interop.Pointer | interop.Reference; + +declare function xmlNewValidCtxt(): interop.Pointer | interop.Reference<_xmlValidCtxt>; + +declare function xmlNextChar(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlNextElementSibling(node: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlNoNetExternalEntityLoader(URL: string, ID: string, ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): interop.Pointer | interop.Reference<_xmlParserInput>; + +declare function xmlNodeAddContent(cur: interop.Pointer | interop.Reference<_xmlNode>, content: string): void; + +declare function xmlNodeAddContentLen(cur: interop.Pointer | interop.Reference<_xmlNode>, content: string, len: number): void; + +declare function xmlNodeBufGetContent(buffer: interop.Pointer | interop.Reference<_xmlBuffer>, cur: interop.Pointer | interop.Reference<_xmlNode>): number; + +declare function xmlNodeDump(buf: interop.Pointer | interop.Reference<_xmlBuffer>, doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlNode>, level: number, format: number): number; + +declare function xmlNodeDumpOutput(buf: interop.Pointer | interop.Reference<_xmlOutputBuffer>, doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlNode>, level: number, format: number, encoding: string): void; + +declare function xmlNodeGetBase(doc: interop.Pointer | interop.Reference<_xmlDoc>, cur: interop.Pointer | interop.Reference<_xmlNode>): string; + +declare function xmlNodeGetContent(cur: interop.Pointer | interop.Reference<_xmlNode>): string; + +declare function xmlNodeGetLang(cur: interop.Pointer | interop.Reference<_xmlNode>): string; + +declare function xmlNodeGetSpacePreserve(cur: interop.Pointer | interop.Reference<_xmlNode>): number; + +declare function xmlNodeIsText(node: interop.Pointer | interop.Reference<_xmlNode>): number; + +declare function xmlNodeListGetRawString(doc: interop.Pointer | interop.Reference<_xmlDoc>, list: interop.Pointer | interop.Reference<_xmlNode>, inLine: number): string; + +declare function xmlNodeListGetString(doc: interop.Pointer | interop.Reference<_xmlDoc>, list: interop.Pointer | interop.Reference<_xmlNode>, inLine: number): string; + +declare function xmlNodeSetBase(cur: interop.Pointer | interop.Reference<_xmlNode>, uri: string): void; + +declare function xmlNodeSetContent(cur: interop.Pointer | interop.Reference<_xmlNode>, content: string): void; + +declare function xmlNodeSetContentLen(cur: interop.Pointer | interop.Reference<_xmlNode>, content: string, len: number): void; + +declare function xmlNodeSetLang(cur: interop.Pointer | interop.Reference<_xmlNode>, lang: string): void; + +declare function xmlNodeSetName(cur: interop.Pointer | interop.Reference<_xmlNode>, name: string): void; + +declare function xmlNodeSetSpacePreserve(cur: interop.Pointer | interop.Reference<_xmlNode>, val: number): void; + +declare function xmlNormalizeURIPath(path: string): number; + +declare function xmlNormalizeWindowsPath(path: string): string; + +declare function xmlOutputBufferClose(out: interop.Pointer | interop.Reference<_xmlOutputBuffer>): number; + +declare function xmlOutputBufferCreateBuffer(buffer: interop.Pointer | interop.Reference<_xmlBuffer>, encoder: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>): interop.Pointer | interop.Reference<_xmlOutputBuffer>; + +declare function xmlOutputBufferCreateFd(fd: number, encoder: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>): interop.Pointer | interop.Reference<_xmlOutputBuffer>; + +declare function xmlOutputBufferCreateFile(file: interop.Pointer | interop.Reference, encoder: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>): interop.Pointer | interop.Reference<_xmlOutputBuffer>; + +declare function xmlOutputBufferCreateFilename(URI: string, encoder: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>, compression: number): interop.Pointer | interop.Reference<_xmlOutputBuffer>; + +declare function xmlOutputBufferCreateFilenameDefault(func: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>, p3: number) => interop.Pointer | interop.Reference<_xmlOutputBuffer>>): interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>, p3: number) => interop.Pointer | interop.Reference<_xmlOutputBuffer>>; + +declare function xmlOutputBufferCreateIO(iowrite: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, ioclose: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, ioctx: interop.Pointer | interop.Reference, encoder: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>): interop.Pointer | interop.Reference<_xmlOutputBuffer>; + +declare function xmlOutputBufferFlush(out: interop.Pointer | interop.Reference<_xmlOutputBuffer>): number; + +declare function xmlOutputBufferGetContent(out: interop.Pointer | interop.Reference<_xmlOutputBuffer>): string; + +declare function xmlOutputBufferGetSize(out: interop.Pointer | interop.Reference<_xmlOutputBuffer>): number; + +declare function xmlOutputBufferWrite(out: interop.Pointer | interop.Reference<_xmlOutputBuffer>, len: number, buf: string): number; + +declare function xmlOutputBufferWriteEscape(out: interop.Pointer | interop.Reference<_xmlOutputBuffer>, str: string, escaping: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference, p3: string, p4: interop.Pointer | interop.Reference) => number>): number; + +declare function xmlOutputBufferWriteString(out: interop.Pointer | interop.Reference<_xmlOutputBuffer>, str: string): number; + +declare function xmlParseAttValue(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseAttribute(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, value: interop.Pointer | interop.Reference): string; + +declare function xmlParseAttributeListDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseAttributeType(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, tree: interop.Pointer | interop.Reference>): number; + +declare function xmlParseBalancedChunkMemory(doc: interop.Pointer | interop.Reference<_xmlDoc>, sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, user_data: interop.Pointer | interop.Reference, depth: number, string: string, lst: interop.Pointer | interop.Reference>): number; + +declare function xmlParseBalancedChunkMemoryRecover(doc: interop.Pointer | interop.Reference<_xmlDoc>, sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, user_data: interop.Pointer | interop.Reference, depth: number, string: string, lst: interop.Pointer | interop.Reference>, recover: number): number; + +declare function xmlParseCDSect(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseCatalogFile(filename: string): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlParseCharData(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, cdata: number): void; + +declare function xmlParseCharEncoding(name: string): xmlCharEncoding; + +declare function xmlParseCharRef(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; + +declare function xmlParseChunk(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, chunk: string, size: number, terminate: number): number; + +declare function xmlParseComment(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseContent(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseCtxtExternalEntity(ctx: interop.Pointer | interop.Reference<_xmlParserCtxt>, URL: string, ID: string, lst: interop.Pointer | interop.Reference>): number; + +declare function xmlParseDTD(ExternalID: string, SystemID: string): interop.Pointer | interop.Reference<_xmlDtd>; + +declare function xmlParseDefaultDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, value: interop.Pointer | interop.Reference): number; + +declare function xmlParseDoc(cur: string): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlParseDocTypeDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseDocument(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; + +declare function xmlParseElement(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseElementChildrenContentDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, inputchk: number): interop.Pointer | interop.Reference<_xmlElementContent>; + +declare function xmlParseElementContentDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, name: string, result: interop.Pointer | interop.Reference>): number; + +declare function xmlParseElementDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; + +declare function xmlParseElementMixedContentDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, inputchk: number): interop.Pointer | interop.Reference<_xmlElementContent>; + +declare function xmlParseEncName(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseEncodingDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseEndTag(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseEntity(filename: string): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlParseEntityDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseEntityRef(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): interop.Pointer | interop.Reference<_xmlEntity>; + +declare function xmlParseEntityValue(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, orig: interop.Pointer | interop.Reference): string; + +declare function xmlParseEnumeratedType(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, tree: interop.Pointer | interop.Reference>): number; + +declare function xmlParseEnumerationType(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): interop.Pointer | interop.Reference<_xmlEnumeration>; + +declare function xmlParseExtParsedEnt(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; + +declare function xmlParseExternalEntity(doc: interop.Pointer | interop.Reference<_xmlDoc>, sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, user_data: interop.Pointer | interop.Reference, depth: number, URL: string, ID: string, lst: interop.Pointer | interop.Reference>): number; + +declare function xmlParseExternalID(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, publicID: interop.Pointer | interop.Reference, strict: number): string; + +declare function xmlParseExternalSubset(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, ExternalID: string, SystemID: string): void; + +declare function xmlParseFile(filename: string): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlParseInNodeContext(node: interop.Pointer | interop.Reference<_xmlNode>, data: string, datalen: number, options: number, lst: interop.Pointer | interop.Reference>): xmlParserErrors; + +declare function xmlParseMarkupDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseMemory(buffer: string, size: number): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlParseMisc(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseName(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseNamespace(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseNmtoken(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseNotationDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseNotationType(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): interop.Pointer | interop.Reference<_xmlEnumeration>; + +declare function xmlParsePEReference(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParsePI(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParsePITarget(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParsePubidLiteral(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseQuotedString(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseReference(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseSDDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; + +declare function xmlParseStartTag(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseSystemLiteral(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseTextDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParseURI(str: string): interop.Pointer | interop.Reference<_xmlURI>; + +declare function xmlParseURIRaw(str: string, raw: number): interop.Pointer | interop.Reference<_xmlURI>; + +declare function xmlParseURIReference(uri: interop.Pointer | interop.Reference<_xmlURI>, str: string): number; + +declare function xmlParseVersionInfo(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseVersionNum(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; + +declare function xmlParseXMLDecl(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParserAddNodeInfo(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, info: interop.Pointer | interop.Reference<_xmlParserNodeInfo>): void; + +declare const enum xmlParserErrors { + + XML_ERR_OK = 0, + + XML_ERR_INTERNAL_ERROR = 1, + + XML_ERR_NO_MEMORY = 2, + + XML_ERR_DOCUMENT_START = 3, + + XML_ERR_DOCUMENT_EMPTY = 4, + + XML_ERR_DOCUMENT_END = 5, + + XML_ERR_INVALID_HEX_CHARREF = 6, + + XML_ERR_INVALID_DEC_CHARREF = 7, + + XML_ERR_INVALID_CHARREF = 8, + + XML_ERR_INVALID_CHAR = 9, + + XML_ERR_CHARREF_AT_EOF = 10, + + XML_ERR_CHARREF_IN_PROLOG = 11, + + XML_ERR_CHARREF_IN_EPILOG = 12, + + XML_ERR_CHARREF_IN_DTD = 13, + + XML_ERR_ENTITYREF_AT_EOF = 14, + + XML_ERR_ENTITYREF_IN_PROLOG = 15, + + XML_ERR_ENTITYREF_IN_EPILOG = 16, + + XML_ERR_ENTITYREF_IN_DTD = 17, + + XML_ERR_PEREF_AT_EOF = 18, + + XML_ERR_PEREF_IN_PROLOG = 19, + + XML_ERR_PEREF_IN_EPILOG = 20, + + XML_ERR_PEREF_IN_INT_SUBSET = 21, + + XML_ERR_ENTITYREF_NO_NAME = 22, + + XML_ERR_ENTITYREF_SEMICOL_MISSING = 23, + + XML_ERR_PEREF_NO_NAME = 24, + + XML_ERR_PEREF_SEMICOL_MISSING = 25, + + XML_ERR_UNDECLARED_ENTITY = 26, + + XML_WAR_UNDECLARED_ENTITY = 27, + + XML_ERR_UNPARSED_ENTITY = 28, + + XML_ERR_ENTITY_IS_EXTERNAL = 29, + + XML_ERR_ENTITY_IS_PARAMETER = 30, + + XML_ERR_UNKNOWN_ENCODING = 31, + + XML_ERR_UNSUPPORTED_ENCODING = 32, + + XML_ERR_STRING_NOT_STARTED = 33, + + XML_ERR_STRING_NOT_CLOSED = 34, + + XML_ERR_NS_DECL_ERROR = 35, + + XML_ERR_ENTITY_NOT_STARTED = 36, + + XML_ERR_ENTITY_NOT_FINISHED = 37, + + XML_ERR_LT_IN_ATTRIBUTE = 38, + + XML_ERR_ATTRIBUTE_NOT_STARTED = 39, + + XML_ERR_ATTRIBUTE_NOT_FINISHED = 40, + + XML_ERR_ATTRIBUTE_WITHOUT_VALUE = 41, + + XML_ERR_ATTRIBUTE_REDEFINED = 42, + + XML_ERR_LITERAL_NOT_STARTED = 43, + + XML_ERR_LITERAL_NOT_FINISHED = 44, + + XML_ERR_COMMENT_NOT_FINISHED = 45, + + XML_ERR_PI_NOT_STARTED = 46, + + XML_ERR_PI_NOT_FINISHED = 47, + + XML_ERR_NOTATION_NOT_STARTED = 48, + + XML_ERR_NOTATION_NOT_FINISHED = 49, + + XML_ERR_ATTLIST_NOT_STARTED = 50, + + XML_ERR_ATTLIST_NOT_FINISHED = 51, + + XML_ERR_MIXED_NOT_STARTED = 52, + + XML_ERR_MIXED_NOT_FINISHED = 53, + + XML_ERR_ELEMCONTENT_NOT_STARTED = 54, + + XML_ERR_ELEMCONTENT_NOT_FINISHED = 55, + + XML_ERR_XMLDECL_NOT_STARTED = 56, + + XML_ERR_XMLDECL_NOT_FINISHED = 57, + + XML_ERR_CONDSEC_NOT_STARTED = 58, + + XML_ERR_CONDSEC_NOT_FINISHED = 59, + + XML_ERR_EXT_SUBSET_NOT_FINISHED = 60, + + XML_ERR_DOCTYPE_NOT_FINISHED = 61, + + XML_ERR_MISPLACED_CDATA_END = 62, + + XML_ERR_CDATA_NOT_FINISHED = 63, + + XML_ERR_RESERVED_XML_NAME = 64, + + XML_ERR_SPACE_REQUIRED = 65, + + XML_ERR_SEPARATOR_REQUIRED = 66, + + XML_ERR_NMTOKEN_REQUIRED = 67, + + XML_ERR_NAME_REQUIRED = 68, + + XML_ERR_PCDATA_REQUIRED = 69, + + XML_ERR_URI_REQUIRED = 70, + + XML_ERR_PUBID_REQUIRED = 71, + + XML_ERR_LT_REQUIRED = 72, + + XML_ERR_GT_REQUIRED = 73, + + XML_ERR_LTSLASH_REQUIRED = 74, + + XML_ERR_EQUAL_REQUIRED = 75, + + XML_ERR_TAG_NAME_MISMATCH = 76, + + XML_ERR_TAG_NOT_FINISHED = 77, + + XML_ERR_STANDALONE_VALUE = 78, + + XML_ERR_ENCODING_NAME = 79, + + XML_ERR_HYPHEN_IN_COMMENT = 80, + + XML_ERR_INVALID_ENCODING = 81, + + XML_ERR_EXT_ENTITY_STANDALONE = 82, + + XML_ERR_CONDSEC_INVALID = 83, + + XML_ERR_VALUE_REQUIRED = 84, + + XML_ERR_NOT_WELL_BALANCED = 85, + + XML_ERR_EXTRA_CONTENT = 86, + + XML_ERR_ENTITY_CHAR_ERROR = 87, + + XML_ERR_ENTITY_PE_INTERNAL = 88, + + XML_ERR_ENTITY_LOOP = 89, + + XML_ERR_ENTITY_BOUNDARY = 90, + + XML_ERR_INVALID_URI = 91, + + XML_ERR_URI_FRAGMENT = 92, + + XML_WAR_CATALOG_PI = 93, + + XML_ERR_NO_DTD = 94, + + XML_ERR_CONDSEC_INVALID_KEYWORD = 95, + + XML_ERR_VERSION_MISSING = 96, + + XML_WAR_UNKNOWN_VERSION = 97, + + XML_WAR_LANG_VALUE = 98, + + XML_WAR_NS_URI = 99, + + XML_WAR_NS_URI_RELATIVE = 100, + + XML_ERR_MISSING_ENCODING = 101, + + XML_WAR_SPACE_VALUE = 102, + + XML_ERR_NOT_STANDALONE = 103, + + XML_ERR_ENTITY_PROCESSING = 104, + + XML_ERR_NOTATION_PROCESSING = 105, + + XML_WAR_NS_COLUMN = 106, + + XML_WAR_ENTITY_REDEFINED = 107, + + XML_ERR_UNKNOWN_VERSION = 108, + + XML_ERR_VERSION_MISMATCH = 109, + + XML_ERR_NAME_TOO_LONG = 110, + + XML_ERR_USER_STOP = 111, + + XML_NS_ERR_XML_NAMESPACE = 200, + + XML_NS_ERR_UNDEFINED_NAMESPACE = 201, + + XML_NS_ERR_QNAME = 202, + + XML_NS_ERR_ATTRIBUTE_REDEFINED = 203, + + XML_NS_ERR_EMPTY = 204, + + XML_NS_ERR_COLON = 205, + + XML_DTD_ATTRIBUTE_DEFAULT = 500, + + XML_DTD_ATTRIBUTE_REDEFINED = 501, + + XML_DTD_ATTRIBUTE_VALUE = 502, + + XML_DTD_CONTENT_ERROR = 503, + + XML_DTD_CONTENT_MODEL = 504, + + XML_DTD_CONTENT_NOT_DETERMINIST = 505, + + XML_DTD_DIFFERENT_PREFIX = 506, + + XML_DTD_ELEM_DEFAULT_NAMESPACE = 507, + + XML_DTD_ELEM_NAMESPACE = 508, + + XML_DTD_ELEM_REDEFINED = 509, + + XML_DTD_EMPTY_NOTATION = 510, + + XML_DTD_ENTITY_TYPE = 511, + + XML_DTD_ID_FIXED = 512, + + XML_DTD_ID_REDEFINED = 513, + + XML_DTD_ID_SUBSET = 514, + + XML_DTD_INVALID_CHILD = 515, + + XML_DTD_INVALID_DEFAULT = 516, + + XML_DTD_LOAD_ERROR = 517, + + XML_DTD_MISSING_ATTRIBUTE = 518, + + XML_DTD_MIXED_CORRUPT = 519, + + XML_DTD_MULTIPLE_ID = 520, + + XML_DTD_NO_DOC = 521, + + XML_DTD_NO_DTD = 522, + + XML_DTD_NO_ELEM_NAME = 523, + + XML_DTD_NO_PREFIX = 524, + + XML_DTD_NO_ROOT = 525, + + XML_DTD_NOTATION_REDEFINED = 526, + + XML_DTD_NOTATION_VALUE = 527, + + XML_DTD_NOT_EMPTY = 528, + + XML_DTD_NOT_PCDATA = 529, + + XML_DTD_NOT_STANDALONE = 530, + + XML_DTD_ROOT_NAME = 531, + + XML_DTD_STANDALONE_WHITE_SPACE = 532, + + XML_DTD_UNKNOWN_ATTRIBUTE = 533, + + XML_DTD_UNKNOWN_ELEM = 534, + + XML_DTD_UNKNOWN_ENTITY = 535, + + XML_DTD_UNKNOWN_ID = 536, + + XML_DTD_UNKNOWN_NOTATION = 537, + + XML_DTD_STANDALONE_DEFAULTED = 538, + + XML_DTD_XMLID_VALUE = 539, + + XML_DTD_XMLID_TYPE = 540, + + XML_DTD_DUP_TOKEN = 541, + + XML_HTML_STRUCURE_ERROR = 800, + + XML_HTML_UNKNOWN_TAG = 801, + + XML_RNGP_ANYNAME_ATTR_ANCESTOR = 1000, + + XML_RNGP_ATTR_CONFLICT = 1001, + + XML_RNGP_ATTRIBUTE_CHILDREN = 1002, + + XML_RNGP_ATTRIBUTE_CONTENT = 1003, + + XML_RNGP_ATTRIBUTE_EMPTY = 1004, + + XML_RNGP_ATTRIBUTE_NOOP = 1005, + + XML_RNGP_CHOICE_CONTENT = 1006, + + XML_RNGP_CHOICE_EMPTY = 1007, + + XML_RNGP_CREATE_FAILURE = 1008, + + XML_RNGP_DATA_CONTENT = 1009, + + XML_RNGP_DEF_CHOICE_AND_INTERLEAVE = 1010, + + XML_RNGP_DEFINE_CREATE_FAILED = 1011, + + XML_RNGP_DEFINE_EMPTY = 1012, + + XML_RNGP_DEFINE_MISSING = 1013, + + XML_RNGP_DEFINE_NAME_MISSING = 1014, + + XML_RNGP_ELEM_CONTENT_EMPTY = 1015, + + XML_RNGP_ELEM_CONTENT_ERROR = 1016, + + XML_RNGP_ELEMENT_EMPTY = 1017, + + XML_RNGP_ELEMENT_CONTENT = 1018, + + XML_RNGP_ELEMENT_NAME = 1019, + + XML_RNGP_ELEMENT_NO_CONTENT = 1020, + + XML_RNGP_ELEM_TEXT_CONFLICT = 1021, + + XML_RNGP_EMPTY = 1022, + + XML_RNGP_EMPTY_CONSTRUCT = 1023, + + XML_RNGP_EMPTY_CONTENT = 1024, + + XML_RNGP_EMPTY_NOT_EMPTY = 1025, + + XML_RNGP_ERROR_TYPE_LIB = 1026, + + XML_RNGP_EXCEPT_EMPTY = 1027, + + XML_RNGP_EXCEPT_MISSING = 1028, + + XML_RNGP_EXCEPT_MULTIPLE = 1029, + + XML_RNGP_EXCEPT_NO_CONTENT = 1030, + + XML_RNGP_EXTERNALREF_EMTPY = 1031, + + XML_RNGP_EXTERNAL_REF_FAILURE = 1032, + + XML_RNGP_EXTERNALREF_RECURSE = 1033, + + XML_RNGP_FORBIDDEN_ATTRIBUTE = 1034, + + XML_RNGP_FOREIGN_ELEMENT = 1035, + + XML_RNGP_GRAMMAR_CONTENT = 1036, + + XML_RNGP_GRAMMAR_EMPTY = 1037, + + XML_RNGP_GRAMMAR_MISSING = 1038, + + XML_RNGP_GRAMMAR_NO_START = 1039, + + XML_RNGP_GROUP_ATTR_CONFLICT = 1040, + + XML_RNGP_HREF_ERROR = 1041, + + XML_RNGP_INCLUDE_EMPTY = 1042, + + XML_RNGP_INCLUDE_FAILURE = 1043, + + XML_RNGP_INCLUDE_RECURSE = 1044, + + XML_RNGP_INTERLEAVE_ADD = 1045, + + XML_RNGP_INTERLEAVE_CREATE_FAILED = 1046, + + XML_RNGP_INTERLEAVE_EMPTY = 1047, + + XML_RNGP_INTERLEAVE_NO_CONTENT = 1048, + + XML_RNGP_INVALID_DEFINE_NAME = 1049, + + XML_RNGP_INVALID_URI = 1050, + + XML_RNGP_INVALID_VALUE = 1051, + + XML_RNGP_MISSING_HREF = 1052, + + XML_RNGP_NAME_MISSING = 1053, + + XML_RNGP_NEED_COMBINE = 1054, + + XML_RNGP_NOTALLOWED_NOT_EMPTY = 1055, + + XML_RNGP_NSNAME_ATTR_ANCESTOR = 1056, + + XML_RNGP_NSNAME_NO_NS = 1057, + + XML_RNGP_PARAM_FORBIDDEN = 1058, + + XML_RNGP_PARAM_NAME_MISSING = 1059, + + XML_RNGP_PARENTREF_CREATE_FAILED = 1060, + + XML_RNGP_PARENTREF_NAME_INVALID = 1061, + + XML_RNGP_PARENTREF_NO_NAME = 1062, + + XML_RNGP_PARENTREF_NO_PARENT = 1063, + + XML_RNGP_PARENTREF_NOT_EMPTY = 1064, + + XML_RNGP_PARSE_ERROR = 1065, + + XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME = 1066, + + XML_RNGP_PAT_ATTR_ATTR = 1067, + + XML_RNGP_PAT_ATTR_ELEM = 1068, + + XML_RNGP_PAT_DATA_EXCEPT_ATTR = 1069, + + XML_RNGP_PAT_DATA_EXCEPT_ELEM = 1070, + + XML_RNGP_PAT_DATA_EXCEPT_EMPTY = 1071, + + XML_RNGP_PAT_DATA_EXCEPT_GROUP = 1072, + + XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE = 1073, + + XML_RNGP_PAT_DATA_EXCEPT_LIST = 1074, + + XML_RNGP_PAT_DATA_EXCEPT_ONEMORE = 1075, + + XML_RNGP_PAT_DATA_EXCEPT_REF = 1076, + + XML_RNGP_PAT_DATA_EXCEPT_TEXT = 1077, + + XML_RNGP_PAT_LIST_ATTR = 1078, + + XML_RNGP_PAT_LIST_ELEM = 1079, + + XML_RNGP_PAT_LIST_INTERLEAVE = 1080, + + XML_RNGP_PAT_LIST_LIST = 1081, + + XML_RNGP_PAT_LIST_REF = 1082, + + XML_RNGP_PAT_LIST_TEXT = 1083, + + XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME = 1084, + + XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME = 1085, + + XML_RNGP_PAT_ONEMORE_GROUP_ATTR = 1086, + + XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR = 1087, + + XML_RNGP_PAT_START_ATTR = 1088, + + XML_RNGP_PAT_START_DATA = 1089, + + XML_RNGP_PAT_START_EMPTY = 1090, + + XML_RNGP_PAT_START_GROUP = 1091, + + XML_RNGP_PAT_START_INTERLEAVE = 1092, + + XML_RNGP_PAT_START_LIST = 1093, + + XML_RNGP_PAT_START_ONEMORE = 1094, + + XML_RNGP_PAT_START_TEXT = 1095, + + XML_RNGP_PAT_START_VALUE = 1096, + + XML_RNGP_PREFIX_UNDEFINED = 1097, + + XML_RNGP_REF_CREATE_FAILED = 1098, + + XML_RNGP_REF_CYCLE = 1099, + + XML_RNGP_REF_NAME_INVALID = 1100, + + XML_RNGP_REF_NO_DEF = 1101, + + XML_RNGP_REF_NO_NAME = 1102, + + XML_RNGP_REF_NOT_EMPTY = 1103, + + XML_RNGP_START_CHOICE_AND_INTERLEAVE = 1104, + + XML_RNGP_START_CONTENT = 1105, + + XML_RNGP_START_EMPTY = 1106, + + XML_RNGP_START_MISSING = 1107, + + XML_RNGP_TEXT_EXPECTED = 1108, + + XML_RNGP_TEXT_HAS_CHILD = 1109, + + XML_RNGP_TYPE_MISSING = 1110, + + XML_RNGP_TYPE_NOT_FOUND = 1111, + + XML_RNGP_TYPE_VALUE = 1112, + + XML_RNGP_UNKNOWN_ATTRIBUTE = 1113, + + XML_RNGP_UNKNOWN_COMBINE = 1114, + + XML_RNGP_UNKNOWN_CONSTRUCT = 1115, + + XML_RNGP_UNKNOWN_TYPE_LIB = 1116, + + XML_RNGP_URI_FRAGMENT = 1117, + + XML_RNGP_URI_NOT_ABSOLUTE = 1118, + + XML_RNGP_VALUE_EMPTY = 1119, + + XML_RNGP_VALUE_NO_CONTENT = 1120, + + XML_RNGP_XMLNS_NAME = 1121, + + XML_RNGP_XML_NS = 1122, + + XML_XPATH_EXPRESSION_OK = 1200, + + XML_XPATH_NUMBER_ERROR = 1201, + + XML_XPATH_UNFINISHED_LITERAL_ERROR = 1202, + + XML_XPATH_START_LITERAL_ERROR = 1203, + + XML_XPATH_VARIABLE_REF_ERROR = 1204, + + XML_XPATH_UNDEF_VARIABLE_ERROR = 1205, + + XML_XPATH_INVALID_PREDICATE_ERROR = 1206, + + XML_XPATH_EXPR_ERROR = 1207, + + XML_XPATH_UNCLOSED_ERROR = 1208, + + XML_XPATH_UNKNOWN_FUNC_ERROR = 1209, + + XML_XPATH_INVALID_OPERAND = 1210, + + XML_XPATH_INVALID_TYPE = 1211, + + XML_XPATH_INVALID_ARITY = 1212, + + XML_XPATH_INVALID_CTXT_SIZE = 1213, + + XML_XPATH_INVALID_CTXT_POSITION = 1214, + + XML_XPATH_MEMORY_ERROR = 1215, + + XML_XPTR_SYNTAX_ERROR = 1216, + + XML_XPTR_RESOURCE_ERROR = 1217, + + XML_XPTR_SUB_RESOURCE_ERROR = 1218, + + XML_XPATH_UNDEF_PREFIX_ERROR = 1219, + + XML_XPATH_ENCODING_ERROR = 1220, + + XML_XPATH_INVALID_CHAR_ERROR = 1221, + + XML_TREE_INVALID_HEX = 1300, + + XML_TREE_INVALID_DEC = 1301, + + XML_TREE_UNTERMINATED_ENTITY = 1302, + + XML_TREE_NOT_UTF8 = 1303, + + XML_SAVE_NOT_UTF8 = 1400, + + XML_SAVE_CHAR_INVALID = 1401, + + XML_SAVE_NO_DOCTYPE = 1402, + + XML_SAVE_UNKNOWN_ENCODING = 1403, + + XML_REGEXP_COMPILE_ERROR = 1450, + + XML_IO_UNKNOWN = 1500, + + XML_IO_EACCES = 1501, + + XML_IO_EAGAIN = 1502, + + XML_IO_EBADF = 1503, + + XML_IO_EBADMSG = 1504, + + XML_IO_EBUSY = 1505, + + XML_IO_ECANCELED = 1506, + + XML_IO_ECHILD = 1507, + + XML_IO_EDEADLK = 1508, + + XML_IO_EDOM = 1509, + + XML_IO_EEXIST = 1510, + + XML_IO_EFAULT = 1511, + + XML_IO_EFBIG = 1512, + + XML_IO_EINPROGRESS = 1513, + + XML_IO_EINTR = 1514, + + XML_IO_EINVAL = 1515, + + XML_IO_EIO = 1516, + + XML_IO_EISDIR = 1517, + + XML_IO_EMFILE = 1518, + + XML_IO_EMLINK = 1519, + + XML_IO_EMSGSIZE = 1520, + + XML_IO_ENAMETOOLONG = 1521, + + XML_IO_ENFILE = 1522, + + XML_IO_ENODEV = 1523, + + XML_IO_ENOENT = 1524, + + XML_IO_ENOEXEC = 1525, + + XML_IO_ENOLCK = 1526, + + XML_IO_ENOMEM = 1527, + + XML_IO_ENOSPC = 1528, + + XML_IO_ENOSYS = 1529, + + XML_IO_ENOTDIR = 1530, + + XML_IO_ENOTEMPTY = 1531, + + XML_IO_ENOTSUP = 1532, + + XML_IO_ENOTTY = 1533, + + XML_IO_ENXIO = 1534, + + XML_IO_EPERM = 1535, + + XML_IO_EPIPE = 1536, + + XML_IO_ERANGE = 1537, + + XML_IO_EROFS = 1538, + + XML_IO_ESPIPE = 1539, + + XML_IO_ESRCH = 1540, + + XML_IO_ETIMEDOUT = 1541, + + XML_IO_EXDEV = 1542, + + XML_IO_NETWORK_ATTEMPT = 1543, + + XML_IO_ENCODER = 1544, + + XML_IO_FLUSH = 1545, + + XML_IO_WRITE = 1546, + + XML_IO_NO_INPUT = 1547, + + XML_IO_BUFFER_FULL = 1548, + + XML_IO_LOAD_ERROR = 1549, + + XML_IO_ENOTSOCK = 1550, + + XML_IO_EISCONN = 1551, + + XML_IO_ECONNREFUSED = 1552, + + XML_IO_ENETUNREACH = 1553, + + XML_IO_EADDRINUSE = 1554, + + XML_IO_EALREADY = 1555, + + XML_IO_EAFNOSUPPORT = 1556, + + XML_XINCLUDE_RECURSION = 1600, + + XML_XINCLUDE_PARSE_VALUE = 1601, + + XML_XINCLUDE_ENTITY_DEF_MISMATCH = 1602, + + XML_XINCLUDE_NO_HREF = 1603, + + XML_XINCLUDE_NO_FALLBACK = 1604, + + XML_XINCLUDE_HREF_URI = 1605, + + XML_XINCLUDE_TEXT_FRAGMENT = 1606, + + XML_XINCLUDE_TEXT_DOCUMENT = 1607, + + XML_XINCLUDE_INVALID_CHAR = 1608, + + XML_XINCLUDE_BUILD_FAILED = 1609, + + XML_XINCLUDE_UNKNOWN_ENCODING = 1610, + + XML_XINCLUDE_MULTIPLE_ROOT = 1611, + + XML_XINCLUDE_XPTR_FAILED = 1612, + + XML_XINCLUDE_XPTR_RESULT = 1613, + + XML_XINCLUDE_INCLUDE_IN_INCLUDE = 1614, + + XML_XINCLUDE_FALLBACKS_IN_INCLUDE = 1615, + + XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE = 1616, + + XML_XINCLUDE_DEPRECATED_NS = 1617, + + XML_XINCLUDE_FRAGMENT_ID = 1618, + + XML_CATALOG_MISSING_ATTR = 1650, + + XML_CATALOG_ENTRY_BROKEN = 1651, + + XML_CATALOG_PREFER_VALUE = 1652, + + XML_CATALOG_NOT_CATALOG = 1653, + + XML_CATALOG_RECURSION = 1654, + + XML_SCHEMAP_PREFIX_UNDEFINED = 1700, + + XML_SCHEMAP_ATTRFORMDEFAULT_VALUE = 1701, + + XML_SCHEMAP_ATTRGRP_NONAME_NOREF = 1702, + + XML_SCHEMAP_ATTR_NONAME_NOREF = 1703, + + XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF = 1704, + + XML_SCHEMAP_ELEMFORMDEFAULT_VALUE = 1705, + + XML_SCHEMAP_ELEM_NONAME_NOREF = 1706, + + XML_SCHEMAP_EXTENSION_NO_BASE = 1707, + + XML_SCHEMAP_FACET_NO_VALUE = 1708, + + XML_SCHEMAP_FAILED_BUILD_IMPORT = 1709, + + XML_SCHEMAP_GROUP_NONAME_NOREF = 1710, + + XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI = 1711, + + XML_SCHEMAP_IMPORT_REDEFINE_NSNAME = 1712, + + XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI = 1713, + + XML_SCHEMAP_INVALID_BOOLEAN = 1714, + + XML_SCHEMAP_INVALID_ENUM = 1715, + + XML_SCHEMAP_INVALID_FACET = 1716, + + XML_SCHEMAP_INVALID_FACET_VALUE = 1717, + + XML_SCHEMAP_INVALID_MAXOCCURS = 1718, + + XML_SCHEMAP_INVALID_MINOCCURS = 1719, + + XML_SCHEMAP_INVALID_REF_AND_SUBTYPE = 1720, + + XML_SCHEMAP_INVALID_WHITE_SPACE = 1721, + + XML_SCHEMAP_NOATTR_NOREF = 1722, + + XML_SCHEMAP_NOTATION_NO_NAME = 1723, + + XML_SCHEMAP_NOTYPE_NOREF = 1724, + + XML_SCHEMAP_REF_AND_SUBTYPE = 1725, + + XML_SCHEMAP_RESTRICTION_NONAME_NOREF = 1726, + + XML_SCHEMAP_SIMPLETYPE_NONAME = 1727, + + XML_SCHEMAP_TYPE_AND_SUBTYPE = 1728, + + XML_SCHEMAP_UNKNOWN_ALL_CHILD = 1729, + + XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD = 1730, + + XML_SCHEMAP_UNKNOWN_ATTR_CHILD = 1731, + + XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD = 1732, + + XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP = 1733, + + XML_SCHEMAP_UNKNOWN_BASE_TYPE = 1734, + + XML_SCHEMAP_UNKNOWN_CHOICE_CHILD = 1735, + + XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD = 1736, + + XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD = 1737, + + XML_SCHEMAP_UNKNOWN_ELEM_CHILD = 1738, + + XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD = 1739, + + XML_SCHEMAP_UNKNOWN_FACET_CHILD = 1740, + + XML_SCHEMAP_UNKNOWN_FACET_TYPE = 1741, + + XML_SCHEMAP_UNKNOWN_GROUP_CHILD = 1742, + + XML_SCHEMAP_UNKNOWN_IMPORT_CHILD = 1743, + + XML_SCHEMAP_UNKNOWN_LIST_CHILD = 1744, + + XML_SCHEMAP_UNKNOWN_NOTATION_CHILD = 1745, + + XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD = 1746, + + XML_SCHEMAP_UNKNOWN_REF = 1747, + + XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD = 1748, + + XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD = 1749, + + XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD = 1750, + + XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD = 1751, + + XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD = 1752, + + XML_SCHEMAP_UNKNOWN_TYPE = 1753, + + XML_SCHEMAP_UNKNOWN_UNION_CHILD = 1754, + + XML_SCHEMAP_ELEM_DEFAULT_FIXED = 1755, + + XML_SCHEMAP_REGEXP_INVALID = 1756, + + XML_SCHEMAP_FAILED_LOAD = 1757, + + XML_SCHEMAP_NOTHING_TO_PARSE = 1758, + + XML_SCHEMAP_NOROOT = 1759, + + XML_SCHEMAP_REDEFINED_GROUP = 1760, + + XML_SCHEMAP_REDEFINED_TYPE = 1761, + + XML_SCHEMAP_REDEFINED_ELEMENT = 1762, + + XML_SCHEMAP_REDEFINED_ATTRGROUP = 1763, + + XML_SCHEMAP_REDEFINED_ATTR = 1764, + + XML_SCHEMAP_REDEFINED_NOTATION = 1765, + + XML_SCHEMAP_FAILED_PARSE = 1766, + + XML_SCHEMAP_UNKNOWN_PREFIX = 1767, + + XML_SCHEMAP_DEF_AND_PREFIX = 1768, + + XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD = 1769, + + XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI = 1770, + + XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI = 1771, + + XML_SCHEMAP_NOT_SCHEMA = 1772, + + XML_SCHEMAP_UNKNOWN_MEMBER_TYPE = 1773, + + XML_SCHEMAP_INVALID_ATTR_USE = 1774, + + XML_SCHEMAP_RECURSIVE = 1775, + + XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE = 1776, + + XML_SCHEMAP_INVALID_ATTR_COMBINATION = 1777, + + XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION = 1778, + + XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD = 1779, + + XML_SCHEMAP_INVALID_ATTR_NAME = 1780, + + XML_SCHEMAP_REF_AND_CONTENT = 1781, + + XML_SCHEMAP_CT_PROPS_CORRECT_1 = 1782, + + XML_SCHEMAP_CT_PROPS_CORRECT_2 = 1783, + + XML_SCHEMAP_CT_PROPS_CORRECT_3 = 1784, + + XML_SCHEMAP_CT_PROPS_CORRECT_4 = 1785, + + XML_SCHEMAP_CT_PROPS_CORRECT_5 = 1786, + + XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1 = 1787, + + XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1 = 1788, + + XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2 = 1789, + + XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2 = 1790, + + XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3 = 1791, + + XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER = 1792, + + XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE = 1793, + + XML_SCHEMAP_UNION_NOT_EXPRESSIBLE = 1794, + + XML_SCHEMAP_SRC_IMPORT_3_1 = 1795, + + XML_SCHEMAP_SRC_IMPORT_3_2 = 1796, + + XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1 = 1797, + + XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2 = 1798, + + XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3 = 1799, + + XML_SCHEMAP_COS_CT_EXTENDS_1_3 = 1800, + + XML_SCHEMAV_NOROOT = 1801, + + XML_SCHEMAV_UNDECLAREDELEM = 1802, + + XML_SCHEMAV_NOTTOPLEVEL = 1803, + + XML_SCHEMAV_MISSING = 1804, + + XML_SCHEMAV_WRONGELEM = 1805, + + XML_SCHEMAV_NOTYPE = 1806, + + XML_SCHEMAV_NOROLLBACK = 1807, + + XML_SCHEMAV_ISABSTRACT = 1808, + + XML_SCHEMAV_NOTEMPTY = 1809, + + XML_SCHEMAV_ELEMCONT = 1810, + + XML_SCHEMAV_HAVEDEFAULT = 1811, + + XML_SCHEMAV_NOTNILLABLE = 1812, + + XML_SCHEMAV_EXTRACONTENT = 1813, + + XML_SCHEMAV_INVALIDATTR = 1814, + + XML_SCHEMAV_INVALIDELEM = 1815, + + XML_SCHEMAV_NOTDETERMINIST = 1816, + + XML_SCHEMAV_CONSTRUCT = 1817, + + XML_SCHEMAV_INTERNAL = 1818, + + XML_SCHEMAV_NOTSIMPLE = 1819, + + XML_SCHEMAV_ATTRUNKNOWN = 1820, + + XML_SCHEMAV_ATTRINVALID = 1821, + + XML_SCHEMAV_VALUE = 1822, + + XML_SCHEMAV_FACET = 1823, + + XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1 = 1824, + + XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2 = 1825, + + XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3 = 1826, + + XML_SCHEMAV_CVC_TYPE_3_1_1 = 1827, + + XML_SCHEMAV_CVC_TYPE_3_1_2 = 1828, + + XML_SCHEMAV_CVC_FACET_VALID = 1829, + + XML_SCHEMAV_CVC_LENGTH_VALID = 1830, + + XML_SCHEMAV_CVC_MINLENGTH_VALID = 1831, + + XML_SCHEMAV_CVC_MAXLENGTH_VALID = 1832, + + XML_SCHEMAV_CVC_MININCLUSIVE_VALID = 1833, + + XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID = 1834, + + XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID = 1835, + + XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID = 1836, + + XML_SCHEMAV_CVC_TOTALDIGITS_VALID = 1837, + + XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID = 1838, + + XML_SCHEMAV_CVC_PATTERN_VALID = 1839, + + XML_SCHEMAV_CVC_ENUMERATION_VALID = 1840, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1 = 1841, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2 = 1842, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3 = 1843, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4 = 1844, + + XML_SCHEMAV_CVC_ELT_1 = 1845, + + XML_SCHEMAV_CVC_ELT_2 = 1846, + + XML_SCHEMAV_CVC_ELT_3_1 = 1847, + + XML_SCHEMAV_CVC_ELT_3_2_1 = 1848, + + XML_SCHEMAV_CVC_ELT_3_2_2 = 1849, + + XML_SCHEMAV_CVC_ELT_4_1 = 1850, + + XML_SCHEMAV_CVC_ELT_4_2 = 1851, + + XML_SCHEMAV_CVC_ELT_4_3 = 1852, + + XML_SCHEMAV_CVC_ELT_5_1_1 = 1853, + + XML_SCHEMAV_CVC_ELT_5_1_2 = 1854, + + XML_SCHEMAV_CVC_ELT_5_2_1 = 1855, + + XML_SCHEMAV_CVC_ELT_5_2_2_1 = 1856, + + XML_SCHEMAV_CVC_ELT_5_2_2_2_1 = 1857, + + XML_SCHEMAV_CVC_ELT_5_2_2_2_2 = 1858, + + XML_SCHEMAV_CVC_ELT_6 = 1859, + + XML_SCHEMAV_CVC_ELT_7 = 1860, + + XML_SCHEMAV_CVC_ATTRIBUTE_1 = 1861, + + XML_SCHEMAV_CVC_ATTRIBUTE_2 = 1862, + + XML_SCHEMAV_CVC_ATTRIBUTE_3 = 1863, + + XML_SCHEMAV_CVC_ATTRIBUTE_4 = 1864, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1 = 1865, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1 = 1866, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2 = 1867, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_4 = 1868, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1 = 1869, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2 = 1870, + + XML_SCHEMAV_ELEMENT_CONTENT = 1871, + + XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING = 1872, + + XML_SCHEMAV_CVC_COMPLEX_TYPE_1 = 1873, + + XML_SCHEMAV_CVC_AU = 1874, + + XML_SCHEMAV_CVC_TYPE_1 = 1875, + + XML_SCHEMAV_CVC_TYPE_2 = 1876, + + XML_SCHEMAV_CVC_IDC = 1877, + + XML_SCHEMAV_CVC_WILDCARD = 1878, + + XML_SCHEMAV_MISC = 1879, + + XML_XPTR_UNKNOWN_SCHEME = 1900, + + XML_XPTR_CHILDSEQ_START = 1901, + + XML_XPTR_EVAL_FAILED = 1902, + + XML_XPTR_EXTRA_OBJECTS = 1903, + + XML_C14N_CREATE_CTXT = 1950, + + XML_C14N_REQUIRES_UTF8 = 1951, + + XML_C14N_CREATE_STACK = 1952, + + XML_C14N_INVALID_NODE = 1953, + + XML_C14N_UNKNOW_NODE = 1954, + + XML_C14N_RELATIVE_NAMESPACE = 1955, + + XML_FTP_PASV_ANSWER = 2000, + + XML_FTP_EPSV_ANSWER = 2001, + + XML_FTP_ACCNT = 2002, + + XML_FTP_URL_SYNTAX = 2003, + + XML_HTTP_URL_SYNTAX = 2020, + + XML_HTTP_USE_IP = 2021, + + XML_HTTP_UNKNOWN_HOST = 2022, + + XML_SCHEMAP_SRC_SIMPLE_TYPE_1 = 3000, + + XML_SCHEMAP_SRC_SIMPLE_TYPE_2 = 3001, + + XML_SCHEMAP_SRC_SIMPLE_TYPE_3 = 3002, + + XML_SCHEMAP_SRC_SIMPLE_TYPE_4 = 3003, + + XML_SCHEMAP_SRC_RESOLVE = 3004, + + XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE = 3005, + + XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE = 3006, + + XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES = 3007, + + XML_SCHEMAP_ST_PROPS_CORRECT_1 = 3008, + + XML_SCHEMAP_ST_PROPS_CORRECT_2 = 3009, + + XML_SCHEMAP_ST_PROPS_CORRECT_3 = 3010, + + XML_SCHEMAP_COS_ST_RESTRICTS_1_1 = 3011, + + XML_SCHEMAP_COS_ST_RESTRICTS_1_2 = 3012, + + XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1 = 3013, + + XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2 = 3014, + + XML_SCHEMAP_COS_ST_RESTRICTS_2_1 = 3015, + + XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1 = 3016, + + XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2 = 3017, + + XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1 = 3018, + + XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2 = 3019, + + XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3 = 3020, + + XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4 = 3021, + + XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5 = 3022, + + XML_SCHEMAP_COS_ST_RESTRICTS_3_1 = 3023, + + XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1 = 3024, + + XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2 = 3025, + + XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2 = 3026, + + XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1 = 3027, + + XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3 = 3028, + + XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4 = 3029, + + XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5 = 3030, + + XML_SCHEMAP_COS_ST_DERIVED_OK_2_1 = 3031, + + XML_SCHEMAP_COS_ST_DERIVED_OK_2_2 = 3032, + + XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED = 3033, + + XML_SCHEMAP_S4S_ELEM_MISSING = 3034, + + XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED = 3035, + + XML_SCHEMAP_S4S_ATTR_MISSING = 3036, + + XML_SCHEMAP_S4S_ATTR_INVALID_VALUE = 3037, + + XML_SCHEMAP_SRC_ELEMENT_1 = 3038, + + XML_SCHEMAP_SRC_ELEMENT_2_1 = 3039, + + XML_SCHEMAP_SRC_ELEMENT_2_2 = 3040, + + XML_SCHEMAP_SRC_ELEMENT_3 = 3041, + + XML_SCHEMAP_P_PROPS_CORRECT_1 = 3042, + + XML_SCHEMAP_P_PROPS_CORRECT_2_1 = 3043, + + XML_SCHEMAP_P_PROPS_CORRECT_2_2 = 3044, + + XML_SCHEMAP_E_PROPS_CORRECT_2 = 3045, + + XML_SCHEMAP_E_PROPS_CORRECT_3 = 3046, + + XML_SCHEMAP_E_PROPS_CORRECT_4 = 3047, + + XML_SCHEMAP_E_PROPS_CORRECT_5 = 3048, + + XML_SCHEMAP_E_PROPS_CORRECT_6 = 3049, + + XML_SCHEMAP_SRC_INCLUDE = 3050, + + XML_SCHEMAP_SRC_ATTRIBUTE_1 = 3051, + + XML_SCHEMAP_SRC_ATTRIBUTE_2 = 3052, + + XML_SCHEMAP_SRC_ATTRIBUTE_3_1 = 3053, + + XML_SCHEMAP_SRC_ATTRIBUTE_3_2 = 3054, + + XML_SCHEMAP_SRC_ATTRIBUTE_4 = 3055, + + XML_SCHEMAP_NO_XMLNS = 3056, + + XML_SCHEMAP_NO_XSI = 3057, + + XML_SCHEMAP_COS_VALID_DEFAULT_1 = 3058, + + XML_SCHEMAP_COS_VALID_DEFAULT_2_1 = 3059, + + XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1 = 3060, + + XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2 = 3061, + + XML_SCHEMAP_CVC_SIMPLE_TYPE = 3062, + + XML_SCHEMAP_COS_CT_EXTENDS_1_1 = 3063, + + XML_SCHEMAP_SRC_IMPORT_1_1 = 3064, + + XML_SCHEMAP_SRC_IMPORT_1_2 = 3065, + + XML_SCHEMAP_SRC_IMPORT_2 = 3066, + + XML_SCHEMAP_SRC_IMPORT_2_1 = 3067, + + XML_SCHEMAP_SRC_IMPORT_2_2 = 3068, + + XML_SCHEMAP_INTERNAL = 3069, + + XML_SCHEMAP_NOT_DETERMINISTIC = 3070, + + XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1 = 3071, + + XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2 = 3072, + + XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3 = 3073, + + XML_SCHEMAP_MG_PROPS_CORRECT_1 = 3074, + + XML_SCHEMAP_MG_PROPS_CORRECT_2 = 3075, + + XML_SCHEMAP_SRC_CT_1 = 3076, + + XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3 = 3077, + + XML_SCHEMAP_AU_PROPS_CORRECT_2 = 3078, + + XML_SCHEMAP_A_PROPS_CORRECT_2 = 3079, + + XML_SCHEMAP_C_PROPS_CORRECT = 3080, + + XML_SCHEMAP_SRC_REDEFINE = 3081, + + XML_SCHEMAP_SRC_IMPORT = 3082, + + XML_SCHEMAP_WARN_SKIP_SCHEMA = 3083, + + XML_SCHEMAP_WARN_UNLOCATED_SCHEMA = 3084, + + XML_SCHEMAP_WARN_ATTR_REDECL_PROH = 3085, + + XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH = 3086, + + XML_SCHEMAP_AG_PROPS_CORRECT = 3087, + + XML_SCHEMAP_COS_CT_EXTENDS_1_2 = 3088, + + XML_SCHEMAP_AU_PROPS_CORRECT = 3089, + + XML_SCHEMAP_A_PROPS_CORRECT_3 = 3090, + + XML_SCHEMAP_COS_ALL_LIMITED = 3091, + + XML_SCHEMATRONV_ASSERT = 4000, + + XML_SCHEMATRONV_REPORT = 4001, + + XML_MODULE_OPEN = 4900, + + XML_MODULE_CLOSE = 4901, + + XML_CHECK_FOUND_ELEMENT = 5000, + + XML_CHECK_FOUND_ATTRIBUTE = 5001, + + XML_CHECK_FOUND_TEXT = 5002, + + XML_CHECK_FOUND_CDATA = 5003, + + XML_CHECK_FOUND_ENTITYREF = 5004, + + XML_CHECK_FOUND_ENTITY = 5005, + + XML_CHECK_FOUND_PI = 5006, + + XML_CHECK_FOUND_COMMENT = 5007, + + XML_CHECK_FOUND_DOCTYPE = 5008, + + XML_CHECK_FOUND_FRAGMENT = 5009, + + XML_CHECK_FOUND_NOTATION = 5010, + + XML_CHECK_UNKNOWN_NODE = 5011, - XML_ERR_RESERVED_XML_NAME = 64, + XML_CHECK_ENTITY_TYPE = 5012, - XML_ERR_SPACE_REQUIRED = 65, + XML_CHECK_NO_PARENT = 5013, - XML_ERR_SEPARATOR_REQUIRED = 66, + XML_CHECK_NO_DOC = 5014, - XML_ERR_NMTOKEN_REQUIRED = 67, + XML_CHECK_NO_NAME = 5015, - XML_ERR_NAME_REQUIRED = 68, + XML_CHECK_NO_ELEM = 5016, - XML_ERR_PCDATA_REQUIRED = 69, + XML_CHECK_WRONG_DOC = 5017, - XML_ERR_URI_REQUIRED = 70, + XML_CHECK_NO_PREV = 5018, - XML_ERR_PUBID_REQUIRED = 71, + XML_CHECK_WRONG_PREV = 5019, - XML_ERR_LT_REQUIRED = 72, + XML_CHECK_NO_NEXT = 5020, - XML_ERR_GT_REQUIRED = 73, + XML_CHECK_WRONG_NEXT = 5021, - XML_ERR_LTSLASH_REQUIRED = 74, + XML_CHECK_NOT_DTD = 5022, - XML_ERR_EQUAL_REQUIRED = 75, + XML_CHECK_NOT_ATTR = 5023, + + XML_CHECK_NOT_ATTR_DECL = 5024, + + XML_CHECK_NOT_ELEM_DECL = 5025, + + XML_CHECK_NOT_ENTITY_DECL = 5026, + + XML_CHECK_NOT_NS_DECL = 5027, + + XML_CHECK_NO_HREF = 5028, + + XML_CHECK_WRONG_PARENT = 5029, + + XML_CHECK_NS_SCOPE = 5030, + + XML_CHECK_NS_ANCESTOR = 5031, + + XML_CHECK_NOT_UTF8 = 5032, + + XML_CHECK_NO_DICT = 5033, + + XML_CHECK_NOT_NCNAME = 5034, + + XML_CHECK_OUTSIDE_DICT = 5035, + + XML_CHECK_WRONG_NAME = 5036, + + XML_CHECK_NAME_NOT_NULL = 5037, + + XML_I18N_NO_NAME = 6000, + + XML_I18N_NO_HANDLER = 6001, + + XML_I18N_EXCESS_HANDLER = 6002, + + XML_I18N_CONV_FAILED = 6003, + + XML_I18N_NO_OUTPUT = 6004, + + XML_BUF_OVERFLOW = 7000 +} + +declare function xmlParserFindNodeInfo(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, node: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlParserNodeInfo>; + +declare function xmlParserFindNodeInfoIndex(seq: interop.Pointer | interop.Reference<_xmlParserNodeInfoSeq>, node: interop.Pointer | interop.Reference<_xmlNode>): number; + +declare function xmlParserGetDirectory(filename: string): string; + +declare function xmlParserHandlePEReference(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParserHandleReference(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; + +declare function xmlParserInputBufferCreateFd(fd: number, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserInputBuffer>; + +declare function xmlParserInputBufferCreateFile(file: interop.Pointer | interop.Reference, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserInputBuffer>; + +declare function xmlParserInputBufferCreateFilename(URI: string, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserInputBuffer>; + +declare function xmlParserInputBufferCreateFilenameDefault(func: interop.FunctionReference<(p1: string, p2: xmlCharEncoding) => interop.Pointer | interop.Reference<_xmlParserInputBuffer>>): interop.FunctionReference<(p1: string, p2: xmlCharEncoding) => interop.Pointer | interop.Reference<_xmlParserInputBuffer>>; + +declare function xmlParserInputBufferCreateIO(ioread: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, ioclose: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, ioctx: interop.Pointer | interop.Reference, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserInputBuffer>; + +declare function xmlParserInputBufferCreateMem(mem: string, size: number, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserInputBuffer>; + +declare function xmlParserInputBufferCreateStatic(mem: string, size: number, enc: xmlCharEncoding): interop.Pointer | interop.Reference<_xmlParserInputBuffer>; + +declare function xmlParserInputBufferGrow(_in: interop.Pointer | interop.Reference<_xmlParserInputBuffer>, len: number): number; + +declare function xmlParserInputBufferPush(_in: interop.Pointer | interop.Reference<_xmlParserInputBuffer>, len: number, buf: string): number; + +declare function xmlParserInputBufferRead(_in: interop.Pointer | interop.Reference<_xmlParserInputBuffer>, len: number): number; + +declare function xmlParserInputGrow(_in: interop.Pointer | interop.Reference<_xmlParserInput>, len: number): number; + +declare function xmlParserInputRead(_in: interop.Pointer | interop.Reference<_xmlParserInput>, len: number): number; + +declare function xmlParserInputShrink(_in: interop.Pointer | interop.Reference<_xmlParserInput>): void; + +declare const enum xmlParserInputState { + + XML_PARSER_EOF = -1, + + XML_PARSER_START = 0, + + XML_PARSER_MISC = 1, + + XML_PARSER_PI = 2, + + XML_PARSER_DTD = 3, + + XML_PARSER_PROLOG = 4, + + XML_PARSER_COMMENT = 5, + + XML_PARSER_START_TAG = 6, + + XML_PARSER_CONTENT = 7, + + XML_PARSER_CDATA_SECTION = 8, + + XML_PARSER_END_TAG = 9, + + XML_PARSER_ENTITY_DECL = 10, + + XML_PARSER_ENTITY_VALUE = 11, + + XML_PARSER_ATTRIBUTE_VALUE = 12, + + XML_PARSER_SYSTEM_LITERAL = 13, + + XML_PARSER_EPILOG = 14, + + XML_PARSER_IGNORE = 15, + + XML_PARSER_PUBLIC_LITERAL = 16 +} + +declare var xmlParserMaxDepth: number; + +declare const enum xmlParserMode { + + XML_PARSE_UNKNOWN = 0, + + XML_PARSE_DOM = 1, + + XML_PARSE_SAX = 2, + + XML_PARSE_PUSH_DOM = 3, + + XML_PARSE_PUSH_SAX = 4, + + XML_PARSE_READER = 5 +} + +declare const enum xmlParserOption { + + XML_PARSE_RECOVER = 1, + + XML_PARSE_NOENT = 2, + + XML_PARSE_DTDLOAD = 4, + + XML_PARSE_DTDATTR = 8, + + XML_PARSE_DTDVALID = 16, + + XML_PARSE_NOERROR = 32, + + XML_PARSE_NOWARNING = 64, + + XML_PARSE_PEDANTIC = 128, + + XML_PARSE_NOBLANKS = 256, + + XML_PARSE_SAX1 = 512, + + XML_PARSE_XINCLUDE = 1024, + + XML_PARSE_NONET = 2048, + + XML_PARSE_NODICT = 4096, + + XML_PARSE_NSCLEAN = 8192, + + XML_PARSE_NOCDATA = 16384, + + XML_PARSE_NOXINCNODE = 32768, + + XML_PARSE_COMPACT = 65536, + + XML_PARSE_OLD10 = 131072, + + XML_PARSE_NOBASEFIX = 262144, + + XML_PARSE_HUGE = 524288, + + XML_PARSE_OLDSAX = 1048576, + + XML_PARSE_IGNORE_ENC = 2097152, + + XML_PARSE_BIG_LINES = 4194304 +} + +declare function xmlParserPrintFileContext(input: interop.Pointer | interop.Reference<_xmlParserInput>): void; + +declare function xmlParserPrintFileInfo(input: interop.Pointer | interop.Reference<_xmlParserInput>): void; + +declare const enum xmlParserProperties { + + XML_PARSER_LOADDTD = 1, + + XML_PARSER_DEFAULTATTRS = 2, + + XML_PARSER_VALIDATE = 3, + + XML_PARSER_SUBST_ENTITIES = 4 +} + +declare const enum xmlParserSeverities { + + XML_PARSER_SEVERITY_VALIDITY_WARNING = 1, + + XML_PARSER_SEVERITY_VALIDITY_ERROR = 2, + + XML_PARSER_SEVERITY_WARNING = 3, + + XML_PARSER_SEVERITY_ERROR = 4 +} + +declare function xmlPathToURI(path: string): string; + +declare const enum xmlPatternFlags { + + XML_PATTERN_DEFAULT = 0, + + XML_PATTERN_XPATH = 1, + + XML_PATTERN_XSSEL = 2, + + XML_PATTERN_XSFIELD = 4 +} + +declare function xmlPatternFromRoot(comp: interop.Pointer | interop.Reference): number; + +declare function xmlPatternGetStreamCtxt(comp: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlPatternMatch(comp: interop.Pointer | interop.Reference, node: interop.Pointer | interop.Reference<_xmlNode>): number; + +declare function xmlPatternMaxDepth(comp: interop.Pointer | interop.Reference): number; + +declare function xmlPatternMinDepth(comp: interop.Pointer | interop.Reference): number; + +declare function xmlPatternStreamable(comp: interop.Pointer | interop.Reference): number; + +declare function xmlPatterncompile(pattern: string, dict: interop.Pointer | interop.Reference, flags: number, namespaces: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; + +declare function xmlPedanticParserDefault(val: number): number; + +declare function xmlPopInput(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; + +declare function xmlPopInputCallbacks(): number; + +declare function xmlPreviousElementSibling(node: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; + +declare function xmlPrintURI(stream: interop.Pointer | interop.Reference, uri: interop.Pointer | interop.Reference<_xmlURI>): void; + +declare function xmlPushInput(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, input: interop.Pointer | interop.Reference<_xmlParserInput>): number; + +declare function xmlRMutexLock(tok: interop.Pointer | interop.Reference): void; + +declare function xmlRMutexUnlock(tok: interop.Pointer | interop.Reference): void; + +declare function xmlReadDoc(cur: string, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlReadFd(fd: number, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlReadFile(URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlReadIO(ioread: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, ioclose: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, ioctx: interop.Pointer | interop.Reference, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlReadMemory(buffer: string, size: number, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference<_xmlDoc>; + +declare function xmlReaderForDoc(cur: string, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference; + +declare function xmlReaderForFd(fd: number, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference; + +declare function xmlReaderForFile(filename: string, encoding: string, options: number): interop.Pointer | interop.Reference; + +declare function xmlReaderForIO(ioread: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, ioclose: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, ioctx: interop.Pointer | interop.Reference, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference; + +declare function xmlReaderForMemory(buffer: string, size: number, URL: string, encoding: string, options: number): interop.Pointer | interop.Reference; + +declare function xmlReaderNewDoc(reader: interop.Pointer | interop.Reference, cur: string, URL: string, encoding: string, options: number): number; + +declare function xmlReaderNewFd(reader: interop.Pointer | interop.Reference, fd: number, URL: string, encoding: string, options: number): number; + +declare function xmlReaderNewFile(reader: interop.Pointer | interop.Reference, filename: string, encoding: string, options: number): number; + +declare function xmlReaderNewIO(reader: interop.Pointer | interop.Reference, ioread: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, ioclose: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, ioctx: interop.Pointer | interop.Reference, URL: string, encoding: string, options: number): number; + +declare function xmlReaderNewMemory(reader: interop.Pointer | interop.Reference, buffer: string, size: number, URL: string, encoding: string, options: number): number; + +declare function xmlReaderNewWalker(reader: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>): number; + +declare const enum xmlReaderTypes { + + XML_READER_TYPE_NONE = 0, + + XML_READER_TYPE_ELEMENT = 1, + + XML_READER_TYPE_ATTRIBUTE = 2, + + XML_READER_TYPE_TEXT = 3, + + XML_READER_TYPE_CDATA = 4, + + XML_READER_TYPE_ENTITY_REFERENCE = 5, + + XML_READER_TYPE_ENTITY = 6, + + XML_READER_TYPE_PROCESSING_INSTRUCTION = 7, + + XML_READER_TYPE_COMMENT = 8, + + XML_READER_TYPE_DOCUMENT = 9, - XML_ERR_TAG_NAME_MISMATCH = 76, + XML_READER_TYPE_DOCUMENT_TYPE = 10, - XML_ERR_TAG_NOT_FINISHED = 77, + XML_READER_TYPE_DOCUMENT_FRAGMENT = 11, - XML_ERR_STANDALONE_VALUE = 78, + XML_READER_TYPE_NOTATION = 12, - XML_ERR_ENCODING_NAME = 79, + XML_READER_TYPE_WHITESPACE = 13, - XML_ERR_HYPHEN_IN_COMMENT = 80, + XML_READER_TYPE_SIGNIFICANT_WHITESPACE = 14, - XML_ERR_INVALID_ENCODING = 81, + XML_READER_TYPE_END_ELEMENT = 15, - XML_ERR_EXT_ENTITY_STANDALONE = 82, + XML_READER_TYPE_END_ENTITY = 16, - XML_ERR_CONDSEC_INVALID = 83, + XML_READER_TYPE_XML_DECLARATION = 17 +} - XML_ERR_VALUE_REQUIRED = 84, +declare function xmlReaderWalker(doc: interop.Pointer | interop.Reference<_xmlDoc>): interop.Pointer | interop.Reference; - XML_ERR_NOT_WELL_BALANCED = 85, +declare var xmlRealloc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: number) => interop.Pointer | interop.Reference>; - XML_ERR_EXTRA_CONTENT = 86, +declare function xmlReallocLoc(ptr: interop.Pointer | interop.Reference, size: number, file: string, line: number): interop.Pointer | interop.Reference; - XML_ERR_ENTITY_CHAR_ERROR = 87, +declare function xmlReconciliateNs(doc: interop.Pointer | interop.Reference<_xmlDoc>, tree: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_ERR_ENTITY_PE_INTERNAL = 88, +declare function xmlRecoverDoc(cur: string): interop.Pointer | interop.Reference<_xmlDoc>; - XML_ERR_ENTITY_LOOP = 89, +declare function xmlRecoverFile(filename: string): interop.Pointer | interop.Reference<_xmlDoc>; - XML_ERR_ENTITY_BOUNDARY = 90, +declare function xmlRecoverMemory(buffer: string, size: number): interop.Pointer | interop.Reference<_xmlDoc>; - XML_ERR_INVALID_URI = 91, +declare function xmlRegExecErrInfo(exec: interop.Pointer | interop.Reference, string: interop.Pointer | interop.Reference, nbval: interop.Pointer | interop.Reference, nbneg: interop.Pointer | interop.Reference, values: interop.Pointer | interop.Reference, terminal: interop.Pointer | interop.Reference): number; - XML_ERR_URI_FRAGMENT = 92, +declare function xmlRegExecNextValues(exec: interop.Pointer | interop.Reference, nbval: interop.Pointer | interop.Reference, nbneg: interop.Pointer | interop.Reference, values: interop.Pointer | interop.Reference, terminal: interop.Pointer | interop.Reference): number; - XML_WAR_CATALOG_PI = 93, +declare function xmlRegExecPushString(exec: interop.Pointer | interop.Reference, value: string, data: interop.Pointer | interop.Reference): number; - XML_ERR_NO_DTD = 94, +declare function xmlRegExecPushString2(exec: interop.Pointer | interop.Reference, value: string, value2: string, data: interop.Pointer | interop.Reference): number; - XML_ERR_CONDSEC_INVALID_KEYWORD = 95, +declare function xmlRegFreeExecCtxt(exec: interop.Pointer | interop.Reference): void; - XML_ERR_VERSION_MISSING = 96, +declare function xmlRegFreeRegexp(regexp: interop.Pointer | interop.Reference): void; - XML_WAR_UNKNOWN_VERSION = 97, +declare function xmlRegNewExecCtxt(comp: interop.Pointer | interop.Reference, callback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: interop.Pointer | interop.Reference, p4: interop.Pointer | interop.Reference) => void>, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_WAR_LANG_VALUE = 98, +declare function xmlRegexpCompile(regexp: string): interop.Pointer | interop.Reference; - XML_WAR_NS_URI = 99, +declare function xmlRegexpExec(comp: interop.Pointer | interop.Reference, value: string): number; - XML_WAR_NS_URI_RELATIVE = 100, +declare function xmlRegexpIsDeterminist(comp: interop.Pointer | interop.Reference): number; - XML_ERR_MISSING_ENCODING = 101, +declare function xmlRegexpPrint(output: interop.Pointer | interop.Reference, regexp: interop.Pointer | interop.Reference): void; - XML_WAR_SPACE_VALUE = 102, +declare function xmlRegisterCharEncodingHandler(handler: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>): void; - XML_ERR_NOT_STANDALONE = 103, +declare function xmlRegisterDefaultInputCallbacks(): void; - XML_ERR_ENTITY_PROCESSING = 104, +declare function xmlRegisterDefaultOutputCallbacks(): void; - XML_ERR_NOTATION_PROCESSING = 105, +declare function xmlRegisterHTTPPostCallbacks(): void; - XML_WAR_NS_COLUMN = 106, +declare function xmlRegisterInputCallbacks(matchFunc: interop.FunctionReference<(p1: string) => number>, openFunc: interop.FunctionReference<(p1: string) => interop.Pointer | interop.Reference>, readFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, closeFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>): number; - XML_WAR_ENTITY_REDEFINED = 107, +declare function xmlRegisterNodeDefault(func: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlNode>) => void>): interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlNode>) => void>; - XML_ERR_UNKNOWN_VERSION = 108, +declare function xmlRegisterOutputCallbacks(matchFunc: interop.FunctionReference<(p1: string) => number>, openFunc: interop.FunctionReference<(p1: string) => interop.Pointer | interop.Reference>, writeFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, closeFunc: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>): number; - XML_ERR_VERSION_MISMATCH = 109, +declare function xmlRelaxNGCleanupTypes(): void; - XML_ERR_NAME_TOO_LONG = 110, +declare function xmlRelaxNGDump(output: interop.Pointer | interop.Reference, schema: interop.Pointer | interop.Reference): void; - XML_ERR_USER_STOP = 111, +declare function xmlRelaxNGDumpTree(output: interop.Pointer | interop.Reference, schema: interop.Pointer | interop.Reference): void; - XML_NS_ERR_XML_NAMESPACE = 200, +declare function xmlRelaxNGFree(schema: interop.Pointer | interop.Reference): void; - XML_NS_ERR_UNDEFINED_NAMESPACE = 201, +declare function xmlRelaxNGFreeParserCtxt(ctxt: interop.Pointer | interop.Reference): void; - XML_NS_ERR_QNAME = 202, +declare function xmlRelaxNGFreeValidCtxt(ctxt: interop.Pointer | interop.Reference): void; - XML_NS_ERR_ATTRIBUTE_REDEFINED = 203, +declare function xmlRelaxNGGetParserErrors(ctxt: interop.Pointer | interop.Reference, err: interop.Pointer | interop.Reference, p2: string) => void>>, warn: interop.Pointer | interop.Reference, p2: string) => void>>, ctx: interop.Pointer | interop.Reference>): number; - XML_NS_ERR_EMPTY = 204, +declare function xmlRelaxNGGetValidErrors(ctxt: interop.Pointer | interop.Reference, err: interop.Pointer | interop.Reference, p2: string) => void>>, warn: interop.Pointer | interop.Reference, p2: string) => void>>, ctx: interop.Pointer | interop.Reference>): number; - XML_NS_ERR_COLON = 205, +declare function xmlRelaxNGInitTypes(): number; - XML_DTD_ATTRIBUTE_DEFAULT = 500, +declare function xmlRelaxNGNewDocParserCtxt(doc: interop.Pointer | interop.Reference<_xmlDoc>): interop.Pointer | interop.Reference; - XML_DTD_ATTRIBUTE_REDEFINED = 501, +declare function xmlRelaxNGNewMemParserCtxt(buffer: string, size: number): interop.Pointer | interop.Reference; - XML_DTD_ATTRIBUTE_VALUE = 502, +declare function xmlRelaxNGNewParserCtxt(URL: string): interop.Pointer | interop.Reference; - XML_DTD_CONTENT_ERROR = 503, +declare function xmlRelaxNGNewValidCtxt(schema: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_DTD_CONTENT_MODEL = 504, +declare function xmlRelaxNGParse(ctxt: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_DTD_CONTENT_NOT_DETERMINIST = 505, +declare const enum xmlRelaxNGParserFlag { - XML_DTD_DIFFERENT_PREFIX = 506, + XML_RELAXNGP_NONE = 0, - XML_DTD_ELEM_DEFAULT_NAMESPACE = 507, + XML_RELAXNGP_FREE_DOC = 1, - XML_DTD_ELEM_NAMESPACE = 508, + XML_RELAXNGP_CRNG = 2 +} - XML_DTD_ELEM_REDEFINED = 509, +declare function xmlRelaxNGSetParserErrors(ctxt: interop.Pointer | interop.Reference, err: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>, warn: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>, ctx: interop.Pointer | interop.Reference): void; - XML_DTD_EMPTY_NOTATION = 510, +declare function xmlRelaxNGSetParserStructuredErrors(ctxt: interop.Pointer | interop.Reference, serror: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>, ctx: interop.Pointer | interop.Reference): void; - XML_DTD_ENTITY_TYPE = 511, +declare function xmlRelaxNGSetValidErrors(ctxt: interop.Pointer | interop.Reference, err: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>, warn: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>, ctx: interop.Pointer | interop.Reference): void; - XML_DTD_ID_FIXED = 512, +declare function xmlRelaxNGSetValidStructuredErrors(ctxt: interop.Pointer | interop.Reference, serror: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>, ctx: interop.Pointer | interop.Reference): void; - XML_DTD_ID_REDEFINED = 513, +declare const enum xmlRelaxNGValidErr { - XML_DTD_ID_SUBSET = 514, + XML_RELAXNG_OK = 0, - XML_DTD_INVALID_CHILD = 515, + XML_RELAXNG_ERR_MEMORY = 1, - XML_DTD_INVALID_DEFAULT = 516, + XML_RELAXNG_ERR_TYPE = 2, - XML_DTD_LOAD_ERROR = 517, + XML_RELAXNG_ERR_TYPEVAL = 3, - XML_DTD_MISSING_ATTRIBUTE = 518, + XML_RELAXNG_ERR_DUPID = 4, - XML_DTD_MIXED_CORRUPT = 519, + XML_RELAXNG_ERR_TYPECMP = 5, - XML_DTD_MULTIPLE_ID = 520, + XML_RELAXNG_ERR_NOSTATE = 6, - XML_DTD_NO_DOC = 521, + XML_RELAXNG_ERR_NODEFINE = 7, - XML_DTD_NO_DTD = 522, + XML_RELAXNG_ERR_LISTEXTRA = 8, - XML_DTD_NO_ELEM_NAME = 523, + XML_RELAXNG_ERR_LISTEMPTY = 9, - XML_DTD_NO_PREFIX = 524, + XML_RELAXNG_ERR_INTERNODATA = 10, - XML_DTD_NO_ROOT = 525, + XML_RELAXNG_ERR_INTERSEQ = 11, - XML_DTD_NOTATION_REDEFINED = 526, + XML_RELAXNG_ERR_INTEREXTRA = 12, - XML_DTD_NOTATION_VALUE = 527, + XML_RELAXNG_ERR_ELEMNAME = 13, - XML_DTD_NOT_EMPTY = 528, + XML_RELAXNG_ERR_ATTRNAME = 14, - XML_DTD_NOT_PCDATA = 529, + XML_RELAXNG_ERR_ELEMNONS = 15, - XML_DTD_NOT_STANDALONE = 530, + XML_RELAXNG_ERR_ATTRNONS = 16, - XML_DTD_ROOT_NAME = 531, + XML_RELAXNG_ERR_ELEMWRONGNS = 17, - XML_DTD_STANDALONE_WHITE_SPACE = 532, + XML_RELAXNG_ERR_ATTRWRONGNS = 18, - XML_DTD_UNKNOWN_ATTRIBUTE = 533, + XML_RELAXNG_ERR_ELEMEXTRANS = 19, - XML_DTD_UNKNOWN_ELEM = 534, + XML_RELAXNG_ERR_ATTREXTRANS = 20, - XML_DTD_UNKNOWN_ENTITY = 535, + XML_RELAXNG_ERR_ELEMNOTEMPTY = 21, - XML_DTD_UNKNOWN_ID = 536, + XML_RELAXNG_ERR_NOELEM = 22, - XML_DTD_UNKNOWN_NOTATION = 537, + XML_RELAXNG_ERR_NOTELEM = 23, - XML_DTD_STANDALONE_DEFAULTED = 538, + XML_RELAXNG_ERR_ATTRVALID = 24, - XML_DTD_XMLID_VALUE = 539, + XML_RELAXNG_ERR_CONTENTVALID = 25, - XML_DTD_XMLID_TYPE = 540, + XML_RELAXNG_ERR_EXTRACONTENT = 26, - XML_DTD_DUP_TOKEN = 541, + XML_RELAXNG_ERR_INVALIDATTR = 27, - XML_HTML_STRUCURE_ERROR = 800, + XML_RELAXNG_ERR_DATAELEM = 28, - XML_HTML_UNKNOWN_TAG = 801, + XML_RELAXNG_ERR_VALELEM = 29, - XML_RNGP_ANYNAME_ATTR_ANCESTOR = 1000, + XML_RELAXNG_ERR_LISTELEM = 30, - XML_RNGP_ATTR_CONFLICT = 1001, + XML_RELAXNG_ERR_DATATYPE = 31, - XML_RNGP_ATTRIBUTE_CHILDREN = 1002, + XML_RELAXNG_ERR_VALUE = 32, - XML_RNGP_ATTRIBUTE_CONTENT = 1003, + XML_RELAXNG_ERR_LIST = 33, - XML_RNGP_ATTRIBUTE_EMPTY = 1004, + XML_RELAXNG_ERR_NOGRAMMAR = 34, - XML_RNGP_ATTRIBUTE_NOOP = 1005, + XML_RELAXNG_ERR_EXTRADATA = 35, - XML_RNGP_CHOICE_CONTENT = 1006, + XML_RELAXNG_ERR_LACKDATA = 36, - XML_RNGP_CHOICE_EMPTY = 1007, + XML_RELAXNG_ERR_INTERNAL = 37, - XML_RNGP_CREATE_FAILURE = 1008, + XML_RELAXNG_ERR_ELEMWRONG = 38, - XML_RNGP_DATA_CONTENT = 1009, + XML_RELAXNG_ERR_TEXTWRONG = 39 +} - XML_RNGP_DEF_CHOICE_AND_INTERLEAVE = 1010, +declare function xmlRelaxNGValidateDoc(ctxt: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>): number; - XML_RNGP_DEFINE_CREATE_FAILED = 1011, +declare function xmlRelaxNGValidateFullElement(ctxt: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_RNGP_DEFINE_EMPTY = 1012, +declare function xmlRelaxNGValidatePopElement(ctxt: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_RNGP_DEFINE_MISSING = 1013, +declare function xmlRelaxNGValidatePushCData(ctxt: interop.Pointer | interop.Reference, data: string, len: number): number; - XML_RNGP_DEFINE_NAME_MISSING = 1014, +declare function xmlRelaxNGValidatePushElement(ctxt: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_RNGP_ELEM_CONTENT_EMPTY = 1015, +declare function xmlRelaxParserSetFlag(ctxt: interop.Pointer | interop.Reference, flag: number): number; - XML_RNGP_ELEM_CONTENT_ERROR = 1016, +declare function xmlRemoveID(doc: interop.Pointer | interop.Reference<_xmlDoc>, attr: interop.Pointer | interop.Reference<_xmlAttr>): number; - XML_RNGP_ELEMENT_EMPTY = 1017, +declare function xmlRemoveProp(cur: interop.Pointer | interop.Reference<_xmlAttr>): number; - XML_RNGP_ELEMENT_CONTENT = 1018, +declare function xmlRemoveRef(doc: interop.Pointer | interop.Reference<_xmlDoc>, attr: interop.Pointer | interop.Reference<_xmlAttr>): number; - XML_RNGP_ELEMENT_NAME = 1019, +declare function xmlReplaceNode(old: interop.Pointer | interop.Reference<_xmlNode>, cur: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; - XML_RNGP_ELEMENT_NO_CONTENT = 1020, +declare function xmlResetError(err: interop.Pointer | interop.Reference<_xmlError>): void; - XML_RNGP_ELEM_TEXT_CONFLICT = 1021, +declare function xmlResetLastError(): void; - XML_RNGP_EMPTY = 1022, +declare function xmlSAX2AttributeDecl(ctx: interop.Pointer | interop.Reference, elem: string, fullname: string, type: number, def: number, defaultValue: string, tree: interop.Pointer | interop.Reference<_xmlEnumeration>): void; - XML_RNGP_EMPTY_CONSTRUCT = 1023, +declare function xmlSAX2CDataBlock(ctx: interop.Pointer | interop.Reference, value: string, len: number): void; - XML_RNGP_EMPTY_CONTENT = 1024, +declare function xmlSAX2Characters(ctx: interop.Pointer | interop.Reference, ch: string, len: number): void; - XML_RNGP_EMPTY_NOT_EMPTY = 1025, +declare function xmlSAX2Comment(ctx: interop.Pointer | interop.Reference, value: string): void; - XML_RNGP_ERROR_TYPE_LIB = 1026, +declare function xmlSAX2ElementDecl(ctx: interop.Pointer | interop.Reference, name: string, type: number, content: interop.Pointer | interop.Reference<_xmlElementContent>): void; - XML_RNGP_EXCEPT_EMPTY = 1027, +declare function xmlSAX2EndDocument(ctx: interop.Pointer | interop.Reference): void; - XML_RNGP_EXCEPT_MISSING = 1028, +declare function xmlSAX2EndElement(ctx: interop.Pointer | interop.Reference, name: string): void; - XML_RNGP_EXCEPT_MULTIPLE = 1029, +declare function xmlSAX2EndElementNs(ctx: interop.Pointer | interop.Reference, localname: string, prefix: string, URI: string): void; - XML_RNGP_EXCEPT_NO_CONTENT = 1030, +declare function xmlSAX2EntityDecl(ctx: interop.Pointer | interop.Reference, name: string, type: number, publicId: string, systemId: string, content: string): void; - XML_RNGP_EXTERNALREF_EMTPY = 1031, +declare function xmlSAX2ExternalSubset(ctx: interop.Pointer | interop.Reference, name: string, ExternalID: string, SystemID: string): void; - XML_RNGP_EXTERNAL_REF_FAILURE = 1032, +declare function xmlSAX2GetColumnNumber(ctx: interop.Pointer | interop.Reference): number; - XML_RNGP_EXTERNALREF_RECURSE = 1033, +declare function xmlSAX2GetEntity(ctx: interop.Pointer | interop.Reference, name: string): interop.Pointer | interop.Reference<_xmlEntity>; - XML_RNGP_FORBIDDEN_ATTRIBUTE = 1034, +declare function xmlSAX2GetLineNumber(ctx: interop.Pointer | interop.Reference): number; - XML_RNGP_FOREIGN_ELEMENT = 1035, +declare function xmlSAX2GetParameterEntity(ctx: interop.Pointer | interop.Reference, name: string): interop.Pointer | interop.Reference<_xmlEntity>; - XML_RNGP_GRAMMAR_CONTENT = 1036, +declare function xmlSAX2GetPublicId(ctx: interop.Pointer | interop.Reference): string; - XML_RNGP_GRAMMAR_EMPTY = 1037, +declare function xmlSAX2GetSystemId(ctx: interop.Pointer | interop.Reference): string; - XML_RNGP_GRAMMAR_MISSING = 1038, +declare function xmlSAX2HasExternalSubset(ctx: interop.Pointer | interop.Reference): number; - XML_RNGP_GRAMMAR_NO_START = 1039, +declare function xmlSAX2HasInternalSubset(ctx: interop.Pointer | interop.Reference): number; - XML_RNGP_GROUP_ATTR_CONFLICT = 1040, +declare function xmlSAX2IgnorableWhitespace(ctx: interop.Pointer | interop.Reference, ch: string, len: number): void; - XML_RNGP_HREF_ERROR = 1041, +declare function xmlSAX2InitDefaultSAXHandler(hdlr: interop.Pointer | interop.Reference<_xmlSAXHandler>, warning: number): void; - XML_RNGP_INCLUDE_EMPTY = 1042, +declare function xmlSAX2InitDocbDefaultSAXHandler(hdlr: interop.Pointer | interop.Reference<_xmlSAXHandler>): void; - XML_RNGP_INCLUDE_FAILURE = 1043, +declare function xmlSAX2InitHtmlDefaultSAXHandler(hdlr: interop.Pointer | interop.Reference<_xmlSAXHandler>): void; - XML_RNGP_INCLUDE_RECURSE = 1044, +declare function xmlSAX2InternalSubset(ctx: interop.Pointer | interop.Reference, name: string, ExternalID: string, SystemID: string): void; - XML_RNGP_INTERLEAVE_ADD = 1045, +declare function xmlSAX2IsStandalone(ctx: interop.Pointer | interop.Reference): number; - XML_RNGP_INTERLEAVE_CREATE_FAILED = 1046, +declare function xmlSAX2NotationDecl(ctx: interop.Pointer | interop.Reference, name: string, publicId: string, systemId: string): void; - XML_RNGP_INTERLEAVE_EMPTY = 1047, +declare function xmlSAX2ProcessingInstruction(ctx: interop.Pointer | interop.Reference, target: string, data: string): void; - XML_RNGP_INTERLEAVE_NO_CONTENT = 1048, +declare function xmlSAX2Reference(ctx: interop.Pointer | interop.Reference, name: string): void; - XML_RNGP_INVALID_DEFINE_NAME = 1049, +declare function xmlSAX2ResolveEntity(ctx: interop.Pointer | interop.Reference, publicId: string, systemId: string): interop.Pointer | interop.Reference<_xmlParserInput>; - XML_RNGP_INVALID_URI = 1050, +declare function xmlSAX2SetDocumentLocator(ctx: interop.Pointer | interop.Reference, loc: interop.Pointer | interop.Reference<_xmlSAXLocator>): void; - XML_RNGP_INVALID_VALUE = 1051, +declare function xmlSAX2StartDocument(ctx: interop.Pointer | interop.Reference): void; - XML_RNGP_MISSING_HREF = 1052, +declare function xmlSAX2StartElement(ctx: interop.Pointer | interop.Reference, fullname: string, atts: interop.Pointer | interop.Reference): void; - XML_RNGP_NAME_MISSING = 1053, +declare function xmlSAX2StartElementNs(ctx: interop.Pointer | interop.Reference, localname: string, prefix: string, URI: string, nb_namespaces: number, namespaces: interop.Pointer | interop.Reference, nb_attributes: number, nb_defaulted: number, attributes: interop.Pointer | interop.Reference): void; - XML_RNGP_NEED_COMBINE = 1054, +declare function xmlSAX2UnparsedEntityDecl(ctx: interop.Pointer | interop.Reference, name: string, publicId: string, systemId: string, notationName: string): void; - XML_RNGP_NOTALLOWED_NOT_EMPTY = 1055, +declare function xmlSAXDefaultVersion(version: number): number; - XML_RNGP_NSNAME_ATTR_ANCESTOR = 1056, +declare function xmlSAXParseDTD(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, ExternalID: string, SystemID: string): interop.Pointer | interop.Reference<_xmlDtd>; - XML_RNGP_NSNAME_NO_NS = 1057, +declare function xmlSAXParseDoc(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, cur: string, recovery: number): interop.Pointer | interop.Reference<_xmlDoc>; - XML_RNGP_PARAM_FORBIDDEN = 1058, +declare function xmlSAXParseEntity(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, filename: string): interop.Pointer | interop.Reference<_xmlDoc>; - XML_RNGP_PARAM_NAME_MISSING = 1059, +declare function xmlSAXParseFile(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, filename: string, recovery: number): interop.Pointer | interop.Reference<_xmlDoc>; - XML_RNGP_PARENTREF_CREATE_FAILED = 1060, +declare function xmlSAXParseFileWithData(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, filename: string, recovery: number, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlDoc>; - XML_RNGP_PARENTREF_NAME_INVALID = 1061, +declare function xmlSAXParseMemory(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, buffer: string, size: number, recovery: number): interop.Pointer | interop.Reference<_xmlDoc>; - XML_RNGP_PARENTREF_NO_NAME = 1062, +declare function xmlSAXParseMemoryWithData(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, buffer: string, size: number, recovery: number, data: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlDoc>; - XML_RNGP_PARENTREF_NO_PARENT = 1063, +declare function xmlSAXUserParseFile(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, user_data: interop.Pointer | interop.Reference, filename: string): number; - XML_RNGP_PARENTREF_NOT_EMPTY = 1064, +declare function xmlSAXUserParseMemory(sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, user_data: interop.Pointer | interop.Reference, buffer: string, size: number): number; - XML_RNGP_PARSE_ERROR = 1065, +declare function xmlSAXVersion(hdlr: interop.Pointer | interop.Reference<_xmlSAXHandler>, version: number): number; - XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME = 1066, +declare function xmlSaveClose(ctxt: interop.Pointer | interop.Reference): number; - XML_RNGP_PAT_ATTR_ATTR = 1067, +declare function xmlSaveDoc(ctxt: interop.Pointer | interop.Reference, doc: interop.Pointer | interop.Reference<_xmlDoc>): number; - XML_RNGP_PAT_ATTR_ELEM = 1068, +declare function xmlSaveFile(filename: string, cur: interop.Pointer | interop.Reference<_xmlDoc>): number; - XML_RNGP_PAT_DATA_EXCEPT_ATTR = 1069, +declare function xmlSaveFileEnc(filename: string, cur: interop.Pointer | interop.Reference<_xmlDoc>, encoding: string): number; - XML_RNGP_PAT_DATA_EXCEPT_ELEM = 1070, +declare function xmlSaveFileTo(buf: interop.Pointer | interop.Reference<_xmlOutputBuffer>, cur: interop.Pointer | interop.Reference<_xmlDoc>, encoding: string): number; - XML_RNGP_PAT_DATA_EXCEPT_EMPTY = 1071, +declare function xmlSaveFlush(ctxt: interop.Pointer | interop.Reference): number; - XML_RNGP_PAT_DATA_EXCEPT_GROUP = 1072, +declare function xmlSaveFormatFile(filename: string, cur: interop.Pointer | interop.Reference<_xmlDoc>, format: number): number; - XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE = 1073, +declare function xmlSaveFormatFileEnc(filename: string, cur: interop.Pointer | interop.Reference<_xmlDoc>, encoding: string, format: number): number; - XML_RNGP_PAT_DATA_EXCEPT_LIST = 1074, +declare function xmlSaveFormatFileTo(buf: interop.Pointer | interop.Reference<_xmlOutputBuffer>, cur: interop.Pointer | interop.Reference<_xmlDoc>, encoding: string, format: number): number; - XML_RNGP_PAT_DATA_EXCEPT_ONEMORE = 1075, +declare const enum xmlSaveOption { - XML_RNGP_PAT_DATA_EXCEPT_REF = 1076, + XML_SAVE_FORMAT = 1, - XML_RNGP_PAT_DATA_EXCEPT_TEXT = 1077, + XML_SAVE_NO_DECL = 2, - XML_RNGP_PAT_LIST_ATTR = 1078, + XML_SAVE_NO_EMPTY = 4, - XML_RNGP_PAT_LIST_ELEM = 1079, + XML_SAVE_NO_XHTML = 8, - XML_RNGP_PAT_LIST_INTERLEAVE = 1080, + XML_SAVE_XHTML = 16, - XML_RNGP_PAT_LIST_LIST = 1081, + XML_SAVE_AS_XML = 32, - XML_RNGP_PAT_LIST_REF = 1082, + XML_SAVE_AS_HTML = 64, - XML_RNGP_PAT_LIST_TEXT = 1083, + XML_SAVE_WSNONSIG = 128 +} - XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME = 1084, +declare function xmlSaveSetAttrEscape(ctxt: interop.Pointer | interop.Reference, escape: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference, p3: string, p4: interop.Pointer | interop.Reference) => number>): number; - XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME = 1085, +declare function xmlSaveSetEscape(ctxt: interop.Pointer | interop.Reference, escape: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference, p3: string, p4: interop.Pointer | interop.Reference) => number>): number; - XML_RNGP_PAT_ONEMORE_GROUP_ATTR = 1086, +declare function xmlSaveToBuffer(buffer: interop.Pointer | interop.Reference<_xmlBuffer>, encoding: string, options: number): interop.Pointer | interop.Reference; - XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR = 1087, +declare function xmlSaveToFd(fd: number, encoding: string, options: number): interop.Pointer | interop.Reference; - XML_RNGP_PAT_START_ATTR = 1088, +declare function xmlSaveToFilename(filename: string, encoding: string, options: number): interop.Pointer | interop.Reference; - XML_RNGP_PAT_START_DATA = 1089, +declare function xmlSaveToIO(iowrite: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: number) => number>, ioclose: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, ioctx: interop.Pointer | interop.Reference, encoding: string, options: number): interop.Pointer | interop.Reference; - XML_RNGP_PAT_START_EMPTY = 1090, +declare function xmlSaveTree(ctxt: interop.Pointer | interop.Reference, node: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_RNGP_PAT_START_GROUP = 1091, +declare function xmlSaveUri(uri: interop.Pointer | interop.Reference<_xmlURI>): string; - XML_RNGP_PAT_START_INTERLEAVE = 1092, +declare function xmlScanName(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): string; - XML_RNGP_PAT_START_LIST = 1093, +declare function xmlSchemaCheckFacet(facet: interop.Pointer | interop.Reference<_xmlSchemaFacet>, typeDecl: interop.Pointer | interop.Reference<_xmlSchemaType>, ctxt: interop.Pointer | interop.Reference, name: string): number; - XML_RNGP_PAT_START_ONEMORE = 1094, +declare function xmlSchemaCleanupTypes(): void; - XML_RNGP_PAT_START_TEXT = 1095, +declare function xmlSchemaCollapseString(value: string): string; - XML_RNGP_PAT_START_VALUE = 1096, +declare function xmlSchemaCompareValues(x: interop.Pointer | interop.Reference, y: interop.Pointer | interop.Reference): number; - XML_RNGP_PREFIX_UNDEFINED = 1097, +declare function xmlSchemaCompareValuesWhtsp(x: interop.Pointer | interop.Reference, xws: xmlSchemaWhitespaceValueType, y: interop.Pointer | interop.Reference, yws: xmlSchemaWhitespaceValueType): number; - XML_RNGP_REF_CREATE_FAILED = 1098, +declare const enum xmlSchemaContentType { - XML_RNGP_REF_CYCLE = 1099, + XML_SCHEMA_CONTENT_UNKNOWN = 0, - XML_RNGP_REF_NAME_INVALID = 1100, + XML_SCHEMA_CONTENT_EMPTY = 1, - XML_RNGP_REF_NO_DEF = 1101, + XML_SCHEMA_CONTENT_ELEMENTS = 2, - XML_RNGP_REF_NO_NAME = 1102, + XML_SCHEMA_CONTENT_MIXED = 3, - XML_RNGP_REF_NOT_EMPTY = 1103, + XML_SCHEMA_CONTENT_SIMPLE = 4, - XML_RNGP_START_CHOICE_AND_INTERLEAVE = 1104, + XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS = 5, - XML_RNGP_START_CONTENT = 1105, + XML_SCHEMA_CONTENT_BASIC = 6, - XML_RNGP_START_EMPTY = 1106, + XML_SCHEMA_CONTENT_ANY = 7 +} - XML_RNGP_START_MISSING = 1107, +declare function xmlSchemaCopyValue(val: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_RNGP_TEXT_EXPECTED = 1108, +declare function xmlSchemaDump(output: interop.Pointer | interop.Reference, schema: interop.Pointer | interop.Reference<_xmlSchema>): void; - XML_RNGP_TEXT_HAS_CHILD = 1109, +declare function xmlSchemaFree(schema: interop.Pointer | interop.Reference<_xmlSchema>): void; - XML_RNGP_TYPE_MISSING = 1110, +declare function xmlSchemaFreeFacet(facet: interop.Pointer | interop.Reference<_xmlSchemaFacet>): void; - XML_RNGP_TYPE_NOT_FOUND = 1111, +declare function xmlSchemaFreeParserCtxt(ctxt: interop.Pointer | interop.Reference): void; - XML_RNGP_TYPE_VALUE = 1112, +declare function xmlSchemaFreeType(type: interop.Pointer | interop.Reference<_xmlSchemaType>): void; - XML_RNGP_UNKNOWN_ATTRIBUTE = 1113, +declare function xmlSchemaFreeValidCtxt(ctxt: interop.Pointer | interop.Reference): void; - XML_RNGP_UNKNOWN_COMBINE = 1114, +declare function xmlSchemaFreeValue(val: interop.Pointer | interop.Reference): void; - XML_RNGP_UNKNOWN_CONSTRUCT = 1115, +declare function xmlSchemaFreeWildcard(wildcard: interop.Pointer | interop.Reference<_xmlSchemaWildcard>): void; - XML_RNGP_UNKNOWN_TYPE_LIB = 1116, +declare function xmlSchemaGetBuiltInListSimpleTypeItemType(type: interop.Pointer | interop.Reference<_xmlSchemaType>): interop.Pointer | interop.Reference<_xmlSchemaType>; - XML_RNGP_URI_FRAGMENT = 1117, +declare function xmlSchemaGetBuiltInType(type: xmlSchemaValType): interop.Pointer | interop.Reference<_xmlSchemaType>; - XML_RNGP_URI_NOT_ABSOLUTE = 1118, +declare function xmlSchemaGetCanonValue(val: interop.Pointer | interop.Reference, retValue: interop.Pointer | interop.Reference): number; - XML_RNGP_VALUE_EMPTY = 1119, +declare function xmlSchemaGetCanonValueWhtsp(val: interop.Pointer | interop.Reference, retValue: interop.Pointer | interop.Reference, ws: xmlSchemaWhitespaceValueType): number; - XML_RNGP_VALUE_NO_CONTENT = 1120, +declare function xmlSchemaGetFacetValueAsULong(facet: interop.Pointer | interop.Reference<_xmlSchemaFacet>): number; - XML_RNGP_XMLNS_NAME = 1121, +declare function xmlSchemaGetParserErrors(ctxt: interop.Pointer | interop.Reference, err: interop.Pointer | interop.Reference, p2: string) => void>>, warn: interop.Pointer | interop.Reference, p2: string) => void>>, ctx: interop.Pointer | interop.Reference>): number; - XML_RNGP_XML_NS = 1122, +declare function xmlSchemaGetPredefinedType(name: string, ns: string): interop.Pointer | interop.Reference<_xmlSchemaType>; - XML_XPATH_EXPRESSION_OK = 1200, +declare function xmlSchemaGetValType(val: interop.Pointer | interop.Reference): xmlSchemaValType; - XML_XPATH_NUMBER_ERROR = 1201, +declare function xmlSchemaGetValidErrors(ctxt: interop.Pointer | interop.Reference, err: interop.Pointer | interop.Reference, p2: string) => void>>, warn: interop.Pointer | interop.Reference, p2: string) => void>>, ctx: interop.Pointer | interop.Reference>): number; - XML_XPATH_UNFINISHED_LITERAL_ERROR = 1202, +declare function xmlSchemaInitTypes(): void; - XML_XPATH_START_LITERAL_ERROR = 1203, +declare function xmlSchemaIsBuiltInTypeFacet(type: interop.Pointer | interop.Reference<_xmlSchemaType>, facetType: number): number; - XML_XPATH_VARIABLE_REF_ERROR = 1204, +declare function xmlSchemaIsValid(ctxt: interop.Pointer | interop.Reference): number; - XML_XPATH_UNDEF_VARIABLE_ERROR = 1205, +declare function xmlSchemaNewDocParserCtxt(doc: interop.Pointer | interop.Reference<_xmlDoc>): interop.Pointer | interop.Reference; - XML_XPATH_INVALID_PREDICATE_ERROR = 1206, +declare function xmlSchemaNewFacet(): interop.Pointer | interop.Reference<_xmlSchemaFacet>; - XML_XPATH_EXPR_ERROR = 1207, +declare function xmlSchemaNewMemParserCtxt(buffer: string, size: number): interop.Pointer | interop.Reference; - XML_XPATH_UNCLOSED_ERROR = 1208, +declare function xmlSchemaNewNOTATIONValue(name: string, ns: string): interop.Pointer | interop.Reference; - XML_XPATH_UNKNOWN_FUNC_ERROR = 1209, +declare function xmlSchemaNewParserCtxt(URL: string): interop.Pointer | interop.Reference; - XML_XPATH_INVALID_OPERAND = 1210, +declare function xmlSchemaNewQNameValue(namespaceName: string, localName: string): interop.Pointer | interop.Reference; - XML_XPATH_INVALID_TYPE = 1211, +declare function xmlSchemaNewStringValue(type: xmlSchemaValType, value: string): interop.Pointer | interop.Reference; - XML_XPATH_INVALID_ARITY = 1212, +declare function xmlSchemaNewValidCtxt(schema: interop.Pointer | interop.Reference<_xmlSchema>): interop.Pointer | interop.Reference; - XML_XPATH_INVALID_CTXT_SIZE = 1213, +declare function xmlSchemaParse(ctxt: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlSchema>; - XML_XPATH_INVALID_CTXT_POSITION = 1214, +declare function xmlSchemaSAXPlug(ctxt: interop.Pointer | interop.Reference, sax: interop.Pointer | interop.Reference>, user_data: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; - XML_XPATH_MEMORY_ERROR = 1215, +declare function xmlSchemaSAXUnplug(plug: interop.Pointer | interop.Reference): number; - XML_XPTR_SYNTAX_ERROR = 1216, +declare function xmlSchemaSetParserErrors(ctxt: interop.Pointer | interop.Reference, err: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>, warn: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>, ctx: interop.Pointer | interop.Reference): void; - XML_XPTR_RESOURCE_ERROR = 1217, +declare function xmlSchemaSetParserStructuredErrors(ctxt: interop.Pointer | interop.Reference, serror: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>, ctx: interop.Pointer | interop.Reference): void; - XML_XPTR_SUB_RESOURCE_ERROR = 1218, +declare function xmlSchemaSetValidErrors(ctxt: interop.Pointer | interop.Reference, err: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>, warn: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>, ctx: interop.Pointer | interop.Reference): void; - XML_XPATH_UNDEF_PREFIX_ERROR = 1219, +declare function xmlSchemaSetValidOptions(ctxt: interop.Pointer | interop.Reference, options: number): number; - XML_XPATH_ENCODING_ERROR = 1220, +declare function xmlSchemaSetValidStructuredErrors(ctxt: interop.Pointer | interop.Reference, serror: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>, ctx: interop.Pointer | interop.Reference): void; - XML_XPATH_INVALID_CHAR_ERROR = 1221, +declare const enum xmlSchemaTypeType { - XML_TREE_INVALID_HEX = 1300, + XML_SCHEMA_TYPE_BASIC = 1, - XML_TREE_INVALID_DEC = 1301, + XML_SCHEMA_TYPE_ANY = 2, - XML_TREE_UNTERMINATED_ENTITY = 1302, + XML_SCHEMA_TYPE_FACET = 3, - XML_TREE_NOT_UTF8 = 1303, + XML_SCHEMA_TYPE_SIMPLE = 4, - XML_SAVE_NOT_UTF8 = 1400, + XML_SCHEMA_TYPE_COMPLEX = 5, - XML_SAVE_CHAR_INVALID = 1401, + XML_SCHEMA_TYPE_SEQUENCE = 6, - XML_SAVE_NO_DOCTYPE = 1402, + XML_SCHEMA_TYPE_CHOICE = 7, - XML_SAVE_UNKNOWN_ENCODING = 1403, + XML_SCHEMA_TYPE_ALL = 8, - XML_REGEXP_COMPILE_ERROR = 1450, + XML_SCHEMA_TYPE_SIMPLE_CONTENT = 9, - XML_IO_UNKNOWN = 1500, + XML_SCHEMA_TYPE_COMPLEX_CONTENT = 10, - XML_IO_EACCES = 1501, + XML_SCHEMA_TYPE_UR = 11, - XML_IO_EAGAIN = 1502, + XML_SCHEMA_TYPE_RESTRICTION = 12, - XML_IO_EBADF = 1503, + XML_SCHEMA_TYPE_EXTENSION = 13, - XML_IO_EBADMSG = 1504, + XML_SCHEMA_TYPE_ELEMENT = 14, - XML_IO_EBUSY = 1505, + XML_SCHEMA_TYPE_ATTRIBUTE = 15, - XML_IO_ECANCELED = 1506, + XML_SCHEMA_TYPE_ATTRIBUTEGROUP = 16, - XML_IO_ECHILD = 1507, + XML_SCHEMA_TYPE_GROUP = 17, - XML_IO_EDEADLK = 1508, + XML_SCHEMA_TYPE_NOTATION = 18, - XML_IO_EDOM = 1509, + XML_SCHEMA_TYPE_LIST = 19, - XML_IO_EEXIST = 1510, + XML_SCHEMA_TYPE_UNION = 20, - XML_IO_EFAULT = 1511, + XML_SCHEMA_TYPE_ANY_ATTRIBUTE = 21, - XML_IO_EFBIG = 1512, + XML_SCHEMA_TYPE_IDC_UNIQUE = 22, - XML_IO_EINPROGRESS = 1513, + XML_SCHEMA_TYPE_IDC_KEY = 23, - XML_IO_EINTR = 1514, + XML_SCHEMA_TYPE_IDC_KEYREF = 24, - XML_IO_EINVAL = 1515, + XML_SCHEMA_TYPE_PARTICLE = 25, - XML_IO_EIO = 1516, + XML_SCHEMA_TYPE_ATTRIBUTE_USE = 26, - XML_IO_EISDIR = 1517, + XML_SCHEMA_FACET_MININCLUSIVE = 1000, - XML_IO_EMFILE = 1518, + XML_SCHEMA_FACET_MINEXCLUSIVE = 1001, - XML_IO_EMLINK = 1519, + XML_SCHEMA_FACET_MAXINCLUSIVE = 1002, - XML_IO_EMSGSIZE = 1520, + XML_SCHEMA_FACET_MAXEXCLUSIVE = 1003, - XML_IO_ENAMETOOLONG = 1521, + XML_SCHEMA_FACET_TOTALDIGITS = 1004, - XML_IO_ENFILE = 1522, + XML_SCHEMA_FACET_FRACTIONDIGITS = 1005, - XML_IO_ENODEV = 1523, + XML_SCHEMA_FACET_PATTERN = 1006, - XML_IO_ENOENT = 1524, + XML_SCHEMA_FACET_ENUMERATION = 1007, - XML_IO_ENOEXEC = 1525, + XML_SCHEMA_FACET_WHITESPACE = 1008, - XML_IO_ENOLCK = 1526, + XML_SCHEMA_FACET_LENGTH = 1009, - XML_IO_ENOMEM = 1527, + XML_SCHEMA_FACET_MAXLENGTH = 1010, - XML_IO_ENOSPC = 1528, + XML_SCHEMA_FACET_MINLENGTH = 1011, - XML_IO_ENOSYS = 1529, + XML_SCHEMA_EXTRA_QNAMEREF = 2000, - XML_IO_ENOTDIR = 1530, + XML_SCHEMA_EXTRA_ATTR_USE_PROHIB = 2001 +} - XML_IO_ENOTEMPTY = 1531, +declare function xmlSchemaValPredefTypeNode(type: interop.Pointer | interop.Reference<_xmlSchemaType>, value: string, val: interop.Pointer | interop.Reference>, node: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_IO_ENOTSUP = 1532, +declare function xmlSchemaValPredefTypeNodeNoNorm(type: interop.Pointer | interop.Reference<_xmlSchemaType>, value: string, val: interop.Pointer | interop.Reference>, node: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_IO_ENOTTY = 1533, +declare const enum xmlSchemaValType { - XML_IO_ENXIO = 1534, + XML_SCHEMAS_UNKNOWN = 0, - XML_IO_EPERM = 1535, + XML_SCHEMAS_STRING = 1, - XML_IO_EPIPE = 1536, + XML_SCHEMAS_NORMSTRING = 2, - XML_IO_ERANGE = 1537, + XML_SCHEMAS_DECIMAL = 3, - XML_IO_EROFS = 1538, + XML_SCHEMAS_TIME = 4, - XML_IO_ESPIPE = 1539, + XML_SCHEMAS_GDAY = 5, - XML_IO_ESRCH = 1540, + XML_SCHEMAS_GMONTH = 6, - XML_IO_ETIMEDOUT = 1541, + XML_SCHEMAS_GMONTHDAY = 7, - XML_IO_EXDEV = 1542, + XML_SCHEMAS_GYEAR = 8, - XML_IO_NETWORK_ATTEMPT = 1543, + XML_SCHEMAS_GYEARMONTH = 9, - XML_IO_ENCODER = 1544, + XML_SCHEMAS_DATE = 10, - XML_IO_FLUSH = 1545, + XML_SCHEMAS_DATETIME = 11, - XML_IO_WRITE = 1546, + XML_SCHEMAS_DURATION = 12, - XML_IO_NO_INPUT = 1547, + XML_SCHEMAS_FLOAT = 13, - XML_IO_BUFFER_FULL = 1548, + XML_SCHEMAS_DOUBLE = 14, - XML_IO_LOAD_ERROR = 1549, + XML_SCHEMAS_BOOLEAN = 15, - XML_IO_ENOTSOCK = 1550, + XML_SCHEMAS_TOKEN = 16, - XML_IO_EISCONN = 1551, + XML_SCHEMAS_LANGUAGE = 17, - XML_IO_ECONNREFUSED = 1552, + XML_SCHEMAS_NMTOKEN = 18, - XML_IO_ENETUNREACH = 1553, + XML_SCHEMAS_NMTOKENS = 19, - XML_IO_EADDRINUSE = 1554, + XML_SCHEMAS_NAME = 20, - XML_IO_EALREADY = 1555, + XML_SCHEMAS_QNAME = 21, - XML_IO_EAFNOSUPPORT = 1556, + XML_SCHEMAS_NCNAME = 22, - XML_XINCLUDE_RECURSION = 1600, + XML_SCHEMAS_ID = 23, - XML_XINCLUDE_PARSE_VALUE = 1601, + XML_SCHEMAS_IDREF = 24, - XML_XINCLUDE_ENTITY_DEF_MISMATCH = 1602, + XML_SCHEMAS_IDREFS = 25, - XML_XINCLUDE_NO_HREF = 1603, + XML_SCHEMAS_ENTITY = 26, - XML_XINCLUDE_NO_FALLBACK = 1604, + XML_SCHEMAS_ENTITIES = 27, - XML_XINCLUDE_HREF_URI = 1605, + XML_SCHEMAS_NOTATION = 28, - XML_XINCLUDE_TEXT_FRAGMENT = 1606, + XML_SCHEMAS_ANYURI = 29, - XML_XINCLUDE_TEXT_DOCUMENT = 1607, + XML_SCHEMAS_INTEGER = 30, - XML_XINCLUDE_INVALID_CHAR = 1608, + XML_SCHEMAS_NPINTEGER = 31, - XML_XINCLUDE_BUILD_FAILED = 1609, + XML_SCHEMAS_NINTEGER = 32, - XML_XINCLUDE_UNKNOWN_ENCODING = 1610, + XML_SCHEMAS_NNINTEGER = 33, - XML_XINCLUDE_MULTIPLE_ROOT = 1611, + XML_SCHEMAS_PINTEGER = 34, - XML_XINCLUDE_XPTR_FAILED = 1612, + XML_SCHEMAS_INT = 35, - XML_XINCLUDE_XPTR_RESULT = 1613, + XML_SCHEMAS_UINT = 36, - XML_XINCLUDE_INCLUDE_IN_INCLUDE = 1614, + XML_SCHEMAS_LONG = 37, - XML_XINCLUDE_FALLBACKS_IN_INCLUDE = 1615, + XML_SCHEMAS_ULONG = 38, - XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE = 1616, + XML_SCHEMAS_SHORT = 39, - XML_XINCLUDE_DEPRECATED_NS = 1617, + XML_SCHEMAS_USHORT = 40, - XML_XINCLUDE_FRAGMENT_ID = 1618, + XML_SCHEMAS_BYTE = 41, - XML_CATALOG_MISSING_ATTR = 1650, + XML_SCHEMAS_UBYTE = 42, - XML_CATALOG_ENTRY_BROKEN = 1651, + XML_SCHEMAS_HEXBINARY = 43, - XML_CATALOG_PREFER_VALUE = 1652, + XML_SCHEMAS_BASE64BINARY = 44, - XML_CATALOG_NOT_CATALOG = 1653, + XML_SCHEMAS_ANYTYPE = 45, - XML_CATALOG_RECURSION = 1654, + XML_SCHEMAS_ANYSIMPLETYPE = 46 +} - XML_SCHEMAP_PREFIX_UNDEFINED = 1700, +declare function xmlSchemaValidCtxtGetOptions(ctxt: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_ATTRFORMDEFAULT_VALUE = 1701, +declare function xmlSchemaValidCtxtGetParserCtxt(ctxt: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlParserCtxt>; - XML_SCHEMAP_ATTRGRP_NONAME_NOREF = 1702, +declare const enum xmlSchemaValidError { - XML_SCHEMAP_ATTR_NONAME_NOREF = 1703, + XML_SCHEMAS_ERR_OK = 0, - XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF = 1704, + XML_SCHEMAS_ERR_NOROOT = 1, - XML_SCHEMAP_ELEMFORMDEFAULT_VALUE = 1705, + XML_SCHEMAS_ERR_UNDECLAREDELEM = 2, - XML_SCHEMAP_ELEM_NONAME_NOREF = 1706, + XML_SCHEMAS_ERR_NOTTOPLEVEL = 3, - XML_SCHEMAP_EXTENSION_NO_BASE = 1707, + XML_SCHEMAS_ERR_MISSING = 4, - XML_SCHEMAP_FACET_NO_VALUE = 1708, + XML_SCHEMAS_ERR_WRONGELEM = 5, - XML_SCHEMAP_FAILED_BUILD_IMPORT = 1709, + XML_SCHEMAS_ERR_NOTYPE = 6, - XML_SCHEMAP_GROUP_NONAME_NOREF = 1710, + XML_SCHEMAS_ERR_NOROLLBACK = 7, - XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI = 1711, + XML_SCHEMAS_ERR_ISABSTRACT = 8, - XML_SCHEMAP_IMPORT_REDEFINE_NSNAME = 1712, + XML_SCHEMAS_ERR_NOTEMPTY = 9, - XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI = 1713, + XML_SCHEMAS_ERR_ELEMCONT = 10, - XML_SCHEMAP_INVALID_BOOLEAN = 1714, + XML_SCHEMAS_ERR_HAVEDEFAULT = 11, - XML_SCHEMAP_INVALID_ENUM = 1715, + XML_SCHEMAS_ERR_NOTNILLABLE = 12, - XML_SCHEMAP_INVALID_FACET = 1716, + XML_SCHEMAS_ERR_EXTRACONTENT = 13, - XML_SCHEMAP_INVALID_FACET_VALUE = 1717, + XML_SCHEMAS_ERR_INVALIDATTR = 14, - XML_SCHEMAP_INVALID_MAXOCCURS = 1718, + XML_SCHEMAS_ERR_INVALIDELEM = 15, - XML_SCHEMAP_INVALID_MINOCCURS = 1719, + XML_SCHEMAS_ERR_NOTDETERMINIST = 16, - XML_SCHEMAP_INVALID_REF_AND_SUBTYPE = 1720, + XML_SCHEMAS_ERR_CONSTRUCT = 17, - XML_SCHEMAP_INVALID_WHITE_SPACE = 1721, + XML_SCHEMAS_ERR_INTERNAL = 18, - XML_SCHEMAP_NOATTR_NOREF = 1722, + XML_SCHEMAS_ERR_NOTSIMPLE = 19, - XML_SCHEMAP_NOTATION_NO_NAME = 1723, + XML_SCHEMAS_ERR_ATTRUNKNOWN = 20, - XML_SCHEMAP_NOTYPE_NOREF = 1724, + XML_SCHEMAS_ERR_ATTRINVALID = 21, - XML_SCHEMAP_REF_AND_SUBTYPE = 1725, + XML_SCHEMAS_ERR_VALUE = 22, - XML_SCHEMAP_RESTRICTION_NONAME_NOREF = 1726, + XML_SCHEMAS_ERR_FACET = 23, - XML_SCHEMAP_SIMPLETYPE_NONAME = 1727, + XML_SCHEMAS_ERR_ = 24, - XML_SCHEMAP_TYPE_AND_SUBTYPE = 1728, + XML_SCHEMAS_ERR_XXX = 25 +} - XML_SCHEMAP_UNKNOWN_ALL_CHILD = 1729, +declare const enum xmlSchemaValidOption { - XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD = 1730, + XML_SCHEMA_VAL_VC_I_CREATE = 1 +} - XML_SCHEMAP_UNKNOWN_ATTR_CHILD = 1731, +declare function xmlSchemaValidateDoc(ctxt: interop.Pointer | interop.Reference, instance: interop.Pointer | interop.Reference<_xmlDoc>): number; - XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD = 1732, +declare function xmlSchemaValidateFacet(base: interop.Pointer | interop.Reference<_xmlSchemaType>, facet: interop.Pointer | interop.Reference<_xmlSchemaFacet>, value: string, val: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP = 1733, +declare function xmlSchemaValidateFacetWhtsp(facet: interop.Pointer | interop.Reference<_xmlSchemaFacet>, fws: xmlSchemaWhitespaceValueType, valType: xmlSchemaValType, value: string, val: interop.Pointer | interop.Reference, ws: xmlSchemaWhitespaceValueType): number; - XML_SCHEMAP_UNKNOWN_BASE_TYPE = 1734, +declare function xmlSchemaValidateFile(ctxt: interop.Pointer | interop.Reference, filename: string, options: number): number; - XML_SCHEMAP_UNKNOWN_CHOICE_CHILD = 1735, +declare function xmlSchemaValidateLengthFacet(type: interop.Pointer | interop.Reference<_xmlSchemaType>, facet: interop.Pointer | interop.Reference<_xmlSchemaFacet>, value: string, val: interop.Pointer | interop.Reference, length: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD = 1736, +declare function xmlSchemaValidateLengthFacetWhtsp(facet: interop.Pointer | interop.Reference<_xmlSchemaFacet>, valType: xmlSchemaValType, value: string, val: interop.Pointer | interop.Reference, length: interop.Pointer | interop.Reference, ws: xmlSchemaWhitespaceValueType): number; - XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD = 1737, +declare function xmlSchemaValidateListSimpleTypeFacet(facet: interop.Pointer | interop.Reference<_xmlSchemaFacet>, value: string, actualLen: number, expectedLen: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_UNKNOWN_ELEM_CHILD = 1738, +declare function xmlSchemaValidateOneElement(ctxt: interop.Pointer | interop.Reference, elem: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD = 1739, +declare function xmlSchemaValidatePredefinedType(type: interop.Pointer | interop.Reference<_xmlSchemaType>, value: string, val: interop.Pointer | interop.Reference>): number; - XML_SCHEMAP_UNKNOWN_FACET_CHILD = 1740, +declare function xmlSchemaValidateSetFilename(vctxt: interop.Pointer | interop.Reference, filename: string): void; - XML_SCHEMAP_UNKNOWN_FACET_TYPE = 1741, +declare function xmlSchemaValidateSetLocator(vctxt: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference) => number>, ctxt: interop.Pointer | interop.Reference): void; - XML_SCHEMAP_UNKNOWN_GROUP_CHILD = 1742, +declare function xmlSchemaValidateStream(ctxt: interop.Pointer | interop.Reference, input: interop.Pointer | interop.Reference<_xmlParserInputBuffer>, enc: xmlCharEncoding, sax: interop.Pointer | interop.Reference<_xmlSAXHandler>, user_data: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_UNKNOWN_IMPORT_CHILD = 1743, +declare function xmlSchemaValueAppend(prev: interop.Pointer | interop.Reference, cur: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_UNKNOWN_LIST_CHILD = 1744, +declare function xmlSchemaValueGetAsBoolean(val: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_UNKNOWN_NOTATION_CHILD = 1745, +declare function xmlSchemaValueGetAsString(val: interop.Pointer | interop.Reference): string; - XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD = 1746, +declare function xmlSchemaValueGetNext(cur: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_SCHEMAP_UNKNOWN_REF = 1747, +declare function xmlSchemaWhiteSpaceReplace(value: string): string; - XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD = 1748, +declare const enum xmlSchemaWhitespaceValueType { - XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD = 1749, + XML_SCHEMA_WHITESPACE_UNKNOWN = 0, - XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD = 1750, + XML_SCHEMA_WHITESPACE_PRESERVE = 1, - XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD = 1751, + XML_SCHEMA_WHITESPACE_REPLACE = 2, - XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD = 1752, + XML_SCHEMA_WHITESPACE_COLLAPSE = 3 +} - XML_SCHEMAP_UNKNOWN_TYPE = 1753, +declare function xmlSchematronFree(schema: interop.Pointer | interop.Reference): void; - XML_SCHEMAP_UNKNOWN_UNION_CHILD = 1754, +declare function xmlSchematronFreeParserCtxt(ctxt: interop.Pointer | interop.Reference): void; - XML_SCHEMAP_ELEM_DEFAULT_FIXED = 1755, +declare function xmlSchematronFreeValidCtxt(ctxt: interop.Pointer | interop.Reference): void; - XML_SCHEMAP_REGEXP_INVALID = 1756, +declare function xmlSchematronNewDocParserCtxt(doc: interop.Pointer | interop.Reference<_xmlDoc>): interop.Pointer | interop.Reference; - XML_SCHEMAP_FAILED_LOAD = 1757, +declare function xmlSchematronNewMemParserCtxt(buffer: string, size: number): interop.Pointer | interop.Reference; - XML_SCHEMAP_NOTHING_TO_PARSE = 1758, +declare function xmlSchematronNewParserCtxt(URL: string): interop.Pointer | interop.Reference; - XML_SCHEMAP_NOROOT = 1759, +declare function xmlSchematronNewValidCtxt(schema: interop.Pointer | interop.Reference, options: number): interop.Pointer | interop.Reference; - XML_SCHEMAP_REDEFINED_GROUP = 1760, +declare function xmlSchematronParse(ctxt: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - XML_SCHEMAP_REDEFINED_TYPE = 1761, +declare function xmlSchematronSetValidStructuredErrors(ctxt: interop.Pointer | interop.Reference, serror: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>, ctx: interop.Pointer | interop.Reference): void; - XML_SCHEMAP_REDEFINED_ELEMENT = 1762, +declare const enum xmlSchematronValidOptions { - XML_SCHEMAP_REDEFINED_ATTRGROUP = 1763, + XML_SCHEMATRON_OUT_QUIET = 1, - XML_SCHEMAP_REDEFINED_ATTR = 1764, + XML_SCHEMATRON_OUT_TEXT = 2, - XML_SCHEMAP_REDEFINED_NOTATION = 1765, + XML_SCHEMATRON_OUT_XML = 4, - XML_SCHEMAP_FAILED_PARSE = 1766, + XML_SCHEMATRON_OUT_ERROR = 8, - XML_SCHEMAP_UNKNOWN_PREFIX = 1767, + XML_SCHEMATRON_OUT_FILE = 256, - XML_SCHEMAP_DEF_AND_PREFIX = 1768, + XML_SCHEMATRON_OUT_BUFFER = 512, - XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD = 1769, + XML_SCHEMATRON_OUT_IO = 1024 +} - XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI = 1770, +declare function xmlSchematronValidateDoc(ctxt: interop.Pointer | interop.Reference, instance: interop.Pointer | interop.Reference<_xmlDoc>): number; - XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI = 1771, +declare function xmlSearchNs(doc: interop.Pointer | interop.Reference<_xmlDoc>, node: interop.Pointer | interop.Reference<_xmlNode>, nameSpace: string): interop.Pointer | interop.Reference<_xmlNs>; - XML_SCHEMAP_NOT_SCHEMA = 1772, +declare function xmlSearchNsByHref(doc: interop.Pointer | interop.Reference<_xmlDoc>, node: interop.Pointer | interop.Reference<_xmlNode>, href: string): interop.Pointer | interop.Reference<_xmlNs>; - XML_SCHEMAP_UNKNOWN_MEMBER_TYPE = 1773, +declare function xmlSetBufferAllocationScheme(scheme: xmlBufferAllocationScheme): void; - XML_SCHEMAP_INVALID_ATTR_USE = 1774, +declare function xmlSetCompressMode(mode: number): void; - XML_SCHEMAP_RECURSIVE = 1775, +declare function xmlSetDocCompressMode(doc: interop.Pointer | interop.Reference<_xmlDoc>, mode: number): void; - XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE = 1776, +declare function xmlSetEntityReferenceFunc(func: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlEntity>, p2: interop.Pointer | interop.Reference<_xmlNode>, p3: interop.Pointer | interop.Reference<_xmlNode>) => void>): void; - XML_SCHEMAP_INVALID_ATTR_COMBINATION = 1777, +declare function xmlSetExternalEntityLoader(f: interop.FunctionReference<(p1: string, p2: string, p3: interop.Pointer | interop.Reference<_xmlParserCtxt>) => interop.Pointer | interop.Reference<_xmlParserInput>>): void; - XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION = 1778, +declare function xmlSetFeature(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, name: string, value: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD = 1779, +declare function xmlSetGenericErrorFunc(ctx: interop.Pointer | interop.Reference, handler: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>): void; - XML_SCHEMAP_INVALID_ATTR_NAME = 1780, +declare function xmlSetListDoc(list: interop.Pointer | interop.Reference<_xmlNode>, doc: interop.Pointer | interop.Reference<_xmlDoc>): void; - XML_SCHEMAP_REF_AND_CONTENT = 1781, +declare function xmlSetNs(node: interop.Pointer | interop.Reference<_xmlNode>, ns: interop.Pointer | interop.Reference<_xmlNs>): void; - XML_SCHEMAP_CT_PROPS_CORRECT_1 = 1782, +declare function xmlSetNsProp(node: interop.Pointer | interop.Reference<_xmlNode>, ns: interop.Pointer | interop.Reference<_xmlNs>, name: string, value: string): interop.Pointer | interop.Reference<_xmlAttr>; - XML_SCHEMAP_CT_PROPS_CORRECT_2 = 1783, +declare function xmlSetProp(node: interop.Pointer | interop.Reference<_xmlNode>, name: string, value: string): interop.Pointer | interop.Reference<_xmlAttr>; - XML_SCHEMAP_CT_PROPS_CORRECT_3 = 1784, +declare function xmlSetStructuredErrorFunc(ctx: interop.Pointer | interop.Reference, handler: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>): void; - XML_SCHEMAP_CT_PROPS_CORRECT_4 = 1785, +declare function xmlSetTreeDoc(tree: interop.Pointer | interop.Reference<_xmlNode>, doc: interop.Pointer | interop.Reference<_xmlDoc>): void; - XML_SCHEMAP_CT_PROPS_CORRECT_5 = 1786, +declare function xmlSetupParserForBuffer(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, buffer: string, filename: string): void; - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1 = 1787, +declare function xmlShell(doc: interop.Pointer | interop.Reference<_xmlDoc>, filename: string, input: interop.FunctionReference<(p1: string) => string>, output: interop.Pointer | interop.Reference): void; - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1 = 1788, +declare function xmlShellBase(ctxt: interop.Pointer | interop.Reference<_xmlShellCtxt>, arg: string, node: interop.Pointer | interop.Reference<_xmlNode>, node2: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2 = 1789, +declare function xmlShellCat(ctxt: interop.Pointer | interop.Reference<_xmlShellCtxt>, arg: string, node: interop.Pointer | interop.Reference<_xmlNode>, node2: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2 = 1790, +declare function xmlShellDir(ctxt: interop.Pointer | interop.Reference<_xmlShellCtxt>, arg: string, node: interop.Pointer | interop.Reference<_xmlNode>, node2: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3 = 1791, +declare function xmlShellDu(ctxt: interop.Pointer | interop.Reference<_xmlShellCtxt>, arg: string, tree: interop.Pointer | interop.Reference<_xmlNode>, node2: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER = 1792, +declare function xmlShellList(ctxt: interop.Pointer | interop.Reference<_xmlShellCtxt>, arg: string, node: interop.Pointer | interop.Reference<_xmlNode>, node2: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE = 1793, +declare function xmlShellLoad(ctxt: interop.Pointer | interop.Reference<_xmlShellCtxt>, filename: string, node: interop.Pointer | interop.Reference<_xmlNode>, node2: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAP_UNION_NOT_EXPRESSIBLE = 1794, +declare function xmlShellPrintNode(node: interop.Pointer | interop.Reference<_xmlNode>): void; - XML_SCHEMAP_SRC_IMPORT_3_1 = 1795, +declare function xmlShellPrintXPathError(errorType: number, arg: string): void; - XML_SCHEMAP_SRC_IMPORT_3_2 = 1796, +declare function xmlShellPrintXPathResult(list: interop.Pointer | interop.Reference<_xmlXPathObject>): void; - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1 = 1797, +declare function xmlShellPwd(ctxt: interop.Pointer | interop.Reference<_xmlShellCtxt>, buffer: string, node: interop.Pointer | interop.Reference<_xmlNode>, node2: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2 = 1798, +declare function xmlShellSave(ctxt: interop.Pointer | interop.Reference<_xmlShellCtxt>, filename: string, node: interop.Pointer | interop.Reference<_xmlNode>, node2: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3 = 1799, +declare function xmlShellValidate(ctxt: interop.Pointer | interop.Reference<_xmlShellCtxt>, dtd: string, node: interop.Pointer | interop.Reference<_xmlNode>, node2: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAP_COS_CT_EXTENDS_1_3 = 1800, +declare function xmlShellWrite(ctxt: interop.Pointer | interop.Reference<_xmlShellCtxt>, filename: string, node: interop.Pointer | interop.Reference<_xmlNode>, node2: interop.Pointer | interop.Reference<_xmlNode>): number; - XML_SCHEMAV_NOROOT = 1801, +declare function xmlSkipBlankChars(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): number; - XML_SCHEMAV_UNDECLAREDELEM = 1802, +declare function xmlSnprintfElementContent(buf: string, size: number, content: interop.Pointer | interop.Reference<_xmlElementContent>, englob: number): void; - XML_SCHEMAV_NOTTOPLEVEL = 1803, +declare function xmlSplitQName(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, name: string, prefix: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_MISSING = 1804, +declare function xmlSplitQName2(name: string, prefix: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_WRONGELEM = 1805, +declare function xmlSplitQName3(name: string, len: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_NOTYPE = 1806, +declare function xmlSprintfElementContent(buf: string, content: interop.Pointer | interop.Reference<_xmlElementContent>, englob: number): void; - XML_SCHEMAV_NOROLLBACK = 1807, +declare function xmlStopParser(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>): void; - XML_SCHEMAV_ISABSTRACT = 1808, +declare function xmlStrEqual(str1: string, str2: string): number; - XML_SCHEMAV_NOTEMPTY = 1809, +declare function xmlStrQEqual(pref: string, name: string, str: string): number; - XML_SCHEMAV_ELEMCONT = 1810, +declare function xmlStrcasecmp(str1: string, str2: string): number; - XML_SCHEMAV_HAVEDEFAULT = 1811, +declare function xmlStrcasestr(str: string, val: string): string; - XML_SCHEMAV_NOTNILLABLE = 1812, +declare function xmlStrcat(cur: string, add: string): string; - XML_SCHEMAV_EXTRACONTENT = 1813, +declare function xmlStrchr(str: string, val: number): string; - XML_SCHEMAV_INVALIDATTR = 1814, +declare function xmlStrcmp(str1: string, str2: string): number; - XML_SCHEMAV_INVALIDELEM = 1815, +declare function xmlStrdup(cur: string): string; - XML_SCHEMAV_NOTDETERMINIST = 1816, +declare function xmlStreamPop(stream: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CONSTRUCT = 1817, +declare function xmlStreamPush(stream: interop.Pointer | interop.Reference, name: string, ns: string): number; - XML_SCHEMAV_INTERNAL = 1818, +declare function xmlStreamPushAttr(stream: interop.Pointer | interop.Reference, name: string, ns: string): number; - XML_SCHEMAV_NOTSIMPLE = 1819, +declare function xmlStreamPushNode(stream: interop.Pointer | interop.Reference, name: string, ns: string, nodeType: number): number; - XML_SCHEMAV_ATTRUNKNOWN = 1820, +declare function xmlStreamWantsAnyNode(stream: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_ATTRINVALID = 1821, +declare var xmlStringComment: interop.Reference; - XML_SCHEMAV_VALUE = 1822, +declare function xmlStringCurrentChar(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, cur: string, len: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_FACET = 1823, +declare function xmlStringDecodeEntities(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, str: string, what: number, end: number, end2: number, end3: number): string; - XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1 = 1824, +declare function xmlStringGetNodeList(doc: interop.Pointer | interop.Reference<_xmlDoc>, value: string): interop.Pointer | interop.Reference<_xmlNode>; - XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2 = 1825, +declare function xmlStringLenDecodeEntities(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, str: string, len: number, what: number, end: number, end2: number, end3: number): string; - XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3 = 1826, +declare function xmlStringLenGetNodeList(doc: interop.Pointer | interop.Reference<_xmlDoc>, value: string, len: number): interop.Pointer | interop.Reference<_xmlNode>; - XML_SCHEMAV_CVC_TYPE_3_1_1 = 1827, +declare var xmlStringText: interop.Reference; - XML_SCHEMAV_CVC_TYPE_3_1_2 = 1828, +declare var xmlStringTextNoenc: interop.Reference; - XML_SCHEMAV_CVC_FACET_VALID = 1829, +declare function xmlStrlen(str: string): number; - XML_SCHEMAV_CVC_LENGTH_VALID = 1830, +declare function xmlStrncasecmp(str1: string, str2: string, len: number): number; - XML_SCHEMAV_CVC_MINLENGTH_VALID = 1831, +declare function xmlStrncat(cur: string, add: string, len: number): string; - XML_SCHEMAV_CVC_MAXLENGTH_VALID = 1832, +declare function xmlStrncatNew(str1: string, str2: string, len: number): string; - XML_SCHEMAV_CVC_MININCLUSIVE_VALID = 1833, +declare function xmlStrncmp(str1: string, str2: string, len: number): number; - XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID = 1834, +declare function xmlStrndup(cur: string, len: number): string; - XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID = 1835, +declare function xmlStrstr(str: string, val: string): string; - XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID = 1836, +declare function xmlStrsub(str: string, start: number, len: number): string; - XML_SCHEMAV_CVC_TOTALDIGITS_VALID = 1837, +declare function xmlSubstituteEntitiesDefault(val: number): number; - XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID = 1838, +declare function xmlSwitchEncoding(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, enc: xmlCharEncoding): number; - XML_SCHEMAV_CVC_PATTERN_VALID = 1839, +declare function xmlSwitchInputEncoding(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, input: interop.Pointer | interop.Reference<_xmlParserInput>, handler: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>): number; - XML_SCHEMAV_CVC_ENUMERATION_VALID = 1840, +declare function xmlSwitchToEncoding(ctxt: interop.Pointer | interop.Reference<_xmlParserCtxt>, handler: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>): number; - XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1 = 1841, +declare function xmlTextConcat(node: interop.Pointer | interop.Reference<_xmlNode>, content: string, len: number): number; - XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2 = 1842, +declare function xmlTextMerge(first: interop.Pointer | interop.Reference<_xmlNode>, second: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; - XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3 = 1843, +declare function xmlTextReaderAttributeCount(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4 = 1844, +declare function xmlTextReaderBaseUri(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_ELT_1 = 1845, +declare function xmlTextReaderByteConsumed(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_ELT_2 = 1846, +declare function xmlTextReaderClose(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_ELT_3_1 = 1847, +declare function xmlTextReaderConstBaseUri(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_ELT_3_2_1 = 1848, +declare function xmlTextReaderConstEncoding(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_ELT_3_2_2 = 1849, +declare function xmlTextReaderConstLocalName(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_ELT_4_1 = 1850, +declare function xmlTextReaderConstName(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_ELT_4_2 = 1851, +declare function xmlTextReaderConstNamespaceUri(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_ELT_4_3 = 1852, +declare function xmlTextReaderConstPrefix(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_ELT_5_1_1 = 1853, +declare function xmlTextReaderConstString(reader: interop.Pointer | interop.Reference, str: string): string; - XML_SCHEMAV_CVC_ELT_5_1_2 = 1854, +declare function xmlTextReaderConstValue(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_ELT_5_2_1 = 1855, +declare function xmlTextReaderConstXmlLang(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_ELT_5_2_2_1 = 1856, +declare function xmlTextReaderConstXmlVersion(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_ELT_5_2_2_2_1 = 1857, +declare function xmlTextReaderCurrentDoc(reader: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlDoc>; - XML_SCHEMAV_CVC_ELT_5_2_2_2_2 = 1858, +declare function xmlTextReaderCurrentNode(reader: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlNode>; - XML_SCHEMAV_CVC_ELT_6 = 1859, +declare function xmlTextReaderDepth(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_ELT_7 = 1860, +declare function xmlTextReaderExpand(reader: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlNode>; - XML_SCHEMAV_CVC_ATTRIBUTE_1 = 1861, +declare function xmlTextReaderGetAttribute(reader: interop.Pointer | interop.Reference, name: string): string; - XML_SCHEMAV_CVC_ATTRIBUTE_2 = 1862, +declare function xmlTextReaderGetAttributeNo(reader: interop.Pointer | interop.Reference, no: number): string; - XML_SCHEMAV_CVC_ATTRIBUTE_3 = 1863, +declare function xmlTextReaderGetAttributeNs(reader: interop.Pointer | interop.Reference, localName: string, namespaceURI: string): string; - XML_SCHEMAV_CVC_ATTRIBUTE_4 = 1864, +declare function xmlTextReaderGetErrorHandler(reader: interop.Pointer | interop.Reference, f: interop.Pointer | interop.Reference, p2: string, p3: xmlParserSeverities, p4: interop.Pointer | interop.Reference) => void>>, arg: interop.Pointer | interop.Reference>): void; - XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1 = 1865, +declare function xmlTextReaderGetParserColumnNumber(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1 = 1866, +declare function xmlTextReaderGetParserLineNumber(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2 = 1867, +declare function xmlTextReaderGetParserProp(reader: interop.Pointer | interop.Reference, prop: number): number; - XML_SCHEMAV_CVC_COMPLEX_TYPE_4 = 1868, +declare function xmlTextReaderGetRemainder(reader: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlParserInputBuffer>; - XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1 = 1869, +declare function xmlTextReaderHasAttributes(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2 = 1870, +declare function xmlTextReaderHasValue(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_ELEMENT_CONTENT = 1871, +declare function xmlTextReaderIsDefault(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING = 1872, +declare function xmlTextReaderIsEmptyElement(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_COMPLEX_TYPE_1 = 1873, +declare function xmlTextReaderIsNamespaceDecl(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_AU = 1874, +declare function xmlTextReaderIsValid(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_TYPE_1 = 1875, +declare function xmlTextReaderLocalName(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_TYPE_2 = 1876, +declare function xmlTextReaderLocatorBaseURI(locator: interop.Pointer | interop.Reference): string; - XML_SCHEMAV_CVC_IDC = 1877, +declare function xmlTextReaderLocatorLineNumber(locator: interop.Pointer | interop.Reference): number; - XML_SCHEMAV_CVC_WILDCARD = 1878, +declare function xmlTextReaderLookupNamespace(reader: interop.Pointer | interop.Reference, prefix: string): string; - XML_SCHEMAV_MISC = 1879, +declare const enum xmlTextReaderMode { - XML_XPTR_UNKNOWN_SCHEME = 1900, + XML_TEXTREADER_MODE_INITIAL = 0, - XML_XPTR_CHILDSEQ_START = 1901, + XML_TEXTREADER_MODE_INTERACTIVE = 1, - XML_XPTR_EVAL_FAILED = 1902, + XML_TEXTREADER_MODE_ERROR = 2, - XML_XPTR_EXTRA_OBJECTS = 1903, + XML_TEXTREADER_MODE_EOF = 3, - XML_C14N_CREATE_CTXT = 1950, + XML_TEXTREADER_MODE_CLOSED = 4, - XML_C14N_REQUIRES_UTF8 = 1951, + XML_TEXTREADER_MODE_READING = 5 +} - XML_C14N_CREATE_STACK = 1952, +declare function xmlTextReaderMoveToAttribute(reader: interop.Pointer | interop.Reference, name: string): number; - XML_C14N_INVALID_NODE = 1953, +declare function xmlTextReaderMoveToAttributeNo(reader: interop.Pointer | interop.Reference, no: number): number; - XML_C14N_UNKNOW_NODE = 1954, +declare function xmlTextReaderMoveToAttributeNs(reader: interop.Pointer | interop.Reference, localName: string, namespaceURI: string): number; - XML_C14N_RELATIVE_NAMESPACE = 1955, +declare function xmlTextReaderMoveToElement(reader: interop.Pointer | interop.Reference): number; - XML_FTP_PASV_ANSWER = 2000, +declare function xmlTextReaderMoveToFirstAttribute(reader: interop.Pointer | interop.Reference): number; - XML_FTP_EPSV_ANSWER = 2001, +declare function xmlTextReaderMoveToNextAttribute(reader: interop.Pointer | interop.Reference): number; - XML_FTP_ACCNT = 2002, +declare function xmlTextReaderName(reader: interop.Pointer | interop.Reference): string; - XML_FTP_URL_SYNTAX = 2003, +declare function xmlTextReaderNamespaceUri(reader: interop.Pointer | interop.Reference): string; - XML_HTTP_URL_SYNTAX = 2020, +declare function xmlTextReaderNext(reader: interop.Pointer | interop.Reference): number; - XML_HTTP_USE_IP = 2021, +declare function xmlTextReaderNextSibling(reader: interop.Pointer | interop.Reference): number; - XML_HTTP_UNKNOWN_HOST = 2022, +declare function xmlTextReaderNodeType(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_SRC_SIMPLE_TYPE_1 = 3000, +declare function xmlTextReaderNormalization(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_SRC_SIMPLE_TYPE_2 = 3001, +declare function xmlTextReaderPrefix(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAP_SRC_SIMPLE_TYPE_3 = 3002, +declare function xmlTextReaderPreserve(reader: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlNode>; - XML_SCHEMAP_SRC_SIMPLE_TYPE_4 = 3003, +declare function xmlTextReaderPreservePattern(reader: interop.Pointer | interop.Reference, pattern: string, namespaces: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_SRC_RESOLVE = 3004, +declare function xmlTextReaderQuoteChar(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE = 3005, +declare function xmlTextReaderRead(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE = 3006, +declare function xmlTextReaderReadAttributeValue(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES = 3007, +declare function xmlTextReaderReadInnerXml(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAP_ST_PROPS_CORRECT_1 = 3008, +declare function xmlTextReaderReadOuterXml(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAP_ST_PROPS_CORRECT_2 = 3009, +declare function xmlTextReaderReadState(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_ST_PROPS_CORRECT_3 = 3010, +declare function xmlTextReaderReadString(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAP_COS_ST_RESTRICTS_1_1 = 3011, +declare function xmlTextReaderRelaxNGSetSchema(reader: interop.Pointer | interop.Reference, schema: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_COS_ST_RESTRICTS_1_2 = 3012, +declare function xmlTextReaderRelaxNGValidate(reader: interop.Pointer | interop.Reference, rng: string): number; - XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1 = 3013, +declare function xmlTextReaderRelaxNGValidateCtxt(reader: interop.Pointer | interop.Reference, ctxt: interop.Pointer | interop.Reference, options: number): number; - XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2 = 3014, +declare function xmlTextReaderSchemaValidate(reader: interop.Pointer | interop.Reference, xsd: string): number; - XML_SCHEMAP_COS_ST_RESTRICTS_2_1 = 3015, +declare function xmlTextReaderSchemaValidateCtxt(reader: interop.Pointer | interop.Reference, ctxt: interop.Pointer | interop.Reference, options: number): number; - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1 = 3016, +declare function xmlTextReaderSetErrorHandler(reader: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: xmlParserSeverities, p4: interop.Pointer | interop.Reference) => void>, arg: interop.Pointer | interop.Reference): void; - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2 = 3017, +declare function xmlTextReaderSetParserProp(reader: interop.Pointer | interop.Reference, prop: number, value: number): number; - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1 = 3018, +declare function xmlTextReaderSetSchema(reader: interop.Pointer | interop.Reference, schema: interop.Pointer | interop.Reference<_xmlSchema>): number; - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2 = 3019, +declare function xmlTextReaderSetStructuredErrorHandler(reader: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>, arg: interop.Pointer | interop.Reference): void; - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3 = 3020, +declare function xmlTextReaderSetup(reader: interop.Pointer | interop.Reference, input: interop.Pointer | interop.Reference<_xmlParserInputBuffer>, URL: string, encoding: string, options: number): number; - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4 = 3021, +declare function xmlTextReaderStandalone(reader: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5 = 3022, +declare function xmlTextReaderValue(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAP_COS_ST_RESTRICTS_3_1 = 3023, +declare function xmlTextReaderXmlLang(reader: interop.Pointer | interop.Reference): string; - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1 = 3024, +declare function xmlTextWriterEndAttribute(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2 = 3025, +declare function xmlTextWriterEndCDATA(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2 = 3026, +declare function xmlTextWriterEndComment(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1 = 3027, +declare function xmlTextWriterEndDTD(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3 = 3028, +declare function xmlTextWriterEndDTDAttlist(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4 = 3029, +declare function xmlTextWriterEndDTDElement(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5 = 3030, +declare function xmlTextWriterEndDTDEntity(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_COS_ST_DERIVED_OK_2_1 = 3031, +declare function xmlTextWriterEndDocument(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_COS_ST_DERIVED_OK_2_2 = 3032, +declare function xmlTextWriterEndElement(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED = 3033, +declare function xmlTextWriterEndPI(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_S4S_ELEM_MISSING = 3034, +declare function xmlTextWriterFlush(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED = 3035, +declare function xmlTextWriterFullEndElement(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_S4S_ATTR_MISSING = 3036, +declare function xmlTextWriterSetIndent(writer: interop.Pointer | interop.Reference, indent: number): number; - XML_SCHEMAP_S4S_ATTR_INVALID_VALUE = 3037, +declare function xmlTextWriterSetIndentString(writer: interop.Pointer | interop.Reference, str: string): number; - XML_SCHEMAP_SRC_ELEMENT_1 = 3038, +declare function xmlTextWriterSetQuoteChar(writer: interop.Pointer | interop.Reference, quotechar: number): number; - XML_SCHEMAP_SRC_ELEMENT_2_1 = 3039, +declare function xmlTextWriterStartAttribute(writer: interop.Pointer | interop.Reference, name: string): number; - XML_SCHEMAP_SRC_ELEMENT_2_2 = 3040, +declare function xmlTextWriterStartAttributeNS(writer: interop.Pointer | interop.Reference, prefix: string, name: string, namespaceURI: string): number; - XML_SCHEMAP_SRC_ELEMENT_3 = 3041, +declare function xmlTextWriterStartCDATA(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_P_PROPS_CORRECT_1 = 3042, +declare function xmlTextWriterStartComment(writer: interop.Pointer | interop.Reference): number; - XML_SCHEMAP_P_PROPS_CORRECT_2_1 = 3043, +declare function xmlTextWriterStartDTD(writer: interop.Pointer | interop.Reference, name: string, pubid: string, sysid: string): number; - XML_SCHEMAP_P_PROPS_CORRECT_2_2 = 3044, +declare function xmlTextWriterStartDTDAttlist(writer: interop.Pointer | interop.Reference, name: string): number; - XML_SCHEMAP_E_PROPS_CORRECT_2 = 3045, +declare function xmlTextWriterStartDTDElement(writer: interop.Pointer | interop.Reference, name: string): number; - XML_SCHEMAP_E_PROPS_CORRECT_3 = 3046, +declare function xmlTextWriterStartDTDEntity(writer: interop.Pointer | interop.Reference, pe: number, name: string): number; - XML_SCHEMAP_E_PROPS_CORRECT_4 = 3047, +declare function xmlTextWriterStartDocument(writer: interop.Pointer | interop.Reference, version: string, encoding: string, standalone: string): number; - XML_SCHEMAP_E_PROPS_CORRECT_5 = 3048, +declare function xmlTextWriterStartElement(writer: interop.Pointer | interop.Reference, name: string): number; - XML_SCHEMAP_E_PROPS_CORRECT_6 = 3049, +declare function xmlTextWriterStartElementNS(writer: interop.Pointer | interop.Reference, prefix: string, name: string, namespaceURI: string): number; - XML_SCHEMAP_SRC_INCLUDE = 3050, +declare function xmlTextWriterStartPI(writer: interop.Pointer | interop.Reference, target: string): number; - XML_SCHEMAP_SRC_ATTRIBUTE_1 = 3051, +declare function xmlTextWriterWriteAttribute(writer: interop.Pointer | interop.Reference, name: string, content: string): number; - XML_SCHEMAP_SRC_ATTRIBUTE_2 = 3052, +declare function xmlTextWriterWriteAttributeNS(writer: interop.Pointer | interop.Reference, prefix: string, name: string, namespaceURI: string, content: string): number; - XML_SCHEMAP_SRC_ATTRIBUTE_3_1 = 3053, +declare function xmlTextWriterWriteBase64(writer: interop.Pointer | interop.Reference, data: string, start: number, len: number): number; - XML_SCHEMAP_SRC_ATTRIBUTE_3_2 = 3054, +declare function xmlTextWriterWriteBinHex(writer: interop.Pointer | interop.Reference, data: string, start: number, len: number): number; - XML_SCHEMAP_SRC_ATTRIBUTE_4 = 3055, +declare function xmlTextWriterWriteCDATA(writer: interop.Pointer | interop.Reference, content: string): number; - XML_SCHEMAP_NO_XMLNS = 3056, +declare function xmlTextWriterWriteComment(writer: interop.Pointer | interop.Reference, content: string): number; - XML_SCHEMAP_NO_XSI = 3057, +declare function xmlTextWriterWriteDTD(writer: interop.Pointer | interop.Reference, name: string, pubid: string, sysid: string, subset: string): number; - XML_SCHEMAP_COS_VALID_DEFAULT_1 = 3058, +declare function xmlTextWriterWriteDTDAttlist(writer: interop.Pointer | interop.Reference, name: string, content: string): number; - XML_SCHEMAP_COS_VALID_DEFAULT_2_1 = 3059, +declare function xmlTextWriterWriteDTDElement(writer: interop.Pointer | interop.Reference, name: string, content: string): number; - XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1 = 3060, +declare function xmlTextWriterWriteDTDEntity(writer: interop.Pointer | interop.Reference, pe: number, name: string, pubid: string, sysid: string, ndataid: string, content: string): number; - XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2 = 3061, +declare function xmlTextWriterWriteDTDExternalEntity(writer: interop.Pointer | interop.Reference, pe: number, name: string, pubid: string, sysid: string, ndataid: string): number; - XML_SCHEMAP_CVC_SIMPLE_TYPE = 3062, +declare function xmlTextWriterWriteDTDExternalEntityContents(writer: interop.Pointer | interop.Reference, pubid: string, sysid: string, ndataid: string): number; - XML_SCHEMAP_COS_CT_EXTENDS_1_1 = 3063, +declare function xmlTextWriterWriteDTDInternalEntity(writer: interop.Pointer | interop.Reference, pe: number, name: string, content: string): number; - XML_SCHEMAP_SRC_IMPORT_1_1 = 3064, +declare function xmlTextWriterWriteDTDNotation(writer: interop.Pointer | interop.Reference, name: string, pubid: string, sysid: string): number; - XML_SCHEMAP_SRC_IMPORT_1_2 = 3065, +declare function xmlTextWriterWriteElement(writer: interop.Pointer | interop.Reference, name: string, content: string): number; - XML_SCHEMAP_SRC_IMPORT_2 = 3066, +declare function xmlTextWriterWriteElementNS(writer: interop.Pointer | interop.Reference, prefix: string, name: string, namespaceURI: string, content: string): number; - XML_SCHEMAP_SRC_IMPORT_2_1 = 3067, +declare function xmlTextWriterWritePI(writer: interop.Pointer | interop.Reference, target: string, content: string): number; - XML_SCHEMAP_SRC_IMPORT_2_2 = 3068, +declare function xmlTextWriterWriteRaw(writer: interop.Pointer | interop.Reference, content: string): number; - XML_SCHEMAP_INTERNAL = 3069, +declare function xmlTextWriterWriteRawLen(writer: interop.Pointer | interop.Reference, content: string, len: number): number; - XML_SCHEMAP_NOT_DETERMINISTIC = 3070, +declare function xmlTextWriterWriteString(writer: interop.Pointer | interop.Reference, content: string): number; - XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1 = 3071, +declare function xmlThrDefBufferAllocScheme(v: xmlBufferAllocationScheme): xmlBufferAllocationScheme; - XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2 = 3072, +declare function xmlThrDefDefaultBufferSize(v: number): number; - XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3 = 3073, +declare function xmlThrDefDeregisterNodeDefault(func: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlNode>) => void>): interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlNode>) => void>; - XML_SCHEMAP_MG_PROPS_CORRECT_1 = 3074, +declare function xmlThrDefDoValidityCheckingDefaultValue(v: number): number; - XML_SCHEMAP_MG_PROPS_CORRECT_2 = 3075, +declare function xmlThrDefGetWarningsDefaultValue(v: number): number; - XML_SCHEMAP_SRC_CT_1 = 3076, +declare function xmlThrDefIndentTreeOutput(v: number): number; - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3 = 3077, +declare function xmlThrDefKeepBlanksDefaultValue(v: number): number; - XML_SCHEMAP_AU_PROPS_CORRECT_2 = 3078, +declare function xmlThrDefLineNumbersDefaultValue(v: number): number; - XML_SCHEMAP_A_PROPS_CORRECT_2 = 3079, +declare function xmlThrDefLoadExtDtdDefaultValue(v: number): number; - XML_SCHEMAP_C_PROPS_CORRECT = 3080, +declare function xmlThrDefOutputBufferCreateFilenameDefault(func: interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>, p3: number) => interop.Pointer | interop.Reference<_xmlOutputBuffer>>): interop.FunctionReference<(p1: string, p2: interop.Pointer | interop.Reference<_xmlCharEncodingHandler>, p3: number) => interop.Pointer | interop.Reference<_xmlOutputBuffer>>; - XML_SCHEMAP_SRC_REDEFINE = 3081, +declare function xmlThrDefParserDebugEntities(v: number): number; - XML_SCHEMAP_SRC_IMPORT = 3082, +declare function xmlThrDefParserInputBufferCreateFilenameDefault(func: interop.FunctionReference<(p1: string, p2: xmlCharEncoding) => interop.Pointer | interop.Reference<_xmlParserInputBuffer>>): interop.FunctionReference<(p1: string, p2: xmlCharEncoding) => interop.Pointer | interop.Reference<_xmlParserInputBuffer>>; - XML_SCHEMAP_WARN_SKIP_SCHEMA = 3083, +declare function xmlThrDefPedanticParserDefaultValue(v: number): number; - XML_SCHEMAP_WARN_UNLOCATED_SCHEMA = 3084, +declare function xmlThrDefRegisterNodeDefault(func: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlNode>) => void>): interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlNode>) => void>; - XML_SCHEMAP_WARN_ATTR_REDECL_PROH = 3085, +declare function xmlThrDefSaveNoEmptyTags(v: number): number; - XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH = 3086, +declare function xmlThrDefSetGenericErrorFunc(ctx: interop.Pointer | interop.Reference, handler: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string) => void>): void; - XML_SCHEMAP_AG_PROPS_CORRECT = 3087, +declare function xmlThrDefSetStructuredErrorFunc(ctx: interop.Pointer | interop.Reference, handler: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference<_xmlError>) => void>): void; - XML_SCHEMAP_COS_CT_EXTENDS_1_2 = 3088, +declare function xmlThrDefSubstituteEntitiesDefaultValue(v: number): number; - XML_SCHEMAP_AU_PROPS_CORRECT = 3089, +declare function xmlThrDefTreeIndentString(v: string): string; - XML_SCHEMAP_A_PROPS_CORRECT_3 = 3090, +declare function xmlUCSIsAegeanNumbers(code: number): number; - XML_SCHEMAP_COS_ALL_LIMITED = 3091, +declare function xmlUCSIsAlphabeticPresentationForms(code: number): number; - XML_SCHEMATRONV_ASSERT = 4000, +declare function xmlUCSIsArabic(code: number): number; - XML_SCHEMATRONV_REPORT = 4001, +declare function xmlUCSIsArabicPresentationFormsA(code: number): number; - XML_MODULE_OPEN = 4900, +declare function xmlUCSIsArabicPresentationFormsB(code: number): number; - XML_MODULE_CLOSE = 4901, +declare function xmlUCSIsArmenian(code: number): number; - XML_CHECK_FOUND_ELEMENT = 5000, +declare function xmlUCSIsArrows(code: number): number; - XML_CHECK_FOUND_ATTRIBUTE = 5001, +declare function xmlUCSIsBasicLatin(code: number): number; - XML_CHECK_FOUND_TEXT = 5002, +declare function xmlUCSIsBengali(code: number): number; - XML_CHECK_FOUND_CDATA = 5003, +declare function xmlUCSIsBlock(code: number, block: string): number; - XML_CHECK_FOUND_ENTITYREF = 5004, +declare function xmlUCSIsBlockElements(code: number): number; - XML_CHECK_FOUND_ENTITY = 5005, +declare function xmlUCSIsBopomofo(code: number): number; - XML_CHECK_FOUND_PI = 5006, +declare function xmlUCSIsBopomofoExtended(code: number): number; - XML_CHECK_FOUND_COMMENT = 5007, +declare function xmlUCSIsBoxDrawing(code: number): number; - XML_CHECK_FOUND_DOCTYPE = 5008, +declare function xmlUCSIsBraillePatterns(code: number): number; - XML_CHECK_FOUND_FRAGMENT = 5009, +declare function xmlUCSIsBuhid(code: number): number; - XML_CHECK_FOUND_NOTATION = 5010, +declare function xmlUCSIsByzantineMusicalSymbols(code: number): number; - XML_CHECK_UNKNOWN_NODE = 5011, +declare function xmlUCSIsCJKCompatibility(code: number): number; - XML_CHECK_ENTITY_TYPE = 5012, +declare function xmlUCSIsCJKCompatibilityForms(code: number): number; - XML_CHECK_NO_PARENT = 5013, +declare function xmlUCSIsCJKCompatibilityIdeographs(code: number): number; - XML_CHECK_NO_DOC = 5014, +declare function xmlUCSIsCJKCompatibilityIdeographsSupplement(code: number): number; - XML_CHECK_NO_NAME = 5015, +declare function xmlUCSIsCJKRadicalsSupplement(code: number): number; - XML_CHECK_NO_ELEM = 5016, +declare function xmlUCSIsCJKSymbolsandPunctuation(code: number): number; - XML_CHECK_WRONG_DOC = 5017, +declare function xmlUCSIsCJKUnifiedIdeographs(code: number): number; - XML_CHECK_NO_PREV = 5018, +declare function xmlUCSIsCJKUnifiedIdeographsExtensionA(code: number): number; - XML_CHECK_WRONG_PREV = 5019, +declare function xmlUCSIsCJKUnifiedIdeographsExtensionB(code: number): number; - XML_CHECK_NO_NEXT = 5020, +declare function xmlUCSIsCat(code: number, cat: string): number; - XML_CHECK_WRONG_NEXT = 5021, +declare function xmlUCSIsCatC(code: number): number; - XML_CHECK_NOT_DTD = 5022, +declare function xmlUCSIsCatCc(code: number): number; - XML_CHECK_NOT_ATTR = 5023, +declare function xmlUCSIsCatCf(code: number): number; - XML_CHECK_NOT_ATTR_DECL = 5024, +declare function xmlUCSIsCatCo(code: number): number; - XML_CHECK_NOT_ELEM_DECL = 5025, +declare function xmlUCSIsCatCs(code: number): number; - XML_CHECK_NOT_ENTITY_DECL = 5026, +declare function xmlUCSIsCatL(code: number): number; - XML_CHECK_NOT_NS_DECL = 5027, +declare function xmlUCSIsCatLl(code: number): number; - XML_CHECK_NO_HREF = 5028, +declare function xmlUCSIsCatLm(code: number): number; - XML_CHECK_WRONG_PARENT = 5029, +declare function xmlUCSIsCatLo(code: number): number; - XML_CHECK_NS_SCOPE = 5030, +declare function xmlUCSIsCatLt(code: number): number; - XML_CHECK_NS_ANCESTOR = 5031, +declare function xmlUCSIsCatLu(code: number): number; - XML_CHECK_NOT_UTF8 = 5032, +declare function xmlUCSIsCatM(code: number): number; - XML_CHECK_NO_DICT = 5033, +declare function xmlUCSIsCatMc(code: number): number; - XML_CHECK_NOT_NCNAME = 5034, +declare function xmlUCSIsCatMe(code: number): number; - XML_CHECK_OUTSIDE_DICT = 5035, +declare function xmlUCSIsCatMn(code: number): number; - XML_CHECK_WRONG_NAME = 5036, +declare function xmlUCSIsCatN(code: number): number; - XML_CHECK_NAME_NOT_NULL = 5037, +declare function xmlUCSIsCatNd(code: number): number; - XML_I18N_NO_NAME = 6000, +declare function xmlUCSIsCatNl(code: number): number; - XML_I18N_NO_HANDLER = 6001, +declare function xmlUCSIsCatNo(code: number): number; - XML_I18N_EXCESS_HANDLER = 6002, +declare function xmlUCSIsCatP(code: number): number; - XML_I18N_CONV_FAILED = 6003, +declare function xmlUCSIsCatPc(code: number): number; - XML_I18N_NO_OUTPUT = 6004, +declare function xmlUCSIsCatPd(code: number): number; - XML_BUF_OVERFLOW = 7000 -} +declare function xmlUCSIsCatPe(code: number): number; -declare function xmlParserInputBufferCreateFd(fd: number, enc: xmlCharEncodingEnum): number; +declare function xmlUCSIsCatPf(code: number): number; -declare function xmlParserInputBufferCreateFile(file: interop.Pointer | interop.Reference, enc: xmlCharEncodingEnum): number; +declare function xmlUCSIsCatPi(code: number): number; -declare function xmlParserInputBufferCreateFilename(URI: string, enc: xmlCharEncodingEnum): number; +declare function xmlUCSIsCatPo(code: number): number; -declare var xmlParserInputBufferCreateFilenameFunc: number; +declare function xmlUCSIsCatPs(code: number): number; -declare var xmlParserInputBufferCreateFilenameFuncVar: number; +declare function xmlUCSIsCatS(code: number): number; -declare var xmlParserInputBufferCreateFilenameFuncVar2: number; +declare function xmlUCSIsCatSc(code: number): number; -declare var xmlParserInputBufferCreateFilenameFuncVar3: number; +declare function xmlUCSIsCatSk(code: number): number; -declare function xmlParserInputBufferCreateIO(ioread: number, ioclose: number, ioctx: interop.Pointer | interop.Reference, enc: xmlCharEncodingEnum): number; +declare function xmlUCSIsCatSm(code: number): number; -declare function xmlParserInputBufferCreateMem(mem: string, size: number, enc: xmlCharEncodingEnum): number; +declare function xmlUCSIsCatSo(code: number): number; -declare function xmlParserInputBufferCreateStatic(mem: string, size: number, enc: xmlCharEncodingEnum): number; +declare function xmlUCSIsCatZ(code: number): number; -declare var xmlParserInputBufferPtr: number; +declare function xmlUCSIsCatZl(code: number): number; -declare var xmlParserInputBufferPtrVar: number; +declare function xmlUCSIsCatZp(code: number): number; -declare var xmlParserInputBufferPtrVar2: number; +declare function xmlUCSIsCatZs(code: number): number; -declare var xmlParserInputBufferPtrVar3: number; +declare function xmlUCSIsCherokee(code: number): number; -declare var xmlParserInputBufferPtrVar4: number; +declare function xmlUCSIsCombiningDiacriticalMarks(code: number): number; -declare var xmlParserInputBufferPtrVar5: number; +declare function xmlUCSIsCombiningDiacriticalMarksforSymbols(code: number): number; -declare var xmlParserInputBufferPtrVar6: number; +declare function xmlUCSIsCombiningHalfMarks(code: number): number; -declare var xmlParserInputPtr: number; +declare function xmlUCSIsCombiningMarksforSymbols(code: number): number; -declare var xmlParserInputPtrVar: number; +declare function xmlUCSIsControlPictures(code: number): number; -declare var xmlParserInputPtrVar2: number; +declare function xmlUCSIsCurrencySymbols(code: number): number; -declare var xmlParserInputPtrVar3: number; +declare function xmlUCSIsCypriotSyllabary(code: number): number; -declare var xmlParserInputPtrVar4: number; +declare function xmlUCSIsCyrillic(code: number): number; -declare var xmlParserInputPtrVar5: number; +declare function xmlUCSIsCyrillicSupplement(code: number): number; -declare var xmlParserInputPtrVar6: number; +declare function xmlUCSIsDeseret(code: number): number; -declare var xmlParserInputPtrVar7: number; +declare function xmlUCSIsDevanagari(code: number): number; -declare var xmlParserInputPtrVar8: number; +declare function xmlUCSIsDingbats(code: number): number; -declare var xmlParserInputPtrVar9: number; +declare function xmlUCSIsEnclosedAlphanumerics(code: number): number; -declare const enum xmlParserInputState { +declare function xmlUCSIsEnclosedCJKLettersandMonths(code: number): number; - XML_PARSER_EOF = -1, +declare function xmlUCSIsEthiopic(code: number): number; - XML_PARSER_START = 0, +declare function xmlUCSIsGeneralPunctuation(code: number): number; - XML_PARSER_MISC = 1, +declare function xmlUCSIsGeometricShapes(code: number): number; - XML_PARSER_PI = 2, +declare function xmlUCSIsGeorgian(code: number): number; - XML_PARSER_DTD = 3, +declare function xmlUCSIsGothic(code: number): number; - XML_PARSER_PROLOG = 4, +declare function xmlUCSIsGreek(code: number): number; - XML_PARSER_COMMENT = 5, +declare function xmlUCSIsGreekExtended(code: number): number; - XML_PARSER_START_TAG = 6, +declare function xmlUCSIsGreekandCoptic(code: number): number; - XML_PARSER_CONTENT = 7, +declare function xmlUCSIsGujarati(code: number): number; - XML_PARSER_CDATA_SECTION = 8, +declare function xmlUCSIsGurmukhi(code: number): number; - XML_PARSER_END_TAG = 9, +declare function xmlUCSIsHalfwidthandFullwidthForms(code: number): number; - XML_PARSER_ENTITY_DECL = 10, +declare function xmlUCSIsHangulCompatibilityJamo(code: number): number; - XML_PARSER_ENTITY_VALUE = 11, +declare function xmlUCSIsHangulJamo(code: number): number; - XML_PARSER_ATTRIBUTE_VALUE = 12, +declare function xmlUCSIsHangulSyllables(code: number): number; - XML_PARSER_SYSTEM_LITERAL = 13, +declare function xmlUCSIsHanunoo(code: number): number; - XML_PARSER_EPILOG = 14, +declare function xmlUCSIsHebrew(code: number): number; - XML_PARSER_IGNORE = 15, +declare function xmlUCSIsHighPrivateUseSurrogates(code: number): number; - XML_PARSER_PUBLIC_LITERAL = 16 -} +declare function xmlUCSIsHighSurrogates(code: number): number; -declare const enum xmlParserMode { +declare function xmlUCSIsHiragana(code: number): number; - XML_PARSE_UNKNOWN = 0, +declare function xmlUCSIsIPAExtensions(code: number): number; - XML_PARSE_DOM = 1, +declare function xmlUCSIsIdeographicDescriptionCharacters(code: number): number; - XML_PARSE_SAX = 2, +declare function xmlUCSIsKanbun(code: number): number; - XML_PARSE_PUSH_DOM = 3, +declare function xmlUCSIsKangxiRadicals(code: number): number; - XML_PARSE_PUSH_SAX = 4, +declare function xmlUCSIsKannada(code: number): number; - XML_PARSE_READER = 5 -} +declare function xmlUCSIsKatakana(code: number): number; -declare const enum xmlParserOption { +declare function xmlUCSIsKatakanaPhoneticExtensions(code: number): number; - XML_PARSE_RECOVER = 1, +declare function xmlUCSIsKhmer(code: number): number; - XML_PARSE_NOENT = 2, +declare function xmlUCSIsKhmerSymbols(code: number): number; - XML_PARSE_DTDLOAD = 4, +declare function xmlUCSIsLao(code: number): number; - XML_PARSE_DTDATTR = 8, +declare function xmlUCSIsLatin1Supplement(code: number): number; - XML_PARSE_DTDVALID = 16, +declare function xmlUCSIsLatinExtendedA(code: number): number; - XML_PARSE_NOERROR = 32, +declare function xmlUCSIsLatinExtendedAdditional(code: number): number; - XML_PARSE_NOWARNING = 64, +declare function xmlUCSIsLatinExtendedB(code: number): number; - XML_PARSE_PEDANTIC = 128, +declare function xmlUCSIsLetterlikeSymbols(code: number): number; - XML_PARSE_NOBLANKS = 256, +declare function xmlUCSIsLimbu(code: number): number; - XML_PARSE_SAX1 = 512, +declare function xmlUCSIsLinearBIdeograms(code: number): number; - XML_PARSE_XINCLUDE = 1024, +declare function xmlUCSIsLinearBSyllabary(code: number): number; - XML_PARSE_NONET = 2048, +declare function xmlUCSIsLowSurrogates(code: number): number; - XML_PARSE_NODICT = 4096, +declare function xmlUCSIsMalayalam(code: number): number; - XML_PARSE_NSCLEAN = 8192, +declare function xmlUCSIsMathematicalAlphanumericSymbols(code: number): number; - XML_PARSE_NOCDATA = 16384, +declare function xmlUCSIsMathematicalOperators(code: number): number; - XML_PARSE_NOXINCNODE = 32768, +declare function xmlUCSIsMiscellaneousMathematicalSymbolsA(code: number): number; - XML_PARSE_COMPACT = 65536, +declare function xmlUCSIsMiscellaneousMathematicalSymbolsB(code: number): number; - XML_PARSE_OLD10 = 131072, +declare function xmlUCSIsMiscellaneousSymbols(code: number): number; - XML_PARSE_NOBASEFIX = 262144, +declare function xmlUCSIsMiscellaneousSymbolsandArrows(code: number): number; - XML_PARSE_HUGE = 524288, +declare function xmlUCSIsMiscellaneousTechnical(code: number): number; - XML_PARSE_OLDSAX = 1048576, +declare function xmlUCSIsMongolian(code: number): number; - XML_PARSE_IGNORE_ENC = 2097152, +declare function xmlUCSIsMusicalSymbols(code: number): number; - XML_PARSE_BIG_LINES = 4194304 -} +declare function xmlUCSIsMyanmar(code: number): number; -declare const enum xmlParserSeverities { +declare function xmlUCSIsNumberForms(code: number): number; - XML_PARSER_SEVERITY_VALIDITY_WARNING = 1, +declare function xmlUCSIsOgham(code: number): number; - XML_PARSER_SEVERITY_VALIDITY_ERROR = 2, +declare function xmlUCSIsOldItalic(code: number): number; - XML_PARSER_SEVERITY_WARNING = 3, +declare function xmlUCSIsOpticalCharacterRecognition(code: number): number; - XML_PARSER_SEVERITY_ERROR = 4 -} +declare function xmlUCSIsOriya(code: number): number; -declare function xmlPopInput(ctxt: number): number; +declare function xmlUCSIsOsmanya(code: number): number; -declare var xmlRMutexPtr: number; +declare function xmlUCSIsPhoneticExtensions(code: number): number; -declare var xmlReallocFunc: number; +declare function xmlUCSIsPrivateUse(code: number): number; -declare var xmlRefPtr: number; +declare function xmlUCSIsPrivateUseArea(code: number): number; -declare var xmlRegisterNodeFunc: number; +declare function xmlUCSIsRunic(code: number): number; -declare var xmlRegisterNodeFuncVar: number; +declare function xmlUCSIsShavian(code: number): number; -declare var xmlRegisterNodeFuncVar2: number; +declare function xmlUCSIsSinhala(code: number): number; -declare var xmlRegisterNodeFuncVar3: number; +declare function xmlUCSIsSmallFormVariants(code: number): number; -declare var xmlSAXHandlerV1: number; +declare function xmlUCSIsSpacingModifierLetters(code: number): number; -declare var xmlSAXHandlerV1Var: number; +declare function xmlUCSIsSpecials(code: number): number; -declare var xmlSAXLocator: number; +declare function xmlUCSIsSuperscriptsandSubscripts(code: number): number; -declare var xmlSAXLocatorVar: number; +declare function xmlUCSIsSupplementalArrowsA(code: number): number; -declare function xmlStrEqual(str1: interop.Pointer | interop.Reference, str2: interop.Pointer | interop.Reference): number; +declare function xmlUCSIsSupplementalArrowsB(code: number): number; -declare function xmlStrQEqual(pref: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, str: interop.Pointer | interop.Reference): number; +declare function xmlUCSIsSupplementalMathematicalOperators(code: number): number; -declare function xmlStrcasecmp(str1: interop.Pointer | interop.Reference, str2: interop.Pointer | interop.Reference): number; +declare function xmlUCSIsSupplementaryPrivateUseAreaA(code: number): number; -declare function xmlStrcasestr(str: interop.Pointer | interop.Reference, val: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; +declare function xmlUCSIsSupplementaryPrivateUseAreaB(code: number): number; -declare function xmlStrcat(cur: interop.Pointer | interop.Reference, add: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; +declare function xmlUCSIsSyriac(code: number): number; -declare function xmlStrchr(str: interop.Pointer | interop.Reference, val: number): interop.Pointer | interop.Reference; +declare function xmlUCSIsTagalog(code: number): number; -declare function xmlStrcmp(str1: interop.Pointer | interop.Reference, str2: interop.Pointer | interop.Reference): number; +declare function xmlUCSIsTagbanwa(code: number): number; -declare function xmlStrdup(cur: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; +declare function xmlUCSIsTags(code: number): number; -declare var xmlStrdupFunc: number; +declare function xmlUCSIsTaiLe(code: number): number; -declare function xmlStrlen(str: interop.Pointer | interop.Reference): number; +declare function xmlUCSIsTaiXuanJingSymbols(code: number): number; -declare function xmlStrncasecmp(str1: interop.Pointer | interop.Reference, str2: interop.Pointer | interop.Reference, len: number): number; +declare function xmlUCSIsTamil(code: number): number; -declare function xmlStrncat(cur: interop.Pointer | interop.Reference, add: interop.Pointer | interop.Reference, len: number): interop.Pointer | interop.Reference; +declare function xmlUCSIsTelugu(code: number): number; -declare function xmlStrncatNew(str1: interop.Pointer | interop.Reference, str2: interop.Pointer | interop.Reference, len: number): interop.Pointer | interop.Reference; +declare function xmlUCSIsThaana(code: number): number; -declare function xmlStrncmp(str1: interop.Pointer | interop.Reference, str2: interop.Pointer | interop.Reference, len: number): number; +declare function xmlUCSIsThai(code: number): number; -declare function xmlStrndup(cur: interop.Pointer | interop.Reference, len: number): interop.Pointer | interop.Reference; +declare function xmlUCSIsTibetan(code: number): number; -declare function xmlStrstr(str: interop.Pointer | interop.Reference, val: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; +declare function xmlUCSIsUgaritic(code: number): number; -declare function xmlStrsub(str: interop.Pointer | interop.Reference, start: number, len: number): interop.Pointer | interop.Reference; +declare function xmlUCSIsUnifiedCanadianAboriginalSyllabics(code: number): number; -declare var xmlStructuredErrorFunc: number; +declare function xmlUCSIsVariationSelectors(code: number): number; -declare var xmlStructuredErrorFuncVar: number; +declare function xmlUCSIsVariationSelectorsSupplement(code: number): number; -declare function xmlTextWriterEndAttribute(writer: interop.Pointer | interop.Reference): number; +declare function xmlUCSIsYiRadicals(code: number): number; -declare function xmlTextWriterEndCDATA(writer: interop.Pointer | interop.Reference): number; +declare function xmlUCSIsYiSyllables(code: number): number; -declare function xmlTextWriterEndComment(writer: interop.Pointer | interop.Reference): number; +declare function xmlUCSIsYijingHexagramSymbols(code: number): number; -declare function xmlTextWriterEndDTD(writer: interop.Pointer | interop.Reference): number; +declare function xmlURIEscape(str: string): string; -declare function xmlTextWriterEndDTDAttlist(writer: interop.Pointer | interop.Reference): number; +declare function xmlURIEscapeStr(str: string, list: string): string; -declare function xmlTextWriterEndDTDElement(writer: interop.Pointer | interop.Reference): number; +declare function xmlURIUnescapeString(str: string, len: number, target: string): string; -declare function xmlTextWriterEndDTDEntity(writer: interop.Pointer | interop.Reference): number; +declare function xmlUTF8Charcmp(utf1: string, utf2: string): number; -declare function xmlTextWriterEndDocument(writer: interop.Pointer | interop.Reference): number; +declare function xmlUTF8Size(utf: string): number; -declare function xmlTextWriterEndElement(writer: interop.Pointer | interop.Reference): number; +declare function xmlUTF8Strlen(utf: string): number; -declare function xmlTextWriterEndPI(writer: interop.Pointer | interop.Reference): number; +declare function xmlUTF8Strloc(utf: string, utfchar: string): number; -declare function xmlTextWriterFlush(writer: interop.Pointer | interop.Reference): number; +declare function xmlUTF8Strndup(utf: string, len: number): string; -declare function xmlTextWriterFullEndElement(writer: interop.Pointer | interop.Reference): number; +declare function xmlUTF8Strpos(utf: string, pos: number): string; -declare function xmlTextWriterSetIndent(writer: interop.Pointer | interop.Reference, indent: number): number; +declare function xmlUTF8Strsize(utf: string, len: number): number; -declare function xmlTextWriterSetIndentString(writer: interop.Pointer | interop.Reference, str: interop.Pointer | interop.Reference): number; +declare function xmlUTF8Strsub(utf: string, start: number, len: number): string; -declare function xmlTextWriterSetQuoteChar(writer: interop.Pointer | interop.Reference, quotechar: number): number; +declare function xmlUnlinkNode(cur: interop.Pointer | interop.Reference<_xmlNode>): void; -declare function xmlTextWriterStartAttribute(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference): number; +declare function xmlUnlockLibrary(): void; -declare function xmlTextWriterStartAttributeNS(writer: interop.Pointer | interop.Reference, prefix: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, namespaceURI: interop.Pointer | interop.Reference): number; +declare function xmlUnsetNsProp(node: interop.Pointer | interop.Reference<_xmlNode>, ns: interop.Pointer | interop.Reference<_xmlNs>, name: string): number; -declare function xmlTextWriterStartCDATA(writer: interop.Pointer | interop.Reference): number; +declare function xmlUnsetProp(node: interop.Pointer | interop.Reference<_xmlNode>, name: string): number; -declare function xmlTextWriterStartComment(writer: interop.Pointer | interop.Reference): number; +declare function xmlValidBuildContentModel(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, elem: interop.Pointer | interop.Reference<_xmlElement>): number; -declare function xmlTextWriterStartDTD(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, pubid: interop.Pointer | interop.Reference, sysid: interop.Pointer | interop.Reference): number; +declare function xmlValidCtxtNormalizeAttributeValue(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>, name: string, value: string): string; -declare function xmlTextWriterStartDTDAttlist(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference): number; +declare function xmlValidGetPotentialChildren(ctree: interop.Pointer | interop.Reference<_xmlElementContent>, names: interop.Pointer | interop.Reference, len: interop.Pointer | interop.Reference, max: number): number; -declare function xmlTextWriterStartDTDElement(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference): number; +declare function xmlValidGetValidElements(prev: interop.Pointer | interop.Reference<_xmlNode>, next: interop.Pointer | interop.Reference<_xmlNode>, names: interop.Pointer | interop.Reference, max: number): number; -declare function xmlTextWriterStartDTDEntity(writer: interop.Pointer | interop.Reference, pe: number, name: interop.Pointer | interop.Reference): number; +declare function xmlValidNormalizeAttributeValue(doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>, name: string, value: string): string; -declare function xmlTextWriterStartDocument(writer: interop.Pointer | interop.Reference, version: string, encoding: string, standalone: string): number; +declare function xmlValidateAttributeDecl(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, attr: interop.Pointer | interop.Reference<_xmlAttribute>): number; -declare function xmlTextWriterStartElement(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference): number; +declare function xmlValidateAttributeValue(type: xmlAttributeType, value: string): number; -declare function xmlTextWriterStartElementNS(writer: interop.Pointer | interop.Reference, prefix: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, namespaceURI: interop.Pointer | interop.Reference): number; +declare function xmlValidateDocument(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>): number; -declare function xmlTextWriterStartPI(writer: interop.Pointer | interop.Reference, target: interop.Pointer | interop.Reference): number; +declare function xmlValidateDocumentFinal(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>): number; -declare function xmlTextWriterWriteAttribute(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateDtd(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, dtd: interop.Pointer | interop.Reference<_xmlDtd>): number; -declare function xmlTextWriterWriteAttributeNS(writer: interop.Pointer | interop.Reference, prefix: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, namespaceURI: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateDtdFinal(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>): number; -declare function xmlTextWriterWriteBase64(writer: interop.Pointer | interop.Reference, data: string, start: number, len: number): number; +declare function xmlValidateElement(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>): number; -declare function xmlTextWriterWriteBinHex(writer: interop.Pointer | interop.Reference, data: string, start: number, len: number): number; +declare function xmlValidateElementDecl(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlElement>): number; -declare function xmlTextWriterWriteCDATA(writer: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateNCName(value: string, space: number): number; -declare function xmlTextWriterWriteComment(writer: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateNMToken(value: string, space: number): number; -declare function xmlTextWriterWriteDTD(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, pubid: interop.Pointer | interop.Reference, sysid: interop.Pointer | interop.Reference, subset: interop.Pointer | interop.Reference): number; +declare function xmlValidateName(value: string, space: number): number; -declare function xmlTextWriterWriteDTDAttlist(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateNameValue(value: string): number; -declare function xmlTextWriterWriteDTDElement(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateNamesValue(value: string): number; -declare function xmlTextWriterWriteDTDEntity(writer: interop.Pointer | interop.Reference, pe: number, name: interop.Pointer | interop.Reference, pubid: interop.Pointer | interop.Reference, sysid: interop.Pointer | interop.Reference, ndataid: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateNmtokenValue(value: string): number; -declare function xmlTextWriterWriteDTDExternalEntity(writer: interop.Pointer | interop.Reference, pe: number, name: interop.Pointer | interop.Reference, pubid: interop.Pointer | interop.Reference, sysid: interop.Pointer | interop.Reference, ndataid: interop.Pointer | interop.Reference): number; +declare function xmlValidateNmtokensValue(value: string): number; -declare function xmlTextWriterWriteDTDExternalEntityContents(writer: interop.Pointer | interop.Reference, pubid: interop.Pointer | interop.Reference, sysid: interop.Pointer | interop.Reference, ndataid: interop.Pointer | interop.Reference): number; +declare function xmlValidateNotationDecl(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, nota: interop.Pointer | interop.Reference<_xmlNotation>): number; -declare function xmlTextWriterWriteDTDInternalEntity(writer: interop.Pointer | interop.Reference, pe: number, name: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateNotationUse(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, notationName: string): number; -declare function xmlTextWriterWriteDTDNotation(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, pubid: interop.Pointer | interop.Reference, sysid: interop.Pointer | interop.Reference): number; +declare function xmlValidateOneAttribute(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>, attr: interop.Pointer | interop.Reference<_xmlAttr>, value: string): number; -declare function xmlTextWriterWriteElement(writer: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateOneElement(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>): number; -declare function xmlTextWriterWriteElementNS(writer: interop.Pointer | interop.Reference, prefix: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, namespaceURI: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateOneNamespace(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>, prefix: string, ns: interop.Pointer | interop.Reference<_xmlNs>, value: string): number; -declare function xmlTextWriterWritePI(writer: interop.Pointer | interop.Reference, target: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidatePopElement(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>, qname: string): number; -declare function xmlTextWriterWriteRaw(writer: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidatePushCData(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, data: string, len: number): number; -declare function xmlTextWriterWriteRawLen(writer: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference, len: number): number; +declare function xmlValidatePushElement(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>, elem: interop.Pointer | interop.Reference<_xmlNode>, qname: string): number; -declare function xmlTextWriterWriteString(writer: interop.Pointer | interop.Reference, content: interop.Pointer | interop.Reference): number; +declare function xmlValidateQName(value: string, space: number): number; -declare var xmlURIPtr: number; +declare function xmlValidateRoot(ctxt: interop.Pointer | interop.Reference<_xmlValidCtxt>, doc: interop.Pointer | interop.Reference<_xmlDoc>): number; -declare var xmlURIPtrVar: number; +declare function xmlXIncludeFreeContext(ctxt: interop.Pointer | interop.Reference): void; -declare var xmlURIPtrVar2: number; +declare function xmlXIncludeNewContext(doc: interop.Pointer | interop.Reference<_xmlDoc>): interop.Pointer | interop.Reference; -declare function xmlUTF8Charcmp(utf1: interop.Pointer | interop.Reference, utf2: interop.Pointer | interop.Reference): number; +declare function xmlXIncludeProcess(doc: interop.Pointer | interop.Reference<_xmlDoc>): number; -declare function xmlUTF8Size(utf: interop.Pointer | interop.Reference): number; +declare function xmlXIncludeProcessFlags(doc: interop.Pointer | interop.Reference<_xmlDoc>, flags: number): number; -declare function xmlUTF8Strlen(utf: interop.Pointer | interop.Reference): number; +declare function xmlXIncludeProcessFlagsData(doc: interop.Pointer | interop.Reference<_xmlDoc>, flags: number, data: interop.Pointer | interop.Reference): number; -declare function xmlUTF8Strloc(utf: interop.Pointer | interop.Reference, utfchar: interop.Pointer | interop.Reference): number; +declare function xmlXIncludeProcessNode(ctxt: interop.Pointer | interop.Reference, tree: interop.Pointer | interop.Reference<_xmlNode>): number; -declare function xmlUTF8Strndup(utf: interop.Pointer | interop.Reference, len: number): interop.Pointer | interop.Reference; +declare function xmlXIncludeProcessTree(tree: interop.Pointer | interop.Reference<_xmlNode>): number; -declare function xmlUTF8Strpos(utf: interop.Pointer | interop.Reference, pos: number): interop.Pointer | interop.Reference; +declare function xmlXIncludeProcessTreeFlags(tree: interop.Pointer | interop.Reference<_xmlNode>, flags: number): number; -declare function xmlUTF8Strsize(utf: interop.Pointer | interop.Reference, len: number): number; +declare function xmlXIncludeProcessTreeFlagsData(tree: interop.Pointer | interop.Reference<_xmlNode>, flags: number, data: interop.Pointer | interop.Reference): number; -declare function xmlUTF8Strsub(utf: interop.Pointer | interop.Reference, start: number, len: number): interop.Pointer | interop.Reference; +declare function xmlXIncludeSetFlags(ctxt: interop.Pointer | interop.Reference, flags: number): number; declare function xmlXPathAddValues(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): void; @@ -3347,31 +6365,31 @@ declare function xmlXPathBooleanFunction(ctxt: interop.Pointer | interop.Referen declare function xmlXPathCastBooleanToNumber(val: number): number; -declare function xmlXPathCastBooleanToString(val: number): interop.Pointer | interop.Reference; +declare function xmlXPathCastBooleanToString(val: number): string; declare function xmlXPathCastNodeSetToBoolean(ns: interop.Pointer | interop.Reference<_xmlNodeSet>): number; declare function xmlXPathCastNodeSetToNumber(ns: interop.Pointer | interop.Reference<_xmlNodeSet>): number; -declare function xmlXPathCastNodeSetToString(ns: interop.Pointer | interop.Reference<_xmlNodeSet>): interop.Pointer | interop.Reference; +declare function xmlXPathCastNodeSetToString(ns: interop.Pointer | interop.Reference<_xmlNodeSet>): string; declare function xmlXPathCastNodeToNumber(node: interop.Pointer | interop.Reference<_xmlNode>): number; -declare function xmlXPathCastNodeToString(node: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference; +declare function xmlXPathCastNodeToString(node: interop.Pointer | interop.Reference<_xmlNode>): string; declare function xmlXPathCastNumberToBoolean(val: number): number; -declare function xmlXPathCastNumberToString(val: number): interop.Pointer | interop.Reference; +declare function xmlXPathCastNumberToString(val: number): string; -declare function xmlXPathCastStringToBoolean(val: interop.Pointer | interop.Reference): number; +declare function xmlXPathCastStringToBoolean(val: string): number; -declare function xmlXPathCastStringToNumber(val: interop.Pointer | interop.Reference): number; +declare function xmlXPathCastStringToNumber(val: string): number; declare function xmlXPathCastToBoolean(val: interop.Pointer | interop.Reference<_xmlXPathObject>): number; declare function xmlXPathCastToNumber(val: interop.Pointer | interop.Reference<_xmlXPathObject>): number; -declare function xmlXPathCastToString(val: interop.Pointer | interop.Reference<_xmlXPathObject>): interop.Pointer | interop.Reference; +declare function xmlXPathCastToString(val: interop.Pointer | interop.Reference<_xmlXPathObject>): string; declare function xmlXPathCeilingFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; @@ -3379,7 +6397,7 @@ declare function xmlXPathCmpNodes(node1: interop.Pointer | interop.Reference<_xm declare function xmlXPathCompareValues(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, inf: number, strict: number): number; -declare function xmlXPathCompile(str: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; +declare function xmlXPathCompile(str: string): interop.Pointer | interop.Reference; declare function xmlXPathCompiledEval(comp: interop.Pointer | interop.Reference, ctx: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; @@ -3399,7 +6417,7 @@ declare function xmlXPathConvertString(val: interop.Pointer | interop.Reference< declare function xmlXPathCountFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; -declare function xmlXPathCtxtCompile(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, str: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; +declare function xmlXPathCtxtCompile(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, str: string): interop.Pointer | interop.Reference; declare function xmlXPathDebugDumpCompExpr(output: interop.Pointer | interop.Reference, comp: interop.Pointer | interop.Reference, depth: number): void; @@ -3470,11 +6488,11 @@ declare const enum xmlXPathError { XPATH_FORBID_VARIABLE_ERROR = 24 } -declare function xmlXPathEval(str: interop.Pointer | interop.Reference, ctx: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; +declare function xmlXPathEval(str: string, ctx: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; declare function xmlXPathEvalExpr(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): void; -declare function xmlXPathEvalExpression(str: interop.Pointer | interop.Reference, ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; +declare function xmlXPathEvalExpression(str: string, ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; declare function xmlXPathEvalPredicate(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, res: interop.Pointer | interop.Reference<_xmlXPathObject>): number; @@ -3496,9 +6514,9 @@ declare function xmlXPathFreeObject(obj: interop.Pointer | interop.Reference<_xm declare function xmlXPathFreeParserContext(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): void; -declare function xmlXPathFunctionLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: interop.Pointer | interop.Reference): interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>; +declare function xmlXPathFunctionLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: string): interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>; -declare function xmlXPathFunctionLookupNS(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: interop.Pointer | interop.Reference, ns_uri: interop.Pointer | interop.Reference): interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>; +declare function xmlXPathFunctionLookupNS(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: string, ns_uri: string): interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>; declare function xmlXPathHasSameNodes(nodes1: interop.Pointer | interop.Reference<_xmlNodeSet>, nodes2: interop.Pointer | interop.Reference<_xmlNodeSet>): number; @@ -3512,7 +6530,7 @@ declare function xmlXPathIsInf(val: number): number; declare function xmlXPathIsNaN(val: number): number; -declare function xmlXPathIsNodeType(name: interop.Pointer | interop.Reference): number; +declare function xmlXPathIsNodeType(name: string): number; declare function xmlXPathLangFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; @@ -3546,9 +6564,9 @@ declare function xmlXPathNewNodeSet(val: interop.Pointer | interop.Reference<_xm declare function xmlXPathNewNodeSetList(val: interop.Pointer | interop.Reference<_xmlNodeSet>): interop.Pointer | interop.Reference<_xmlXPathObject>; -declare function xmlXPathNewParserContext(str: interop.Pointer | interop.Reference, ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathParserContext>; +declare function xmlXPathNewParserContext(str: string, ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathParserContext>; -declare function xmlXPathNewString(val: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlXPathObject>; +declare function xmlXPathNewString(val: string): interop.Pointer | interop.Reference<_xmlXPathObject>; declare function xmlXPathNewValueTree(val: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlXPathObject>; @@ -3578,7 +6596,7 @@ declare function xmlXPathNextPrecedingSibling(ctxt: interop.Pointer | interop.Re declare function xmlXPathNextSelf(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, cur: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNode>; -declare function xmlXPathNodeEval(node: interop.Pointer | interop.Reference<_xmlNode>, str: interop.Pointer | interop.Reference, ctx: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; +declare function xmlXPathNodeEval(node: interop.Pointer | interop.Reference<_xmlNode>, str: string, ctx: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; declare function xmlXPathNodeLeading(nodes: interop.Pointer | interop.Reference<_xmlNodeSet>, node: interop.Pointer | interop.Reference<_xmlNode>): interop.Pointer | interop.Reference<_xmlNodeSet>; @@ -3614,7 +6632,7 @@ declare function xmlXPathNotEqualValues(ctxt: interop.Pointer | interop.Referenc declare function xmlXPathNotFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; -declare function xmlXPathNsLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, prefix: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; +declare function xmlXPathNsLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, prefix: string): string; declare function xmlXPathNumberFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; @@ -3647,9 +6665,9 @@ declare function xmlXPathOrderDocElems(doc: interop.Pointer | interop.Reference< declare var xmlXPathPINF: number; -declare function xmlXPathParseNCName(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): interop.Pointer | interop.Reference; +declare function xmlXPathParseNCName(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): string; -declare function xmlXPathParseName(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): interop.Pointer | interop.Reference; +declare function xmlXPathParseName(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): string; declare function xmlXPathPopBoolean(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): number; @@ -3659,25 +6677,25 @@ declare function xmlXPathPopNodeSet(ctxt: interop.Pointer | interop.Reference<_x declare function xmlXPathPopNumber(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): number; -declare function xmlXPathPopString(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): interop.Pointer | interop.Reference; +declare function xmlXPathPopString(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): string; declare function xmlXPathPositionFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; declare function xmlXPathRegisterAllFunctions(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>): void; -declare function xmlXPathRegisterFunc(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>): number; +declare function xmlXPathRegisterFunc(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: string, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>): number; -declare function xmlXPathRegisterFuncLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference) => interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>>, funcCtxt: interop.Pointer | interop.Reference): void; +declare function xmlXPathRegisterFuncLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string) => interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>>, funcCtxt: interop.Pointer | interop.Reference): void; -declare function xmlXPathRegisterFuncNS(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: interop.Pointer | interop.Reference, ns_uri: interop.Pointer | interop.Reference, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>): number; +declare function xmlXPathRegisterFuncNS(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: string, ns_uri: string, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>): number; -declare function xmlXPathRegisterNs(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, prefix: interop.Pointer | interop.Reference, ns_uri: interop.Pointer | interop.Reference): number; +declare function xmlXPathRegisterNs(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, prefix: string, ns_uri: string): number; -declare function xmlXPathRegisterVariable(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: interop.Pointer | interop.Reference, value: interop.Pointer | interop.Reference<_xmlXPathObject>): number; +declare function xmlXPathRegisterVariable(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: string, value: interop.Pointer | interop.Reference<_xmlXPathObject>): number; -declare function xmlXPathRegisterVariableLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference) => interop.Pointer | interop.Reference<_xmlXPathObject>>, data: interop.Pointer | interop.Reference): void; +declare function xmlXPathRegisterVariableLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: string, p3: string) => interop.Pointer | interop.Reference<_xmlXPathObject>>, data: interop.Pointer | interop.Reference): void; -declare function xmlXPathRegisterVariableNS(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: interop.Pointer | interop.Reference, ns_uri: interop.Pointer | interop.Reference, value: interop.Pointer | interop.Reference<_xmlXPathObject>): number; +declare function xmlXPathRegisterVariableNS(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: string, ns_uri: string, value: interop.Pointer | interop.Reference<_xmlXPathObject>): number; declare function xmlXPathRegisteredFuncsCleanup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>): void; @@ -3693,7 +6711,7 @@ declare function xmlXPathSetContextNode(node: interop.Pointer | interop.Referenc declare function xmlXPathStartsWithFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; -declare function xmlXPathStringEvalNumber(str: interop.Pointer | interop.Reference): number; +declare function xmlXPathStringEvalNumber(str: string): number; declare function xmlXPathStringFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; @@ -3719,9 +6737,9 @@ declare function xmlXPathTrueFunction(ctxt: interop.Pointer | interop.Reference< declare function xmlXPathValueFlipSign(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): void; -declare function xmlXPathVariableLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlXPathObject>; +declare function xmlXPathVariableLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: string): interop.Pointer | interop.Reference<_xmlXPathObject>; -declare function xmlXPathVariableLookupNS(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: interop.Pointer | interop.Reference, ns_uri: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlXPathObject>; +declare function xmlXPathVariableLookupNS(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: string, ns_uri: string): interop.Pointer | interop.Reference<_xmlXPathObject>; declare function xmlXPathWrapCString(val: string): interop.Pointer | interop.Reference<_xmlXPathObject>; @@ -3729,13 +6747,13 @@ declare function xmlXPathWrapExternal(val: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlXPathObject>; -declare function xmlXPathWrapString(val: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlXPathObject>; +declare function xmlXPathWrapString(val: string): interop.Pointer | interop.Reference<_xmlXPathObject>; declare function xmlXPatherror(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, file: string, line: number, no: number): void; declare function xmlXPtrBuildNodeList(obj: interop.Pointer | interop.Reference<_xmlXPathObject>): interop.Pointer | interop.Reference<_xmlNode>; -declare function xmlXPtrEval(str: interop.Pointer | interop.Reference, ctx: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; +declare function xmlXPtrEval(str: string, ctx: interop.Pointer | interop.Reference<_xmlXPathContext>): interop.Pointer | interop.Reference<_xmlXPathObject>; declare function xmlXPtrEvalRangePredicate(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>): void; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!libxslt.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!libxslt.d.ts deleted file mode 100644 index 71a3ba2968..0000000000 --- a/tns-platform-declarations/ios/objc-x86_64/objc!libxslt.d.ts +++ /dev/null @@ -1,370 +0,0 @@ - -interface _xsltDecimalFormat { - next: interop.Pointer | interop.Reference<_xsltDecimalFormat>; - name: interop.Pointer | interop.Reference; - digit: interop.Pointer | interop.Reference; - patternSeparator: interop.Pointer | interop.Reference; - minusSign: interop.Pointer | interop.Reference; - infinity: interop.Pointer | interop.Reference; - noNumber: interop.Pointer | interop.Reference; - decimalPoint: interop.Pointer | interop.Reference; - grouping: interop.Pointer | interop.Reference; - percent: interop.Pointer | interop.Reference; - permille: interop.Pointer | interop.Reference; - zeroDigit: interop.Pointer | interop.Reference; -} -declare var _xsltDecimalFormat: interop.StructType<_xsltDecimalFormat>; - -interface _xsltDocument { - next: interop.Pointer | interop.Reference<_xsltDocument>; - main: number; - doc: interop.Pointer | interop.Reference<_xmlDoc>; - keys: interop.Pointer | interop.Reference; - includes: interop.Pointer | interop.Reference<_xsltDocument>; - preproc: number; - nbKeysComputed: number; -} -declare var _xsltDocument: interop.StructType<_xsltDocument>; - -interface _xsltFormatNumberInfo { - integer_hash: number; - integer_digits: number; - frac_digits: number; - frac_hash: number; - group: number; - multiplier: number; - add_decimal: number; - is_multiplier_set: number; - is_negative_pattern: number; -} -declare var _xsltFormatNumberInfo: interop.StructType<_xsltFormatNumberInfo>; - -interface _xsltKeyDef { - next: interop.Pointer | interop.Reference<_xsltKeyDef>; - inst: interop.Pointer | interop.Reference<_xmlNode>; - name: interop.Pointer | interop.Reference; - nameURI: interop.Pointer | interop.Reference; - match: interop.Pointer | interop.Reference; - use: interop.Pointer | interop.Reference; - comp: interop.Pointer | interop.Reference; - usecomp: interop.Pointer | interop.Reference; - nsList: interop.Pointer | interop.Reference>; - nsNr: number; -} -declare var _xsltKeyDef: interop.StructType<_xsltKeyDef>; - -interface _xsltKeyTable { - next: interop.Pointer | interop.Reference<_xsltKeyTable>; - name: interop.Pointer | interop.Reference; - nameURI: interop.Pointer | interop.Reference; - keys: interop.Pointer | interop.Reference; -} -declare var _xsltKeyTable: interop.StructType<_xsltKeyTable>; - -interface _xsltNumberData { - level: interop.Pointer | interop.Reference; - count: interop.Pointer | interop.Reference; - from: interop.Pointer | interop.Reference; - value: interop.Pointer | interop.Reference; - format: interop.Pointer | interop.Reference; - has_format: number; - digitsPerGroup: number; - groupingCharacter: number; - groupingCharacterLen: number; - doc: interop.Pointer | interop.Reference<_xmlDoc>; - node: interop.Pointer | interop.Reference<_xmlNode>; - countPat: interop.Pointer | interop.Reference; - fromPat: interop.Pointer | interop.Reference; -} -declare var _xsltNumberData: interop.StructType<_xsltNumberData>; - -declare var xslDebugStatus: number; - -declare function xslDropCall(): void; - -declare function xsltCalibrateAdjust(delta: number): void; - -declare function xsltCleanupGlobals(): void; - -declare function xsltDebugDumpExtensions(output: interop.Pointer | interop.Reference): void; - -declare function xsltDebugGetDefaultTrace(): xsltDebugTraceCodes; - -declare function xsltDebugSetDefaultTrace(val: xsltDebugTraceCodes): void; - -declare const enum xsltDebugStatusCodes { - - XSLT_DEBUG_NONE = 0, - - XSLT_DEBUG_INIT = 1, - - XSLT_DEBUG_STEP = 2, - - XSLT_DEBUG_STEPOUT = 3, - - XSLT_DEBUG_NEXT = 4, - - XSLT_DEBUG_STOP = 5, - - XSLT_DEBUG_CONT = 6, - - XSLT_DEBUG_RUN = 7, - - XSLT_DEBUG_RUN_RESTART = 8, - - XSLT_DEBUG_QUIT = 9 -} - -declare const enum xsltDebugTraceCodes { - - XSLT_TRACE_ALL = -1, - - XSLT_TRACE_NONE = 0, - - XSLT_TRACE_COPY_TEXT = 1, - - XSLT_TRACE_PROCESS_NODE = 2, - - XSLT_TRACE_APPLY_TEMPLATE = 4, - - XSLT_TRACE_COPY = 8, - - XSLT_TRACE_COMMENT = 16, - - XSLT_TRACE_PI = 32, - - XSLT_TRACE_COPY_OF = 64, - - XSLT_TRACE_VALUE_OF = 128, - - XSLT_TRACE_CALL_TEMPLATE = 256, - - XSLT_TRACE_APPLY_TEMPLATES = 512, - - XSLT_TRACE_CHOOSE = 1024, - - XSLT_TRACE_IF = 2048, - - XSLT_TRACE_FOR_EACH = 4096, - - XSLT_TRACE_STRIP_SPACES = 8192, - - XSLT_TRACE_TEMPLATES = 16384, - - XSLT_TRACE_KEYS = 32768, - - XSLT_TRACE_VARIABLES = 65536 -} - -declare var xsltDocDefaultLoader: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: interop.Pointer | interop.Reference, p5: xsltLoadType) => interop.Pointer | interop.Reference<_xmlDoc>>; - -declare function xsltDocumentFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; - -declare function xsltDocumentSortFunction(list: interop.Pointer | interop.Reference<_xmlNodeSet>): void; - -declare function xsltElementAvailableFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; - -declare var xsltEngineVersion: string; - -declare var xsltExtMarker: interop.Pointer | interop.Reference; - -declare function xsltExtModuleFunctionLookup(name: interop.Pointer | interop.Reference, URI: interop.Pointer | interop.Reference): interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>; - -declare function xsltFormatNumberConversion(self: interop.Pointer | interop.Reference<_xsltDecimalFormat>, format: interop.Pointer | interop.Reference, number: number, result: interop.Pointer | interop.Reference>): xmlXPathError; - -declare function xsltFormatNumberFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; - -declare function xsltFreeAVTList(avt: interop.Pointer | interop.Reference): void; - -declare function xsltFreeCompMatchList(comp: interop.Pointer | interop.Reference): void; - -declare function xsltFreeDocumentKeys(doc: interop.Pointer | interop.Reference<_xsltDocument>): void; - -declare function xsltFreeLocale(locale: interop.Pointer | interop.Reference): void; - -declare function xsltFreeLocales(): void; - -declare function xsltFreeSecurityPrefs(sec: interop.Pointer | interop.Reference): void; - -declare function xsltFunctionAvailableFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; - -declare function xsltFunctionNodeSet(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; - -declare function xsltGenerateIdFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; - -declare var xsltGenericDebug: number; - -declare var xsltGenericDebugContext: interop.Pointer | interop.Reference; - -declare var xsltGenericError: number; - -declare var xsltGenericErrorContext: interop.Pointer | interop.Reference; - -declare function xsltGetDebuggerStatus(): number; - -declare function xsltGetDefaultSecurityPrefs(): interop.Pointer | interop.Reference; - -declare function xsltGetNsProp(node: interop.Pointer | interop.Reference<_xmlNode>, name: interop.Pointer | interop.Reference, nameSpace: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - -declare function xsltGetQNameURI(node: interop.Pointer | interop.Reference<_xmlNode>, name: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; - -declare function xsltGetUTF8Char(utf: string, len: interop.Pointer | interop.Reference): number; - -declare function xsltGetXIncludeDefault(): number; - -declare function xsltInit(): void; - -declare function xsltInitGlobals(): void; - -declare function xsltIsBlank(str: interop.Pointer | interop.Reference): number; - -declare function xsltKeyFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; - -declare var xsltLibxmlVersion: number; - -declare var xsltLibxsltVersion: number; - -declare const enum xsltLoadType { - - XSLT_LOAD_START = 0, - - XSLT_LOAD_STYLESHEET = 1, - - XSLT_LOAD_DOCUMENT = 2 -} - -declare function xsltLocaleStrcmp(locale: interop.Pointer | interop.Reference, str1: interop.Pointer | interop.Reference, str2: interop.Pointer | interop.Reference): number; - -declare var xsltMaxDepth: number; - -declare var xsltMaxVars: number; - -declare function xsltNewLocale(langName: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - -declare function xsltNewSecurityPrefs(): interop.Pointer | interop.Reference; - -declare function xsltNormalizeCompSteps(payload: interop.Pointer | interop.Reference, data: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference): void; - -declare const enum xsltOutputType { - - XSLT_OUTPUT_XML = 0, - - XSLT_OUTPUT_HTML = 1, - - XSLT_OUTPUT_TEXT = 2 -} - -declare function xsltRegisterAllExtras(): void; - -declare function xsltRegisterAllFunctions(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>): void; - -declare function xsltRegisterExtModuleFunction(name: interop.Pointer | interop.Reference, URI: interop.Pointer | interop.Reference, _function: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>): number; - -declare function xsltRegisterTestModule(): void; - -declare const enum xsltSecurityOption { - - XSLT_SECPREF_READ_FILE = 1, - - XSLT_SECPREF_WRITE_FILE = 2, - - XSLT_SECPREF_CREATE_DIRECTORY = 3, - - XSLT_SECPREF_READ_NETWORK = 4, - - XSLT_SECPREF_WRITE_NETWORK = 5 -} - -declare function xsltSetDebuggerCallbacks(no: number, block: interop.Pointer | interop.Reference): number; - -declare function xsltSetDebuggerStatus(value: number): void; - -declare function xsltSetDefaultSecurityPrefs(sec: interop.Pointer | interop.Reference): void; - -declare function xsltSetGenericDebugFunc(ctx: interop.Pointer | interop.Reference, handler: number): void; - -declare function xsltSetGenericErrorFunc(ctx: interop.Pointer | interop.Reference, handler: number): void; - -declare function xsltSetLoaderFunc(f: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: interop.Pointer | interop.Reference, p5: xsltLoadType) => interop.Pointer | interop.Reference<_xmlDoc>>): void; - -declare function xsltSetXIncludeDefault(xinclude: number): void; - -declare function xsltSplitQName(dict: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, prefix: interop.Pointer | interop.Reference>): interop.Pointer | interop.Reference; - -declare function xsltStrxfrm(locale: interop.Pointer | interop.Reference, string: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; - -declare const enum xsltStyleType { - - XSLT_FUNC_COPY = 1, - - XSLT_FUNC_SORT = 2, - - XSLT_FUNC_TEXT = 3, - - XSLT_FUNC_ELEMENT = 4, - - XSLT_FUNC_ATTRIBUTE = 5, - - XSLT_FUNC_COMMENT = 6, - - XSLT_FUNC_PI = 7, - - XSLT_FUNC_COPYOF = 8, - - XSLT_FUNC_VALUEOF = 9, - - XSLT_FUNC_NUMBER = 10, - - XSLT_FUNC_APPLYIMPORTS = 11, - - XSLT_FUNC_CALLTEMPLATE = 12, - - XSLT_FUNC_APPLYTEMPLATES = 13, - - XSLT_FUNC_CHOOSE = 14, - - XSLT_FUNC_IF = 15, - - XSLT_FUNC_FOREACH = 16, - - XSLT_FUNC_DOCUMENT = 17, - - XSLT_FUNC_WITHPARAM = 18, - - XSLT_FUNC_PARAM = 19, - - XSLT_FUNC_VARIABLE = 20, - - XSLT_FUNC_WHEN = 21, - - XSLT_FUNC_EXTENSION = 22 -} - -declare function xsltSystemPropertyFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; - -declare function xsltTimestamp(): number; - -declare const enum xsltTransformState { - - XSLT_STATE_OK = 0, - - XSLT_STATE_ERROR = 1, - - XSLT_STATE_STOPPED = 2 -} - -declare function xsltUninit(): void; - -declare function xsltUnparsedEntityURIFunction(ctxt: interop.Pointer | interop.Reference<_xmlXPathParserContext>, nargs: number): void; - -declare function xsltUnregisterExtModule(URI: interop.Pointer | interop.Reference): number; - -declare function xsltUnregisterExtModuleElement(name: interop.Pointer | interop.Reference, URI: interop.Pointer | interop.Reference): number; - -declare function xsltUnregisterExtModuleFunction(name: interop.Pointer | interop.Reference, URI: interop.Pointer | interop.Reference): number; - -declare function xsltUnregisterExtModuleTopLevel(name: interop.Pointer | interop.Reference, URI: interop.Pointer | interop.Reference): number; - -declare function xsltXPathFunctionLookup(ctxt: interop.Pointer | interop.Reference<_xmlXPathContext>, name: interop.Pointer | interop.Reference, ns_uri: interop.Pointer | interop.Reference): interop.FunctionReference<(p1: interop.Pointer | interop.Reference<_xmlXPathParserContext>, p2: number) => void>; - -declare function xsltXPathVariableLookup(ctxt: interop.Pointer | interop.Reference, name: interop.Pointer | interop.Reference, ns_uri: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference<_xmlXPathObject>; diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!os.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!os.d.ts index 23468009c0..08699eb02f 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!os.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!os.d.ts @@ -20,6 +20,8 @@ declare function _os_activity_start(dso: interop.Pointer | interop.Reference, subsystem: string, category: string): NSObject; +declare function _os_log_debug_impl(dso: interop.Pointer | interop.Reference, log: NSObject, type: os_log_type_t, format: string, buf: string, size: number): void; + declare var _os_log_default: void; declare function _os_log_error_impl(dso: interop.Pointer | interop.Reference, log: NSObject, type: os_log_type_t, format: string, buf: string, size: number): void; From 26f36a86ad8f79b97977575f283863f421ef79bc Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Thu, 12 Sep 2019 16:04:43 +0300 Subject: [PATCH 2/6] fix(platform-declarations): typings generation script Delete Material Components typings from `tns-platform-declarations`, they are part of `tns-core-modules` package. --- tns-platform-declarations/typings-gen.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tns-platform-declarations/typings-gen.sh b/tns-platform-declarations/typings-gen.sh index 22600ac466..2af943225e 100755 --- a/tns-platform-declarations/typings-gen.sh +++ b/tns-platform-declarations/typings-gen.sh @@ -37,6 +37,10 @@ TNS_TYPESCRIPT_DECLARATIONS_PATH=$(pwd)/ios-typings-prj/typings tns build ios -- echo "Deleting old ios typings (ios/objc-x86_64)..." rm ios/objc-x86_64/* + +echo "Deleting Material Components typings..." +rm ios-typings-prj/typings/x86_64/objc\!MaterialComponents.d.ts + echo "Moving generated typings to ios/objc-x86_64..." mv ios-typings-prj/typings/x86_64/* ios/objc-x86_64/ From a4bcbe2b86ff52496ac4ebdc35c031d9683ce2a5 Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Fri, 13 Sep 2019 00:04:47 +0300 Subject: [PATCH 3/6] refactor(platform-declarations): workaround a TypeScript error Error: ``` tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts(178,15): error TS2417: Class static side 'typeof OSLogEnumerator' incorrectly extends base class static side 'typeof NSEnumerator'. Types of property 'alloc' are incompatible. Type '() => OSLogEnumerator' is not assignable to type '() => NSEnumerator'. Type 'OSLogEnumerator' is not assignable to type 'NSEnumerator'. Types of property 'allObjects' are incompatible. Type 'NSArray' is not assignable to type 'NSArray'. Type 'NSObject' is not assignable to type 'ObjectType'. 'NSObject' is assignable to the constraint of type 'ObjectType', but 'ObjectType' could be instantiated with a different subtype of constraint '{}'. ``` References: https://github.com/Microsoft/TypeScript/issues/17575 https://stackoverflow.com/questions/52518125/workaround-for-accessing-class-type-arguments-in-static-method-in-typescript --- tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts index 251d0b300e..555b6574da 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts @@ -177,8 +177,12 @@ declare var OSLogEntryWithPayload: { declare class OSLogEnumerator extends NSEnumerator { + static alloc(): NSObject; + static alloc(): OSLogEnumerator; // inherited from NSObject + static new(): NSObject; + static new(): OSLogEnumerator; // inherited from NSObject } From 15e138d36e3fba968fe117ebbbaab2b737c4d746 Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Fri, 13 Sep 2019 09:14:00 +0300 Subject: [PATCH 4/6] docs(platform-declarations): note a manual step on generating typings --- tns-platform-declarations/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tns-platform-declarations/README.md b/tns-platform-declarations/README.md index a521759fe9..3d333d8cb8 100644 --- a/tns-platform-declarations/README.md +++ b/tns-platform-declarations/README.md @@ -46,3 +46,5 @@ The `.d.ts` files for iOS are generated using iOS Runtime's metadata generator. ./typings-gen.sh rc [] ``` Where `rc` can be an NPM tag/version of `tns-ios` that will be used for generating the typings. If the metadata generator to be used has not been released in NPM, you can optionally specify its path as a 2nd argument. + +> Note: Apply [this](https://github.com/NativeScript/NativeScript/commit/45b4b061e470c19cdc582f220ee86fd3169269a0) commit on hand, due to a TypeScript error. From 27f6c932344cfd1dd41f173ccded40e53f79d2b4 Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Fri, 13 Sep 2019 09:50:55 +0300 Subject: [PATCH 5/6] chore(platform-declarations): exclude ios-typings-prj from transpilation --- .gitignore | 1 + tns-platform-declarations/.gitignore | 1 - tns-platform-declarations/.npmignore | 3 ++- tsconfig.json | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 tns-platform-declarations/.gitignore diff --git a/.gitignore b/.gitignore index 919c953623..4c853c0ce8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Folders dist hooks +ios-typings-prj libs node_modules package diff --git a/tns-platform-declarations/.gitignore b/tns-platform-declarations/.gitignore deleted file mode 100644 index 2b1be1f2ac..0000000000 --- a/tns-platform-declarations/.gitignore +++ /dev/null @@ -1 +0,0 @@ -ios-typings-prj diff --git a/tns-platform-declarations/.npmignore b/tns-platform-declarations/.npmignore index 17f9f0859d..9389469c2b 100644 --- a/tns-platform-declarations/.npmignore +++ b/tns-platform-declarations/.npmignore @@ -1,7 +1,8 @@ *.tgz +ios-typings-prj package test.ts test.js test.js.map tsconfig.json -typings-gen.sh \ No newline at end of file +typings-gen.sh diff --git a/tsconfig.json b/tsconfig.json index 987af9aab5..0e738fe979 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "tns-core-modules/package/", "tns-core-modules/references.d.ts", "tns-platform-declarations/ios/objc-x86_64/", + "tns-platform-declarations/ios-typings-prj/", "tns-platform-declarations/node_modules/", "tns-platform-declarations/package/", "tns-platform-declarations/references.d.ts", From 2dd5a45f30cbdcae269eefae0b2e15878c94c809 Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Thu, 19 Sep 2019 18:56:26 +0300 Subject: [PATCH 6/6] refactor(platform-declarations): delete references to MDC types ``` ios/objc-x86_64/objc!QuartzCore.d.ts:676:36 - error TS2304: Cannot find name 'MDCAnimationTimingFunction'. 676 static mdc_functionWithType(type: MDCAnimationTimingFunction): CAMediaTimingFunction; ios/objc-x86_64/objc!UIKit.d.ts:7717:54 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7717 static mdc_preferredFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont; ios/objc-x86_64/objc!UIKit.d.ts:7719:53 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7719 static mdc_standardFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont; ios/objc-x86_64/objc!UIKit.d.ts:7771:63 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7771 mdc_fontSizedForMaterialTextStyleScaledForDynamicType(style: MDCFontTextStyle, scaled: boolean): UIFont; ios/objc-x86_64/objc!UIKit.d.ts:7794:64 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7794 static mdc_preferredFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor; ios/objc-x86_64/objc!UIKit.d.ts:7796:63 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7796 static mdc_standardFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor; ``` --- tns-platform-declarations/README.md | 6 ++++++ .../ios/objc-x86_64/objc!QuartzCore.d.ts | 2 -- .../ios/objc-x86_64/objc!UIKit.d.ts | 10 ---------- tns-platform-declarations/tsconfig.json | 3 ++- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/tns-platform-declarations/README.md b/tns-platform-declarations/README.md index 3d333d8cb8..7219b1ce9f 100644 --- a/tns-platform-declarations/README.md +++ b/tns-platform-declarations/README.md @@ -48,3 +48,9 @@ The `.d.ts` files for iOS are generated using iOS Runtime's metadata generator. Where `rc` can be an NPM tag/version of `tns-ios` that will be used for generating the typings. If the metadata generator to be used has not been released in NPM, you can optionally specify its path as a 2nd argument. > Note: Apply [this](https://github.com/NativeScript/NativeScript/commit/45b4b061e470c19cdc582f220ee86fd3169269a0) commit on hand, due to a TypeScript error. + +> The script expressly deletes the `objc!MaterialComponents.d.ts` file which [distributes](https://github.com/NativeScript/NativeScript/pull/7480) along with the `tns-core-modules` package to avoid plugins clashes. + +> However, the metadata generator for iOS includes metadata and typings for the whole SDK and all native libraries in use, including `MaterialComponents`. Therefore, there are typings which reference types from `objc!MaterialComponents.d.ts` file and fail on transpilation. + +> Currently, remove these by hand to avoid transpilation errors. A proposed Solution is to specify which entries to be generated metadata for and be accessible from JavaScript. These are the feature requests for [Android](https://github.com/NativeScript/android-runtime/issues/1485) and [iOS](https://github.com/NativeScript/ios-runtime/issues/1209) diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!QuartzCore.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!QuartzCore.d.ts index de911ef277..66b2503275 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!QuartzCore.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!QuartzCore.d.ts @@ -673,8 +673,6 @@ declare class CAMediaTimingFunction extends NSObject implements NSSecureCoding { static functionWithName(name: string): CAMediaTimingFunction; - static mdc_functionWithType(type: MDCAnimationTimingFunction): CAMediaTimingFunction; - static new(): CAMediaTimingFunction; // inherited from NSObject static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding diff --git a/tns-platform-declarations/ios/objc-x86_64/objc!UIKit.d.ts b/tns-platform-declarations/ios/objc-x86_64/objc!UIKit.d.ts index 87204f45de..f9d20089cb 100644 --- a/tns-platform-declarations/ios/objc-x86_64/objc!UIKit.d.ts +++ b/tns-platform-declarations/ios/objc-x86_64/objc!UIKit.d.ts @@ -7714,10 +7714,6 @@ declare class UIFont extends NSObject implements NSCopying { static italicSystemFontOfSize(fontSize: number): UIFont; - static mdc_preferredFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont; - - static mdc_standardFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont; - static monospacedDigitSystemFontOfSizeWeight(fontSize: number, weight: number): UIFont; static monospacedSystemFontOfSizeWeight(fontSize: number, weight: number): UIFont; @@ -7768,8 +7764,6 @@ declare class UIFont extends NSObject implements NSCopying { fontWithSize(fontSize: number): UIFont; - mdc_fontSizedForMaterialTextStyleScaledForDynamicType(style: MDCFontTextStyle, scaled: boolean): UIFont; - mdc_isSimplyEqual(font: UIFont): boolean; mdc_scaledFontAtDefaultSize(): UIFont; @@ -7791,10 +7785,6 @@ declare class UIFontDescriptor extends NSObject implements NSCopying, NSSecureCo static fontDescriptorWithNameSize(fontName: string, size: number): UIFontDescriptor; - static mdc_preferredFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor; - - static mdc_standardFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor; - static new(): UIFontDescriptor; // inherited from NSObject static preferredFontDescriptorWithTextStyle(style: string): UIFontDescriptor; diff --git a/tns-platform-declarations/tsconfig.json b/tns-platform-declarations/tsconfig.json index ad84e06bf8..9fd73fc15e 100644 --- a/tns-platform-declarations/tsconfig.json +++ b/tns-platform-declarations/tsconfig.json @@ -24,7 +24,8 @@ "android/android-*.d.ts", "android/androidx-*.d.ts", "ios/objc-x86_64", + "ios-typings-prj", "node_modules", "package" ] -} \ No newline at end of file +}