UNPKG

tns-platform-declarations

Version:

Platform-specific TypeScript declarations for NativeScript for accessing native objects

1,543 lines (791 loc) • 409 kB
declare const NSASCIIStringEncoding: number; declare const enum NSActivityOptions { IdleDisplaySleepDisabled = 1099511627776, IdleSystemSleepDisabled = 1048576, SuddenTerminationDisabled = 16384, AutomaticTerminationDisabled = 32768, UserInitiated = 16777215, UserInitiatedAllowingIdleSystemSleep = 15728639, Background = 255, LatencyCritical = 1095216660480 } declare function NSAllHashTableObjects(table: NSHashTable<any>): NSArray<any>; declare function NSAllMapTableKeys(table: NSMapTable<any, any>): NSArray<any>; declare function NSAllMapTableValues(table: NSMapTable<any, any>): NSArray<any>; declare function NSAllocateMemoryPages(bytes: number): interop.Pointer | interop.Reference<any>; declare function NSAllocateObject(aClass: typeof NSObject, extraBytes: number, zone: interop.Pointer | interop.Reference<any>): any; declare var NSArgumentDomain: string; declare class NSArray<ObjectType> extends NSObject implements CKRecordValue, NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding { static alloc<ObjectType>(): NSArray<ObjectType>; // inherited from NSObject static array<ObjectType>(): NSArray<ObjectType>; static arrayWithArray<ObjectType>(array: NSArray<ObjectType> | ObjectType[]): NSArray<ObjectType>; static arrayWithContentsOfFile<ObjectType>(path: string): NSArray<ObjectType>; static arrayWithContentsOfURL<ObjectType>(url: NSURL): NSArray<ObjectType>; static arrayWithContentsOfURLError<ObjectType>(url: NSURL): NSArray<ObjectType>; static arrayWithObject<ObjectType>(anObject: ObjectType): NSArray<ObjectType>; static arrayWithObjects<ObjectType>(firstObj: ObjectType): NSArray<ObjectType>; static arrayWithObjectsCount<ObjectType>(objects: interop.Reference<ObjectType>, cnt: number): NSArray<ObjectType>; static new<ObjectType>(): NSArray<ObjectType>; // inherited from NSObject readonly count: number; readonly firstObject: ObjectType; readonly lastObject: ObjectType; readonly sortedArrayHint: NSData; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding [index: number]: ObjectType; [Symbol.iterator](): Iterator<any>; constructor(o: { array: NSArray<ObjectType> | ObjectType[]; }); constructor(o: { array: NSArray<ObjectType> | ObjectType[]; copyItems: boolean; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { contentsOfFile: string; }); constructor(o: { contentsOfURL: NSURL; }); constructor(o: { contentsOfURL: NSURL; }); constructor(o: { objects: ObjectType; }); constructor(o: { objects: interop.Reference<ObjectType>; count: number; }); addObserverToObjectsAtIndexesForKeyPathOptionsContext(observer: NSObject, indexes: NSIndexSet, keyPath: string, options: NSKeyValueObservingOptions, context: interop.Pointer | interop.Reference<any>): void; arrayByAddingObject(anObject: ObjectType): NSArray<ObjectType>; arrayByAddingObjectsFromArray(otherArray: NSArray<ObjectType> | ObjectType[]): NSArray<ObjectType>; arrayByApplyingDifference(difference: NSOrderedCollectionDifference<ObjectType>): NSArray<ObjectType>; class(): typeof NSObject; componentsJoinedByString(separator: string): string; conformsToProtocol(aProtocol: any /* Protocol */): boolean; containsObject(anObject: ObjectType): boolean; copyWithZone(zone: interop.Pointer | interop.Reference<any>): any; descriptionWithLocale(locale: any): string; descriptionWithLocaleIndent(locale: any, level: number): string; differenceFromArray(other: NSArray<ObjectType> | ObjectType[]): NSOrderedCollectionDifference<ObjectType>; differenceFromArrayWithOptions(other: NSArray<ObjectType> | ObjectType[], options: NSOrderedCollectionDifferenceCalculationOptions): NSOrderedCollectionDifference<ObjectType>; differenceFromArrayWithOptionsUsingEquivalenceTest(other: NSArray<ObjectType> | ObjectType[], options: NSOrderedCollectionDifferenceCalculationOptions, block: (p1: ObjectType, p2: ObjectType) => boolean): NSOrderedCollectionDifference<ObjectType>; encodeWithCoder(coder: NSCoder): void; enumerateObjectsAtIndexesOptionsUsingBlock(s: NSIndexSet, opts: NSEnumerationOptions, block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference<boolean>) => void): void; enumerateObjectsUsingBlock(block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference<boolean>) => void): void; enumerateObjectsWithOptionsUsingBlock(opts: NSEnumerationOptions, block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference<boolean>) => void): void; filteredArrayUsingPredicate(predicate: NSPredicate): NSArray<ObjectType>; firstObjectCommonWithArray(otherArray: NSArray<ObjectType> | ObjectType[]): ObjectType; getObjects(objects: interop.Reference<ObjectType>): void; getObjectsRange(objects: interop.Reference<ObjectType>, range: NSRange): void; indexOfObject(anObject: ObjectType): number; indexOfObjectAtIndexesOptionsPassingTest(s: NSIndexSet, opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference<boolean>) => boolean): number; indexOfObjectIdenticalTo(anObject: ObjectType): number; indexOfObjectIdenticalToInRange(anObject: ObjectType, range: NSRange): number; indexOfObjectInRange(anObject: ObjectType, range: NSRange): number; indexOfObjectInSortedRangeOptionsUsingComparator(obj: ObjectType, r: NSRange, opts: NSBinarySearchingOptions, cmp: (p1: any, p2: any) => NSComparisonResult): number; indexOfObjectPassingTest(predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference<boolean>) => boolean): number; indexOfObjectWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference<boolean>) => boolean): number; indexesOfObjectsAtIndexesOptionsPassingTest(s: NSIndexSet, opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference<boolean>) => boolean): NSIndexSet; indexesOfObjectsPassingTest(predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference<boolean>) => boolean): NSIndexSet; indexesOfObjectsWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference<boolean>) => boolean): NSIndexSet; initWithArray(array: NSArray<ObjectType> | ObjectType[]): this; initWithArrayCopyItems(array: NSArray<ObjectType> | ObjectType[], flag: boolean): this; initWithCoder(coder: NSCoder): this; initWithContentsOfFile(path: string): this; initWithContentsOfURL(url: NSURL): this; initWithContentsOfURLError(url: NSURL): this; initWithObjects(firstObj: ObjectType): this; initWithObjectsCount(objects: interop.Reference<ObjectType>, cnt: number): this; isEqual(object: any): boolean; isEqualToArray(otherArray: NSArray<ObjectType> | ObjectType[]): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; makeObjectsPerformSelector(aSelector: string): void; makeObjectsPerformSelectorWithObject(aSelector: string, argument: any): void; mutableCopyWithZone(zone: interop.Pointer | interop.Reference<any>): any; objectAtIndex(index: number): ObjectType; objectAtIndexedSubscript(idx: number): ObjectType; objectEnumerator(): NSEnumerator<ObjectType>; objectsAtIndexes(indexes: NSIndexSet): NSArray<ObjectType>; pathsMatchingExtensions(filterTypes: NSArray<string> | string[]): NSArray<string>; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; removeObserverFromObjectsAtIndexesForKeyPath(observer: NSObject, indexes: NSIndexSet, keyPath: string): void; removeObserverFromObjectsAtIndexesForKeyPathContext(observer: NSObject, indexes: NSIndexSet, keyPath: string, context: interop.Pointer | interop.Reference<any>): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; reverseObjectEnumerator(): NSEnumerator<ObjectType>; self(): this; shuffledArray(): NSArray<ObjectType>; shuffledArrayWithRandomSource(randomSource: GKRandomSource): NSArray<ObjectType>; sortedArrayUsingComparator(cmptr: (p1: any, p2: any) => NSComparisonResult): NSArray<ObjectType>; sortedArrayUsingDescriptors(sortDescriptors: NSArray<NSSortDescriptor> | NSSortDescriptor[]): NSArray<ObjectType>; sortedArrayUsingFunctionContext(comparator: interop.FunctionReference<(p1: ObjectType, p2: ObjectType, p3: interop.Pointer | interop.Reference<any>) => number>, context: interop.Pointer | interop.Reference<any>): NSArray<ObjectType>; sortedArrayUsingFunctionContextHint(comparator: interop.FunctionReference<(p1: ObjectType, p2: ObjectType, p3: interop.Pointer | interop.Reference<any>) => number>, context: interop.Pointer | interop.Reference<any>, hint: NSData): NSArray<ObjectType>; sortedArrayUsingSelector(comparator: string): NSArray<ObjectType>; sortedArrayWithOptionsUsingComparator(opts: NSSortOptions, cmptr: (p1: any, p2: any) => NSComparisonResult): NSArray<ObjectType>; subarrayWithRange(range: NSRange): NSArray<ObjectType>; writeToFileAtomically(path: string, useAuxiliaryFile: boolean): boolean; writeToURLAtomically(url: NSURL, atomically: boolean): boolean; writeToURLError(url: NSURL): boolean; } declare class NSAssertionHandler extends NSObject { static alloc(): NSAssertionHandler; // inherited from NSObject static new(): NSAssertionHandler; // inherited from NSObject static readonly currentHandler: NSAssertionHandler; } declare var NSAssertionHandlerKey: string; declare class NSAttributedString extends NSObject implements NSCopying, NSItemProviderReading, NSItemProviderWriting, NSMutableCopying, NSSecureCoding { static alloc(): NSAttributedString; // inherited from NSObject static attributedStringWithAttachment(attachment: NSTextAttachment): NSAttributedString; static itemProviderVisibilityForRepresentationWithTypeIdentifier(typeIdentifier: string): NSItemProviderRepresentationVisibility; static loadFromHTMLWithDataOptionsCompletionHandler(data: NSData, options: NSDictionary<string, any>, completionHandler: (p1: NSAttributedString, p2: NSDictionary<string, any>, p3: NSError) => void): void; static loadFromHTMLWithFileURLOptionsCompletionHandler(fileURL: NSURL, options: NSDictionary<string, any>, completionHandler: (p1: NSAttributedString, p2: NSDictionary<string, any>, p3: NSError) => void): void; static loadFromHTMLWithRequestOptionsCompletionHandler(request: NSURLRequest, options: NSDictionary<string, any>, completionHandler: (p1: NSAttributedString, p2: NSDictionary<string, any>, p3: NSError) => void): void; static loadFromHTMLWithStringOptionsCompletionHandler(string: string, options: NSDictionary<string, any>, completionHandler: (p1: NSAttributedString, p2: NSDictionary<string, any>, p3: NSError) => void): void; static new(): NSAttributedString; // inherited from NSObject static objectWithItemProviderDataTypeIdentifierError(data: NSData, typeIdentifier: string): NSAttributedString; readonly length: number; readonly string: string; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly writableTypeIdentifiersForItemProvider: NSArray<string>; // inherited from NSItemProviderWriting readonly // inherited from NSObjectProtocol static readonly readableTypeIdentifiersForItemProvider: NSArray<string>; // inherited from NSItemProviderReading static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding static readonly writableTypeIdentifiersForItemProvider: NSArray<string>; // inherited from NSItemProviderWriting constructor(o: { attributedString: NSAttributedString; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { data: NSData; options: NSDictionary<string, any>; documentAttributes: interop.Pointer | interop.Reference<NSDictionary<string, any>>; }); constructor(o: { fileURL: NSURL; options: NSDictionary<any, any>; documentAttributes: interop.Pointer | interop.Reference<NSDictionary<any, any>>; }); constructor(o: { string: string; }); constructor(o: { string: string; attributes: NSDictionary<string, any>; }); constructor(o: { URL: NSURL; options: NSDictionary<string, any>; documentAttributes: interop.Pointer | interop.Reference<NSDictionary<string, any>>; }); attributeAtIndexEffectiveRange(attrName: string, location: number, range: interop.Pointer | interop.Reference<NSRange>): any; attributeAtIndexLongestEffectiveRangeInRange(attrName: string, location: number, range: interop.Pointer | interop.Reference<NSRange>, rangeLimit: NSRange): any; attributedSubstringFromRange(range: NSRange): NSAttributedString; attributesAtIndexEffectiveRange(location: number, range: interop.Pointer | interop.Reference<NSRange>): NSDictionary<string, any>; attributesAtIndexLongestEffectiveRangeInRange(location: number, range: interop.Pointer | interop.Reference<NSRange>, rangeLimit: NSRange): NSDictionary<string, any>; boundingRectWithSizeOptionsContext(size: CGSize, options: NSStringDrawingOptions, context: NSStringDrawingContext): CGRect; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; containsAttachmentsInRange(range: NSRange): boolean; copyWithZone(zone: interop.Pointer | interop.Reference<any>): any; dataFromRangeDocumentAttributesError(range: NSRange, dict: NSDictionary<string, any>): NSData; drawAtPoint(point: CGPoint): void; drawInRect(rect: CGRect): void; drawWithRectOptionsContext(rect: CGRect, options: NSStringDrawingOptions, context: NSStringDrawingContext): void; encodeWithCoder(coder: NSCoder): void; enumerateAttributeInRangeOptionsUsingBlock(attrName: string, enumerationRange: NSRange, opts: NSAttributedStringEnumerationOptions, block: (p1: any, p2: NSRange, p3: interop.Pointer | interop.Reference<boolean>) => void): void; enumerateAttributesInRangeOptionsUsingBlock(enumerationRange: NSRange, opts: NSAttributedStringEnumerationOptions, block: (p1: NSDictionary<string, any>, p2: NSRange, p3: interop.Pointer | interop.Reference<boolean>) => void): void; fileWrapperFromRangeDocumentAttributesError(range: NSRange, dict: NSDictionary<string, any>): NSFileWrapper; initWithAttributedString(attrStr: NSAttributedString): this; initWithCoder(coder: NSCoder): this; initWithDataOptionsDocumentAttributesError(data: NSData, options: NSDictionary<string, any>, dict: interop.Pointer | interop.Reference<NSDictionary<string, any>>): this; initWithFileURLOptionsDocumentAttributesError(url: NSURL, options: NSDictionary<any, any>, dict: interop.Pointer | interop.Reference<NSDictionary<any, any>>): this; initWithString(str: string): this; initWithStringAttributes(str: string, attrs: NSDictionary<string, any>): this; initWithURLOptionsDocumentAttributesError(url: NSURL, options: NSDictionary<string, any>, dict: interop.Pointer | interop.Reference<NSDictionary<string, any>>): this; isEqual(object: any): boolean; isEqualToAttributedString(other: NSAttributedString): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; itemProviderVisibilityForRepresentationWithTypeIdentifier(typeIdentifier: string): NSItemProviderRepresentationVisibility; loadDataWithTypeIdentifierForItemProviderCompletionHandler(typeIdentifier: string, completionHandler: (p1: NSData, p2: NSError) => void): NSProgress; mutableCopyWithZone(zone: interop.Pointer | interop.Reference<any>): any; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; size(): CGSize; } declare const enum NSAttributedStringEnumerationOptions { Reverse = 2, LongestEffectiveRangeNotRequired = 1048576 } declare class NSAutoreleasePool extends NSObject { static addObject(anObject: any): void; static alloc(): NSAutoreleasePool; // inherited from NSObject static new(): NSAutoreleasePool; // inherited from NSObject addObject(anObject: any): void; drain(): void; } declare var NSAverageKeyValueOperator: string; declare const enum NSBinarySearchingOptions { FirstEqual = 256, LastEqual = 512, InsertionIndex = 1024 } declare class NSBlockOperation extends NSOperation { static alloc(): NSBlockOperation; // inherited from NSObject static blockOperationWithBlock(block: () => void): NSBlockOperation; static new(): NSBlockOperation; // inherited from NSObject readonly executionBlocks: NSArray<() => void>; addExecutionBlock(block: () => void): void; } declare var NSBuddhistCalendar: string; declare class NSBundle extends NSObject { static URLForResourceWithExtensionSubdirectoryInBundleWithURL(name: string, ext: string, subpath: string, bundleURL: NSURL): NSURL; static URLsForResourcesWithExtensionSubdirectoryInBundleWithURL(ext: string, subpath: string, bundleURL: NSURL): NSArray<NSURL>; static alloc(): NSBundle; // inherited from NSObject static bundleForClass(aClass: typeof NSObject): NSBundle; static bundleWithIdentifier(identifier: string): NSBundle; static bundleWithPath(path: string): NSBundle; static bundleWithURL(url: NSURL): NSBundle; static new(): NSBundle; // inherited from NSObject static pathForResourceOfTypeInDirectory(name: string, ext: string, bundlePath: string): string; static pathsForResourcesOfTypeInDirectory(ext: string, bundlePath: string): NSArray<string>; static preferredLocalizationsFromArray(localizationsArray: NSArray<string> | string[]): NSArray<string>; static preferredLocalizationsFromArrayForPreferences(localizationsArray: NSArray<string> | string[], preferencesArray: NSArray<string> | string[]): NSArray<string>; readonly appStoreReceiptURL: NSURL; readonly builtInPlugInsPath: string; readonly builtInPlugInsURL: NSURL; readonly bundleIdentifier: string; readonly bundlePath: string; readonly bundleURL: NSURL; readonly developmentLocalization: string; readonly executableArchitectures: NSArray<number>; readonly executablePath: string; readonly executableURL: NSURL; readonly infoDictionary: NSDictionary<string, any>; readonly loaded: boolean; readonly localizations: NSArray<string>; readonly localizedInfoDictionary: NSDictionary<string, any>; readonly preferredLocalizations: NSArray<string>; readonly principalClass: typeof NSObject; readonly privateFrameworksPath: string; readonly privateFrameworksURL: NSURL; readonly resourcePath: string; readonly resourceURL: NSURL; readonly sharedFrameworksPath: string; readonly sharedFrameworksURL: NSURL; readonly sharedSupportPath: string; readonly sharedSupportURL: NSURL; static readonly allBundles: NSArray<NSBundle>; static readonly allFrameworks: NSArray<NSBundle>; static readonly mainBundle: NSBundle; constructor(o: { path: string; }); constructor(o: { URL: NSURL; }); URLForAuxiliaryExecutable(executableName: string): NSURL; URLForResourceWithExtension(name: string, ext: string): NSURL; URLForResourceWithExtensionSubdirectory(name: string, ext: string, subpath: string): NSURL; URLForResourceWithExtensionSubdirectoryLocalization(name: string, ext: string, subpath: string, localizationName: string): NSURL; URLsForResourcesWithExtensionSubdirectory(ext: string, subpath: string): NSArray<NSURL>; URLsForResourcesWithExtensionSubdirectoryLocalization(ext: string, subpath: string, localizationName: string): NSArray<NSURL>; classNamed(className: string): typeof NSObject; initWithPath(path: string): this; initWithURL(url: NSURL): this; load(): boolean; loadAndReturnError(): boolean; loadNibNamedOwnerOptions(name: string, owner: any, options: NSDictionary<string, any>): NSArray<any>; localizedStringForKeyValueTable(key: string, value: string, tableName: string): string; objectForInfoDictionaryKey(key: string): any; pathForAuxiliaryExecutable(executableName: string): string; pathForResourceOfType(name: string, ext: string): string; pathForResourceOfTypeInDirectory(name: string, ext: string, subpath: string): string; pathForResourceOfTypeInDirectoryForLocalization(name: string, ext: string, subpath: string, localizationName: string): string; pathsForResourcesOfTypeInDirectory(ext: string, subpath: string): NSArray<string>; pathsForResourcesOfTypeInDirectoryForLocalization(ext: string, subpath: string, localizationName: string): NSArray<string>; preflightAndReturnError(): boolean; preservationPriorityForTag(tag: string): number; setPreservationPriorityForTags(priority: number, tags: NSSet<string>): void; unload(): boolean; } declare var NSBundleDidLoadNotification: string; declare const NSBundleErrorMaximum: number; declare const NSBundleErrorMinimum: number; declare const NSBundleExecutableArchitectureI386: number; declare const NSBundleExecutableArchitecturePPC: number; declare const NSBundleExecutableArchitecturePPC64: number; declare const NSBundleExecutableArchitectureX86_64: number; declare const NSBundleOnDemandResourceExceededMaximumSizeError: number; declare const NSBundleOnDemandResourceInvalidTagError: number; declare const NSBundleOnDemandResourceOutOfSpaceError: number; declare class NSBundleResourceRequest extends NSObject implements NSProgressReporting { static alloc(): NSBundleResourceRequest; // inherited from NSObject static new(): NSBundleResourceRequest; // inherited from NSObject readonly bundle: NSBundle; loadingPriority: number; readonly tags: NSSet<string>; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly progress: NSProgress; // inherited from NSProgressReporting readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { tags: NSSet<string>; }); constructor(o: { tags: NSSet<string>; bundle: NSBundle; }); beginAccessingResourcesWithCompletionHandler(completionHandler: (p1: NSError) => void): void; class(): typeof NSObject; conditionallyBeginAccessingResourcesWithCompletionHandler(completionHandler: (p1: boolean) => void): void; conformsToProtocol(aProtocol: any /* Protocol */): boolean; endAccessingResources(): void; initWithTags(tags: NSSet<string>): this; initWithTagsBundle(tags: NSSet<string>, bundle: NSBundle): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare var NSBundleResourceRequestLoadingPriorityUrgent: number; declare var NSBundleResourceRequestLowDiskSpaceNotification: string; declare class NSByteCountFormatter extends NSFormatter { static alloc(): NSByteCountFormatter; // inherited from NSObject static new(): NSByteCountFormatter; // inherited from NSObject static stringFromByteCountCountStyle(byteCount: number, countStyle: NSByteCountFormatterCountStyle): string; static stringFromMeasurementCountStyle(measurement: NSMeasurement<NSUnitInformationStorage>, countStyle: NSByteCountFormatterCountStyle): string; adaptive: boolean; allowedUnits: NSByteCountFormatterUnits; allowsNonnumericFormatting: boolean; countStyle: NSByteCountFormatterCountStyle; formattingContext: NSFormattingContext; includesActualByteCount: boolean; includesCount: boolean; includesUnit: boolean; zeroPadsFractionDigits: boolean; stringFromByteCount(byteCount: number): string; stringFromMeasurement(measurement: NSMeasurement<NSUnitInformationStorage>): string; } declare const enum NSByteCountFormatterCountStyle { File = 0, Memory = 1, Decimal = 2, Binary = 3 } declare const enum NSByteCountFormatterUnits { UseDefault = 0, UseBytes = 1, UseKB = 2, UseMB = 4, UseGB = 8, UseTB = 16, UsePB = 32, UseEB = 64, UseZB = 128, UseYBOrHigher = 65280, UseAll = 65535 } declare class NSCache<KeyType, ObjectType> extends NSObject { static alloc<KeyType, ObjectType>(): NSCache<KeyType, ObjectType>; // inherited from NSObject static new<KeyType, ObjectType>(): NSCache<KeyType, ObjectType>; // inherited from NSObject countLimit: number; delegate: NSCacheDelegate; evictsObjectsWithDiscardedContent: boolean; name: string; totalCostLimit: number; objectForKey(key: KeyType): ObjectType; removeAllObjects(): void; removeObjectForKey(key: KeyType): void; setObjectForKey(obj: ObjectType, key: KeyType): void; setObjectForKeyCost(obj: ObjectType, key: KeyType, g: number): void; } interface NSCacheDelegate extends NSObjectProtocol { cacheWillEvictObject?(cache: NSCache<any, any>, obj: any): void; } declare var NSCacheDelegate: { prototype: NSCacheDelegate; }; declare class NSCachedURLResponse extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSCachedURLResponse; // inherited from NSObject static new(): NSCachedURLResponse; // inherited from NSObject readonly data: NSData; readonly response: NSURLResponse; readonly storagePolicy: NSURLCacheStoragePolicy; readonly userInfo: NSDictionary<any, any>; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { response: NSURLResponse; data: NSData; }); constructor(o: { response: NSURLResponse; data: NSData; userInfo: NSDictionary<any, any>; storagePolicy: NSURLCacheStoragePolicy; }); copyWithZone(zone: interop.Pointer | interop.Reference<any>): any; encodeWithCoder(coder: NSCoder): void; initWithCoder(coder: NSCoder): this; initWithResponseData(response: NSURLResponse, data: NSData): this; initWithResponseDataUserInfoStoragePolicy(response: NSURLResponse, data: NSData, userInfo: NSDictionary<any, any>, storagePolicy: NSURLCacheStoragePolicy): this; } declare const enum NSCalculationError { NoError = 0, LossOfPrecision = 1, Underflow = 2, Overflow = 3, DivideByZero = 4 } declare class NSCalendar extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSCalendar; // inherited from NSObject static calendarWithIdentifier(calendarIdentifierConstant: string): NSCalendar; static new(): NSCalendar; // inherited from NSObject readonly AMSymbol: string; readonly PMSymbol: string; readonly calendarIdentifier: string; readonly eraSymbols: NSArray<string>; firstWeekday: number; locale: NSLocale; readonly longEraSymbols: NSArray<string>; minimumDaysInFirstWeek: number; readonly monthSymbols: NSArray<string>; readonly quarterSymbols: NSArray<string>; readonly shortMonthSymbols: NSArray<string>; readonly shortQuarterSymbols: NSArray<string>; readonly shortStandaloneMonthSymbols: NSArray<string>; readonly shortStandaloneQuarterSymbols: NSArray<string>; readonly shortStandaloneWeekdaySymbols: NSArray<string>; readonly shortWeekdaySymbols: NSArray<string>; readonly standaloneMonthSymbols: NSArray<string>; readonly standaloneQuarterSymbols: NSArray<string>; readonly standaloneWeekdaySymbols: NSArray<string>; timeZone: NSTimeZone; readonly veryShortMonthSymbols: NSArray<string>; readonly veryShortStandaloneMonthSymbols: NSArray<string>; readonly veryShortStandaloneWeekdaySymbols: NSArray<string>; readonly veryShortWeekdaySymbols: NSArray<string>; readonly weekdaySymbols: NSArray<string>; static readonly autoupdatingCurrentCalendar: NSCalendar; static readonly currentCalendar: NSCalendar; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { calendarIdentifier: string; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding compareDateToDateToUnitGranularity(date1: Date, date2: Date, unit: NSCalendarUnit): NSComparisonResult; componentFromDate(unit: NSCalendarUnit, date: Date): number; componentsFromDate(unitFlags: NSCalendarUnit, date: Date): NSDateComponents; componentsFromDateComponentsToDateComponentsOptions(unitFlags: NSCalendarUnit, startingDateComp: NSDateComponents, resultDateComp: NSDateComponents, options: NSCalendarOptions): NSDateComponents; componentsFromDateToDateOptions(unitFlags: NSCalendarUnit, startingDate: Date, resultDate: Date, opts: NSCalendarOptions): NSDateComponents; componentsInTimeZoneFromDate(timezone: NSTimeZone, date: Date): NSDateComponents; copyWithZone(zone: interop.Pointer | interop.Reference<any>): any; dateByAddingComponentsToDateOptions(comps: NSDateComponents, date: Date, opts: NSCalendarOptions): Date; dateByAddingUnitValueToDateOptions(unit: NSCalendarUnit, value: number, date: Date, options: NSCalendarOptions): Date; dateBySettingHourMinuteSecondOfDateOptions(h: number, m: number, s: number, date: Date, opts: NSCalendarOptions): Date; dateBySettingUnitValueOfDateOptions(unit: NSCalendarUnit, v: number, date: Date, opts: NSCalendarOptions): Date; dateFromComponents(comps: NSDateComponents): Date; dateMatchesComponents(date: Date, components: NSDateComponents): boolean; dateWithEraYearForWeekOfYearWeekOfYearWeekdayHourMinuteSecondNanosecond(eraValue: number, yearValue: number, weekValue: number, weekdayValue: number, hourValue: number, minuteValue: number, secondValue: number, nanosecondValue: number): Date; dateWithEraYearMonthDayHourMinuteSecondNanosecond(eraValue: number, yearValue: number, monthValue: number, dayValue: number, hourValue: number, minuteValue: number, secondValue: number, nanosecondValue: number): Date; encodeWithCoder(coder: NSCoder): void; enumerateDatesStartingAfterDateMatchingComponentsOptionsUsingBlock(start: Date, comps: NSDateComponents, opts: NSCalendarOptions, block: (p1: Date, p2: boolean, p3: interop.Pointer | interop.Reference<boolean>) => void): void; getEraYearForWeekOfYearWeekOfYearWeekdayFromDate(eraValuePointer: interop.Pointer | interop.Reference<number>, yearValuePointer: interop.Pointer | interop.Reference<number>, weekValuePointer: interop.Pointer | interop.Reference<number>, weekdayValuePointer: interop.Pointer | interop.Reference<number>, date: Date): void; getEraYearMonthDayFromDate(eraValuePointer: interop.Pointer | interop.Reference<number>, yearValuePointer: interop.Pointer | interop.Reference<number>, monthValuePointer: interop.Pointer | interop.Reference<number>, dayValuePointer: interop.Pointer | interop.Reference<number>, date: Date): void; getHourMinuteSecondNanosecondFromDate(hourValuePointer: interop.Pointer | interop.Reference<number>, minuteValuePointer: interop.Pointer | interop.Reference<number>, secondValuePointer: interop.Pointer | interop.Reference<number>, nanosecondValuePointer: interop.Pointer | interop.Reference<number>, date: Date): void; initWithCalendarIdentifier(ident: string): this; initWithCoder(coder: NSCoder): this; isDateEqualToDateToUnitGranularity(date1: Date, date2: Date, unit: NSCalendarUnit): boolean; isDateInSameDayAsDate(date1: Date, date2: Date): boolean; isDateInToday(date: Date): boolean; isDateInTomorrow(date: Date): boolean; isDateInWeekend(date: Date): boolean; isDateInYesterday(date: Date): boolean; maximumRangeOfUnit(unit: NSCalendarUnit): NSRange; minimumRangeOfUnit(unit: NSCalendarUnit): NSRange; nextDateAfterDateMatchingComponentsOptions(date: Date, comps: NSDateComponents, options: NSCalendarOptions): Date; nextDateAfterDateMatchingHourMinuteSecondOptions(date: Date, hourValue: number, minuteValue: number, secondValue: number, options: NSCalendarOptions): Date; nextDateAfterDateMatchingUnitValueOptions(date: Date, unit: NSCalendarUnit, value: number, options: NSCalendarOptions): Date; nextWeekendStartDateIntervalOptionsAfterDate(datep: interop.Pointer | interop.Reference<Date>, tip: interop.Pointer | interop.Reference<number>, options: NSCalendarOptions, date: Date): boolean; ordinalityOfUnitInUnitForDate(smaller: NSCalendarUnit, larger: NSCalendarUnit, date: Date): number; rangeOfUnitInUnitForDate(smaller: NSCalendarUnit, larger: NSCalendarUnit, date: Date): NSRange; rangeOfUnitStartDateIntervalForDate(unit: NSCalendarUnit, datep: interop.Pointer | interop.Reference<Date>, tip: interop.Pointer | interop.Reference<number>, date: Date): boolean; rangeOfWeekendStartDateIntervalContainingDate(datep: interop.Pointer | interop.Reference<Date>, tip: interop.Pointer | interop.Reference<number>, date: Date): boolean; startOfDayForDate(date: Date): Date; } declare var NSCalendarDayChangedNotification: string; declare var NSCalendarIdentifierBuddhist: string; declare var NSCalendarIdentifierChinese: string; declare var NSCalendarIdentifierCoptic: string; declare var NSCalendarIdentifierEthiopicAmeteAlem: string; declare var NSCalendarIdentifierEthiopicAmeteMihret: string; declare var NSCalendarIdentifierGregorian: string; declare var NSCalendarIdentifierHebrew: string; declare var NSCalendarIdentifierISO8601: string; declare var NSCalendarIdentifierIndian: string; declare var NSCalendarIdentifierIslamic: string; declare var NSCalendarIdentifierIslamicCivil: string; declare var NSCalendarIdentifierIslamicTabular: string; declare var NSCalendarIdentifierIslamicUmmAlQura: string; declare var NSCalendarIdentifierJapanese: string; declare var NSCalendarIdentifierPersian: string; declare var NSCalendarIdentifierRepublicOfChina: string; declare const enum NSCalendarOptions { WrapComponents = 1, MatchStrictly = 2, SearchBackwards = 4, MatchPreviousTimePreservingSmallerUnits = 256, MatchNextTimePreservingSmallerUnits = 512, MatchNextTime = 1024, MatchFirst = 4096, MatchLast = 8192 } declare const enum NSCalendarUnit { CalendarUnitEra = 2, CalendarUnitYear = 4, CalendarUnitMonth = 8, CalendarUnitDay = 16, CalendarUnitHour = 32, CalendarUnitMinute = 64, CalendarUnitSecond = 128, CalendarUnitWeekday = 512, CalendarUnitWeekdayOrdinal = 1024, CalendarUnitQuarter = 2048, CalendarUnitWeekOfMonth = 4096, CalendarUnitWeekOfYear = 8192, CalendarUnitYearForWeekOfYear = 16384, CalendarUnitNanosecond = 32768, CalendarUnitCalendar = 1048576, CalendarUnitTimeZone = 2097152, EraCalendarUnit = 2, YearCalendarUnit = 4, MonthCalendarUnit = 8, DayCalendarUnit = 16, HourCalendarUnit = 32, MinuteCalendarUnit = 64, SecondCalendarUnit = 128, WeekCalendarUnit = 256, WeekdayCalendarUnit = 512, WeekdayOrdinalCalendarUnit = 1024, QuarterCalendarUnit = 2048, WeekOfMonthCalendarUnit = 4096, WeekOfYearCalendarUnit = 8192, YearForWeekOfYearCalendarUnit = 16384, CalendarCalendarUnit = 1048576, TimeZoneCalendarUnit = 2097152 } declare var NSCharacterConversionException: string; declare class NSCharacterSet extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): NSCharacterSet; // inherited from NSObject static characterSetWithBitmapRepresentation(data: NSData): NSCharacterSet; static characterSetWithCharactersInString(aString: string): NSCharacterSet; static characterSetWithContentsOfFile(fName: string): NSCharacterSet; static characterSetWithRange(aRange: NSRange): NSCharacterSet; static new(): NSCharacterSet; // inherited from NSObject readonly bitmapRepresentation: NSData; readonly invertedSet: NSCharacterSet; static readonly URLFragmentAllowedCharacterSet: NSCharacterSet; static readonly URLHostAllowedCharacterSet: NSCharacterSet; static readonly URLPasswordAllowedCharacterSet: NSCharacterSet; static readonly URLPathAllowedCharacterSet: NSCharacterSet; static readonly URLQueryAllowedCharacterSet: NSCharacterSet; static readonly URLUserAllowedCharacterSet: NSCharacterSet; static readonly alphanumericCharacterSet: NSCharacterSet; static readonly capitalizedLetterCharacterSet: NSCharacterSet; static readonly controlCharacterSet: NSCharacterSet; static readonly decimalDigitCharacterSet: NSCharacterSet; static readonly decomposableCharacterSet: NSCharacterSet; static readonly illegalCharacterSet: NSCharacterSet; static readonly letterCharacterSet: NSCharacterSet; static readonly lowercaseLetterCharacterSet: NSCharacterSet; static readonly newlineCharacterSet: NSCharacterSet; static readonly nonBaseCharacterSet: NSCharacterSet; static readonly punctuationCharacterSet: NSCharacterSet; static readonly symbolCharacterSet: NSCharacterSet; static readonly uppercaseLetterCharacterSet: NSCharacterSet; static readonly whitespaceAndNewlineCharacterSet: NSCharacterSet; static readonly whitespaceCharacterSet: NSCharacterSet; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding characterIsMember(aCharacter: string): boolean; copyWithZone(zone: interop.Pointer | interop.Reference<any>): any; encodeWithCoder(coder: NSCoder): void; hasMemberInPlane(thePlane: number): boolean; initWithCoder(coder: NSCoder): this; isSupersetOfSet(theOtherSet: NSCharacterSet): boolean; longCharacterIsMember(theLongChar: number): boolean; mutableCopyWithZone(zone: interop.Pointer | interop.Reference<any>): any; } declare var NSChineseCalendar: string; declare function NSClassFromString(aClassName: string): typeof NSObject; declare const NSCloudSharingConflictError: number; declare const NSCloudSharingErrorMaximum: number; declare const NSCloudSharingErrorMinimum: number; declare const NSCloudSharingNetworkFailureError: number; declare const NSCloudSharingNoPermissionError: number; declare const NSCloudSharingOtherError: number; declare const NSCloudSharingQuotaExceededError: number; declare const NSCloudSharingTooManyParticipantsError: number; declare var NSCocoaErrorDomain: string; declare class NSCoder extends NSObject { static alloc(): NSCoder; // inherited from NSObject static new(): NSCoder; // inherited from NSObject readonly allowedClasses: NSSet<typeof NSObject>; readonly allowsKeyedCoding: boolean; readonly decodingFailurePolicy: NSDecodingFailurePolicy; readonly error: NSError; readonly requiresSecureCoding: boolean; readonly systemVersion: number; containsValueForKey(key: string): boolean; decodeArrayOfObjCTypeCountAt(itemType: string | interop.Pointer | interop.Reference<any>, count: number, array: interop.Pointer | interop.Reference<any>): void; decodeBoolForKey(key: string): boolean; decodeBytesForKeyReturnedLength(key: string, lengthp: interop.Pointer | interop.Reference<number>): string; decodeBytesWithReturnedLength(lengthp: interop.Pointer | interop.Reference<number>): interop.Pointer | interop.Reference<any>; decodeCGAffineTransformForKey(key: string): CGAffineTransform; decodeCGPointForKey(key: string): CGPoint; decodeCGRectForKey(key: string): CGRect; decodeCGSizeForKey(key: string): CGSize; decodeCGVectorForKey(key: string): CGVector; decodeCMTimeForKey(key: string): CMTime; decodeCMTimeMappingForKey(key: string): CMTimeMapping; decodeCMTimeRangeForKey(key: string): CMTimeRange; decodeDataObject(): NSData; decodeDirectionalEdgeInsetsForKey(key: string): NSDirectionalEdgeInsets; decodeDoubleForKey(key: string): number; decodeFloatForKey(key: string): number; decodeInt32ForKey(key: string): number; decodeInt64ForKey(key: string): number; decodeIntForKey(key: string): number; decodeIntegerForKey(key: string): number; decodeObject(): any; decodeObjectForKey(key: string): any; decodeObjectOfClassForKey(aClass: typeof NSObject, key: string): any; decodeObjectOfClassesForKey(classes: NSSet<typeof NSObject>, key: string): any; decodePropertyListForKey(key: string): any; decodeTopLevelObjectAndReturnError(): any; decodeTopLevelObjectForKeyError(key: string): any; decodeTopLevelObjectOfClassForKeyError(aClass: typeof NSObject, key: string): any; decodeTopLevelObjectOfClassesForKeyError(classes: NSSet<typeof NSObject>, key: string): any; decodeUIEdgeInsetsForKey(key: string): UIEdgeInsets; decodeUIOffsetForKey(key: string): UIOffset; decodeValueOfObjCTypeAt(type: string | interop.Pointer | interop.Reference<any>, data: interop.Pointer | interop.Reference<any>): void; decodeValueOfObjCTypeAtSize(type: string | interop.Pointer | interop.Reference<any>, data: interop.Pointer | interop.Reference<any>, size: number): void; encodeArrayOfObjCTypeCountAt(type: string | interop.Pointer | interop.Reference<any>, count: number, array: interop.Pointer | interop.Reference<any>): void; encodeBoolForKey(value: boolean, key: string): void; encodeBycopyObject(anObject: any): void; encodeByrefObject(anObject: any): void; encodeBytesLength(byteaddr: interop.Pointer | interop.Reference<any>, length: number): void; encodeBytesLengthForKey(bytes: string | interop.Pointer | interop.Reference<any>, length: number, key: string): void; encodeCGAffineTransformForKey(transform: CGAffineTransform, key: string): void; encodeCGPointForKey(point: CGPoint, key: string): void; encodeCGRectForKey(rect: CGRect, key: string): void; encodeCGSizeForKey(size: CGSize, key: string): void; encodeCGVectorForKey(vector: CGVector, key: string): void; encodeCMTimeForKey(time: CMTime, key: string): void; encodeCMTimeMappingForKey(timeMapping: CMTimeMapping, key: string): void; encodeCMTimeRangeForKey(timeRange: CMTimeRange, key: string): void; encodeConditionalObject(object: any): void; encodeConditionalObjectForKey(object: any, key: string): void; encodeDataObject(data: NSData): void; encodeDirectionalEdgeInsetsForKey(insets: NSDirectionalEdgeInsets, key: string): void; encodeDoubleForKey(value: number, key: string): void; encodeFloatForKey(value: number, key: string): void; encodeInt32ForKey(value: number, key: string): void; encodeInt64ForKey(value: number, key: string): void; encodeIntForKey(value: number, key: string): void; encodeIntegerForKey(value: number, key: string): void; encodeObject(object: any): void; encodeObjectForKey(object: any, key: string): void; encodeRootObject(rootObject: any): void; encodeUIEdgeInsetsForKey(insets: UIEdgeInsets, key: string): void; encodeUIOffsetForKey(offset: UIOffset, key: string): void; encodeValueOfObjCTypeAt(type: string | interop.Pointer | interop.Reference<any>, addr: interop.Pointer | interop.Reference<any>): void; failWithError(error: NSError): void; objectZone(): interop.Pointer | interop.Reference<any>; setObjectZone(zone: interop.Pointer | interop.Reference<any>): void; versionForClassName(className: string): number; } declare const NSCoderErrorMaximum: number; declare const NSCoderErrorMinimum: number; declare const NSCoderInvalidValueError: number; declare const NSCoderReadCorruptError: number; declare const NSCoderValueNotFoundError: number; interface NSCoding { encodeWithCoder(coder: NSCoder): void; initWithCoder?(coder: NSCoder): NSCoding; } declare var NSCoding: { prototype: NSCoding; }; declare const enum NSCollectionChangeType { Insert = 0, Remove = 1 } declare function NSCompareHashTables(table1: NSHashTable<any>, table2: NSHashTable<any>): boolean; declare function NSCompareMapTables(table1: NSMapTable<any, any>, table2: NSMapTable<any, any>): boolean; declare class NSComparisonPredicate extends NSPredicate { static alloc(): NSComparisonPredicate; // inherited from NSObject static new(): NSComparisonPredicate; // inherited from NSObject static predicateWithLeftExpressionRightExpressionCustomSelector(lhs: NSExpression, rhs: NSExpression, selector: string): NSComparisonPredicate; static predicateWithLeftExpressionRightExpressionModifierTypeOptions(lhs: NSExpression, rhs: NSExpression, modifier: NSComparisonPredicateModifier, type: NSPredicateOperatorType, options: NSComparisonPredicateOptions): NSComparisonPredicate; readonly comparisonPredicateModifier: NSComparisonPredicateModifier; readonly customSelector: string; readonly leftExpression: NSExpression; readonly options: NSComparisonPredicateOptions; readonly predicateOperatorType: NSPredicateOperatorType; readonly rightExpression: NSExpression; constructor(o: { leftExpression: NSExpression; rightExpression: NSExpression; customSelector: string; }); constructor(o: { leftExpression: NSExpression; rightExpression: NSExpression; modifier: NSComparisonPredicateModifier; type: NSPredicateOperatorType; options: NSComparisonPredicateOptions; }); initWithLeftExpressionRightExpressionCustomSelector(lhs: NSExpression, rhs: NSExpression, selector: string): this; initWithLeftExpressionRightExpressionModifierTypeOptions(lhs: NSExpression, rhs: NSExpression, modifier: NSComparisonPredicateModifier, type: NSPredicateOperatorType, options: NSComparisonPredicateOptions): this; } declare const enum NSComparisonPredicateModifier { DirectPredicateModifier = 0, AllPredicateModifier = 1, AnyPredicateModifier = 2 } declare const enum NSComparisonPredicateOptions { CaseInsensitivePredicateOption = 1, DiacriticInsensitivePredicateOption = 2, NormalizedPredicateOption = 4 } declare const enum NSComparisonResult { OrderedAscending = -1, OrderedSame = 0, OrderedDescending = 1 } declare class NSCompoundPredicate extends NSPredicate { static alloc(): NSCompoundPredicate; // inherited from NSObject static andPredicateWithSubpredicates(subpredicates: NSArray<NSPredicate> | NSPredicate[]): NSCompoundPredicate; static new(): NSCompoundPredicate; // inherited from NSObject static notPredicateWithSubpredicate(predicate: NSPredicate): NSCompoundPredicate; static orPredicateWithSubpredicates(subpredicates: NSArray<NSPredicate> | NSPredicate[]): NSCompoundPredicate; readonly compoundPredicateType: NSCompoundPredicateType; readonly subpredicates: NSArray<any>; constructor(o: { type: NSCompoundPredicateType; subpredicates: NSArray<NSPredicate> | NSPredicate[]; }); initWithTypeSubpredicates(type: NSCompoundPredicateType, subpredicates: NSArray<NSPredicate> | NSPredicate[]): this; } declare const enum NSCompoundPredicateType { NotPredicateType = 0, AndPredicateType = 1, OrPredicateType = 2 } declare const NSCompressionErrorMaximum: number; declare const NSCompressionErrorMinimum: number; declare const NSCompressionFailedError: number; declare class NSCondition extends NSObject implements NSLocking { static alloc(): NSCondition; // inherited from NSObject static new(): NSCondition; // inherited from NSObject name: string; broadcast(): void; lock(): void; signal(): void; unlock(): void; wait(): void; waitUntilDate(limit: Date): boolean; } declare class NSConditionLock extends NSObject implements NSLocking { static alloc(): NSConditionLock; // inherited from NSObject static new(): NSConditionLock; // inherited from NSObject readonly condition: number; name: string; constructor(o: { condition: number; }); initWithCondition(condition: number): this; lock(): void; lockBeforeDate(limit: Date): boolean; lockWhenCondition(condition: number): void; lockWhenConditionBeforeDate(condition: number, limit: Date): boolean; tryLock(): boolean; tryLockWhenCondition(condition: number): boolean; unlock(): void; unlockWithCondition(condition: number): void; } declare class NSConstantString extends NSSimpleCString { static alloc(): NSConstantString; // inherited from NSObject static new(): NSConstantString; // inherited from NSObject static objectWithItemProviderDataTypeIdentifierError(data: NSData, typeIdentifier: string): NSConstantString; // inherited from NSItemProviderReading static string(): NSConstantString; // inherited from NSString static stringWithCStringEncoding(cString: string | interop.Pointer | interop.Reference<any>, enc: number): NSConstantString; // inherited from NSString static stringWithCharactersLength(characters: interop.Pointer | interop.Reference<string>, length: number): NSConstantString; // inherited from NSString static stringWithContentsOfFileEncodingError(path: string, enc: number): NSConstantString; // inherited from NSString static stringWithContentsOfFileUsedEncodingError(path: string, enc: interop.Pointer | interop.Reference<number>): NSConstantString; // inherited from NSString static stringWithContentsOfURLEncodingError(url: NSURL, enc: number): NSConstantString; // inherited from NSString static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: interop.Pointer | interop.Reference<number>): NSConstantString; // inherited from NSString static stringWithString(string: string): NSConstantString; // inherited from NSString static stringWithUTF8String(nullTerminatedCString: string | interop.Pointer | interop.Reference<any>): NSConstantString; // inherited from NSString } declare function NSCopyHashTableWithZone(table: NSH