objcjs-types 0.2.1 → 0.3.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 (194) hide show
  1. package/bin/objcjs-types.ts +31 -0
  2. package/dist/AVFoundation/functions.d.ts +21 -0
  3. package/dist/AVFoundation/functions.js +32 -0
  4. package/dist/AVFoundation/index.d.ts +1 -0
  5. package/dist/AVFoundation/index.js +1 -0
  6. package/dist/Accessibility/functions.d.ts +16 -0
  7. package/dist/Accessibility/functions.js +35 -0
  8. package/dist/Accessibility/index.d.ts +1 -0
  9. package/dist/Accessibility/index.js +1 -0
  10. package/dist/AddressBook/functions.d.ts +98 -0
  11. package/dist/AddressBook/functions.js +290 -0
  12. package/dist/AddressBook/index.d.ts +1 -0
  13. package/dist/AddressBook/index.js +1 -0
  14. package/dist/AppKit/functions.d.ts +112 -0
  15. package/dist/AppKit/functions.js +272 -0
  16. package/dist/AppKit/index.d.ts +1 -0
  17. package/dist/AppKit/index.js +1 -0
  18. package/dist/AudioToolbox/functions.d.ts +377 -0
  19. package/dist/AudioToolbox/functions.js +1124 -0
  20. package/dist/AudioToolbox/index.d.ts +1 -0
  21. package/dist/AudioToolbox/index.js +1 -0
  22. package/dist/AuthenticationServices/functions.d.ts +2 -0
  23. package/dist/AuthenticationServices/functions.js +5 -0
  24. package/dist/AuthenticationServices/index.d.ts +1 -0
  25. package/dist/AuthenticationServices/index.js +1 -0
  26. package/dist/BrowserEngineCore/functions.d.ts +3 -0
  27. package/dist/BrowserEngineCore/functions.js +11 -0
  28. package/dist/BrowserEngineCore/index.d.ts +1 -0
  29. package/dist/BrowserEngineCore/index.js +1 -0
  30. package/dist/CoreAudio/functions.d.ts +60 -0
  31. package/dist/CoreAudio/functions.js +173 -0
  32. package/dist/CoreAudio/index.d.ts +1 -0
  33. package/dist/CoreAudio/index.js +1 -0
  34. package/dist/CoreMIDI/functions.d.ts +96 -0
  35. package/dist/CoreMIDI/functions.js +287 -0
  36. package/dist/CoreMIDI/index.d.ts +1 -0
  37. package/dist/CoreMIDI/index.js +1 -0
  38. package/dist/CoreML/functions.d.ts +2 -0
  39. package/dist/CoreML/functions.js +5 -0
  40. package/dist/CoreML/index.d.ts +1 -0
  41. package/dist/CoreML/index.js +1 -0
  42. package/dist/CoreMediaIO/functions.d.ts +38 -0
  43. package/dist/CoreMediaIO/functions.js +107 -0
  44. package/dist/CoreMediaIO/index.d.ts +1 -0
  45. package/dist/CoreMediaIO/index.js +1 -0
  46. package/dist/CoreText/functions.d.ts +209 -0
  47. package/dist/CoreText/functions.js +611 -0
  48. package/dist/CoreText/index.d.ts +1 -0
  49. package/dist/CoreText/index.js +1 -0
  50. package/dist/CoreWLAN/functions.d.ts +23 -0
  51. package/dist/CoreWLAN/functions.js +56 -0
  52. package/dist/CoreWLAN/index.d.ts +1 -0
  53. package/dist/CoreWLAN/index.js +1 -0
  54. package/dist/DeviceDiscoveryExtension/functions.d.ts +11 -0
  55. package/dist/DeviceDiscoveryExtension/functions.js +17 -0
  56. package/dist/DeviceDiscoveryExtension/index.d.ts +1 -0
  57. package/dist/DeviceDiscoveryExtension/index.js +1 -0
  58. package/dist/DiscRecording/functions.d.ts +97 -0
  59. package/dist/DiscRecording/functions.js +290 -0
  60. package/dist/DiscRecording/index.d.ts +1 -0
  61. package/dist/DiscRecording/index.js +1 -0
  62. package/dist/DiscRecordingUI/functions.d.ts +13 -0
  63. package/dist/DiscRecordingUI/functions.js +38 -0
  64. package/dist/DiscRecordingUI/index.d.ts +1 -0
  65. package/dist/DiscRecordingUI/index.js +1 -0
  66. package/dist/ExceptionHandling/functions.d.ts +1 -0
  67. package/dist/ExceptionHandling/functions.js +5 -0
  68. package/dist/ExceptionHandling/index.d.ts +1 -0
  69. package/dist/ExceptionHandling/index.js +1 -0
  70. package/dist/FSKit/functions.d.ts +4 -0
  71. package/dist/FSKit/functions.js +11 -0
  72. package/dist/FSKit/index.d.ts +1 -0
  73. package/dist/FSKit/index.js +1 -0
  74. package/dist/Foundation/functions.d.ts +145 -0
  75. package/dist/Foundation/functions.js +386 -0
  76. package/dist/Foundation/index.d.ts +1 -0
  77. package/dist/Foundation/index.js +1 -0
  78. package/dist/GLKit/functions.d.ts +51 -0
  79. package/dist/GLKit/functions.js +146 -0
  80. package/dist/GLKit/index.d.ts +1 -0
  81. package/dist/GLKit/index.js +1 -0
  82. package/dist/GameController/functions.d.ts +18 -0
  83. package/dist/GameController/functions.js +44 -0
  84. package/dist/GameController/index.d.ts +1 -0
  85. package/dist/GameController/index.js +1 -0
  86. package/dist/HealthKit/functions.d.ts +19 -0
  87. package/dist/HealthKit/functions.js +35 -0
  88. package/dist/HealthKit/index.d.ts +1 -0
  89. package/dist/HealthKit/index.js +1 -0
  90. package/dist/IOSurface/functions.d.ts +53 -0
  91. package/dist/IOSurface/functions.js +155 -0
  92. package/dist/IOSurface/index.d.ts +1 -0
  93. package/dist/IOSurface/index.js +1 -0
  94. package/dist/IOUSBHost/functions.d.ts +44 -0
  95. package/dist/IOUSBHost/functions.js +131 -0
  96. package/dist/IOUSBHost/index.d.ts +1 -0
  97. package/dist/IOUSBHost/index.js +1 -0
  98. package/dist/InstantMessage/functions.d.ts +1 -0
  99. package/dist/InstantMessage/functions.js +5 -0
  100. package/dist/InstantMessage/index.d.ts +1 -0
  101. package/dist/InstantMessage/index.js +1 -0
  102. package/dist/JavaRuntimeSupport/functions.d.ts +40 -0
  103. package/dist/JavaRuntimeSupport/functions.js +113 -0
  104. package/dist/JavaRuntimeSupport/index.d.ts +1 -0
  105. package/dist/JavaRuntimeSupport/index.js +1 -0
  106. package/dist/JavaScriptCore/functions.d.ts +120 -0
  107. package/dist/JavaScriptCore/functions.js +359 -0
  108. package/dist/JavaScriptCore/index.d.ts +1 -0
  109. package/dist/JavaScriptCore/index.js +1 -0
  110. package/dist/MLCompute/functions.d.ts +27 -0
  111. package/dist/MLCompute/functions.js +41 -0
  112. package/dist/MLCompute/index.d.ts +1 -0
  113. package/dist/MLCompute/index.js +1 -0
  114. package/dist/MapKit/functions.d.ts +23 -0
  115. package/dist/MapKit/functions.js +56 -0
  116. package/dist/MapKit/index.d.ts +1 -0
  117. package/dist/MapKit/index.js +1 -0
  118. package/dist/Matter/functions.d.ts +17 -0
  119. package/dist/Matter/functions.js +26 -0
  120. package/dist/Matter/index.d.ts +1 -0
  121. package/dist/Matter/index.js +1 -0
  122. package/dist/MediaAccessibility/functions.d.ts +28 -0
  123. package/dist/MediaAccessibility/functions.js +83 -0
  124. package/dist/MediaAccessibility/index.d.ts +1 -0
  125. package/dist/MediaAccessibility/index.js +1 -0
  126. package/dist/MediaPlayer/functions.d.ts +3 -0
  127. package/dist/MediaPlayer/functions.js +11 -0
  128. package/dist/MediaPlayer/index.d.ts +1 -0
  129. package/dist/MediaPlayer/index.js +1 -0
  130. package/dist/Metal/functions.d.ts +14 -0
  131. package/dist/Metal/functions.js +26 -0
  132. package/dist/Metal/index.d.ts +1 -0
  133. package/dist/Metal/index.js +1 -0
  134. package/dist/MetalKit/functions.d.ts +11 -0
  135. package/dist/MetalKit/functions.js +20 -0
  136. package/dist/MetalKit/index.d.ts +1 -0
  137. package/dist/MetalKit/index.js +1 -0
  138. package/dist/MetalPerformanceShaders/functions.d.ts +7 -0
  139. package/dist/MetalPerformanceShaders/functions.js +14 -0
  140. package/dist/MetalPerformanceShaders/index.d.ts +1 -0
  141. package/dist/MetalPerformanceShaders/index.js +1 -0
  142. package/dist/NearbyInteraction/functions.d.ts +3 -0
  143. package/dist/NearbyInteraction/functions.js +5 -0
  144. package/dist/NearbyInteraction/index.d.ts +1 -0
  145. package/dist/NearbyInteraction/index.js +1 -0
  146. package/dist/ParavirtualizedGraphics/functions.d.ts +7 -0
  147. package/dist/ParavirtualizedGraphics/functions.js +14 -0
  148. package/dist/ParavirtualizedGraphics/index.d.ts +1 -0
  149. package/dist/ParavirtualizedGraphics/index.js +1 -0
  150. package/dist/QuartzCore/functions.d.ts +19 -0
  151. package/dist/QuartzCore/functions.js +50 -0
  152. package/dist/QuartzCore/index.d.ts +1 -0
  153. package/dist/QuartzCore/index.js +1 -0
  154. package/dist/SceneKit/functions.d.ts +17 -0
  155. package/dist/SceneKit/functions.js +38 -0
  156. package/dist/SceneKit/index.d.ts +1 -0
  157. package/dist/SceneKit/index.js +1 -0
  158. package/dist/SensorKit/functions.d.ts +4 -0
  159. package/dist/SensorKit/functions.js +14 -0
  160. package/dist/SensorKit/index.d.ts +1 -0
  161. package/dist/SensorKit/index.js +1 -0
  162. package/dist/ServiceManagement/functions.d.ts +7 -0
  163. package/dist/ServiceManagement/functions.js +20 -0
  164. package/dist/ServiceManagement/index.d.ts +1 -0
  165. package/dist/ServiceManagement/index.js +1 -0
  166. package/dist/StoreKit/functions.d.ts +1 -0
  167. package/dist/StoreKit/functions.js +5 -0
  168. package/dist/StoreKit/index.d.ts +1 -0
  169. package/dist/StoreKit/index.js +1 -0
  170. package/dist/VideoToolbox/functions.d.ts +81 -0
  171. package/dist/VideoToolbox/functions.js +236 -0
  172. package/dist/VideoToolbox/index.d.ts +1 -0
  173. package/dist/VideoToolbox/index.js +1 -0
  174. package/dist/Vision/functions.d.ts +16 -0
  175. package/dist/Vision/functions.js +38 -0
  176. package/dist/Vision/index.d.ts +1 -0
  177. package/dist/Vision/index.js +1 -0
  178. package/generator/ast-parser.ts +1368 -0
  179. package/generator/clang.ts +167 -0
  180. package/generator/custom.ts +936 -0
  181. package/generator/discover.ts +111 -0
  182. package/generator/emitter.ts +2026 -0
  183. package/generator/frameworks.ts +135 -0
  184. package/generator/index.ts +1334 -0
  185. package/generator/parse-worker.ts +263 -0
  186. package/generator/resolve-strings.ts +121 -0
  187. package/generator/struct-fields.ts +46 -0
  188. package/generator/templates/bind.ts +100 -0
  189. package/generator/templates/helpers.ts +70 -0
  190. package/generator/templates/nsdata.ts +97 -0
  191. package/generator/templates/osversion.ts +91 -0
  192. package/generator/type-mapper.ts +615 -0
  193. package/generator/worker-pool.ts +309 -0
  194. package/package.json +13 -4
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * CLI entry point for objcjs-types.
4
+ *
5
+ * Usage:
6
+ * bunx objcjs-types generate-custom header1.h [header2.h ...] [--include <header>] [-I <path>] [-D <macro[=value]>]
7
+ */
8
+
9
+ import { dirname, join } from "path";
10
+ import { fileURLToPath } from "url";
11
+
12
+ const __dirname = dirname(fileURLToPath(import.meta.url));
13
+ const subcommand = process.argv[2];
14
+
15
+ if (!subcommand || subcommand === "--help" || subcommand === "-h") {
16
+ console.log("Usage: objcjs-types <command> [options]\n");
17
+ console.log("Commands:");
18
+ console.log(" generate-custom Generate TypeScript types from custom Objective-C headers");
19
+ console.log("\nRun `objcjs-types <command> --help` for command-specific usage.");
20
+ process.exit(0);
21
+ }
22
+
23
+ if (subcommand === "generate-custom") {
24
+ // Strip the subcommand from argv so custom.ts sees only header args / flags
25
+ process.argv = [process.argv[0]!, process.argv[1]!, ...process.argv.slice(3)];
26
+ await import(join(__dirname, "..", "generator", "custom.ts"));
27
+ } else {
28
+ console.error(`Unknown command: ${subcommand}`);
29
+ console.error("Run `objcjs-types --help` for available commands.");
30
+ process.exit(1);
31
+ }
@@ -0,0 +1,21 @@
1
+ import type { NobjcObject } from "objc-js";
2
+ import type { _NSString } from "../Foundation/NSString.js";
3
+ import type { _AVContentKey } from "./AVContentKey.js";
4
+ import type { AVCaptionPoint } from "../structs/AVCaptionPoint.js";
5
+ import type { AVCaptionSize } from "../structs/AVCaptionSize.js";
6
+ import type { AVCaptureTimecode } from "../structs/AVCaptureTimecode.js";
7
+ import type { CGRect } from "../structs/CGRect.js";
8
+ import type { CGSize } from "../structs/CGSize.js";
9
+ import type { CMTime } from "../structs/CMTime.js";
10
+ import type { AVCaptionUnitsType } from "./AVCaptionUnitsType.js";
11
+ import type { AVCaptureReactionType } from "./AVCaptureReactionType.js";
12
+ export declare function AVCaptionDimensionMake(value: number, units: AVCaptionUnitsType): NobjcObject;
13
+ export declare function AVCaptionPointMake(x: NobjcObject, y: NobjcObject): AVCaptionPoint;
14
+ export declare function AVCaptionSizeMake(width: NobjcObject, height: NobjcObject): AVCaptionSize;
15
+ export declare function AVCaptureReactionSystemImageNameForType(reactionType: AVCaptureReactionType): _NSString;
16
+ export declare function AVCaptureTimecodeAdvancedByFrames(timecode: AVCaptureTimecode, framesToAdd: number): AVCaptureTimecode;
17
+ export declare function AVCaptureTimecodeCreateMetadataSampleBufferAssociatedWithPresentationTimeStamp(timecode: AVCaptureTimecode, presentationTimeStamp: CMTime): NobjcObject | null;
18
+ export declare function AVCaptureTimecodeCreateMetadataSampleBufferForDuration(timecode: AVCaptureTimecode, duration: CMTime): NobjcObject | null;
19
+ export declare function AVMakeRectWithAspectRatioInsideRect(aspectRatio: CGSize, boundingRect: CGRect): CGRect;
20
+ export declare function AVSampleBufferAttachContentKey(sbuf: NobjcObject, contentKey: _AVContentKey, outError: NobjcObject | null): boolean;
21
+ export declare function CMTagCollectionCreateWithVideoOutputPreset(allocator: NobjcObject | null, preset: NobjcObject, newCollectionOut: NobjcObject | null): number;
@@ -0,0 +1,32 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ import { callFunction } from "objc-js";
3
+ export function AVCaptionDimensionMake(value, units) {
4
+ return callFunction("AVCaptionDimensionMake", { returns: "@", args: ["d", "q"] }, value, units);
5
+ }
6
+ export function AVCaptionPointMake(x, y) {
7
+ return callFunction("AVCaptionPointMake", { returns: "{AVCaptionPoint}" }, x, y);
8
+ }
9
+ export function AVCaptionSizeMake(width, height) {
10
+ return callFunction("AVCaptionSizeMake", { returns: "{AVCaptionSize}" }, width, height);
11
+ }
12
+ export function AVCaptureReactionSystemImageNameForType(reactionType) {
13
+ return callFunction("AVCaptureReactionSystemImageNameForType", { returns: "@" }, reactionType);
14
+ }
15
+ export function AVCaptureTimecodeAdvancedByFrames(timecode, framesToAdd) {
16
+ return callFunction("AVCaptureTimecodeAdvancedByFrames", { returns: "{AVCaptureTimecode}", args: ["{AVCaptureTimecode}", "q"] }, timecode, framesToAdd);
17
+ }
18
+ export function AVCaptureTimecodeCreateMetadataSampleBufferAssociatedWithPresentationTimeStamp(timecode, presentationTimeStamp) {
19
+ return callFunction("AVCaptureTimecodeCreateMetadataSampleBufferAssociatedWithPresentationTimeStamp", { returns: "@", args: ["{AVCaptureTimecode}", "{CMTime}"] }, timecode, presentationTimeStamp);
20
+ }
21
+ export function AVCaptureTimecodeCreateMetadataSampleBufferForDuration(timecode, duration) {
22
+ return callFunction("AVCaptureTimecodeCreateMetadataSampleBufferForDuration", { returns: "@", args: ["{AVCaptureTimecode}", "{CMTime}"] }, timecode, duration);
23
+ }
24
+ export function AVMakeRectWithAspectRatioInsideRect(aspectRatio, boundingRect) {
25
+ return callFunction("AVMakeRectWithAspectRatioInsideRect", { returns: "{CGRect}", args: ["{CGSize}", "{CGRect}"] }, aspectRatio, boundingRect);
26
+ }
27
+ export function AVSampleBufferAttachContentKey(sbuf, contentKey, outError) {
28
+ return callFunction("AVSampleBufferAttachContentKey", { returns: "B" }, sbuf, contentKey, outError);
29
+ }
30
+ export function CMTagCollectionCreateWithVideoOutputPreset(allocator, preset, newCollectionOut) {
31
+ return callFunction("CMTagCollectionCreateWithVideoOutputPreset", { returns: "i" }, allocator, preset, newCollectionOut);
32
+ }
@@ -991,3 +991,4 @@ export { AVVideoApertureMode } from "./AVVideoApertureMode.js";
991
991
  export { AVVideoCodecType } from "./AVVideoCodecType.js";
