@octane-xplat/macos-renderer 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/README.md +95 -20
  2. package/package.json +15 -2
  3. package/src/appearance.ts +2 -0
  4. package/src/fonts.ts +2 -0
  5. package/src/formatted-text.ts +147 -0
  6. package/src/gestures.ts +196 -0
  7. package/src/host-globals.d.ts +55 -0
  8. package/src/html-text.ts +88 -0
  9. package/src/image.ts +91 -16
  10. package/src/index.d.ts +9 -0
  11. package/src/index.ts +5030 -678
  12. package/src/layer.ts +11 -9
  13. package/src/list-template.ts +266 -0
  14. package/src/list-view.ts +445 -0
  15. package/src/portal-components.macos.tsx +86 -0
  16. package/src/presentation.ts +48 -15
  17. package/src/scroll-view.ts +124 -0
  18. package/src/tab-view.ts +512 -0
  19. package/src/template-props.ts +402 -0
  20. package/src/vendor/listview/LICENSE +19 -0
  21. package/src/vendor/listview/README.md +1 -0
  22. package/src/vendor/listview/binding-options.ts +189 -0
  23. package/src/vendor/listview/expressions.ts +285 -0
  24. package/src/webview.ts +36 -7
  25. package/types/ARKitCore.d.ts +199 -0
  26. package/types/AVFAudio.d.ts +2304 -0
  27. package/types/AVFoundation.d.ts +6974 -0
  28. package/types/AVKit.d.ts +215 -0
  29. package/types/AVRouting.d.ts +7 -0
  30. package/types/Accelerate.d.ts +4776 -0
  31. package/types/Accessibility.d.ts +69 -0
  32. package/types/Accounts.d.ts +134 -0
  33. package/types/AdSupport.d.ts +12 -0
  34. package/types/AddressBook.d.ts +1012 -0
  35. package/types/AppKit.d.ts +34247 -0
  36. package/types/AppTrackingTransparency.d.ts +23 -0
  37. package/types/AppleScriptKit.d.ts +6 -0
  38. package/types/ApplicationServices.d.ts +6346 -0
  39. package/types/AudioToolbox.d.ts +7129 -0
  40. package/types/AudioVideoBridging.d.ts +613 -0
  41. package/types/AuthenticationServices.d.ts +982 -0
  42. package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
  43. package/types/Automator.d.ts +248 -0
  44. package/types/BackgroundAssets.d.ts +9 -0
  45. package/types/BrowserEngineKit.d.ts +166 -0
  46. package/types/BusinessChat.d.ts +29 -0
  47. package/types/CFNetwork.d.ts +931 -0
  48. package/types/CalendarStore.d.ts +354 -0
  49. package/types/CallKit.d.ts +30 -0
  50. package/types/Carbon.d.ts +16207 -0
  51. package/types/ClassKit.d.ts +281 -0
  52. package/types/CloudKit.d.ts +1565 -0
  53. package/types/Collaboration.d.ts +123 -0
  54. package/types/ColorSync.d.ts +562 -0
  55. package/types/CompositorServices.d.ts +60 -0
  56. package/types/ComputeGraph.d.ts +16 -0
  57. package/types/Contacts.d.ts +1558 -0
  58. package/types/ContactsUI.d.ts +39 -0
  59. package/types/CoreAudio.d.ts +1376 -0
  60. package/types/CoreAudioKit.d.ts +122 -0
  61. package/types/CoreAudioTypes.d.ts +1003 -0
  62. package/types/CoreBluetooth.d.ts +657 -0
  63. package/types/CoreData.d.ts +2479 -0
  64. package/types/CoreFoundation.d.ts +5546 -0
  65. package/types/CoreGraphics.d.ts +3676 -0
  66. package/types/CoreHaptics.d.ts +361 -0
  67. package/types/CoreImage.d.ts +4781 -0
  68. package/types/CoreLocation.d.ts +564 -0
  69. package/types/CoreMIDI.d.ts +1538 -0
  70. package/types/CoreML.d.ts +905 -0
  71. package/types/CoreMedia.d.ts +2615 -0
  72. package/types/CoreMediaIO.d.ts +1046 -0
  73. package/types/CoreMotion.d.ts +316 -0
  74. package/types/CoreServices.d.ts +24810 -0
  75. package/types/CoreSpotlight.d.ts +789 -0
  76. package/types/CoreTelephony.d.ts +31 -0
  77. package/types/CoreText.d.ts +3973 -0
  78. package/types/CoreTransferable.d.ts +3 -0
  79. package/types/CoreVideo.d.ts +1162 -0
  80. package/types/CoreWLAN.d.ts +556 -0
  81. package/types/CryptoTokenKit.d.ts +548 -0
  82. package/types/DVDPlayback.d.ts +931 -0
  83. package/types/DataDetection.d.ts +66 -0
  84. package/types/DeviceCheck.d.ts +46 -0
  85. package/types/DeviceDiscoveryExtension.d.ts +142 -0
  86. package/types/DirectoryService.d.ts +966 -0
  87. package/types/DiscRecording.d.ts +2345 -0
  88. package/types/DiscRecordingUI.d.ts +288 -0
  89. package/types/DiskArbitration.d.ts +366 -0
  90. package/types/DriverKit.d.ts +639 -0
  91. package/types/EventKit.d.ts +640 -0
  92. package/types/ExceptionHandling.d.ts +56 -0
  93. package/types/ExecutionPolicy.d.ts +30 -0
  94. package/types/ExternalAccessory.d.ts +98 -0
  95. package/types/FSKit.d.ts +237 -0
  96. package/types/FileProvider.d.ts +495 -0
  97. package/types/FileProviderUI.d.ts +31 -0
  98. package/types/FinderSync.d.ts +165 -0
  99. package/types/FocusEngine.d.ts +133 -0
  100. package/types/ForceFeedback.d.ts +399 -0
  101. package/types/Foundation.d.ts +18216 -0
  102. package/types/GLKit.d.ts +937 -0
  103. package/types/GLUT.d.ts +1018 -0
  104. package/types/GSS.d.ts +855 -0
  105. package/types/GameController.d.ts +1394 -0
  106. package/types/GameKit.d.ts +1958 -0
  107. package/types/GameSave.d.ts +54 -0
  108. package/types/GameplayKit.d.ts +1645 -0
  109. package/types/HealthKit.d.ts +278 -0
  110. package/types/Hypervisor.d.ts +2079 -0
  111. package/types/ICADevices.d.ts +1400 -0
  112. package/types/IOBluetooth.d.ts +6094 -0
  113. package/types/IOBluetoothUI.d.ts +250 -0
  114. package/types/IOKit.d.ts +25804 -0
  115. package/types/IOSurface.d.ts +435 -0
  116. package/types/IOUSBHost.d.ts +809 -0
  117. package/types/ImageCaptureCore.d.ts +1104 -0
  118. package/types/ImageIO.d.ts +1697 -0
  119. package/types/InputMethodKit.d.ts +264 -0
  120. package/types/InstallerPlugins.d.ts +102 -0
  121. package/types/InstantMessage.d.ts +229 -0
  122. package/types/Intents.d.ts +1833 -0
  123. package/types/IntentsUI.d.ts +5 -0
  124. package/types/JavaRuntimeSupport.d.ts +520 -0
  125. package/types/JavaScriptCore.d.ts +934 -0
  126. package/types/Kerberos.d.ts +3754 -0
  127. package/types/Kernel.d.ts +33698 -0
  128. package/types/KernelManagement.d.ts +5 -0
  129. package/types/LatentSemanticMapping.d.ts +152 -0
  130. package/types/LinkPresentation.d.ts +57 -0
  131. package/types/LocalAuthentication.d.ts +94 -0
  132. package/types/MLCompute.d.ts +2343 -0
  133. package/types/MapKit.d.ts +2125 -0
  134. package/types/Matter.d.ts +151 -0
  135. package/types/MediaAccessibility.d.ts +137 -0
  136. package/types/MediaLibrary.d.ts +394 -0
  137. package/types/MediaPlayer.d.ts +475 -0
  138. package/types/MediaToolbox.d.ts +70 -0
  139. package/types/Metal.d.ts +4542 -0
  140. package/types/MetalFX.d.ts +107 -0
  141. package/types/MetalKit.d.ts +524 -0
  142. package/types/MetalPerformanceShaders.d.ts +9306 -0
  143. package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
  144. package/types/MetricKit.d.ts +231 -0
  145. package/types/ModelIO.d.ts +2908 -0
  146. package/types/MultipeerConnectivity.d.ts +348 -0
  147. package/types/NaturalLanguage.d.ts +556 -0
  148. package/types/NearbyInteraction.d.ts +51 -0
  149. package/types/NetFS.d.ts +99 -0
  150. package/types/Network.d.ts +1622 -0
  151. package/types/NetworkExtension.d.ts +1574 -0
  152. package/types/NotificationCenter.d.ts +103 -0
  153. package/types/OSAKit.d.ts +260 -0
  154. package/types/OSLog.d.ts +208 -0
  155. package/types/OpenAL.d.ts +314 -0
  156. package/types/OpenCL.d.ts +2489 -0
  157. package/types/OpenDirectory.d.ts +1919 -0
  158. package/types/OpenGL.d.ts +11322 -0
  159. package/types/PCSC.d.ts +534 -0
  160. package/types/PDFKit.d.ts +1575 -0
  161. package/types/PHASE.d.ts +166 -0
  162. package/types/ParavirtualizedGraphics.d.ts +153 -0
  163. package/types/PassKit.d.ts +1287 -0
  164. package/types/PencilKit.d.ts +201 -0
  165. package/types/Photos.d.ts +1125 -0
  166. package/types/PhotosUI.d.ts +397 -0
  167. package/types/PreferencePanes.d.ts +68 -0
  168. package/types/ProximityReaderStub.d.ts +5 -0
  169. package/types/PushKit.d.ts +45 -0
  170. package/types/Quartz.d.ts +1642 -0
  171. package/types/QuartzCore.d.ts +1398 -0
  172. package/types/QuickLook.d.ts +212 -0
  173. package/types/QuickLookThumbnailing.d.ts +131 -0
  174. package/types/QuickLookUI.d.ts +117 -0
  175. package/types/REVISION.json +5 -0
  176. package/types/ReplayKit.d.ts +294 -0
  177. package/types/Runtime.d.ts +51605 -0
  178. package/types/SafariServices.d.ts +430 -0
  179. package/types/SafetyKit.d.ts +7 -0
  180. package/types/SceneKit.d.ts +4996 -0
  181. package/types/ScreenCaptureKit.d.ts +16 -0
  182. package/types/ScreenSaver.d.ts +41 -0
  183. package/types/ScreenTime.d.ts +41 -0
  184. package/types/ScriptingBridge.d.ts +96 -0
  185. package/types/Security.d.ts +14336 -0
  186. package/types/SecurityFoundation.d.ts +53 -0
  187. package/types/SecurityInterface.d.ts +297 -0
  188. package/types/SensorKit.d.ts +7 -0
  189. package/types/ServiceManagement.d.ts +71 -0
  190. package/types/SharedWithYou.d.ts +9 -0
  191. package/types/SharedWithYouCore.d.ts +5 -0
  192. package/types/ShazamKit.d.ts +12 -0
  193. package/types/Social.d.ts +306 -0
  194. package/types/SoundAnalysis.d.ts +177 -0
  195. package/types/Speech.d.ts +246 -0
  196. package/types/SpriteKit.d.ts +2766 -0
  197. package/types/StoreKit.d.ts +509 -0
  198. package/types/SyncServices.d.ts +551 -0
  199. package/types/SystemConfiguration.d.ts +1415 -0
  200. package/types/SystemExtensions.d.ts +89 -0
  201. package/types/TWAIN.d.ts +380 -0
  202. package/types/Tcl.d.ts +4013 -0
  203. package/types/ThreadNetwork.d.ts +77 -0
  204. package/types/Tk.d.ts +3750 -0
  205. package/types/UIUtilities.d.ts +31 -0
  206. package/types/UniformTypeIdentifiers.d.ts +358 -0
  207. package/types/UserNotifications.d.ts +538 -0
  208. package/types/UserNotificationsUI.d.ts +38 -0
  209. package/types/VideoDecodeAcceleration.d.ts +50 -0
  210. package/types/VideoSubscriberAccount.d.ts +139 -0
  211. package/types/VideoToolbox.d.ts +907 -0
  212. package/types/Virtualization.d.ts +302 -0
  213. package/types/Vision.d.ts +1723 -0
  214. package/types/WebKit.d.ts +5195 -0
  215. package/types/WidgetKit.d.ts +9 -0
  216. package/types/_LocationEssentials.d.ts +159 -0
  217. package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
  218. package/types/iTunesLibrary.d.ts +528 -0
  219. package/types/index.d.ts +9 -0
  220. package/types/vecLib.d.ts +33586 -0
  221. package/types/vmnet.d.ts +178 -0
  222. package/src/appkit.d.ts +0 -472