992
992
  export { AVVideoCompositionPerFrameHDRDisplayMetadataPolicy } from "./AVVideoCompositionPerFrameHDRDisplayMetadataPolicy.js";
993
993
  export { AVVideoRange } from "./AVVideoRange.js";
994
+ export * from "./functions.js";
@@ -385,3 +385,4 @@ export { AVVideoApertureMode } from "./AVVideoApertureMode.js";
385
385
  export { AVVideoCodecType } from "./AVVideoCodecType.js";
386
386
  export { AVVideoCompositionPerFrameHDRDisplayMetadataPolicy } from "./AVVideoCompositionPerFrameHDRDisplayMetadataPolicy.js";
387
387
  export { AVVideoRange } from "./AVVideoRange.js";
388
+ export * from "./functions.js";
@@ -0,0 +1,16 @@
1
+ import type { NobjcObject } from "objc-js";
2
+ import type { _NSArray } from "../Foundation/NSArray.js";
3
+ import type { _NSString } from "../Foundation/NSString.js";
4
+ import type { AXHearingDeviceEar } from "./AXHearingDeviceEar.js";
5
+ import type { AXSettingsFeature } from "./AXSettingsFeature.js";
6
+ export declare function AXAnimatedImagesEnabled(): boolean;
7
+ export declare function AXAssistiveAccessEnabled(): boolean;
8
+ export declare function AXMFiHearingDevicePairedUUIDs(): _NSArray;
9
+ export declare function AXMFiHearingDeviceStreamingEar(): AXHearingDeviceEar;
10
+ export declare function AXNameFromColor(color: Uint8Array): _NSString;
11
+ export declare function AXOpenSettingsFeature(feature: AXSettingsFeature, completionHandler: NobjcObject | null): void;
12
+ export declare function AXPrefersActionSliderAlternative(): boolean;
13
+ export declare function AXPrefersHorizontalTextLayout(): boolean;
14
+ export declare function AXPrefersNonBlinkingTextInsertionIndicator(): boolean;
15
+ export declare function AXShowBordersEnabled(): boolean;
16
+ export declare function AXSupportsBidirectionalAXMFiHearingDeviceStreaming(): boolean;
@@ -0,0 +1,35 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ import { callFunction } from "objc-js";
3
+ export function AXAnimatedImagesEnabled() {
4
+ return callFunction("AXAnimatedImagesEnabled", { returns: "B" });
5
+ }
6
+ export function AXAssistiveAccessEnabled() {
7
+ return callFunction("AXAssistiveAccessEnabled", { returns: "B" });
8
+ }
9
+ export function AXMFiHearingDevicePairedUUIDs() {
10
+ return callFunction("AXMFiHearingDevicePairedUUIDs", { returns: "@" });
11
+ }
12
+ export function AXMFiHearingDeviceStreamingEar() {
13
+ return callFunction("AXMFiHearingDeviceStreamingEar", { returns: "q" });
14
+ }
15
+ export function AXNameFromColor(color) {
16
+ return callFunction("AXNameFromColor", { returns: "@", args: ["^"] }, color);
17
+ }
18
+ export function AXOpenSettingsFeature(feature, completionHandler) {
19
+ callFunction("AXOpenSettingsFeature", { args: ["q", "@"] }, feature, completionHandler);
20
+ }
21
+ export function AXPrefersActionSliderAlternative() {
22
+ return callFunction("AXPrefersActionSliderAlternative", { returns: "B" });
23
+ }
24
+ export function AXPrefersHorizontalTextLayout() {
25
+ return callFunction("AXPrefersHorizontalTextLayout", { returns: "B" });
26
+ }
27
+ export function AXPrefersNonBlinkingTextInsertionIndicator() {
28
+ return callFunction("AXPrefersNonBlinkingTextInsertionIndicator", { returns: "B" });
29
+ }
30
+ export function AXShowBordersEnabled() {
31
+ return callFunction("AXShowBordersEnabled", { returns: "B" });
32
+ }
33
+ export function AXSupportsBidirectionalAXMFiHearingDeviceStreaming() {
34
+ return callFunction("AXSupportsBidirectionalAXMFiHearingDeviceStreaming", { returns: "B" });
35
+ }
@@ -99,3 +99,4 @@ export { AXCustomContentImportance } from "./AXCustomContentImportance.js";
99
99
  export { AXHearingDeviceEar } from "./AXHearingDeviceEar.js";