@@ -0,0 +1,1125 @@
1
+ /// <reference types="@nativescript/objc-node-api" />
2
+ /// <reference path="./Runtime.d.ts" />
3
+
4
+ declare const PHInvalidAssetResourceDataRequestID: number
5
+
6
+ declare const PHImageCancelledKey: string
7
+
8
+ declare const PHImageResultIsDegradedKey: string
9
+
10
+ declare const PHImageResultIsInCloudKey: string
11
+
12
+ declare const PHInvalidImageRequestID: number
13
+
14
+ declare const PHContentEditingInputCancelledKey: string
15
+
16
+ declare const PHContentEditingInputResultIsInCloudKey: string
17
+
18
+ declare const PHLivePhotoInfoIsDegradedKey: string
19
+
20
+ declare const PHImageManagerMaximumSize: CGSize
21
+
22
+ declare const PHLivePhotoRequestIDInvalid: number
23
+
24
+ declare const PHLivePhotoShouldRenderAtPlaybackTime: string
25
+
26
+ declare const PHImageResultRequestIDKey: string
27
+
28
+ declare const PHImageErrorKey: string
29
+
30
+ declare const PHContentEditingInputErrorKey: string
31
+
32
+ declare const PHLivePhotoEditingErrorDomain: string
33
+
34
+ declare const PHLocalIdentifierNotFound: string
35
+
36
+ declare const PHLivePhotoInfoCancelledKey: string
37
+
38
+ declare const PHPhotosErrorDomain: string
39
+
40
+ declare const PHLivePhotoInfoErrorKey: string
41
+
42
+ declare const PHVideoRequestOptionsDeliveryMode: {
43
+ Automatic: 0
44
+ HighQualityFormat: 1
45
+ MediumQualityFormat: 2
46
+ FastFormat: 3
47
+ }
48
+
49
+ declare const PHVideoRequestOptionsVersion: {
50
+ Current: 0
51
+ Original: 1
52
+ }
53
+
54
+ declare const PHImageRequestOptionsResizeMode: {
55
+ None: 0
56
+ Fast: 1
57
+ Exact: 2
58
+ }
59
+
60
+ declare const PHImageRequestOptionsDeliveryMode: {
61
+ Opportunistic: 0
62
+ HighQualityFormat: 1
63
+ FastFormat: 2
64
+ }
65
+
66
+ declare const PHLivePhotoEditingErrorCode: {
67
+ Unknown: 0
68
+ Aborted: 1
69
+ }
70
+
71
+ declare const PHLivePhotoFrameType: {
72
+ Photo: 0
73
+ Video: 1
74
+ }
75
+
76
+ declare const PHPhotosError: {
77
+ InternalError: -1
78
+ UserCancelled: 3072
79
+ LibraryVolumeOffline: 3114
80
+ RelinquishingLibraryBundleToWriter: 3142
81
+ SwitchingSystemPhotoLibrary: 3143
82
+ NetworkAccessRequired: 3164
83
+ Invalid: -1
84
+ }
85
+
86
+ declare const PHAssetSourceType: {
87
+ TypeNone: 0
88
+ TypeUserLibrary: 1
89
+ TypeCloudShared: 2
90
+ TypeiTunesSynced: 4
91
+ }
92
+
93
+ declare const PHAssetMediaSubtype: {
94
+ None: 0
95
+ PhotoPanorama: 1
96
+ PhotoHDR: 2
97
+ PhotoScreenshot: 4
98
+ PhotoLive: 8
99
+ PhotoDepthEffect: 16
100
+ PhotoAnimation: 64
101
+ VideoStreamed: 65536
102
+ VideoHighFrameRate: 131072
103
+ VideoTimelapse: 262144
104
+ VideoScreenRecording: 524288
105
+ }
106
+
107
+ declare const PHAssetPlaybackStyle: {
108
+ Unsupported: 0
109
+ Image: 1
110
+ ImageAnimated: 2
111
+ LivePhoto: 3
112
+ Video: 4
113
+ VideoLooping: 5
114
+ }
115
+
116
+ declare const PHAssetEditOperation: {
117
+ Delete: 1
118
+ Content: 2
119
+ Properties: 3
120
+ }
121
+
122
+ declare const PHCollectionEditOperation: {
123
+ DeleteContent: 1
124
+ RemoveContent: 2
125
+ AddContent: 3
126
+ CreateContent: 4
127
+ RearrangeContent: 5
128
+ Delete: 6
129
+ Rename: 7
130
+ }
131
+
132
+ declare const PHImageContentMode: {
133
+ AspectFit: 0
134
+ AspectFill: 1
135
+ Default: 0
136
+ }
137
+
138
+ declare const PHAssetMediaType: {
139
+ Unknown: 0
140
+ Image: 1
141
+ Video: 2
142
+ Audio: 3
143
+ }
144
+
145
+ declare const PHCollectionListSubtype: {
146
+ RegularFolder: 100
147
+ SmartFolderEvents: 200
148
+ SmartFolderFaces: 201
149
+ Any: 9223372036854775807
150
+ }
151
+
152
+ declare const PHCollectionListType: {
153
+ PHCollectionListTypeFolder: 2
154
+ Smart: 3
155
+ }
156
+
157
+ declare const PHAuthorizationStatus: {
158
+ NotDetermined: 0
159
+ Restricted: 1
160
+ Denied: 2
161
+ Authorized: 3
162
+ Limited: 4
163
+ }
164
+
165
+ declare const PHAssetCollectionSubtype: {
166
+ AlbumRegular: 2
167
+ AlbumSyncedEvent: 3
168
+ AlbumSyncedFaces: 4
169
+ AlbumSyncedAlbum: 5
170
+ AlbumImported: 6
171
+ AlbumMyPhotoStream: 100
172
+ AlbumCloudShared: 101
173
+ SmartAlbumGeneric: 200
174
+ SmartAlbumPanoramas: 201
175
+ SmartAlbumVideos: 202
176
+ SmartAlbumFavorites: 203
177
+ SmartAlbumTimelapses: 204
178
+ SmartAlbumAllHidden: 205
179
+ SmartAlbumRecentlyAdded: 206
180
+ SmartAlbumBursts: 207
181
+ SmartAlbumSlomoVideos: 208
182
+ SmartAlbumUserLibrary: 209
183
+ SmartAlbumSelfPortraits: 210
184
+ SmartAlbumScreenshots: 211
185
+ SmartAlbumDepthEffect: 212
186
+ SmartAlbumLivePhotos: 213
187
+ SmartAlbumAnimated: 214
188
+ SmartAlbumLongExposures: 215
189
+ SmartAlbumUnableToUpload: 216
190
+ SmartAlbumScreenRecordings: 220
191
+ Any: 9223372036854775807
192
+ }
193
+
194
+ declare const PHAccessLevel: {
195
+ AddOnly: 1
196
+ ReadWrite: 2
197
+ }
198
+
199
+ declare const PHAssetBurstSelectionType: {
200
+ None: 0
201
+ AutoPick: 1
202
+ UserPick: 2
203
+ }
204
+
205
+ declare const PHImageRequestOptionsVersion: {
206
+ Current: 0
207
+ Unadjusted: 1
208
+ Original: 2
209
+ }
210
+
211
+ declare const PHAssetCollectionType: {
212
+ PHAssetCollectionTypeAlbum: 1
213
+ Smart: 2
214
+ }
215
+
216
+ declare const PHAssetResourceType: {
217
+ Photo: 1
218
+ Video: 2
219
+ Audio: 3
220
+ AlternatePhoto: 4
221
+ FullSizePhoto: 5
222
+ FullSizeVideo: 6
223
+ AdjustmentData: 7
224
+ AdjustmentBasePhoto: 8
225
+ PairedVideo: 9
226
+ FullSizePairedVideo: 10
227
+ AdjustmentBasePairedVideo: 11
228
+ AdjustmentBaseVideo: 12
229
+ }
230
+
231
+ declare const PHAssetPlaybackVariation: {
232
+ None: 0
233
+ Autoloop: 1
234
+ Mirror: 2
235
+ LongExposure: 3
236
+ }
237
+
238
+ declare interface PHPhotoLibraryChangeObserver extends NSObjectProtocol {
239
+ photoLibraryDidChange(changeInstance: PHChange): void
240
+ }
241
+
242
+ declare class PHPhotoLibraryChangeObserver
243
+ extends NativeObject
244
+ implements PHPhotoLibraryChangeObserver {}
245
+
246
+ declare interface PHLivePhotoFrame {
247
+ readonly image: CIImage
248
+
249
+ readonly time: CMTime
250
+
251
+ readonly type: interop.Enum<typeof PHLivePhotoFrameType>
252
+
253
+ readonly renderScale: number
254
+ }
255
+
256
+ declare class PHLivePhotoFrame extends NativeObject implements PHLivePhotoFrame {}
257
+
258
+ declare interface PHPhotoLibraryAvailabilityObserver extends NSObjectProtocol {
259
+ photoLibraryDidBecomeUnavailable(photoLibrary: PHPhotoLibrary): void
260
+ }
261
+
262
+ declare class PHPhotoLibraryAvailabilityObserver
263
+ extends NativeObject
264
+ implements PHPhotoLibraryAvailabilityObserver {}
265
+
266
+ declare class PHProjectChangeRequest extends PHChangeRequest {
267
+ initWithProject(project: PHProject): this
268
+
269
+ title: string
270
+
271
+ projectExtensionData: NSData
272
+
273
+ setKeyAsset(keyAsset: PHAsset | null): void
274
+
275
+ setProjectPreviewImage(previewImage: NSImage): void
276
+
277
+ removeAssets(assets: NSFastEnumeration): void
278
+ }
279
+
280
+ declare class PHProject extends PHAssetCollection {
281
+ readonly projectExtensionData: NSData
282
+
283
+ readonly hasProjectPreview: boolean
284
+ }
285
+
286
+ declare class PHContentEditingInput extends NSObject {
287
+ readonly mediaType: interop.Enum<typeof PHAssetMediaType>
288
+
289
+ readonly mediaSubtypes: interop.Enum<typeof PHAssetMediaSubtype>
290
+
291
+ readonly creationDate: NSDate
292
+
293
+ readonly location: CLLocation
294
+
295
+ readonly uniformTypeIdentifier: string
296
+
297
+ readonly playbackStyle: interop.Enum<typeof PHAssetPlaybackStyle>
298
+
299
+ readonly adjustmentData: PHAdjustmentData
300
+
301
+ readonly displaySizeImage: NSImage
302
+
303
+ readonly fullSizeImageURL: NSURL
304
+
305
+ readonly fullSizeImageOrientation: number
306
+
307
+ readonly audiovisualAsset: AVAsset
308
+
309
+ readonly livePhoto: PHLivePhoto
310
+ }
311
+
312
+ declare class PHAdjustmentData extends NSObject {
313
+ initWithFormatIdentifierFormatVersionData(
314
+ formatIdentifier: string,
315
+ formatVersion: string,
316
+ data: NSData,
317
+ ): this
318
+
319
+ readonly formatIdentifier: string
320
+
321
+ readonly formatVersion: string
322
+
323
+ readonly data: NSData
324
+ }
325
+
326
+ declare class PHAssetResourceManager extends NSObject {
327
+ static defaultManager(): PHAssetResourceManager
328
+
329
+ requestDataForAssetResourceOptionsDataReceivedHandlerCompletionHandler(
330
+ resource: PHAssetResource,
331
+ options: PHAssetResourceRequestOptions | null,
332
+ handler: (p1: NSData) => void,
333
+ completionHandler: (p1: NSError) => void | null,
334
+ ): number
335
+
336
+ writeDataForAssetResourceToFileOptionsCompletionHandler(
337
+ resource: PHAssetResource,
338
+ fileURL: NSURL,
339
+ options: PHAssetResourceRequestOptions | null,
340
+ completionHandler: (p1: NSError) => void | null,
341
+ ): void
342
+
343
+ cancelDataRequest(requestID: number): void
344
+ }
345
+
346
+ declare class PHImageManager extends NSObject {
347
+ static defaultManager(): PHImageManager
348
+
349
+ requestImageForAssetTargetSizeContentModeOptionsResultHandler(
350
+ asset: PHAsset,
351
+ targetSize: CGSize,
352
+ contentMode: interop.Enum<typeof PHImageContentMode>,
353
+ options: PHImageRequestOptions | null,
354
+ resultHandler: (
355
+ p1: NSImage,
356
+ p2: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
357
+ ) => void | null,
358
+ ): number
359
+
360
+ requestImageDataAndOrientationForAssetOptionsResultHandler(
361
+ asset: PHAsset,
362
+ options: PHImageRequestOptions | null,
363
+ resultHandler: (
364
+ p1: NSData,
365
+ p2: string,
366
+ p3: interop.Enum<typeof CGImagePropertyOrientation>,
367
+ p4: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
368
+ ) => void | null,
369
+ ): number
370
+
371
+ cancelImageRequest(requestID: number): void
372
+
373
+ requestLivePhotoForAssetTargetSizeContentModeOptionsResultHandler(
374
+ asset: PHAsset,
375
+ targetSize: CGSize,
376
+ contentMode: interop.Enum<typeof PHImageContentMode>,
377
+ options: PHLivePhotoRequestOptions | null,
378
+ resultHandler: (
379
+ p1: PHLivePhoto,
380
+ p2: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
381
+ ) => void | null,
382
+ ): number
383
+
384
+ requestPlayerItemForVideoOptionsResultHandler(
385
+ asset: PHAsset,
386
+ options: PHVideoRequestOptions | null,
387
+ resultHandler: (
388
+ p1: AVPlayerItem,
389
+ p2: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
390
+ ) => void | null,
391
+ ): number
392
+
393
+ requestExportSessionForVideoOptionsExportPresetResultHandler(
394
+ asset: PHAsset,
395
+ options: PHVideoRequestOptions | null,
396
+ exportPreset: string,
397
+ resultHandler: (
398
+ p1: AVAssetExportSession,
399
+ p2: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
400
+ ) => void | null,
401
+ ): number
402
+
403
+ requestAVAssetForVideoOptionsResultHandler(
404
+ asset: PHAsset,
405
+ options: PHVideoRequestOptions | null,
406
+ resultHandler: (
407
+ p1: AVAsset,
408
+ p2: AVAudioMix,
409
+ p3: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
410
+ ) => void | null,
411
+ ): number
412
+ }
413
+
414
+ declare class PHVideoRequestOptions extends NSObject implements NSCopying {
415
+ networkAccessAllowed: boolean
416
+
417
+ version: interop.Enum<typeof PHVideoRequestOptionsVersion>
418
+
419
+ deliveryMode: interop.Enum<typeof PHVideoRequestOptionsDeliveryMode>
420
+
421
+ progressHandler: (
422
+ p1: number,
423
+ p2: NSError,
424
+ p3: interop.PointerConvertible,
425
+ p4: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
426
+ ) => void
427
+
428
+ isNetworkAccessAllowed(): boolean
429
+
430
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
431
+ }
432
+
433
+ declare class PHLivePhotoEditingContext extends NSObject {
434
+ initWithLivePhotoEditingInput(livePhotoInput: PHContentEditingInput): this
435
+
436
+ readonly fullSizeImage: CIImage
437
+
438
+ readonly duration: CMTime
439
+
440
+ readonly photoTime: CMTime
441
+
442
+ frameProcessor: (p1: PHLivePhotoFrame, p2: interop.PointerConvertible) => CIImage
443
+
444
+ audioVolume: number
445
+
446
+ readonly orientation: interop.Enum<typeof CGImagePropertyOrientation>
447
+
448
+ prepareLivePhotoForPlaybackWithTargetSizeOptionsCompletionHandler(
449
+ targetSize: CGSize,
450
+ options:
451
+ | NSDictionary<interop.Object, interop.Object>
452
+ | Record<interop.Object, interop.Object>
453
+ | null,
454
+ handler: (p1: PHLivePhoto, p2: NSError) => void | null,
455
+ ): void
456
+
457
+ saveLivePhotoToOutputOptionsCompletionHandler(
458
+ output: PHContentEditingOutput,
459
+ options:
460
+ | NSDictionary<interop.Object, interop.Object>
461
+ | Record<interop.Object, interop.Object>
462
+ | null,
463
+ handler: (p1: boolean, p2: NSError) => void | null,
464
+ ): void
465
+
466
+ cancel(): void
467
+ }
468
+
469
+ declare class PHCollectionListChangeRequest extends PHChangeRequest {
470
+ static creationRequestForCollectionListWithTitle<This extends abstract new (...args: any) => any>(
471
+ this: This,
472
+ title: string,
473
+ ): InstanceType<This>
474
+
475
+ readonly placeholderForCreatedCollectionList: PHObjectPlaceholder
476
+
477
+ static deleteCollectionLists(collectionLists: NSFastEnumeration): void
478
+
479
+ static changeRequestForCollectionList<This extends abstract new (...args: any) => any>(
480
+ this: This,
481
+ collectionList: PHCollectionList,
482
+ ): InstanceType<This>
483
+
484
+ static changeRequestForCollectionListChildCollections<
485
+ This extends abstract new (...args: any) => any,
486
+ >(
487
+ this: This,
488
+ collectionList: PHCollectionList,
489
+ childCollections: PHFetchResult,
490
+ ): InstanceType<This>
491
+
492
+ static changeRequestForTopLevelCollectionListUserCollections<
493
+ This extends abstract new (...args: any) => any,
494
+ >(this: This, childCollections: PHFetchResult): InstanceType<This>
495
+
496
+ title: string
497
+
498
+ addChildCollections(collections: NSFastEnumeration): void
499
+
500
+ insertChildCollectionsAtIndexes(collections: NSFastEnumeration, indexes: NSIndexSet): void
501
+
502
+ removeChildCollections(collections: NSFastEnumeration): void
503
+
504
+ removeChildCollectionsAtIndexes(indexes: NSIndexSet): void
505
+
506
+ replaceChildCollectionsAtIndexesWithChildCollections(
507
+ indexes: NSIndexSet,
508
+ collections: NSFastEnumeration,
509
+ ): void
510
+
511
+ moveChildCollectionsAtIndexesToIndex(indexes: NSIndexSet, toIndex: number): void
512
+ }
513
+
514
+ declare class PHAssetCollectionChangeRequest extends PHChangeRequest {
515
+ static creationRequestForAssetCollectionWithTitle<
516
+ This extends abstract new (...args: any) => any,
517
+ >(this: This, title: string): InstanceType<This>
518
+
519
+ readonly placeholderForCreatedAssetCollection: PHObjectPlaceholder
520
+
521
+ static deleteAssetCollections(assetCollections: NSFastEnumeration): void
522
+
523
+ static changeRequestForAssetCollection<This extends abstract new (...args: any) => any>(
524
+ this: This,
525
+ assetCollection: PHAssetCollection,
526
+ ): InstanceType<This>
527
+
528
+ static changeRequestForAssetCollectionAssets<This extends abstract new (...args: any) => any>(
529
+ this: This,
530
+ assetCollection: PHAssetCollection,
531
+ assets: PHFetchResult | null,
532
+ ): InstanceType<This>
533
+
534
+ title: string
535
+
536
+ addAssets(assets: NSFastEnumeration): void
537
+
538
+ insertAssetsAtIndexes(assets: NSFastEnumeration, indexes: NSIndexSet): void
539
+
540
+ removeAssets(assets: NSFastEnumeration): void
541
+
542
+ removeAssetsAtIndexes(indexes: NSIndexSet): void
543
+
544
+ replaceAssetsAtIndexesWithAssets(indexes: NSIndexSet, assets: NSFastEnumeration): void
545
+
546
+ moveAssetsAtIndexesToIndex(fromIndexes: NSIndexSet, toIndex: number): void
547
+ }
548
+
549
+ declare class PHAssetCreationRequest extends PHAssetChangeRequest {
550
+ static creationRequestForAsset<This extends abstract new (...args: any) => any>(
551
+ this: This,
552
+ ): InstanceType<This>
553
+
554
+ static supportsAssetResourceTypes(types: NSArray<interop.Object> | Array<interop.Object>): boolean
555
+
556
+ addResourceWithTypeFileURLOptions(
557
+ type: interop.Enum<typeof PHAssetResourceType>,
558
+ fileURL: NSURL,
559
+ options: PHAssetResourceCreationOptions | null,
560
+ ): void
561
+
562
+ addResourceWithTypeDataOptions(
563
+ type: interop.Enum<typeof PHAssetResourceType>,
564
+ data: NSData,
565
+ options: PHAssetResourceCreationOptions | null,
566
+ ): void
567
+ }
568
+
569
+ declare class PHAssetResourceCreationOptions extends NSObject implements NSCopying {
570
+ originalFilename: string
571
+
572
+ uniformTypeIdentifier: string
573
+
574
+ shouldMoveFile: boolean
575
+
576
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
577
+ }
578
+
579
+ declare class PHContentEditingOutput extends NSObject {
580
+ initWithContentEditingInput(contentEditingInput: PHContentEditingInput): this
581
+
582
+ adjustmentData: PHAdjustmentData
583
+
584
+ readonly renderedContentURL: NSURL
585
+
586
+ initWithPlaceholderForCreatedAsset(placeholderForCreatedAsset: PHObjectPlaceholder): this
587
+ }
588
+
589
+ declare class PHFetchResultChangeDetails<ObjectType = interop.Object> extends NSObject {
590
+ readonly fetchResultBeforeChanges: PHFetchResult
591
+
592
+ readonly fetchResultAfterChanges: PHFetchResult
593
+
594
+ readonly hasIncrementalChanges: boolean
595
+
596
+ readonly removedIndexes: NSIndexSet
597
+
598
+ readonly removedObjects: NSArray
599
+
600
+ readonly insertedIndexes: NSIndexSet
601
+
602
+ readonly insertedObjects: NSArray
603
+
604
+ readonly changedIndexes: NSIndexSet
605
+
606
+ readonly changedObjects: NSArray
607
+
608
+ enumerateMovesWithBlock(handler: (p1: number, p2: number) => void): void
609
+
610
+ readonly hasMoves: boolean
611
+
612
+ static changeDetailsFromFetchResultToFetchResultChangedObjects<
613
+ ObjectType,
614
+ This extends abstract new (...args: any) => any,
615
+ >(
616
+ this: This,
617
+ fromResult: PHFetchResult,
618
+ toResult: PHFetchResult,
619
+ changedObjects: NSArray<interop.Object> | Array<interop.Object>,
620
+ ): InstanceType<This>
621
+ }
622
+
623
+ declare class PHChange extends NSObject {
624
+ changeDetailsForObject(object: PHObject): PHObjectChangeDetails
625
+
626
+ changeDetailsForFetchResult(object: PHFetchResult): PHFetchResultChangeDetails
627
+ }
628
+
629
+ declare class PHFetchResult<ObjectType = interop.Object>
630
+ extends NSObject
631
+ implements NSCopying, NSFastEnumeration
632
+ {
633
+ readonly count: number
634
+
635
+ objectAtIndex(index: number): ObjectType
636
+
637
+ objectAtIndexedSubscript(idx: number): ObjectType
638
+
639
+ containsObject(anObject: ObjectType): boolean
640
+
641
+ indexOfObject(anObject: ObjectType): number
642
+
643
+ indexOfObjectInRange(anObject: ObjectType, range: _NSRange): number
644
+
645
+ readonly firstObject: ObjectType
646
+
647
+ readonly lastObject: ObjectType
648
+
649
+ objectsAtIndexes(indexes: NSIndexSet): NSArray
650
+
651
+ enumerateObjectsUsingBlock(
652
+ block: (p1: interop.Object, p2: number, p3: interop.PointerConvertible) => void,
653
+ ): void
654
+
655
+ enumerateObjectsWithOptionsUsingBlock(
656
+ opts: interop.Enum<typeof NSEnumerationOptions>,
657
+ block: (p1: interop.Object, p2: number, p3: interop.PointerConvertible) => void,
658
+ ): void
659
+
660
+ enumerateObjectsAtIndexesOptionsUsingBlock(
661
+ s: NSIndexSet,
662
+ opts: interop.Enum<typeof NSEnumerationOptions>,
663
+ block: (p1: interop.Object, p2: number, p3: interop.PointerConvertible) => void,
664
+ ): void
665
+
666
+ countOfAssetsWithMediaType(mediaType: interop.Enum<typeof PHAssetMediaType>): number
667
+
668
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
669
+
670
+ countByEnumeratingWithStateObjectsCount(
671
+ state: interop.PointerConvertible,
672
+ buffer: interop.PointerConvertible,
673
+ len: number,
674
+ ): number
675
+
676
+ readonly [Symbol.iterator]: () => Iterator<ObjectType>
677
+ }
678
+
679
+ declare class PHObjectPlaceholder extends PHObject {}
680
+
681
+ declare class PHPhotoLibrary extends NSObject {
682
+ static sharedPhotoLibrary(): PHPhotoLibrary
683
+
684
+ static authorizationStatusForAccessLevel(
685
+ accessLevel: interop.Enum<typeof PHAccessLevel>,
686
+ ): interop.Enum<typeof PHAuthorizationStatus>
687
+
688
+ static requestAuthorizationForAccessLevelHandler(
689
+ accessLevel: interop.Enum<typeof PHAccessLevel>,
690
+ handler: (p1: interop.Enum<typeof PHAuthorizationStatus>) => void,
691
+ ): void
692
+
693
+ static authorizationStatus(): interop.Enum<typeof PHAuthorizationStatus>
694
+
695
+ static requestAuthorization(
696
+ handler: (p1: interop.Enum<typeof PHAuthorizationStatus>) => void,
697
+ ): void
698
+
699
+ readonly unavailabilityReason: NSError
700
+
701
+ registerAvailabilityObserver(observer: PHPhotoLibraryAvailabilityObserver): void
702
+
703
+ unregisterAvailabilityObserver(observer: PHPhotoLibraryAvailabilityObserver): void
704
+
705
+ performChangesCompletionHandler(
706
+ changeBlock: () => void,
707
+ completionHandler: (p1: boolean, p2: NSError) => void | null,
708
+ ): void
709
+
710
+ performChangesAndWaitError(changeBlock: () => void, error: interop.PointerConvertible): boolean
711
+
712
+ registerChangeObserver(observer: PHPhotoLibraryChangeObserver): void
713
+
714
+ unregisterChangeObserver(observer: PHPhotoLibraryChangeObserver): void
715
+
716
+ localIdentifiersForCloudIdentifiers(
717
+ cloudIdentifiers: NSArray<interop.Object> | Array<interop.Object>,
718
+ ): NSArray
719
+
720
+ cloudIdentifiersForLocalIdentifiers(
721
+ localIdentifiers: NSArray<interop.Object> | Array<interop.Object>,
722
+ ): NSArray
723
+ }
724
+
725
+ declare class PHLivePhoto extends NSObject implements NSCopying, NSSecureCoding {
726
+ readonly size: CGSize
727
+
728
+ static requestLivePhotoWithResourceFileURLsPlaceholderImageTargetSizeContentModeResultHandler(
729
+ fileURLs: NSArray<interop.Object> | Array<interop.Object>,
730
+ image: NSImage | null,
731
+ targetSize: CGSize,
732
+ contentMode: interop.Enum<typeof PHImageContentMode>,
733
+ resultHandler: (
734
+ p1: PHLivePhoto,
735
+ p2: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
736
+ ) => void | null,
737
+ ): number
738
+
739
+ static cancelLivePhotoRequestWithRequestID(requestID: number): void
740
+
741
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
742
+
743
+ static readonly supportsSecureCoding: boolean
744
+
745
+ encodeWithCoder(coder: NSCoder): void
746
+
747
+ initWithCoder(coder: NSCoder): this
748
+ }
749
+
750
+ declare class PHObjectChangeDetails<ObjectType = interop.Object> extends NSObject {
751
+ readonly objectBeforeChanges: ObjectType
752
+
753
+ readonly objectAfterChanges: ObjectType
754
+
755
+ readonly assetContentChanged: boolean
756
+
757
+ readonly objectWasDeleted: boolean
758
+ }
759
+
760
+ declare class PHCollectionList extends PHCollection {
761
+ readonly collectionListType: interop.Enum<typeof PHCollectionListType>
762
+
763
+ readonly collectionListSubtype: interop.Enum<typeof PHCollectionListSubtype>
764
+
765
+ readonly startDate: NSDate
766
+
767
+ readonly endDate: NSDate
768
+
769
+ readonly localizedLocationNames: NSArray
770
+
771
+ static fetchCollectionListsContainingCollectionOptions(
772
+ collection: PHCollection,
773
+ options: PHFetchOptions | null,
774
+ ): PHFetchResult
775
+
776
+ static fetchCollectionListsWithLocalIdentifiersOptions(
777
+ identifiers: NSArray<interop.Object> | Array<interop.Object>,
778
+ options: PHFetchOptions | null,
779
+ ): PHFetchResult
780
+
781
+ static fetchCollectionListsWithTypeSubtypeOptions(
782
+ collectionListType: interop.Enum<typeof PHCollectionListType>,
783
+ subtype: interop.Enum<typeof PHCollectionListSubtype>,
784
+ options: PHFetchOptions | null,
785
+ ): PHFetchResult
786
+
787
+ static transientCollectionListWithCollectionsTitle(
788
+ collections: NSArray<interop.Object> | Array<interop.Object>,
789
+ title: string | null,
790
+ ): PHCollectionList
791
+
792
+ static transientCollectionListWithCollectionsFetchResultTitle(
793
+ fetchResult: PHFetchResult,
794
+ title: string | null,
795
+ ): PHCollectionList
796
+ }
797
+
798
+ declare class PHCachingImageManager extends PHImageManager {
799
+ allowsCachingHighQualityImages: boolean
800
+
801
+ startCachingImagesForAssetsTargetSizeContentModeOptions(
802
+ assets: NSArray<interop.Object> | Array<interop.Object>,
803
+ targetSize: CGSize,
804
+ contentMode: interop.Enum<typeof PHImageContentMode>,
805
+ options: PHImageRequestOptions | null,
806
+ ): void
807
+
808
+ stopCachingImagesForAssetsTargetSizeContentModeOptions(
809
+ assets: NSArray<interop.Object> | Array<interop.Object>,
810
+ targetSize: CGSize,
811
+ contentMode: interop.Enum<typeof PHImageContentMode>,
812
+ options: PHImageRequestOptions | null,
813
+ ): void
814
+
815
+ stopCachingImagesForAllAssets(): void
816
+ }
817
+
818
+ declare class PHAssetChangeRequest extends PHChangeRequest {
819
+ static creationRequestForAssetFromImage<This extends abstract new (...args: any) => any>(
820
+ this: This,
821
+ image: NSImage,
822
+ ): InstanceType<This>
823
+
824
+ static creationRequestForAssetFromImageAtFileURL<This extends abstract new (...args: any) => any>(
825
+ this: This,
826
+ fileURL: NSURL,
827
+ ): InstanceType<This>
828
+
829
+ static creationRequestForAssetFromVideoAtFileURL<This extends abstract new (...args: any) => any>(
830
+ this: This,
831
+ fileURL: NSURL,
832
+ ): InstanceType<This>
833
+
834
+ readonly placeholderForCreatedAsset: PHObjectPlaceholder
835
+
836
+ static deleteAssets(assets: NSFastEnumeration): void
837
+
838
+ static changeRequestForAsset<This extends abstract new (...args: any) => any>(
839
+ this: This,
840
+ asset: PHAsset,
841
+ ): InstanceType<This>
842
+
843
+ creationDate: NSDate
844
+
845
+ location: CLLocation
846
+
847
+ favorite: boolean
848
+
849
+ hidden: boolean
850
+
851
+ contentEditingOutput: PHContentEditingOutput
852
+
853
+ revertAssetContentToOriginal(): void
854
+
855
+ isFavorite(): boolean
856
+
857
+ isHidden(): boolean
858
+ }
859
+
860
+ declare class PHCloudIdentifier extends NSObject implements NSSecureCoding {
861
+ static readonly notFoundIdentifier: PHCloudIdentifier
862
+
863
+ initWithStringValue(stringValue: string): this
864
+
865
+ readonly stringValue: string
866
+
867
+ static readonly supportsSecureCoding: boolean
868
+
869
+ encodeWithCoder(coder: NSCoder): void
870
+
871
+ initWithCoder(coder: NSCoder): this
872
+ }
873
+
874
+ declare class PHAssetResource extends NSObject {
875
+ readonly type: interop.Enum<typeof PHAssetResourceType>
876
+
877
+ readonly assetLocalIdentifier: string
878
+
879
+ readonly originalFilename: string
880
+
881
+ readonly uniformTypeIdentifier: string
882
+
883
+ static assetResourcesForAsset(asset: PHAsset): NSArray
884
+
885
+ static assetResourcesForLivePhoto(livePhoto: PHLivePhoto): NSArray
886
+ }
887
+
888
+ declare class PHObject extends NSObject implements NSCopying {
889
+ readonly localIdentifier: string
890
+
891
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
892
+ }
893
+
894
+ declare class PHLivePhotoRequestOptions extends NSObject implements NSCopying {
895
+ version: interop.Enum<typeof PHImageRequestOptionsVersion>
896
+
897
+ deliveryMode: interop.Enum<typeof PHImageRequestOptionsDeliveryMode>
898
+
899
+ networkAccessAllowed: boolean
900
+
901
+ progressHandler: (
902
+ p1: number,
903
+ p2: NSError,
904
+ p3: interop.PointerConvertible,
905
+ p4: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
906
+ ) => void
907
+
908
+ isNetworkAccessAllowed(): boolean
909
+
910
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
911
+ }
912
+
913
+ declare class PHImageRequestOptions extends NSObject implements NSCopying {
914
+ version: interop.Enum<typeof PHImageRequestOptionsVersion>
915
+
916
+ deliveryMode: interop.Enum<typeof PHImageRequestOptionsDeliveryMode>
917
+
918
+ resizeMode: interop.Enum<typeof PHImageRequestOptionsResizeMode>
919
+
920
+ normalizedCropRect: CGRect
921
+
922
+ networkAccessAllowed: boolean
923
+
924
+ synchronous: boolean
925
+
926
+ progressHandler: (
927
+ p1: number,
928
+ p2: NSError,
929
+ p3: interop.PointerConvertible,
930
+ p4: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
931
+ ) => void
932
+
933
+ isNetworkAccessAllowed(): boolean
934
+
935
+ isSynchronous(): boolean
936
+
937
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
938
+ }
939
+
940
+ declare class PHAssetResourceRequestOptions extends NSObject implements NSCopying {
941
+ networkAccessAllowed: boolean
942
+
943
+ progressHandler: (p1: number) => void
944
+
945
+ isNetworkAccessAllowed(): boolean
946
+
947
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
948
+ }
949
+
950
+ declare class PHAsset extends PHObject {
951
+ readonly playbackStyle: interop.Enum<typeof PHAssetPlaybackStyle>
952
+
953
+ readonly playbackVariation: interop.Enum<typeof PHAssetPlaybackVariation>
954
+
955
+ readonly mediaType: interop.Enum<typeof PHAssetMediaType>
956
+
957
+ readonly mediaSubtypes: interop.Enum<typeof PHAssetMediaSubtype>
958
+
959
+ readonly pixelWidth: number
960
+
961
+ readonly pixelHeight: number
962
+
963
+ readonly creationDate: NSDate
964
+
965
+ readonly modificationDate: NSDate
966
+
967
+ readonly location: CLLocation
968
+
969
+ readonly duration: number
970
+
971
+ readonly hidden: boolean
972
+
973
+ readonly favorite: boolean
974
+
975
+ readonly syncFailureHidden: boolean
976
+
977
+ readonly burstIdentifier: string
978
+
979
+ readonly burstSelectionTypes: interop.Enum<typeof PHAssetBurstSelectionType>
980
+
981
+ readonly representsBurst: boolean
982
+
983
+ readonly sourceType: interop.Enum<typeof PHAssetSourceType>
984
+
985
+ canPerformEditOperation(editOperation: interop.Enum<typeof PHAssetEditOperation>): boolean
986
+
987
+ static fetchAssetsInAssetCollectionOptions(
988
+ assetCollection: PHAssetCollection,
989
+ options: PHFetchOptions | null,
990
+ ): PHFetchResult
991
+
992
+ static fetchAssetsWithLocalIdentifiersOptions(
993
+ identifiers: NSArray<interop.Object> | Array<interop.Object>,
994
+ options: PHFetchOptions | null,
995
+ ): PHFetchResult
996
+
997
+ static fetchKeyAssetsInAssetCollectionOptions(
998
+ assetCollection: PHAssetCollection,
999
+ options: PHFetchOptions | null,
1000
+ ): PHFetchResult
1001
+
1002
+ static fetchAssetsWithBurstIdentifierOptions(
1003
+ burstIdentifier: string,
1004
+ options: PHFetchOptions | null,
1005
+ ): PHFetchResult
1006
+
1007
+ static fetchAssetsWithOptions(options: PHFetchOptions | null): PHFetchResult
1008
+
1009
+ static fetchAssetsWithMediaTypeOptions(
1010
+ mediaType: interop.Enum<typeof PHAssetMediaType>,
1011
+ options: PHFetchOptions | null,
1012
+ ): PHFetchResult
1013
+
1014
+ isHidden(): boolean
1015
+
1016
+ isFavorite(): boolean
1017
+
1018
+ isSyncFailureHidden(): boolean
1019
+
1020
+ requestContentEditingInputWithOptionsCompletionHandler(
1021
+ options: PHContentEditingInputRequestOptions | null,
1022
+ completionHandler: (
1023
+ p1: PHContentEditingInput,
1024
+ p2: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
1025
+ ) => void | null,
1026
+ ): number
1027
+
1028
+ cancelContentEditingInputRequest(requestID: number): void
1029
+ }
1030
+
1031
+ declare class PHContentEditingInputRequestOptions extends NSObject {
1032
+ canHandleAdjustmentData: (p1: PHAdjustmentData) => boolean
1033
+
1034
+ networkAccessAllowed: boolean
1035
+
1036
+ progressHandler: (p1: number, p2: interop.PointerConvertible) => void
1037
+
1038
+ isNetworkAccessAllowed(): boolean
1039
+ }
1040
+
1041
+ declare class PHAssetCollection extends PHCollection {
1042
+ readonly assetCollectionType: interop.Enum<typeof PHAssetCollectionType>
1043
+
1044
+ readonly assetCollectionSubtype: interop.Enum<typeof PHAssetCollectionSubtype>
1045
+
1046
+ readonly estimatedAssetCount: number
1047
+
1048
+ readonly startDate: NSDate
1049
+
1050
+ readonly endDate: NSDate
1051
+
1052
+ readonly approximateLocation: CLLocation
1053
+
1054
+ readonly localizedLocationNames: NSArray
1055
+
1056
+ static fetchAssetCollectionsWithLocalIdentifiersOptions(
1057
+ identifiers: NSArray<interop.Object> | Array<interop.Object>,
1058
+ options: PHFetchOptions | null,
1059
+ ): PHFetchResult
1060
+
1061
+ static fetchAssetCollectionsWithTypeSubtypeOptions(
1062
+ type: interop.Enum<typeof PHAssetCollectionType>,
1063
+ subtype: interop.Enum<typeof PHAssetCollectionSubtype>,
1064
+ options: PHFetchOptions | null,
1065
+ ): PHFetchResult
1066
+
1067
+ static fetchAssetCollectionsContainingAssetWithTypeOptions(
1068
+ asset: PHAsset,
1069
+ type: interop.Enum<typeof PHAssetCollectionType>,
1070
+ options: PHFetchOptions | null,
1071
+ ): PHFetchResult
1072
+
1073
+ static fetchAssetCollectionsWithALAssetGroupURLsOptions(
1074
+ assetGroupURLs: NSArray<interop.Object> | Array<interop.Object>,
1075
+ options: PHFetchOptions | null,
1076
+ ): PHFetchResult
1077
+
1078
+ static transientAssetCollectionWithAssetsTitle(
1079
+ assets: NSArray<interop.Object> | Array<interop.Object>,
1080
+ title: string | null,
1081
+ ): PHAssetCollection
1082
+
1083
+ static transientAssetCollectionWithAssetFetchResultTitle(
1084
+ fetchResult: PHFetchResult,
1085
+ title: string | null,
1086
+ ): PHAssetCollection
1087
+ }
1088
+
1089
+ declare class PHCollection extends PHObject {
1090
+ readonly canContainAssets: boolean
1091
+
1092
+ readonly canContainCollections: boolean
1093
+
1094
+ readonly localizedTitle: string
1095
+
1096
+ canPerformEditOperation(anOperation: interop.Enum<typeof PHCollectionEditOperation>): boolean
1097
+
1098
+ static fetchCollectionsInCollectionListOptions(
1099
+ collectionList: PHCollectionList,
1100
+ options: PHFetchOptions | null,
1101
+ ): PHFetchResult
1102
+
1103
+ static fetchTopLevelUserCollectionsWithOptions(options: PHFetchOptions | null): PHFetchResult
1104
+ }
1105
+
1106
+ declare class PHChangeRequest extends NSObject {}
1107
+
1108
+ declare class PHFetchOptions extends NSObject implements NSCopying {
1109
+ predicate: NSPredicate
1110
+
1111
+ get sortDescriptors(): NSArray
1112
+ set sortDescriptors(value: NSArray<interop.Object> | Array<interop.Object>)
1113
+
1114
+ includeHiddenAssets: boolean
1115
+
1116
+ includeAllBurstAssets: boolean
1117
+
1118
+ includeAssetSourceTypes: interop.Enum<typeof PHAssetSourceType>
1119
+
1120
+ fetchLimit: number
1121
+
1122
+ wantsIncrementalChangeDetails: boolean
1123
+
1124
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
1125
+ }