100
100
  export { AXNumericDataAxisDescriptorScale } from "./AXNumericDataAxisDescriptorScale.js";
101
101
  export { AXSettingsFeature } from "./AXSettingsFeature.js";
102
+ export * from "./functions.js";
@@ -35,3 +35,4 @@ export { AXCustomContentImportance } from "./AXCustomContentImportance.js";
35
35
  export { AXHearingDeviceEar } from "./AXHearingDeviceEar.js";
36
36
  export { AXNumericDataAxisDescriptorScale } from "./AXNumericDataAxisDescriptorScale.js";
37
37
  export { AXSettingsFeature } from "./AXSettingsFeature.js";
38
+ export * from "./functions.js";
@@ -0,0 +1,98 @@
1
+ import type { NobjcObject } from "objc-js";
2
+ import type { _NSString } from "../Foundation/NSString.js";
3
+ export declare function ABAddPropertiesAndTypes(addressBook: NobjcObject, recordType: Uint8Array, propertiesAndTypes: NobjcObject): number;
4
+ export declare function ABAddRecord(addressBook: NobjcObject, record: NobjcObject): boolean;
5
+ export declare function ABBeginLoadingImageDataForClient(person: NobjcObject, callback: NobjcObject, refcon: Uint8Array): number;
6
+ export declare function ABCancelLoadingImageDataForTag(tag: number): void;
7
+ export declare function ABCopyArrayOfAllGroups(addressBook: NobjcObject): NobjcObject;
8
+ export declare function ABCopyArrayOfAllPeople(addressBook: NobjcObject): NobjcObject;
9
+ export declare function ABCopyArrayOfMatchingRecords(addressBook: NobjcObject, search: NobjcObject): NobjcObject;
10
+ export declare function ABCopyArrayOfPropertiesForRecordType(addressBook: NobjcObject, recordType: Uint8Array): NobjcObject;
11
+ export declare function ABCopyDefaultCountryCode(addressBook: NobjcObject): NobjcObject;
12
+ export declare function ABCopyLocalizedPropertyOrLabel(labelOrProperty: Uint8Array): NobjcObject;
13
+ export declare function ABCopyRecordForUniqueId(addressBook: NobjcObject, uniqueId: Uint8Array): NobjcObject;
14
+ export declare function ABCopyRecordTypeFromUniqueId(addressBook: NobjcObject, uniqueId: Uint8Array): NobjcObject;
15
+ export declare function ABCreateFormattedAddressFromDictionary(addressBook: NobjcObject, address: NobjcObject): NobjcObject;
16
+ export declare function ABGetMe(addressBook: NobjcObject): NobjcObject;
17
+ export declare function ABGetSharedAddressBook(): NobjcObject;
18
+ export declare function ABGroupAddGroup(group: NobjcObject, groupToAdd: NobjcObject): boolean;
19
+ export declare function ABGroupAddMember(group: NobjcObject, personToAdd: NobjcObject): boolean;
20
+ export declare function ABGroupCopyArrayOfAllMembers(group: NobjcObject): NobjcObject;
21
+ export declare function ABGroupCopyArrayOfAllSubgroups(group: NobjcObject): NobjcObject;
22
+ export declare function ABGroupCopyDistributionIdentifier(group: NobjcObject, person: NobjcObject, property: Uint8Array): NobjcObject;
23
+ export declare function ABGroupCopyParentGroups(group: NobjcObject): NobjcObject;
24
+ export declare function ABGroupCreate(): NobjcObject;
25
+ export declare function ABGroupCreateSearchElement(property: Uint8Array, label: Uint8Array, key: Uint8Array, value: Uint8Array, comparison: number): NobjcObject;
26
+ export declare function ABGroupRemoveGroup(group: NobjcObject, groupToRemove: NobjcObject): boolean;
27
+ export declare function ABGroupRemoveMember(group: NobjcObject, personToRemove: NobjcObject): boolean;
28
+ export declare function ABGroupSetDistributionIdentifier(group: NobjcObject, person: NobjcObject, property: Uint8Array, identifier: Uint8Array): boolean;
29
+ export declare function ABHasUnsavedChanges(addressBook: NobjcObject): boolean;
30
+ export declare function ABLocalizedPropertyOrLabel(propertyOrLabel: _NSString): _NSString;
31
+ export declare function ABMultiValueAdd(multiValue: NobjcObject, value: Uint8Array, label: Uint8Array, outIdentifier: NobjcObject): boolean;
32
+ export declare function ABMultiValueCopyIdentifierAtIndex(multiValue: NobjcObject, index: number): NobjcObject;
33
+ export declare function ABMultiValueCopyLabelAtIndex(multiValue: NobjcObject, index: number): NobjcObject;
34
+ export declare function ABMultiValueCopyPrimaryIdentifier(multiValue: NobjcObject): NobjcObject;
35
+ export declare function ABMultiValueCopyValueAtIndex(multiValue: NobjcObject, index: number): NobjcObject;
36
+ export declare function ABMultiValueCount(multiValue: NobjcObject): number;
37
+ export declare function ABMultiValueCreate(): NobjcObject;
38
+ export declare function ABMultiValueCreateCopy(multiValue: NobjcObject): NobjcObject;
39
+ export declare function ABMultiValueCreateMutable(): NobjcObject;
40
+ export declare function ABMultiValueCreateMutableCopy(multiValue: NobjcObject): NobjcObject;
41
+ export declare function ABMultiValueIndexForIdentifier(multiValue: NobjcObject, identifier: Uint8Array): number;
42
+ export declare function ABMultiValueInsert(multiValue: NobjcObject, value: Uint8Array, label: Uint8Array, index: number, outIdentifier: NobjcObject): boolean;
43
+ export declare function ABMultiValuePropertyType(multiValue: NobjcObject): number;
44
+ export declare function ABMultiValueRemove(multiValue: NobjcObject, index: number): boolean;
45
+ export declare function ABMultiValueReplaceLabel(multiValue: NobjcObject, label: Uint8Array, index: number): boolean;
46
+ export declare function ABMultiValueReplaceValue(multiValue: NobjcObject, value: Uint8Array, index: number): boolean;
47
+ export declare function ABMultiValueSetPrimaryIdentifier(multiValue: NobjcObject, identifier: Uint8Array): boolean;
48
+ export declare function ABPersonCopyImageData(person: NobjcObject): NobjcObject;
49
+ export declare function ABPersonCopyParentGroups(person: NobjcObject): NobjcObject;
50
+ export declare function ABPersonCopyVCardRepresentation(person: NobjcObject): NobjcObject;
51
+ export declare function ABPersonCreate(): NobjcObject;
52
+ export declare function ABPersonCreateSearchElement(property: Uint8Array, label: Uint8Array, key: Uint8Array, value: Uint8Array, comparison: number): NobjcObject;
53
+ export declare function ABPersonCreateWithVCardRepresentation(vCard: NobjcObject): NobjcObject;
54
+ export declare function ABPersonSetImageData(person: NobjcObject, imageData: NobjcObject): boolean;
55
+ export declare function ABPickerAddProperty(inPicker: NobjcObject, inProperty: Uint8Array): void;
56
+ export declare function ABPickerChangeAttributes(inPicker: NobjcObject, inAttributesToSet: number, inAttributesToClear: number): void;
57
+ export declare function ABPickerClearSearchField(inPicker: NobjcObject): void;
58
+ export declare function ABPickerCopyColumnTitle(inPicker: NobjcObject, inProperty: Uint8Array): NobjcObject;
59
+ export declare function ABPickerCopyDisplayedProperty(inPicker: NobjcObject): NobjcObject;
60
+ export declare function ABPickerCopyProperties(inPicker: NobjcObject): NobjcObject;
61
+ export declare function ABPickerCopySelectedGroups(inPicker: NobjcObject): NobjcObject;
62
+ export declare function ABPickerCopySelectedIdentifiers(inPicker: NobjcObject, inPerson: NobjcObject): NobjcObject;
63
+ export declare function ABPickerCopySelectedRecords(inPicker: NobjcObject): NobjcObject;
64
+ export declare function ABPickerCopySelectedValues(inPicker: NobjcObject): NobjcObject;
65
+ export declare function ABPickerCreate(): NobjcObject;
66
+ export declare function ABPickerDeselectAll(inPicker: NobjcObject): void;
67
+ export declare function ABPickerDeselectGroup(inPicker: NobjcObject, inGroup: NobjcObject): void;
68
+ export declare function ABPickerDeselectIdentifier(inPicker: NobjcObject, inPerson: NobjcObject, inIdentifier: Uint8Array): void;
69
+ export declare function ABPickerDeselectRecord(inPicker: NobjcObject, inRecord: NobjcObject): void;
70
+ export declare function ABPickerEditInAddressBook(inPicker: NobjcObject): void;
71
+ export declare function ABPickerGetAttributes(inPicker: NobjcObject): number;
72
+ export declare function ABPickerGetDelegate(inPicker: NobjcObject): NobjcObject;
73
+ export declare function ABPickerGetFrame(inPicker: NobjcObject, outFrame: NobjcObject): void;
74
+ export declare function ABPickerIsVisible(inPicker: NobjcObject): boolean;
75
+ export declare function ABPickerRemoveProperty(inPicker: NobjcObject, inProperty: Uint8Array): void;
76
+ export declare function ABPickerSelectGroup(inPicker: NobjcObject, inGroup: NobjcObject, inExtendSelection: boolean): void;
77
+ export declare function ABPickerSelectIdentifier(inPicker: NobjcObject, inPerson: NobjcObject, inIdentifier: Uint8Array, inExtendSelection: boolean): void;
78
+ export declare function ABPickerSelectInAddressBook(inPicker: NobjcObject): void;
79
+ export declare function ABPickerSelectRecord(inPicker: NobjcObject, inRecord: NobjcObject, inExtendSelection: boolean): void;
80
+ export declare function ABPickerSetColumnTitle(inPicker: NobjcObject, inTitle: Uint8Array, inProperty: Uint8Array): void;
81
+ export declare function ABPickerSetDelegate(inPicker: NobjcObject, inDelegate: NobjcObject): void;
82
+ export declare function ABPickerSetDisplayedProperty(inPicker: NobjcObject, inProperty: Uint8Array): void;
83
+ export declare function ABPickerSetFrame(inPicker: NobjcObject, inFrame: NobjcObject): void;
84
+ export declare function ABPickerSetVisibility(inPicker: NobjcObject, visible: boolean): void;
85
+ export declare function ABRecordCopyRecordType(record: NobjcObject): NobjcObject;
86
+ export declare function ABRecordCopyUniqueId(record: NobjcObject): NobjcObject;
87
+ export declare function ABRecordCopyValue(record: NobjcObject, property: Uint8Array): NobjcObject;
88
+ export declare function ABRecordCreateCopy(record: NobjcObject): NobjcObject;
89
+ export declare function ABRecordIsReadOnly(record: NobjcObject): boolean;
90
+ export declare function ABRecordRemoveValue(record: NobjcObject, property: Uint8Array): boolean;
91
+ export declare function ABRecordSetValue(record: NobjcObject, property: Uint8Array, value: Uint8Array): boolean;
92
+ export declare function ABRemoveProperties(addressBook: NobjcObject, recordType: Uint8Array, properties: NobjcObject): number;
93
+ export declare function ABRemoveRecord(addressBook: NobjcObject, record: NobjcObject): boolean;
94
+ export declare function ABSave(addressBook: NobjcObject): boolean;
95
+ export declare function ABSearchElementCreateWithConjunction(conjunction: number, childrenSearchElement: NobjcObject): NobjcObject;
96
+ export declare function ABSearchElementMatchesRecord(searchElement: NobjcObject, record: NobjcObject): boolean;
97
+ export declare function ABSetMe(addressBook: NobjcObject, moi: NobjcObject): void;
98
+ export declare function ABTypeOfProperty(addressBook: NobjcObject, recordType: Uint8Array, property: Uint8Array): number;
@@ -0,0 +1,290 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ import { callFunction } from "objc-js";
3
+ export function ABAddPropertiesAndTypes(addressBook, recordType, propertiesAndTypes) {
4
+ return callFunction("ABAddPropertiesAndTypes", { returns: "q", args: ["@", "^", "@"] }, addressBook, recordType, propertiesAndTypes);
5
+ }
6
+ export function ABAddRecord(addressBook, record) {
7
+ return callFunction("ABAddRecord", { returns: "B", args: ["@", "^v"] }, addressBook, record);
8
+ }
9
+ export function ABBeginLoadingImageDataForClient(person, callback, refcon) {
10
+ return callFunction("ABBeginLoadingImageDataForClient", { returns: "q", args: ["@", "@", "^v"] }, person, callback, refcon);
11
+ }
12
+ export function ABCancelLoadingImageDataForTag(tag) {
13
+ callFunction("ABCancelLoadingImageDataForTag", { args: ["q"] }, tag);
14
+ }
15
+ export function ABCopyArrayOfAllGroups(addressBook) {
16
+ return callFunction("ABCopyArrayOfAllGroups", { returns: "@" }, addressBook);
17
+ }
18
+ export function ABCopyArrayOfAllPeople(addressBook) {
19
+ return callFunction("ABCopyArrayOfAllPeople", { returns: "@" }, addressBook);
20
+ }
21
+ export function ABCopyArrayOfMatchingRecords(addressBook, search) {
22
+ return callFunction("ABCopyArrayOfMatchingRecords", { returns: "@" }, addressBook, search);
23
+ }
24
+ export function ABCopyArrayOfPropertiesForRecordType(addressBook, recordType) {
25
+ return callFunction("ABCopyArrayOfPropertiesForRecordType", { returns: "@", args: ["@", "^"] }, addressBook, recordType);
26
+ }
27
+ export function ABCopyDefaultCountryCode(addressBook) {
28
+ return callFunction("ABCopyDefaultCountryCode", { returns: "^" }, addressBook);
29
+ }
30
+ export function ABCopyLocalizedPropertyOrLabel(labelOrProperty) {
31
+ return callFunction("ABCopyLocalizedPropertyOrLabel", { returns: "^", args: ["^"] }, labelOrProperty);
32
+ }
33
+ export function ABCopyRecordForUniqueId(addressBook, uniqueId) {
34
+ return callFunction("ABCopyRecordForUniqueId", { returns: "^v", args: ["@", "^"] }, addressBook, uniqueId);
35
+ }
36
+ export function ABCopyRecordTypeFromUniqueId(addressBook, uniqueId) {
37
+ return callFunction("ABCopyRecordTypeFromUniqueId", { returns: "^", args: ["@", "^"] }, addressBook, uniqueId);
38
+ }
39
+ export function ABCreateFormattedAddressFromDictionary(addressBook, address) {
40
+ return callFunction("ABCreateFormattedAddressFromDictionary", { returns: "^" }, addressBook, address);
41
+ }
42
+ export function ABGetMe(addressBook) {
43
+ return callFunction("ABGetMe", { returns: "@" }, addressBook);
44
+ }
45
+ export function ABGetSharedAddressBook() {
46
+ return callFunction("ABGetSharedAddressBook", { returns: "@" });
47
+ }
48
+ export function ABGroupAddGroup(group, groupToAdd) {
49
+ return callFunction("ABGroupAddGroup", { returns: "B" }, group, groupToAdd);
50
+ }
51
+ export function ABGroupAddMember(group, personToAdd) {
52
+ return callFunction("ABGroupAddMember", { returns: "B" }, group, personToAdd);
53
+ }
54
+ export function ABGroupCopyArrayOfAllMembers(group) {
55
+ return callFunction("ABGroupCopyArrayOfAllMembers", { returns: "@" }, group);
56
+ }
57
+ export function ABGroupCopyArrayOfAllSubgroups(group) {
58
+ return callFunction("ABGroupCopyArrayOfAllSubgroups", { returns: "@" }, group);
59
+ }
60
+ export function ABGroupCopyDistributionIdentifier(group, person, property) {
61
+ return callFunction("ABGroupCopyDistributionIdentifier", { returns: "^", args: ["@", "@", "^"] }, group, person, property);
62
+ }
63
+ export function ABGroupCopyParentGroups(group) {
64
+ return callFunction("ABGroupCopyParentGroups", { returns: "@" }, group);
65
+ }
66
+ export function ABGroupCreate() {
67
+ return callFunction("ABGroupCreate", { returns: "@" });
68
+ }
69
+ export function ABGroupCreateSearchElement(property, label, key, value, comparison) {
70
+ return callFunction("ABGroupCreateSearchElement", { returns: "@", args: ["^", "^", "^", "^", "q"] }, property, label, key, value, comparison);
71
+ }
72
+ export function ABGroupRemoveGroup(group, groupToRemove) {
73
+ return callFunction("ABGroupRemoveGroup", { returns: "B" }, group, groupToRemove);
74
+ }
75
+ export function ABGroupRemoveMember(group, personToRemove) {
76
+ return callFunction("ABGroupRemoveMember", { returns: "B" }, group, personToRemove);
77
+ }
78
+ export function ABGroupSetDistributionIdentifier(group, person, property, identifier) {
79
+ return callFunction("ABGroupSetDistributionIdentifier", { returns: "B", args: ["@", "@", "^", "^"] }, group, person, property, identifier);
80
+ }
81
+ export function ABHasUnsavedChanges(addressBook) {
82
+ return callFunction("ABHasUnsavedChanges", { returns: "B" }, addressBook);
83
+ }
84
+ export function ABLocalizedPropertyOrLabel(propertyOrLabel) {
85
+ return callFunction("ABLocalizedPropertyOrLabel", { returns: "@" }, propertyOrLabel);
86
+ }
87
+ export function ABMultiValueAdd(multiValue, value, label, outIdentifier) {
88
+ return callFunction("ABMultiValueAdd", { returns: "B", args: ["@", "^", "^", "@"] }, multiValue, value, label, outIdentifier);
89
+ }
90
+ export function ABMultiValueCopyIdentifierAtIndex(multiValue, index) {
91
+ return callFunction("ABMultiValueCopyIdentifierAtIndex", { returns: "^", args: ["@", "q"] }, multiValue, index);
92
+ }
93
+ export function ABMultiValueCopyLabelAtIndex(multiValue, index) {
94
+ return callFunction("ABMultiValueCopyLabelAtIndex", { returns: "^", args: ["@", "q"] }, multiValue, index);
95
+ }
96
+ export function ABMultiValueCopyPrimaryIdentifier(multiValue) {
97
+ return callFunction("ABMultiValueCopyPrimaryIdentifier", { returns: "^" }, multiValue);
98
+ }
99
+ export function ABMultiValueCopyValueAtIndex(multiValue, index) {
100
+ return callFunction("ABMultiValueCopyValueAtIndex", { returns: "^", args: ["@", "q"] }, multiValue, index);
101
+ }
102
+ export function ABMultiValueCount(multiValue) {
103
+ return callFunction("ABMultiValueCount", { returns: "q" }, multiValue);
104
+ }
105
+ export function ABMultiValueCreate() {
106
+ return callFunction("ABMultiValueCreate", { returns: "@" });
107
+ }
108
+ export function ABMultiValueCreateCopy(multiValue) {
109
+ return callFunction("ABMultiValueCreateCopy", { returns: "@" }, multiValue);
110
+ }
111
+ export function ABMultiValueCreateMutable() {
112
+ return callFunction("ABMultiValueCreateMutable", { returns: "@" });
113
+ }
114
+ export function ABMultiValueCreateMutableCopy(multiValue) {
115
+ return callFunction("ABMultiValueCreateMutableCopy", { returns: "@" }, multiValue);
116
+ }
117
+ export function ABMultiValueIndexForIdentifier(multiValue, identifier) {
118
+ return callFunction("ABMultiValueIndexForIdentifier", { returns: "q", args: ["@", "^"] }, multiValue, identifier);
119
+ }
120
+ export function ABMultiValueInsert(multiValue, value, label, index, outIdentifier) {
121
+ return callFunction("ABMultiValueInsert", { returns: "B", args: ["@", "^", "^", "q", "@"] }, multiValue, value, label, index, outIdentifier);
122
+ }
123
+ export function ABMultiValuePropertyType(multiValue) {
124
+ return callFunction("ABMultiValuePropertyType", { returns: "q" }, multiValue);
125
+ }
126
+ export function ABMultiValueRemove(multiValue, index) {
127
+ return callFunction("ABMultiValueRemove", { returns: "B", args: ["@", "q"] }, multiValue, index);
128
+ }
129
+ export function ABMultiValueReplaceLabel(multiValue, label, index) {
130
+ return callFunction("ABMultiValueReplaceLabel", { returns: "B", args: ["@", "^", "q"] }, multiValue, label, index);
131
+ }
132
+ export function ABMultiValueReplaceValue(multiValue, value, index) {
133
+ return callFunction("ABMultiValueReplaceValue", { returns: "B", args: ["@", "^", "q"] }, multiValue, value, index);
134
+ }
135
+ export function ABMultiValueSetPrimaryIdentifier(multiValue, identifier) {
136
+ return callFunction("ABMultiValueSetPrimaryIdentifier", { returns: "B", args: ["@", "^"] }, multiValue, identifier);
137
+ }
138
+ export function ABPersonCopyImageData(person) {
139
+ return callFunction("ABPersonCopyImageData", { returns: "@" }, person);
140
+ }
141
+ export function ABPersonCopyParentGroups(person) {
142
+ return callFunction("ABPersonCopyParentGroups", { returns: "@" }, person);
143
+ }
144
+ export function ABPersonCopyVCardRepresentation(person) {
145
+ return callFunction("ABPersonCopyVCardRepresentation", { returns: "@" }, person);
146
+ }
147
+ export function ABPersonCreate() {
148
+ return callFunction("ABPersonCreate", { returns: "@" });
149
+ }
150
+ export function ABPersonCreateSearchElement(property, label, key, value, comparison) {
151
+ return callFunction("ABPersonCreateSearchElement", { returns: "@", args: ["^", "^", "^", "^", "q"] }, property, label, key, value, comparison);
152
+ }
153
+ export function ABPersonCreateWithVCardRepresentation(vCard) {
154
+ return callFunction("ABPersonCreateWithVCardRepresentation", { returns: "@" }, vCard);
155
+ }
156
+ export function ABPersonSetImageData(person, imageData) {
157
+ return callFunction("ABPersonSetImageData", { returns: "B" }, person, imageData);
158
+ }
159
+ export function ABPickerAddProperty(inPicker, inProperty) {
160
+ callFunction("ABPickerAddProperty", { args: ["@", "^"] }, inPicker, inProperty);
161
+ }
162
+ export function ABPickerChangeAttributes(inPicker, inAttributesToSet, inAttributesToClear) {
163
+ callFunction("ABPickerChangeAttributes", { args: ["@", "I", "I"] }, inPicker, inAttributesToSet, inAttributesToClear);
164
+ }
165
+ export function ABPickerClearSearchField(inPicker) {
166
+ callFunction("ABPickerClearSearchField", undefined, inPicker);
167
+ }
168
+ export function ABPickerCopyColumnTitle(inPicker, inProperty) {
169
+ return callFunction("ABPickerCopyColumnTitle", { returns: "^", args: ["@", "^"] }, inPicker, inProperty);
170
+ }
171
+ export function ABPickerCopyDisplayedProperty(inPicker) {
172
+ return callFunction("ABPickerCopyDisplayedProperty", { returns: "^" }, inPicker);
173
+ }
174
+ export function ABPickerCopyProperties(inPicker) {
175
+ return callFunction("ABPickerCopyProperties", { returns: "@" }, inPicker);
176
+ }
177
+ export function ABPickerCopySelectedGroups(inPicker) {
178
+ return callFunction("ABPickerCopySelectedGroups", { returns: "@" }, inPicker);
179
+ }
180
+ export function ABPickerCopySelectedIdentifiers(inPicker, inPerson) {
181
+ return callFunction("ABPickerCopySelectedIdentifiers", { returns: "@" }, inPicker, inPerson);
182
+ }
183
+ export function ABPickerCopySelectedRecords(inPicker) {
184
+ return callFunction("ABPickerCopySelectedRecords", { returns: "@" }, inPicker);
185
+ }
186
+ export function ABPickerCopySelectedValues(inPicker) {
187
+ return callFunction("ABPickerCopySelectedValues", { returns: "@" }, inPicker);
188
+ }
189
+ export function ABPickerCreate() {
190
+ return callFunction("ABPickerCreate", { returns: "@" });
191
+ }
192
+ export function ABPickerDeselectAll(inPicker) {
193
+ callFunction("ABPickerDeselectAll", undefined, inPicker);
194
+ }
195
+ export function ABPickerDeselectGroup(inPicker, inGroup) {
196
+ callFunction("ABPickerDeselectGroup", undefined, inPicker, inGroup);
197
+ }
198
+ export function ABPickerDeselectIdentifier(inPicker, inPerson, inIdentifier) {
199
+ callFunction("ABPickerDeselectIdentifier", { args: ["@", "@", "^"] }, inPicker, inPerson, inIdentifier);
200
+ }
201
+ export function ABPickerDeselectRecord(inPicker, inRecord) {
202
+ callFunction("ABPickerDeselectRecord", { args: ["@", "^v"] }, inPicker, inRecord);
203
+ }
204
+ export function ABPickerEditInAddressBook(inPicker) {
205
+ callFunction("ABPickerEditInAddressBook", undefined, inPicker);
206
+ }
207
+ export function ABPickerGetAttributes(inPicker) {
208
+ return callFunction("ABPickerGetAttributes", { returns: "I" }, inPicker);
209
+ }
210
+ export function ABPickerGetDelegate(inPicker) {
211
+ return callFunction("ABPickerGetDelegate", { returns: "@" }, inPicker);
212
+ }
213
+ export function ABPickerGetFrame(inPicker, outFrame) {
214
+ callFunction("ABPickerGetFrame", undefined, inPicker, outFrame);
215
+ }
216
+ export function ABPickerIsVisible(inPicker) {
217
+ return callFunction("ABPickerIsVisible", { returns: "B" }, inPicker);
218
+ }
219
+ export function ABPickerRemoveProperty(inPicker, inProperty) {
220
+ callFunction("ABPickerRemoveProperty", { args: ["@", "^"] }, inPicker, inProperty);
221
+ }
222
+ export function ABPickerSelectGroup(inPicker, inGroup, inExtendSelection) {
223
+ callFunction("ABPickerSelectGroup", { args: ["@", "@", "B"] }, inPicker, inGroup, inExtendSelection);
224
+ }
225
+ export function ABPickerSelectIdentifier(inPicker, inPerson, inIdentifier, inExtendSelection) {
226
+ callFunction("ABPickerSelectIdentifier", { args: ["@", "@", "^", "B"] }, inPicker, inPerson, inIdentifier, inExtendSelection);
227
+ }
228
+ export function ABPickerSelectInAddressBook(inPicker) {
229
+ callFunction("ABPickerSelectInAddressBook", undefined, inPicker);
230
+ }
231
+ export function ABPickerSelectRecord(inPicker, inRecord, inExtendSelection) {
232
+ callFunction("ABPickerSelectRecord", { args: ["@", "^v", "B"] }, inPicker, inRecord, inExtendSelection);
233
+ }
234
+ export function ABPickerSetColumnTitle(inPicker, inTitle, inProperty) {
235
+ callFunction("ABPickerSetColumnTitle", { args: ["@", "^", "^"] }, inPicker, inTitle, inProperty);
236
+ }
237
+ export function ABPickerSetDelegate(inPicker, inDelegate) {
238
+ callFunction("ABPickerSetDelegate", undefined, inPicker, inDelegate);
239
+ }
240
+ export function ABPickerSetDisplayedProperty(inPicker, inProperty) {
241
+ callFunction("ABPickerSetDisplayedProperty", { args: ["@", "^"] }, inPicker, inProperty);
242
+ }
243
+ export function ABPickerSetFrame(inPicker, inFrame) {
244
+ callFunction("ABPickerSetFrame", undefined, inPicker, inFrame);
245
+ }
246
+ export function ABPickerSetVisibility(inPicker, visible) {
247
+ callFunction("ABPickerSetVisibility", { args: ["@", "B"] }, inPicker, visible);
248
+ }
249
+ export function ABRecordCopyRecordType(record) {
250
+ return callFunction("ABRecordCopyRecordType", { returns: "^", args: ["^v"] }, record);
251
+ }
252
+ export function ABRecordCopyUniqueId(record) {
253
+ return callFunction("ABRecordCopyUniqueId", { returns: "^", args: ["^v"] }, record);
254
+ }
255
+ export function ABRecordCopyValue(record, property) {
256
+ return callFunction("ABRecordCopyValue", { returns: "^", args: ["^v", "^"] }, record, property);
257
+ }
258
+ export function ABRecordCreateCopy(record) {
259
+ return callFunction("ABRecordCreateCopy", { returns: "^v", args: ["^v"] }, record);
260
+ }
261
+ export function ABRecordIsReadOnly(record) {
262
+ return callFunction("ABRecordIsReadOnly", { returns: "B", args: ["^v"] }, record);
263
+ }
264
+ export function ABRecordRemoveValue(record, property) {
265
+ return callFunction("ABRecordRemoveValue", { returns: "B", args: ["^v", "^"] }, record, property);
266
+ }
267
+ export function ABRecordSetValue(record, property, value) {
268
+ return callFunction("ABRecordSetValue", { returns: "B", args: ["^v", "^", "^"] }, record, property, value);
269
+ }
270
+ export function ABRemoveProperties(addressBook, recordType, properties) {
271
+ return callFunction("ABRemoveProperties", { returns: "q", args: ["@", "^", "@"] }, addressBook, recordType, properties);
272
+ }
273
+ export function ABRemoveRecord(addressBook, record) {
274
+ return callFunction("ABRemoveRecord", { returns: "B", args: ["@", "^v"] }, addressBook, record);
275
+ }
276
+ export function ABSave(addressBook) {
277
+ return callFunction("ABSave", { returns: "B" }, addressBook);
278
+ }
279
+ export function ABSearchElementCreateWithConjunction(conjunction, childrenSearchElement) {
280
+ return callFunction("ABSearchElementCreateWithConjunction", { returns: "@", args: ["q", "@"] }, conjunction, childrenSearchElement);
281
+ }
282
+ export function ABSearchElementMatchesRecord(searchElement, record) {
283
+ return callFunction("ABSearchElementMatchesRecord", { returns: "B", args: ["@", "^v"] }, searchElement, record);
284
+ }
285
+ export function ABSetMe(addressBook, moi) {
286
+ callFunction("ABSetMe", undefined, addressBook, moi);
287
+ }
288
+ export function ABTypeOfProperty(addressBook, recordType, property) {
289
+ return callFunction("ABTypeOfProperty", { returns: "q", args: ["@", "^", "^"] }, addressBook, recordType, property);
290
+ }
@@ -34,3 +34,4 @@ import type { _ABImageClient } from "./ABImageClient.js";
34
34
  export type { _ABImageClient };
35
35
  import type { _ABPersonPickerDelegate } from "./ABPersonPickerDelegate.js";
36
36
  export type { _ABPersonPickerDelegate };
37
+ export * from "./functions.js";
@@ -12,3 +12,4 @@ export const ABPersonPicker = _bindClass(AddressBook, "ABPersonPicker");
12
12
  export const ABPersonView = _bindClass(AddressBook, "ABPersonView");
13
13
  export const ABRecord = _bindClass(AddressBook, "ABRecord");
14
14
  export const ABSearchElement = _bindClass(AddressBook, "ABSearchElement");
15
+ export * from "./functions.js";