declare const enum NSActivityOptions { IdleDisplaySleepDisabled = 1099511627776, IdleSystemSleepDisabled = 1048576, SuddenTerminationDisabled = 16384, AutomaticTerminationDisabled = 32768, UserInitiated = 16777215, UserInitiatedAllowingIdleSystemSleep = 15728639, Background = 255, LatencyCritical = 1095216660480 } declare function NSAllocateMemoryPages(bytes: number): interop.Pointer | interop.Reference; declare function NSAllocateObject(aClass: typeof NSObject, extraBytes: number, zone: interop.Pointer | interop.Reference): any; declare var NSArgumentDomain: string; declare class NSArray extends NSObject implements CKRecordValue, NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding { static alloc(): NSArray; // inherited from NSObject static array(): NSArray; static arrayWithArray(array: NSArray): NSArray; static arrayWithContentsOfFile(path: string): NSArray; static arrayWithContentsOfURL(url: NSURL): NSArray; static arrayWithObject(anObject: ObjectType): NSArray; static arrayWithObjects(firstObj: ObjectType): NSArray; static arrayWithObjectsCount(objects: interop.Reference, cnt: number): NSArray; static new(): NSArray; // inherited from NSObject static supportsSecureCoding(): boolean; /* 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 [index: number]: ObjectType; [Symbol.iterator](): Iterator; constructor(o: { array: NSArray; }); constructor(o: { array: NSArray; copyItems: boolean; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { contentsOfFile: string; }); constructor(o: { contentsOfURL: NSURL; }); constructor(o: { objects: ObjectType; }); constructor(o: { objects: interop.Reference; count: number; }); addObserverToObjectsAtIndexesForKeyPathOptionsContext(observer: NSObject, indexes: NSIndexSet, keyPath: string, options: NSKeyValueObservingOptions, context: interop.Pointer | interop.Reference): void; arrayByAddingObject(anObject: ObjectType): NSArray; arrayByAddingObjectsFromArray(otherArray: NSArray): NSArray; class(): typeof NSObject; componentsJoinedByString(separator: string): string; conformsToProtocol(aProtocol: any /* Protocol */): boolean; containsObject(anObject: ObjectType): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; descriptionWithLocale(locale: any): string; descriptionWithLocaleIndent(locale: any, level: number): string; encodeWithCoder(aCoder: NSCoder): void; enumerateObjectsAtIndexesOptionsUsingBlock(s: NSIndexSet, opts: NSEnumerationOptions, block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => void): void; enumerateObjectsUsingBlock(block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => void): void; enumerateObjectsWithOptionsUsingBlock(opts: NSEnumerationOptions, block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => void): void; filteredArrayUsingPredicate(predicate: NSPredicate): NSArray; firstObjectCommonWithArray(otherArray: NSArray): ObjectType; getObjects(objects: interop.Reference): void; getObjectsRange(objects: interop.Reference, range: NSRange): void; indexOfObject(anObject: ObjectType): number; indexOfObjectAtIndexesOptionsPassingTest(s: NSIndexSet, opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => 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): number; indexOfObjectWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => boolean): number; indexesOfObjectsAtIndexesOptionsPassingTest(s: NSIndexSet, opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => boolean): NSIndexSet; indexesOfObjectsPassingTest(predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => boolean): NSIndexSet; indexesOfObjectsWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => boolean): NSIndexSet; initWithArray(array: NSArray): this; initWithArrayCopyItems(array: NSArray, flag: boolean): this; initWithCoder(aDecoder: NSCoder): this; initWithContentsOfFile(path: string): this; initWithContentsOfURL(url: NSURL): this; initWithObjects(firstObj: ObjectType): this; initWithObjectsCount(objects: interop.Reference, cnt: number): this; isEqual(object: any): boolean; isEqualToArray(otherArray: NSArray): 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; objectAtIndex(index: number): ObjectType; objectAtIndexedSubscript(idx: number): ObjectType; objectEnumerator(): NSEnumerator; objectsAtIndexes(indexes: NSIndexSet): NSArray; pathsMatchingExtensions(filterTypes: NSArray): NSArray; 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): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; reverseObjectEnumerator(): NSEnumerator; self(): this; sortedArrayUsingComparator(cmptr: (p1: any, p2: any) => NSComparisonResult): NSArray; sortedArrayUsingDescriptors(sortDescriptors: NSArray): NSArray; sortedArrayUsingFunctionContext(comparator: interop.FunctionReference<(p1: ObjectType, p2: ObjectType, p3: interop.Pointer | interop.Reference) => number>, context: interop.Pointer | interop.Reference): NSArray; sortedArrayUsingFunctionContextHint(comparator: interop.FunctionReference<(p1: ObjectType, p2: ObjectType, p3: interop.Pointer | interop.Reference) => number>, context: interop.Pointer | interop.Reference, hint: NSData): NSArray; sortedArrayUsingSelector(comparator: string): NSArray; sortedArrayWithOptionsUsingComparator(opts: NSSortOptions, cmptr: (p1: any, p2: any) => NSComparisonResult): NSArray; subarrayWithRange(range: NSRange): NSArray; writeToFileAtomically(path: string, useAuxiliaryFile: boolean): boolean; writeToURLAtomically(url: NSURL, atomically: boolean): boolean; } declare class NSAssertionHandler extends NSObject { static alloc(): NSAssertionHandler; // inherited from NSObject static currentHandler(): NSAssertionHandler; static new(): NSAssertionHandler; // inherited from NSObject } declare var NSAssertionHandlerKey: string; declare class NSAttributedString extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): NSAttributedString; // inherited from NSObject static attributedStringWithAttachment(attachment: NSTextAttachment): NSAttributedString; static new(): NSAttributedString; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ length: number; /* readonly */ string: string; constructor(o: { attributedString: NSAttributedString; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { data: NSData; options: NSDictionary; documentAttributes: interop.Pointer | interop.Reference>; }); constructor(o: { fileURL: NSURL; options: NSDictionary; documentAttributes: interop.Pointer | interop.Reference>; }); constructor(o: { string: string; }); constructor(o: { string: string; attributes: NSDictionary; }); constructor(o: { URL: NSURL; options: NSDictionary; documentAttributes: interop.Pointer | interop.Reference>; }); attributeAtIndexEffectiveRange(attrName: string, location: number, range: interop.Pointer | interop.Reference): any; attributeAtIndexLongestEffectiveRangeInRange(attrName: string, location: number, range: interop.Pointer | interop.Reference, rangeLimit: NSRange): any; attributedSubstringFromRange(range: NSRange): NSAttributedString; attributesAtIndexEffectiveRange(location: number, range: interop.Pointer | interop.Reference): NSDictionary; attributesAtIndexLongestEffectiveRangeInRange(location: number, range: interop.Pointer | interop.Reference, rangeLimit: NSRange): NSDictionary; boundingRectWithSizeOptionsContext(size: CGSize, options: NSStringDrawingOptions, context: NSStringDrawingContext): CGRect; containsAttachmentsInRange(range: NSRange): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; dataFromRangeDocumentAttributesError(range: NSRange, dict: NSDictionary): NSData; drawAtPoint(point: CGPoint): void; drawInRect(rect: CGRect): void; drawWithRectOptionsContext(rect: CGRect, options: NSStringDrawingOptions, context: NSStringDrawingContext): void; encodeWithCoder(aCoder: NSCoder): void; enumerateAttributeInRangeOptionsUsingBlock(attrName: string, enumerationRange: NSRange, opts: NSAttributedStringEnumerationOptions, block: (p1: any, p2: NSRange, p3: interop.Pointer | interop.Reference) => void): void; enumerateAttributesInRangeOptionsUsingBlock(enumerationRange: NSRange, opts: NSAttributedStringEnumerationOptions, block: (p1: NSDictionary, p2: NSRange, p3: interop.Pointer | interop.Reference) => void): void; fileWrapperFromRangeDocumentAttributesError(range: NSRange, dict: NSDictionary): NSFileWrapper; initWithAttributedString(attrStr: NSAttributedString): this; initWithCoder(aDecoder: NSCoder): this; initWithDataOptionsDocumentAttributesError(data: NSData, options: NSDictionary, dict: interop.Pointer | interop.Reference>): this; initWithFileURLOptionsDocumentAttributesError(url: NSURL, options: NSDictionary, dict: interop.Pointer | interop.Reference>): this; initWithString(str: string): this; initWithStringAttributes(str: string, attrs: NSDictionary): this; initWithURLOptionsDocumentAttributesError(url: NSURL, options: NSDictionary, dict: interop.Pointer | interop.Reference>): this; isEqualToAttributedString(other: NSAttributedString): boolean; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; 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; static allBundles(): NSArray; static allFrameworks(): NSArray; 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 mainBundle(): NSBundle; static new(): NSBundle; // inherited from NSObject static pathForResourceOfTypeInDirectory(name: string, ext: string, bundlePath: string): string; static pathsForResourcesOfTypeInDirectory(ext: string, bundlePath: string): NSArray; static preferredLocalizationsFromArray(localizationsArray: NSArray): NSArray; static preferredLocalizationsFromArrayForPreferences(localizationsArray: NSArray, preferencesArray: NSArray): NSArray; /* readonly */ appStoreReceiptURL: NSURL; /* readonly */ builtInPlugInsPath: string; /* readonly */ builtInPlugInsURL: NSURL; /* readonly */ bundleIdentifier: string; /* readonly */ bundlePath: string; /* readonly */ bundleURL: NSURL; /* readonly */ developmentLocalization: string; /* readonly */ executableArchitectures: NSArray; /* readonly */ executablePath: string; /* readonly */ executableURL: NSURL; /* readonly */ infoDictionary: NSDictionary; /* readonly */ loaded: boolean; /* readonly */ localizations: NSArray; /* readonly */ localizedInfoDictionary: NSDictionary; /* readonly */ preferredLocalizations: NSArray; /* 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; 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; URLsForResourcesWithExtensionSubdirectoryLocalization(ext: string, subpath: string, localizationName: string): NSArray; classNamed(className: string): typeof NSObject; initWithPath(path: string): this; initWithURL(url: NSURL): this; load(): boolean; loadAndReturnError(): boolean; loadNibNamedOwnerOptions(name: string, owner: any, options: NSDictionary): NSArray; 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; pathsForResourcesOfTypeInDirectoryForLocalization(ext: string, subpath: string, localizationName: string): NSArray; preflightAndReturnError(): boolean; preservationPriorityForTag(tag: string): number; setPreservationPriorityForTags(priority: number, tags: NSSet): void; unload(): boolean; } declare var NSBundleDidLoadNotification: string; 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; /* 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; }); constructor(o: { tags: NSSet; 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): this; initWithTagsBundle(tags: NSSet, 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; adaptive: boolean; allowedUnits: NSByteCountFormatterUnits; allowsNonnumericFormatting: boolean; countStyle: NSByteCountFormatterCountStyle; formattingContext: NSFormattingContext; includesActualByteCount: boolean; includesCount: boolean; includesUnit: boolean; zeroPadsFractionDigits: boolean; stringFromByteCount(byteCount: number): 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 extends NSObject { static alloc(): NSCache; // inherited from NSObject static new(): NSCache; // 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, 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 static supportsSecureCoding(): boolean; /* readonly */ data: NSData; /* readonly */ response: NSURLResponse; /* readonly */ storagePolicy: NSURLCacheStoragePolicy; /* readonly */ userInfo: NSDictionary; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { response: NSURLResponse; data: NSData; }); constructor(o: { response: NSURLResponse; data: NSData; userInfo: NSDictionary; storagePolicy: NSURLCacheStoragePolicy; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithResponseData(response: NSURLResponse, data: NSData): this; initWithResponseDataUserInfoStoragePolicy(response: NSURLResponse, data: NSData, userInfo: NSDictionary, 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 autoupdatingCurrentCalendar(): NSCalendar; static calendarWithIdentifier(calendarIdentifierConstant: string): NSCalendar; static currentCalendar(): NSCalendar; static new(): NSCalendar; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ AMSymbol: string; /* readonly */ PMSymbol: string; /* readonly */ calendarIdentifier: string; /* readonly */ eraSymbols: NSArray; firstWeekday: number; locale: NSLocale; /* readonly */ longEraSymbols: NSArray; minimumDaysInFirstWeek: number; /* readonly */ monthSymbols: NSArray; /* readonly */ quarterSymbols: NSArray; /* readonly */ shortMonthSymbols: NSArray; /* readonly */ shortQuarterSymbols: NSArray; /* readonly */ shortStandaloneMonthSymbols: NSArray; /* readonly */ shortStandaloneQuarterSymbols: NSArray; /* readonly */ shortStandaloneWeekdaySymbols: NSArray; /* readonly */ shortWeekdaySymbols: NSArray; /* readonly */ standaloneMonthSymbols: NSArray; /* readonly */ standaloneQuarterSymbols: NSArray; /* readonly */ standaloneWeekdaySymbols: NSArray; timeZone: NSTimeZone; /* readonly */ veryShortMonthSymbols: NSArray; /* readonly */ veryShortStandaloneMonthSymbols: NSArray; /* readonly */ veryShortStandaloneWeekdaySymbols: NSArray; /* readonly */ veryShortWeekdaySymbols: NSArray; /* readonly */ weekdaySymbols: NSArray; 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; 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(aCoder: NSCoder): void; enumerateDatesStartingAfterDateMatchingComponentsOptionsUsingBlock(start: Date, comps: NSDateComponents, opts: NSCalendarOptions, block: (p1: Date, p2: boolean, p3: interop.Pointer | interop.Reference) => void): void; getEraYearForWeekOfYearWeekOfYearWeekdayFromDate(eraValuePointer: interop.Pointer | interop.Reference, yearValuePointer: interop.Pointer | interop.Reference, weekValuePointer: interop.Pointer | interop.Reference, weekdayValuePointer: interop.Pointer | interop.Reference, date: Date): void; getEraYearMonthDayFromDate(eraValuePointer: interop.Pointer | interop.Reference, yearValuePointer: interop.Pointer | interop.Reference, monthValuePointer: interop.Pointer | interop.Reference, dayValuePointer: interop.Pointer | interop.Reference, date: Date): void; getHourMinuteSecondNanosecondFromDate(hourValuePointer: interop.Pointer | interop.Reference, minuteValuePointer: interop.Pointer | interop.Reference, secondValuePointer: interop.Pointer | interop.Reference, nanosecondValuePointer: interop.Pointer | interop.Reference, date: Date): void; initWithCalendarIdentifier(ident: string): this; initWithCoder(aDecoder: 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, tip: interop.Pointer | interop.Reference, 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, tip: interop.Pointer | interop.Reference, date: Date): boolean; rangeOfWeekendStartDateIntervalContainingDate(datep: interop.Pointer | interop.Reference, tip: interop.Pointer | interop.Reference, 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 NSCoding, NSCopying, NSMutableCopying { static URLFragmentAllowedCharacterSet(): NSCharacterSet; static URLHostAllowedCharacterSet(): NSCharacterSet; static URLPasswordAllowedCharacterSet(): NSCharacterSet; static URLPathAllowedCharacterSet(): NSCharacterSet; static URLQueryAllowedCharacterSet(): NSCharacterSet; static URLUserAllowedCharacterSet(): NSCharacterSet; static alloc(): NSCharacterSet; // inherited from NSObject static alphanumericCharacterSet(): NSCharacterSet; static capitalizedLetterCharacterSet(): NSCharacterSet; static characterSetWithBitmapRepresentation(data: NSData): NSCharacterSet; static characterSetWithCharactersInString(aString: string): NSCharacterSet; static characterSetWithContentsOfFile(fName: string): NSCharacterSet; static characterSetWithRange(aRange: NSRange): NSCharacterSet; static controlCharacterSet(): NSCharacterSet; static decimalDigitCharacterSet(): NSCharacterSet; static decomposableCharacterSet(): NSCharacterSet; static illegalCharacterSet(): NSCharacterSet; static letterCharacterSet(): NSCharacterSet; static lowercaseLetterCharacterSet(): NSCharacterSet; static new(): NSCharacterSet; // inherited from NSObject static newlineCharacterSet(): NSCharacterSet; static nonBaseCharacterSet(): NSCharacterSet; static punctuationCharacterSet(): NSCharacterSet; static symbolCharacterSet(): NSCharacterSet; static uppercaseLetterCharacterSet(): NSCharacterSet; static whitespaceAndNewlineCharacterSet(): NSCharacterSet; static whitespaceCharacterSet(): NSCharacterSet; /* readonly */ bitmapRepresentation: NSData; /* readonly */ invertedSet: NSCharacterSet; constructor(o: { coder: NSCoder; }); // inherited from NSCoding characterIsMember(aCharacter: string): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; hasMemberInPlane(thePlane: number): boolean; initWithCoder(aDecoder: NSCoder): this; isSupersetOfSet(theOtherSet: NSCharacterSet): boolean; longCharacterIsMember(theLongChar: number): boolean; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } declare var NSChineseCalendar: string; declare function NSClassFromString(aClassName: string): typeof NSObject; declare var NSCocoaErrorDomain: string; declare class NSCoder extends NSObject { static alloc(): NSCoder; // inherited from NSObject static new(): NSCoder; // inherited from NSObject /* readonly */ allowedClasses: NSSet; /* readonly */ allowsKeyedCoding: boolean; /* readonly */ requiresSecureCoding: boolean; /* readonly */ systemVersion: number; containsValueForKey(key: string): boolean; decodeArrayOfObjCTypeCountAt(itemType: string, count: number, array: interop.Pointer | interop.Reference): void; decodeBoolForKey(key: string): boolean; decodeBytesForKeyReturnedLength(key: string, lengthp: interop.Pointer | interop.Reference): string; decodeBytesWithReturnedLength(lengthp: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; 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; 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, key: string): any; decodePropertyListForKey(key: string): any; decodeTopLevelObjectAndReturnError(): any; decodeTopLevelObjectForKeyError(key: string): any; decodeTopLevelObjectOfClassForKeyError(aClass: typeof NSObject, key: string): any; decodeTopLevelObjectOfClassesForKeyError(classes: NSSet, key: string): any; decodeUIEdgeInsetsForKey(key: string): UIEdgeInsets; decodeUIOffsetForKey(key: string): UIOffset; decodeValueOfObjCTypeAt(type: string, data: interop.Pointer | interop.Reference): void; encodeArrayOfObjCTypeCountAt(type: string, count: number, array: interop.Pointer | interop.Reference): void; encodeBoolForKey(boolv: boolean, key: string): void; encodeBycopyObject(anObject: any): void; encodeByrefObject(anObject: any): void; encodeBytesLength(byteaddr: interop.Pointer | interop.Reference, length: number): void; encodeBytesLengthForKey(bytesp: string, lenv: 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(objv: any, key: string): void; encodeDataObject(data: NSData): void; encodeDoubleForKey(realv: number, key: string): void; encodeFloatForKey(realv: number, key: string): void; encodeInt32ForKey(intv: number, key: string): void; encodeInt64ForKey(intv: number, key: string): void; encodeIntForKey(intv: number, key: string): void; encodeIntegerForKey(intv: number, key: string): void; encodeObject(object: any): void; encodeObjectForKey(objv: any, key: string): void; encodeRootObject(rootObject: any): void; encodeUIEdgeInsetsForKey(insets: UIEdgeInsets, key: string): void; encodeUIOffsetForKey(offset: UIOffset, key: string): void; encodeValueOfObjCTypeAt(type: string, addr: interop.Pointer | interop.Reference): void; failWithError(error: NSError): void; objectZone(): interop.Pointer | interop.Reference; setObjectZone(zone: interop.Pointer | interop.Reference): void; versionForClassName(className: string): number; } interface NSCoding { encodeWithCoder(aCoder: NSCoder): void; initWithCoder?(aDecoder: NSCoder): NSCoding; } declare var NSCoding: { prototype: NSCoding; }; 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): NSCompoundPredicate; static new(): NSCompoundPredicate; // inherited from NSObject static notPredicateWithSubpredicate(predicate: NSPredicate): NSCompoundPredicate; static orPredicateWithSubpredicates(subpredicates: NSArray): NSCompoundPredicate; /* readonly */ compoundPredicateType: NSCompoundPredicateType; /* readonly */ subpredicates: NSArray; constructor(o: { type: NSCompoundPredicateType; subpredicates: NSArray; }); initWithTypeSubpredicates(type: NSCompoundPredicateType, subpredicates: NSArray): this; } declare const enum NSCompoundPredicateType { NotPredicateType = 0, AndPredicateType = 1, OrPredicateType = 2 } 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 string(): NSConstantString; // inherited from NSString static stringWithCStringEncoding(cString: string, enc: number): NSConstantString; // inherited from NSString static stringWithCharactersLength(characters: interop.Pointer | interop.Reference, 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): NSConstantString; // inherited from NSString static stringWithContentsOfURLEncodingError(url: NSURL, enc: number): NSConstantString; // inherited from NSString static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: interop.Pointer | interop.Reference): NSConstantString; // inherited from NSString static stringWithString(string: string): NSConstantString; // inherited from NSString static stringWithUTF8String(nullTerminatedCString: string): NSConstantString; // inherited from NSString } declare function NSCopyMemoryPages(source: interop.Pointer | interop.Reference, dest: interop.Pointer | interop.Reference, bytes: number): void; declare function NSCopyObject(object: any, extraBytes: number, zone: interop.Pointer | interop.Reference): any; interface NSCopying { copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare var NSCopying: { prototype: NSCopying; }; declare var NSCountKeyValueOperator: string; declare class NSCountedSet extends NSMutableSet { static alloc(): NSCountedSet; // inherited from NSObject static new(): NSCountedSet; // inherited from NSObject static set(): NSCountedSet; // inherited from NSSet static setWithArray(array: NSArray): NSCountedSet; // inherited from NSSet static setWithCapacity(numItems: number): NSCountedSet; // inherited from NSMutableSet static setWithObject(object: ObjectType): NSCountedSet; // inherited from NSSet static setWithObjects(firstObj: ObjectType): NSCountedSet; // inherited from NSSet static setWithObjectsCount(objects: interop.Reference, cnt: number): NSCountedSet; // inherited from NSSet static setWithSet(set: NSSet): NSCountedSet; // inherited from NSSet countForObject(object: ObjectType): number; } declare function NSCreateZone(startSize: number, granularity: number, canFree: boolean): interop.Pointer | interop.Reference; declare var NSCurrentLocaleDidChangeNotification: string; declare class NSData extends NSObject implements CKRecordValue, NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): NSData; // inherited from NSObject static data(): NSData; static dataWithBytesLength(bytes: interop.Pointer | interop.Reference, length: number): NSData; static dataWithBytesNoCopyLength(bytes: interop.Pointer | interop.Reference, length: number): NSData; static dataWithBytesNoCopyLengthFreeWhenDone(bytes: interop.Pointer | interop.Reference, length: number, b: boolean): NSData; static dataWithContentsOfFile(path: string): NSData; static dataWithContentsOfFileOptionsError(path: string, readOptionsMask: NSDataReadingOptions): NSData; static dataWithContentsOfMappedFile(path: string): any; static dataWithContentsOfURL(url: NSURL): NSData; static dataWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: NSDataReadingOptions): NSData; static dataWithData(data: NSData): NSData; static new(): NSData; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ bytes: interop.Pointer | interop.Reference; /* readonly */ length: number; /* readonly */ debugDescription: string; // inherited from NSObjectProtocol /* readonly */ description: string; // inherited from NSObjectProtocol /* readonly */ hash: number; // inherited from NSObjectProtocol /* readonly */ isProxy: boolean; // inherited from NSObjectProtocol /* readonly */ superclass: typeof NSObject; // inherited from NSObjectProtocol /* readonly */ // inherited from NSObjectProtocol constructor(o: { base64EncodedData: NSData; options: NSDataBase64DecodingOptions; }); constructor(o: { base64EncodedString: string; options: NSDataBase64DecodingOptions; }); constructor(o: { base64Encoding: string; }); constructor(o: { bytes: interop.Pointer | interop.Reference; length: number; }); constructor(o: { bytesNoCopy: interop.Pointer | interop.Reference; length: number; }); constructor(o: { bytesNoCopy: interop.Pointer | interop.Reference; length: number; deallocator: (p1: interop.Pointer | interop.Reference, p2: number) => void; }); constructor(o: { bytesNoCopy: interop.Pointer | interop.Reference; length: number; freeWhenDone: boolean; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { contentsOfFile: string; }); constructor(o: { contentsOfFile: string; options: NSDataReadingOptions; }); constructor(o: { contentsOfMappedFile: string; }); constructor(o: { contentsOfURL: NSURL; }); constructor(o: { contentsOfURL: NSURL; options: NSDataReadingOptions; }); constructor(o: { data: NSData; }); base64EncodedDataWithOptions(options: NSDataBase64EncodingOptions): NSData; base64EncodedStringWithOptions(options: NSDataBase64EncodingOptions): string; base64Encoding(): string; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; enumerateByteRangesUsingBlock(block: (p1: interop.Pointer | interop.Reference, p2: NSRange, p3: interop.Pointer | interop.Reference) => void): void; getBytes(buffer: interop.Pointer | interop.Reference): void; getBytesLength(buffer: interop.Pointer | interop.Reference, length: number): void; getBytesRange(buffer: interop.Pointer | interop.Reference, range: NSRange): void; initWithBase64EncodedDataOptions(base64Data: NSData, options: NSDataBase64DecodingOptions): this; initWithBase64EncodedStringOptions(base64String: string, options: NSDataBase64DecodingOptions): this; initWithBase64Encoding(base64String: string): this; initWithBytesLength(bytes: interop.Pointer | interop.Reference, length: number): this; initWithBytesNoCopyLength(bytes: interop.Pointer | interop.Reference, length: number): this; initWithBytesNoCopyLengthDeallocator(bytes: interop.Pointer | interop.Reference, length: number, deallocator: (p1: interop.Pointer | interop.Reference, p2: number) => void): this; initWithBytesNoCopyLengthFreeWhenDone(bytes: interop.Pointer | interop.Reference, length: number, b: boolean): this; initWithCoder(aDecoder: NSCoder): this; initWithContentsOfFile(path: string): this; initWithContentsOfFileOptionsError(path: string, readOptionsMask: NSDataReadingOptions): this; initWithContentsOfMappedFile(path: string): this; initWithContentsOfURL(url: NSURL): this; initWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: NSDataReadingOptions): this; initWithData(data: NSData): this; isEqual(object: any): boolean; isEqualToData(other: NSData): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; rangeOfDataOptionsRange(dataToFind: NSData, mask: NSDataSearchOptions, searchRange: NSRange): NSRange; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; subdataWithRange(range: NSRange): NSData; writeToFileAtomically(path: string, useAuxiliaryFile: boolean): boolean; writeToFileOptionsError(path: string, writeOptionsMask: NSDataWritingOptions): boolean; writeToURLAtomically(url: NSURL, atomically: boolean): boolean; writeToURLOptionsError(url: NSURL, writeOptionsMask: NSDataWritingOptions): boolean; } declare const enum NSDataBase64DecodingOptions { IgnoreUnknownCharacters = 1 } declare const enum NSDataBase64EncodingOptions { Encoding64CharacterLineLength = 1, Encoding76CharacterLineLength = 2, EncodingEndLineWithCarriageReturn = 16, EncodingEndLineWithLineFeed = 32 } declare class NSDataDetector extends NSRegularExpression { static alloc(): NSDataDetector; // inherited from NSObject static dataDetectorWithTypesError(checkingTypes: number): NSDataDetector; static new(): NSDataDetector; // inherited from NSObject /* readonly */ checkingTypes: number; constructor(o: { types: number; }); initWithTypesError(checkingTypes: number): this; } declare const enum NSDataReadingOptions { DataReadingMappedIfSafe = 1, DataReadingUncached = 2, DataReadingMappedAlways = 8, DataReadingMapped = 1, MappedRead = 1, UncachedRead = 2 } declare const enum NSDataSearchOptions { Backwards = 1, Anchored = 2 } declare const enum NSDataWritingOptions { DataWritingAtomic = 1, DataWritingWithoutOverwriting = 2, DataWritingFileProtectionNone = 268435456, DataWritingFileProtectionComplete = 536870912, DataWritingFileProtectionCompleteUnlessOpen = 805306368, DataWritingFileProtectionCompleteUntilFirstUserAuthentication = 1073741824, DataWritingFileProtectionMask = 4026531840, AtomicWrite = 1 } declare class NSDate extends NSObject implements CKRecordValue, NSCopying, NSSecureCoding { static alloc(): NSDate; // inherited from NSObject static date(): NSDate; static dateWithTimeIntervalSince1970(secs: number): NSDate; static dateWithTimeIntervalSinceDate(secsToBeAdded: number, date: Date): NSDate; static dateWithTimeIntervalSinceNow(secs: number): NSDate; static dateWithTimeIntervalSinceReferenceDate(ti: number): NSDate; static distantFuture(): Date; static distantPast(): Date; static new(): NSDate; // inherited from NSObject static supportsSecureCoding(): boolean; static timeIntervalSinceReferenceDate(): number; /* readonly */ timeIntervalSince1970: number; /* readonly */ timeIntervalSinceNow: number; /* readonly */ timeIntervalSinceReferenceDate: number; /* readonly */ debugDescription: string; // inherited from NSObjectProtocol /* readonly */ description: string; // inherited from NSObjectProtocol /* readonly */ hash: number; // inherited from NSObjectProtocol /* readonly */ isProxy: boolean; // inherited from NSObjectProtocol /* readonly */ superclass: typeof NSObject; // inherited from NSObjectProtocol /* readonly */ // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { timeIntervalSince1970: number; }); constructor(o: { timeInterval: number; sinceDate: Date; }); constructor(o: { timeIntervalSinceNow: number; }); constructor(o: { timeIntervalSinceReferenceDate: number; }); addTimeInterval(seconds: number): any; class(): typeof NSObject; compare(other: Date): NSComparisonResult; conformsToProtocol(aProtocol: any /* Protocol */): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; dateByAddingTimeInterval(ti: number): this; descriptionWithLocale(locale: any): string; earlierDate(anotherDate: Date): Date; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithTimeIntervalSince1970(secs: number): this; initWithTimeIntervalSinceDate(secsToBeAdded: number, date: Date): this; initWithTimeIntervalSinceNow(secs: number): this; initWithTimeIntervalSinceReferenceDate(ti: number): this; isEqual(object: any): boolean; isEqualToDate(otherDate: Date): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; laterDate(anotherDate: Date): Date; 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; timeIntervalSinceDate(anotherDate: Date): number; } declare class NSDateComponents extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSDateComponents; // inherited from NSObject static new(): NSDateComponents; // inherited from NSObject static supportsSecureCoding(): boolean; calendar: NSCalendar; /* readonly */ date: Date; day: number; era: number; hour: number; leapMonth: boolean; minute: number; month: number; nanosecond: number; quarter: number; second: number; timeZone: NSTimeZone; /* readonly */ validDate: boolean; weekOfMonth: number; weekOfYear: number; weekday: number; weekdayOrdinal: number; year: number; yearForWeekOfYear: number; constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; isValidDateInCalendar(calendar: NSCalendar): boolean; setValueForComponent(value: number, unit: NSCalendarUnit): void; setWeek(v: number): void; valueForComponent(unit: NSCalendarUnit): number; week(): number; } declare class NSDateComponentsFormatter extends NSFormatter { static alloc(): NSDateComponentsFormatter; // inherited from NSObject static localizedStringFromDateComponentsUnitsStyle(components: NSDateComponents, unitsStyle: NSDateComponentsFormatterUnitsStyle): string; static new(): NSDateComponentsFormatter; // inherited from NSObject allowedUnits: NSCalendarUnit; allowsFractionalUnits: boolean; calendar: NSCalendar; collapsesLargestUnit: boolean; formattingContext: NSFormattingContext; includesApproximationPhrase: boolean; includesTimeRemainingPhrase: boolean; maximumUnitCount: number; unitsStyle: NSDateComponentsFormatterUnitsStyle; zeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehavior; stringFromDateComponents(components: NSDateComponents): string; stringFromDateToDate(startDate: Date, endDate: Date): string; stringFromTimeInterval(ti: number): string; } declare const enum NSDateComponentsFormatterUnitsStyle { Positional = 0, Abbreviated = 1, Short = 2, Full = 3, SpellOut = 4 } declare const enum NSDateComponentsFormatterZeroFormattingBehavior { None = 0, Default = 1, DropLeading = 2, DropMiddle = 4, DropTrailing = 8, DropAll = 14, Pad = 65536 } declare class NSDateFormatter extends NSFormatter { static alloc(): NSDateFormatter; // inherited from NSObject static dateFormatFromTemplateOptionsLocale(tmplate: string, opts: number, locale: NSLocale): string; static defaultFormatterBehavior(): NSDateFormatterBehavior; static localizedStringFromDateDateStyleTimeStyle(date: Date, dstyle: NSDateFormatterStyle, tstyle: NSDateFormatterStyle): string; static new(): NSDateFormatter; // inherited from NSObject static setDefaultFormatterBehavior(behavior: NSDateFormatterBehavior): void; AMSymbol: string; PMSymbol: string; calendar: NSCalendar; dateFormat: string; dateStyle: NSDateFormatterStyle; defaultDate: Date; doesRelativeDateFormatting: boolean; eraSymbols: NSArray; formatterBehavior: NSDateFormatterBehavior; formattingContext: NSFormattingContext; generatesCalendarDates: boolean; gregorianStartDate: Date; lenient: boolean; locale: NSLocale; longEraSymbols: NSArray; monthSymbols: NSArray; quarterSymbols: NSArray; shortMonthSymbols: NSArray; shortQuarterSymbols: NSArray; shortStandaloneMonthSymbols: NSArray; shortStandaloneQuarterSymbols: NSArray; shortStandaloneWeekdaySymbols: NSArray; shortWeekdaySymbols: NSArray; standaloneMonthSymbols: NSArray; standaloneQuarterSymbols: NSArray; standaloneWeekdaySymbols: NSArray; timeStyle: NSDateFormatterStyle; timeZone: NSTimeZone; twoDigitStartDate: Date; veryShortMonthSymbols: NSArray; veryShortStandaloneMonthSymbols: NSArray; veryShortStandaloneWeekdaySymbols: NSArray; veryShortWeekdaySymbols: NSArray; weekdaySymbols: NSArray; dateFromString(string: string): Date; getObjectValueForStringRangeError(obj: interop.Pointer | interop.Reference, string: string, rangep: interop.Pointer | interop.Reference): boolean; setLocalizedDateFormatFromTemplate(dateFormatTemplate: string): void; stringFromDate(date: Date): string; } declare const enum NSDateFormatterBehavior { BehaviorDefault = 0, Behavior10_4 = 1040 } declare const enum NSDateFormatterStyle { NoStyle = 0, ShortStyle = 1, MediumStyle = 2, LongStyle = 3, FullStyle = 4 } declare class NSDateIntervalFormatter extends NSFormatter { static alloc(): NSDateIntervalFormatter; // inherited from NSObject static new(): NSDateIntervalFormatter; // inherited from NSObject calendar: NSCalendar; dateStyle: NSDateIntervalFormatterStyle; dateTemplate: string; locale: NSLocale; timeStyle: NSDateIntervalFormatterStyle; timeZone: NSTimeZone; stringFromDateToDate(fromDate: Date, toDate: Date): string; } declare const enum NSDateIntervalFormatterStyle { NoStyle = 0, ShortStyle = 1, MediumStyle = 2, LongStyle = 3, FullStyle = 4 } declare function NSDeallocateMemoryPages(ptr: interop.Pointer | interop.Reference, bytes: number): void; declare function NSDeallocateObject(object: any): void; interface NSDecimal { _exponent: number; _length: number; _isNegative: number; _isCompact: number; _reserved: number; _mantissa: interop.Reference; } declare var NSDecimal: interop.StructType; declare function NSDecimalAdd(result: interop.Pointer | interop.Reference, leftOperand: interop.Pointer | interop.Reference, rightOperand: interop.Pointer | interop.Reference, roundingMode: NSRoundingMode): NSCalculationError; declare function NSDecimalCompact(number: interop.Pointer | interop.Reference): void; declare function NSDecimalCompare(leftOperand: interop.Pointer | interop.Reference, rightOperand: interop.Pointer | interop.Reference): NSComparisonResult; declare function NSDecimalCopy(destination: interop.Pointer | interop.Reference, source: interop.Pointer | interop.Reference): void; declare function NSDecimalDivide(result: interop.Pointer | interop.Reference, leftOperand: interop.Pointer | interop.Reference, rightOperand: interop.Pointer | interop.Reference, roundingMode: NSRoundingMode): NSCalculationError; declare function NSDecimalMultiply(result: interop.Pointer | interop.Reference, leftOperand: interop.Pointer | interop.Reference, rightOperand: interop.Pointer | interop.Reference, roundingMode: NSRoundingMode): NSCalculationError; declare function NSDecimalMultiplyByPowerOf10(result: interop.Pointer | interop.Reference, number: interop.Pointer | interop.Reference, power: number, roundingMode: NSRoundingMode): NSCalculationError; declare function NSDecimalNormalize(number1: interop.Pointer | interop.Reference, number2: interop.Pointer | interop.Reference, roundingMode: NSRoundingMode): NSCalculationError; declare class NSDecimalNumber extends NSNumber { static alloc(): NSDecimalNumber; // inherited from NSObject static decimalNumberWithDecimal(dcm: NSDecimal): NSDecimalNumber; static decimalNumberWithMantissaExponentIsNegative(mantissa: number, exponent: number, flag: boolean): NSDecimalNumber; static decimalNumberWithString(numberValue: string): NSDecimalNumber; static decimalNumberWithStringLocale(numberValue: string, locale: any): NSDecimalNumber; static defaultBehavior(): NSDecimalNumberBehaviors; static maximumDecimalNumber(): NSDecimalNumber; static minimumDecimalNumber(): NSDecimalNumber; static new(): NSDecimalNumber; // inherited from NSObject static notANumber(): NSDecimalNumber; static one(): NSDecimalNumber; static setDefaultBehavior(behavior: NSDecimalNumberBehaviors): void; static zero(): NSDecimalNumber; constructor(o: { decimal: NSDecimal; }); constructor(o: { mantissa: number; exponent: number; isNegative: boolean; }); constructor(o: { string: string; }); constructor(o: { string: string; locale: any; }); decimalNumberByAdding(decimalNumber: NSDecimalNumber): NSDecimalNumber; decimalNumberByAddingWithBehavior(decimalNumber: NSDecimalNumber, behavior: NSDecimalNumberBehaviors): NSDecimalNumber; decimalNumberByDividingBy(decimalNumber: NSDecimalNumber): NSDecimalNumber; decimalNumberByDividingByWithBehavior(decimalNumber: NSDecimalNumber, behavior: NSDecimalNumberBehaviors): NSDecimalNumber; decimalNumberByMultiplyingBy(decimalNumber: NSDecimalNumber): NSDecimalNumber; decimalNumberByMultiplyingByPowerOf10(power: number): NSDecimalNumber; decimalNumberByMultiplyingByPowerOf10WithBehavior(power: number, behavior: NSDecimalNumberBehaviors): NSDecimalNumber; decimalNumberByMultiplyingByWithBehavior(decimalNumber: NSDecimalNumber, behavior: NSDecimalNumberBehaviors): NSDecimalNumber; decimalNumberByRaisingToPower(power: number): NSDecimalNumber; decimalNumberByRaisingToPowerWithBehavior(power: number, behavior: NSDecimalNumberBehaviors): NSDecimalNumber; decimalNumberByRoundingAccordingToBehavior(behavior: NSDecimalNumberBehaviors): NSDecimalNumber; decimalNumberBySubtracting(decimalNumber: NSDecimalNumber): NSDecimalNumber; decimalNumberBySubtractingWithBehavior(decimalNumber: NSDecimalNumber, behavior: NSDecimalNumberBehaviors): NSDecimalNumber; initWithDecimal(dcm: NSDecimal): this; initWithMantissaExponentIsNegative(mantissa: number, exponent: number, flag: boolean): this; initWithString(numberValue: string): this; initWithStringLocale(numberValue: string, locale: any): this; } interface NSDecimalNumberBehaviors { exceptionDuringOperationErrorLeftOperandRightOperand(operation: string, error: NSCalculationError, leftOperand: NSDecimalNumber, rightOperand: NSDecimalNumber): NSDecimalNumber; roundingMode(): NSRoundingMode; scale(): number; } declare var NSDecimalNumberBehaviors: { prototype: NSDecimalNumberBehaviors; }; declare var NSDecimalNumberDivideByZeroException: string; declare var NSDecimalNumberExactnessException: string; declare class NSDecimalNumberHandler extends NSObject implements NSCoding, NSDecimalNumberBehaviors { static alloc(): NSDecimalNumberHandler; // inherited from NSObject static decimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(roundingMode: NSRoundingMode, scale: number, exact: boolean, overflow: boolean, underflow: boolean, divideByZero: boolean): NSDecimalNumberHandler; static defaultDecimalNumberHandler(): NSDecimalNumberHandler; static new(): NSDecimalNumberHandler; // inherited from NSObject constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { roundingMode: NSRoundingMode; scale: number; raiseOnExactness: boolean; raiseOnOverflow: boolean; raiseOnUnderflow: boolean; raiseOnDivideByZero: boolean; }); encodeWithCoder(aCoder: NSCoder): void; exceptionDuringOperationErrorLeftOperandRightOperand(operation: string, error: NSCalculationError, leftOperand: NSDecimalNumber, rightOperand: NSDecimalNumber): NSDecimalNumber; initWithCoder(aDecoder: NSCoder): this; initWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(roundingMode: NSRoundingMode, scale: number, exact: boolean, overflow: boolean, underflow: boolean, divideByZero: boolean): this; roundingMode(): NSRoundingMode; scale(): number; } declare var NSDecimalNumberOverflowException: string; declare var NSDecimalNumberUnderflowException: string; declare function NSDecimalPower(result: interop.Pointer | interop.Reference, number: interop.Pointer | interop.Reference, power: number, roundingMode: NSRoundingMode): NSCalculationError; declare function NSDecimalRound(result: interop.Pointer | interop.Reference, number: interop.Pointer | interop.Reference, scale: number, roundingMode: NSRoundingMode): void; declare function NSDecimalString(dcm: interop.Pointer | interop.Reference, locale: any): string; declare function NSDecimalSubtract(result: interop.Pointer | interop.Reference, leftOperand: interop.Pointer | interop.Reference, rightOperand: interop.Pointer | interop.Reference, roundingMode: NSRoundingMode): NSCalculationError; declare function NSDecrementExtraRefCountWasZero(object: any): boolean; declare function NSDefaultMallocZone(): interop.Pointer | interop.Reference; declare var NSDefaultRunLoopMode: string; declare var NSDestinationInvalidException: string; declare class NSDictionary extends NSObject implements NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding { static alloc(): NSDictionary; // inherited from NSObject static dictionary(): NSDictionary; static dictionaryWithContentsOfFile(path: string): NSDictionary; static dictionaryWithContentsOfURL(url: NSURL): NSDictionary; static dictionaryWithDictionary(dict: NSDictionary): NSDictionary; static dictionaryWithObjectForKey(object: ObjectType, key: any): NSDictionary; static dictionaryWithObjectsAndKeys(firstObject: any): NSDictionary; static dictionaryWithObjectsForKeys(objects: NSArray, keys: NSArray): NSDictionary; static dictionaryWithObjectsForKeysCount(objects: interop.Reference, keys: interop.Reference, cnt: number): NSDictionary; static new(): NSDictionary; // inherited from NSObject static sharedKeySetForKeys(keys: NSArray): any; static supportsSecureCoding(): boolean; /* readonly */ allKeys: NSArray; /* readonly */ allValues: NSArray; /* readonly */ count: number; /* readonly */ descriptionInStringsFileFormat: string; [Symbol.iterator](): Iterator; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { contentsOfFile: string; }); constructor(o: { contentsOfURL: NSURL; }); constructor(o: { dictionary: NSDictionary; }); constructor(o: { dictionary: NSDictionary; copyItems: boolean; }); constructor(o: { objectsAndKeys: any; }); constructor(o: { objects: NSArray; forKeys: NSArray; }); constructor(o: { objects: interop.Reference; forKeys: interop.Reference; count: number; }); allKeysForObject(anObject: ObjectType): NSArray; copyWithZone(zone: interop.Pointer | interop.Reference): any; descriptionWithLocale(locale: any): string; descriptionWithLocaleIndent(locale: any, level: number): string; encodeWithCoder(aCoder: NSCoder): void; enumerateKeysAndObjectsUsingBlock(block: (p1: KeyType, p2: ObjectType, p3: interop.Pointer | interop.Reference) => void): void; enumerateKeysAndObjectsWithOptionsUsingBlock(opts: NSEnumerationOptions, block: (p1: KeyType, p2: ObjectType, p3: interop.Pointer | interop.Reference) => void): void; fileCreationDate(): Date; fileExtensionHidden(): boolean; fileGroupOwnerAccountID(): number; fileGroupOwnerAccountName(): string; fileHFSCreatorCode(): number; fileHFSTypeCode(): number; fileIsAppendOnly(): boolean; fileIsImmutable(): boolean; fileModificationDate(): Date; fileOwnerAccountID(): number; fileOwnerAccountName(): string; filePosixPermissions(): number; fileSize(): number; fileSystemFileNumber(): number; fileSystemNumber(): number; fileType(): string; getObjectsAndKeys(objects: interop.Reference, keys: interop.Reference): void; getObjectsAndKeysCount(objects: interop.Reference, keys: interop.Reference, count: number): void; initWithCoder(aDecoder: NSCoder): this; initWithContentsOfFile(path: string): this; initWithContentsOfURL(url: NSURL): this; initWithDictionary(otherDictionary: NSDictionary): this; initWithDictionaryCopyItems(otherDictionary: NSDictionary, flag: boolean): this; initWithObjectsAndKeys(firstObject: any): this; initWithObjectsForKeys(objects: NSArray, keys: NSArray): this; initWithObjectsForKeysCount(objects: interop.Reference, keys: interop.Reference, cnt: number): this; isEqualToDictionary(otherDictionary: NSDictionary): boolean; keyEnumerator(): NSEnumerator; keysOfEntriesPassingTest(predicate: (p1: KeyType, p2: ObjectType, p3: interop.Pointer | interop.Reference) => boolean): NSSet; keysOfEntriesWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: KeyType, p2: ObjectType, p3: interop.Pointer | interop.Reference) => boolean): NSSet; keysSortedByValueUsingComparator(cmptr: (p1: any, p2: any) => NSComparisonResult): NSArray; keysSortedByValueUsingSelector(comparator: string): NSArray; keysSortedByValueWithOptionsUsingComparator(opts: NSSortOptions, cmptr: (p1: any, p2: any) => NSComparisonResult): NSArray; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; objectEnumerator(): NSEnumerator; objectForKey(aKey: KeyType): ObjectType; objectForKeyedSubscript(key: KeyType): ObjectType; objectsForKeysNotFoundMarker(keys: NSArray, marker: ObjectType): NSArray; valueForKey(key: string): ObjectType; writeToFileAtomically(path: string, useAuxiliaryFile: boolean): boolean; writeToURLAtomically(url: NSURL, atomically: boolean): boolean; } declare var NSDidBecomeSingleThreadedNotification: string; declare const enum NSDirectoryEnumerationOptions { SkipsSubdirectoryDescendants = 1, SkipsPackageDescendants = 2, SkipsHiddenFiles = 4 } declare class NSDirectoryEnumerator extends NSEnumerator { static alloc(): NSDirectoryEnumerator; // inherited from NSObject static new(): NSDirectoryEnumerator; // inherited from NSObject /* readonly */ directoryAttributes: NSDictionary; /* readonly */ fileAttributes: NSDictionary; /* readonly */ level: number; skipDescendants(): void; skipDescendents(): void; } interface NSDiscardableContent { beginContentAccess(): boolean; discardContentIfPossible(): void; endContentAccess(): void; isContentDiscarded(): boolean; } declare var NSDiscardableContent: { prototype: NSDiscardableContent; }; declare var NSDistinctUnionOfArraysKeyValueOperator: string; declare var NSDistinctUnionOfObjectsKeyValueOperator: string; declare var NSDistinctUnionOfSetsKeyValueOperator: string; declare class NSEnergyFormatter extends NSFormatter { static alloc(): NSEnergyFormatter; // inherited from NSObject static new(): NSEnergyFormatter; // inherited from NSObject forFoodEnergyUse: boolean; numberFormatter: NSNumberFormatter; unitStyle: NSFormattingUnitStyle; stringFromJoules(numberInJoules: number): string; stringFromValueUnit(value: number, unit: NSEnergyFormatterUnit): string; unitStringFromJoulesUsedUnit(numberInJoules: number, unitp: interop.Pointer | interop.Reference): string; unitStringFromValueUnit(value: number, unit: NSEnergyFormatterUnit): string; } declare const enum NSEnergyFormatterUnit { Joule = 11, Kilojoule = 14, Calorie = 1793, Kilocalorie = 1794 } declare const enum NSEnumerationOptions { Concurrent = 1, Reverse = 2 } declare class NSEnumerator extends NSObject implements NSFastEnumeration { static alloc(): NSEnumerator; // inherited from NSObject static new(): NSEnumerator; // inherited from NSObject /* readonly */ allObjects: NSArray; [Symbol.iterator](): Iterator; nextObject(): ObjectType; } declare class NSError extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSError; // inherited from NSObject static errorWithDomainCodeUserInfo(domain: string, code: number, dict: NSDictionary): NSError; static new(): NSError; // inherited from NSObject static setUserInfoValueProviderForDomainProvider(errorDomain: string, provider: (p1: NSError, p2: string) => any): void; static supportsSecureCoding(): boolean; static userInfoValueProviderForDomain(errorDomain: string): (p1: NSError, p2: string) => any; /* readonly */ code: number; /* readonly */ domain: string; /* readonly */ helpAnchor: string; /* readonly */ localizedDescription: string; /* readonly */ localizedFailureReason: string; /* readonly */ localizedRecoveryOptions: NSArray; /* readonly */ localizedRecoverySuggestion: string; /* readonly */ recoveryAttempter: any; /* readonly */ userInfo: NSDictionary; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { domain: string; code: number; userInfo: NSDictionary; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithDomainCodeUserInfo(domain: string, code: number, dict: NSDictionary): this; } declare var NSErrorFailingURLStringKey: string; declare class NSException extends NSObject implements NSCoding, NSCopying { static alloc(): NSException; // inherited from NSObject static exceptionWithNameReasonUserInfo(name: string, reason: string, userInfo: NSDictionary): NSException; static new(): NSException; // inherited from NSObject /* readonly */ callStackReturnAddresses: NSArray; /* readonly */ callStackSymbols: NSArray; /* readonly */ name: string; /* readonly */ reason: string; /* readonly */ userInfo: NSDictionary; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { name: string; reason: string; userInfo: NSDictionary; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithNameReasonUserInfo(aName: string, aReason: string, aUserInfo: NSDictionary): this; raise(): void; } declare class NSExpression extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSExpression; // inherited from NSObject static expressionForAggregate(subexpressions: NSArray): NSExpression; static expressionForAnyKey(): NSExpression; static expressionForBlockArguments(block: (p1: any, p2: NSArray, p3: NSMutableDictionary) => any, _arguments: NSArray): NSExpression; static expressionForConditionalTrueExpressionFalseExpression(predicate: NSPredicate, trueExpression: NSExpression, falseExpression: NSExpression): NSExpression; static expressionForConstantValue(obj: any): NSExpression; static expressionForEvaluatedObject(): NSExpression; static expressionForFunctionArguments(name: string, parameters: NSArray): NSExpression; static expressionForFunctionSelectorNameArguments(target: NSExpression, name: string, parameters: NSArray): NSExpression; static expressionForIntersectSetWith(left: NSExpression, right: NSExpression): NSExpression; static expressionForKeyPath(keyPath: string): NSExpression; static expressionForMinusSetWith(left: NSExpression, right: NSExpression): NSExpression; static expressionForSubqueryUsingIteratorVariablePredicate(expression: NSExpression, variable: string, predicate: any): NSExpression; static expressionForUnionSetWith(left: NSExpression, right: NSExpression): NSExpression; static expressionForVariable(string: string): NSExpression; static expressionWithFormatArgumentArray(expressionFormat: string, _arguments: NSArray): NSExpression; static new(): NSExpression; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ arguments: NSArray; /* readonly */ collection: any; /* readonly */ constantValue: any; /* readonly */ expressionBlock: (p1: any, p2: NSArray, p3: NSMutableDictionary) => any; /* readonly */ expressionType: NSExpressionType; /* readonly */ falseExpression: NSExpression; /* readonly */ function: string; /* readonly */ keyPath: string; /* readonly */ leftExpression: NSExpression; /* readonly */ operand: NSExpression; /* readonly */ predicate: NSPredicate; /* readonly */ rightExpression: NSExpression; /* readonly */ trueExpression: NSExpression; /* readonly */ variable: string; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { expressionType: NSExpressionType; }); allowEvaluation(): void; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; expressionValueWithObjectContext(object: any, context: NSMutableDictionary): any; initWithCoder(aDecoder: NSCoder): this; initWithExpressionType(type: NSExpressionType): this; } declare const enum NSExpressionType { ConstantValueExpressionType = 0, EvaluatedObjectExpressionType = 1, VariableExpressionType = 2, KeyPathExpressionType = 3, FunctionExpressionType = 4, UnionSetExpressionType = 5, IntersectSetExpressionType = 6, MinusSetExpressionType = 7, SubqueryExpressionType = 13, AggregateExpressionType = 14, AnyKeyExpressionType = 15, BlockExpressionType = 19, ConditionalExpressionType = 20 } declare class NSExtensionContext extends NSObject { static alloc(): NSExtensionContext; // inherited from NSObject static new(): NSExtensionContext; // inherited from NSObject /* readonly */ inputItems: NSArray; cancelRequestWithError(error: NSError): void; completeRequestReturningItemsCompletionHandler(items: NSArray, completionHandler: (p1: boolean) => void): void; openURLCompletionHandler(URL: NSURL, completionHandler: (p1: boolean) => void): void; } declare var NSExtensionHostDidBecomeActiveNotification: string; declare var NSExtensionHostDidEnterBackgroundNotification: string; declare var NSExtensionHostWillEnterForegroundNotification: string; declare var NSExtensionHostWillResignActiveNotification: string; declare class NSExtensionItem extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSExtensionItem; // inherited from NSObject static new(): NSExtensionItem; // inherited from NSObject static supportsSecureCoding(): boolean; attachments: NSArray; attributedContentText: NSAttributedString; attributedTitle: NSAttributedString; userInfo: NSDictionary; constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare var NSExtensionItemAttachmentsKey: string; declare var NSExtensionItemAttributedContentTextKey: string; declare var NSExtensionItemAttributedTitleKey: string; declare var NSExtensionItemsAndErrorsKey: string; declare var NSExtensionJavaScriptFinalizeArgumentKey: string; declare var NSExtensionJavaScriptPreprocessingResultsKey: string; interface NSExtensionRequestHandling extends NSObjectProtocol { beginRequestWithExtensionContext(context: NSExtensionContext): void; } declare var NSExtensionRequestHandling: { prototype: NSExtensionRequestHandling; }; declare function NSExtraRefCount(object: any): number; interface NSFastEnumeration { } declare var NSFastEnumeration: { prototype: NSFastEnumeration; }; interface NSFastEnumerationState { state: number; itemsPtr: interop.Pointer | interop.Reference; mutationsPtr: interop.Pointer | interop.Reference; extra: interop.Reference; } declare var NSFastEnumerationState: interop.StructType; declare class NSFileAccessIntent extends NSObject { static alloc(): NSFileAccessIntent; // inherited from NSObject static new(): NSFileAccessIntent; // inherited from NSObject static readingIntentWithURLOptions(url: NSURL, options: NSFileCoordinatorReadingOptions): NSFileAccessIntent; static writingIntentWithURLOptions(url: NSURL, options: NSFileCoordinatorWritingOptions): NSFileAccessIntent; /* readonly */ URL: NSURL; } declare var NSFileAppendOnly: string; declare var NSFileBusy: string; declare class NSFileCoordinator extends NSObject { static addFilePresenter(filePresenter: NSFilePresenter): void; static alloc(): NSFileCoordinator; // inherited from NSObject static filePresenters(): NSArray; static new(): NSFileCoordinator; // inherited from NSObject static removeFilePresenter(filePresenter: NSFilePresenter): void; purposeIdentifier: string; constructor(o: { filePresenter: NSFilePresenter; }); cancel(): void; coordinateAccessWithIntentsQueueByAccessor(intents: NSArray, queue: NSOperationQueue, accessor: (p1: NSError) => void): void; coordinateReadingItemAtURLOptionsErrorByAccessor(url: NSURL, options: NSFileCoordinatorReadingOptions, outError: interop.Pointer | interop.Reference, reader: (p1: NSURL) => void): void; coordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(readingURL: NSURL, readingOptions: NSFileCoordinatorReadingOptions, writingURL: NSURL, writingOptions: NSFileCoordinatorWritingOptions, outError: interop.Pointer | interop.Reference, readerWriter: (p1: NSURL, p2: NSURL) => void): void; coordinateWritingItemAtURLOptionsErrorByAccessor(url: NSURL, options: NSFileCoordinatorWritingOptions, outError: interop.Pointer | interop.Reference, writer: (p1: NSURL) => void): void; coordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(url1: NSURL, options1: NSFileCoordinatorWritingOptions, url2: NSURL, options2: NSFileCoordinatorWritingOptions, outError: interop.Pointer | interop.Reference, writer: (p1: NSURL, p2: NSURL) => void): void; initWithFilePresenter(filePresenterOrNil: NSFilePresenter): this; itemAtURLDidMoveToURL(oldURL: NSURL, newURL: NSURL): void; itemAtURLWillMoveToURL(oldURL: NSURL, newURL: NSURL): void; prepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor(readingURLs: NSArray, readingOptions: NSFileCoordinatorReadingOptions, writingURLs: NSArray, writingOptions: NSFileCoordinatorWritingOptions, outError: interop.Pointer | interop.Reference, batchAccessor: (p1: () => void) => void): void; } declare const enum NSFileCoordinatorReadingOptions { WithoutChanges = 1, ResolvesSymbolicLink = 2, ImmediatelyAvailableMetadataOnly = 4, ForUploading = 8 } declare const enum NSFileCoordinatorWritingOptions { ForDeleting = 1, ForMoving = 2, ForMerging = 4, ForReplacing = 8, ContentIndependentMetadataOnly = 16 } declare var NSFileCreationDate: string; declare var NSFileDeviceIdentifier: string; declare var NSFileExtensionHidden: string; declare var NSFileGroupOwnerAccountID: string; declare var NSFileGroupOwnerAccountName: string; declare var NSFileHFSCreatorCode: string; declare var NSFileHFSTypeCode: string; declare class NSFileHandle extends NSObject implements NSSecureCoding { static alloc(): NSFileHandle; // inherited from NSObject static fileHandleForReadingAtPath(path: string): NSFileHandle; static fileHandleForReadingFromURLError(url: NSURL): NSFileHandle; static fileHandleForUpdatingAtPath(path: string): NSFileHandle; static fileHandleForUpdatingURLError(url: NSURL): NSFileHandle; static fileHandleForWritingAtPath(path: string): NSFileHandle; static fileHandleForWritingToURLError(url: NSURL): NSFileHandle; static fileHandleWithNullDevice(): NSFileHandle; static fileHandleWithStandardError(): NSFileHandle; static fileHandleWithStandardInput(): NSFileHandle; static fileHandleWithStandardOutput(): NSFileHandle; static new(): NSFileHandle; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ availableData: NSData; /* readonly */ fileDescriptor: number; /* readonly */ offsetInFile: number; readabilityHandler: (p1: NSFileHandle) => void; writeabilityHandler: (p1: NSFileHandle) => void; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { fileDescriptor: number; }); constructor(o: { fileDescriptor: number; closeOnDealloc: boolean; }); acceptConnectionInBackgroundAndNotify(): void; acceptConnectionInBackgroundAndNotifyForModes(modes: NSArray): void; closeFile(): void; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithFileDescriptor(fd: number): this; initWithFileDescriptorCloseOnDealloc(fd: number, closeopt: boolean): this; readDataOfLength(length: number): NSData; readDataToEndOfFile(): NSData; readInBackgroundAndNotify(): void; readInBackgroundAndNotifyForModes(modes: NSArray): void; readToEndOfFileInBackgroundAndNotify(): void; readToEndOfFileInBackgroundAndNotifyForModes(modes: NSArray): void; seekToEndOfFile(): number; seekToFileOffset(offset: number): void; synchronizeFile(): void; truncateFileAtOffset(offset: number): void; waitForDataInBackgroundAndNotify(): void; waitForDataInBackgroundAndNotifyForModes(modes: NSArray): void; writeData(data: NSData): void; } declare var NSFileHandleConnectionAcceptedNotification: string; declare var NSFileHandleDataAvailableNotification: string; declare var NSFileHandleNotificationDataItem: string; declare var NSFileHandleNotificationFileHandleItem: string; declare var NSFileHandleNotificationMonitorModes: string; declare var NSFileHandleOperationException: string; declare var NSFileHandleReadCompletionNotification: string; declare var NSFileHandleReadToEndOfFileCompletionNotification: string; declare var NSFileImmutable: string; declare class NSFileManager extends NSObject { static alloc(): NSFileManager; // inherited from NSObject static defaultManager(): NSFileManager; static new(): NSFileManager; // inherited from NSObject /* readonly */ currentDirectoryPath: string; delegate: NSFileManagerDelegate; /* readonly */ ubiquityIdentityToken: any; URLForDirectoryInDomainAppropriateForURLCreateError(directory: NSSearchPathDirectory, domain: NSSearchPathDomainMask, url: NSURL, shouldCreate: boolean): NSURL; URLForPublishingUbiquitousItemAtURLExpirationDateError(url: NSURL, outDate: interop.Pointer | interop.Reference): NSURL; URLForUbiquityContainerIdentifier(containerIdentifier: string): NSURL; URLsForDirectoryInDomains(directory: NSSearchPathDirectory, domainMask: NSSearchPathDomainMask): NSArray; attributesOfFileSystemForPathError(path: string): NSDictionary; attributesOfItemAtPathError(path: string): NSDictionary; changeCurrentDirectoryPath(path: string): boolean; changeFileAttributesAtPath(attributes: NSDictionary, path: string): boolean; componentsToDisplayForPath(path: string): NSArray; containerURLForSecurityApplicationGroupIdentifier(groupIdentifier: string): NSURL; contentsAtPath(path: string): NSData; contentsEqualAtPathAndPath(path1: string, path2: string): boolean; contentsOfDirectoryAtPathError(path: string): NSArray; contentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url: NSURL, keys: NSArray, mask: NSDirectoryEnumerationOptions): NSArray; copyItemAtPathToPathError(srcPath: string, dstPath: string): boolean; copyItemAtURLToURLError(srcURL: NSURL, dstURL: NSURL): boolean; createDirectoryAtPathAttributes(path: string, attributes: NSDictionary): boolean; createDirectoryAtPathWithIntermediateDirectoriesAttributesError(path: string, createIntermediates: boolean, attributes: NSDictionary): boolean; createDirectoryAtURLWithIntermediateDirectoriesAttributesError(url: NSURL, createIntermediates: boolean, attributes: NSDictionary): boolean; createFileAtPathContentsAttributes(path: string, data: NSData, attr: NSDictionary): boolean; createSymbolicLinkAtPathPathContent(path: string, otherpath: string): boolean; createSymbolicLinkAtPathWithDestinationPathError(path: string, destPath: string): boolean; createSymbolicLinkAtURLWithDestinationURLError(url: NSURL, destURL: NSURL): boolean; destinationOfSymbolicLinkAtPathError(path: string): string; directoryContentsAtPath(path: string): NSArray; displayNameAtPath(path: string): string; enumeratorAtPath(path: string): NSDirectoryEnumerator; enumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(url: NSURL, keys: NSArray, mask: NSDirectoryEnumerationOptions, handler: (p1: NSURL, p2: NSError) => boolean): NSDirectoryEnumerator; evictUbiquitousItemAtURLError(url: NSURL): boolean; fileAttributesAtPathTraverseLink(path: string, yorn: boolean): NSDictionary; fileExistsAtPath(path: string): boolean; fileExistsAtPathIsDirectory(path: string, isDirectory: interop.Pointer | interop.Reference): boolean; fileSystemAttributesAtPath(path: string): NSDictionary; fileSystemRepresentationWithPath(path: string): string; getRelationshipOfDirectoryAtURLToItemAtURLError(outRelationship: interop.Pointer | interop.Reference, directoryURL: NSURL, otherURL: NSURL): boolean; getRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship: interop.Pointer | interop.Reference, directory: NSSearchPathDirectory, domainMask: NSSearchPathDomainMask, url: NSURL): boolean; isDeletableFileAtPath(path: string): boolean; isExecutableFileAtPath(path: string): boolean; isReadableFileAtPath(path: string): boolean; isUbiquitousItemAtURL(url: NSURL): boolean; isWritableFileAtPath(path: string): boolean; linkItemAtPathToPathError(srcPath: string, dstPath: string): boolean; linkItemAtURLToURLError(srcURL: NSURL, dstURL: NSURL): boolean; mountedVolumeURLsIncludingResourceValuesForKeysOptions(propertyKeys: NSArray, options: NSVolumeEnumerationOptions): NSArray; moveItemAtPathToPathError(srcPath: string, dstPath: string): boolean; moveItemAtURLToURLError(srcURL: NSURL, dstURL: NSURL): boolean; pathContentOfSymbolicLinkAtPath(path: string): string; removeItemAtPathError(path: string): boolean; removeItemAtURLError(URL: NSURL): boolean; replaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL: NSURL, newItemURL: NSURL, backupItemName: string, options: NSFileManagerItemReplacementOptions, resultingURL: interop.Pointer | interop.Reference): boolean; setAttributesOfItemAtPathError(attributes: NSDictionary, path: string): boolean; setUbiquitousItemAtURLDestinationURLError(flag: boolean, url: NSURL, destinationURL: NSURL): boolean; startDownloadingUbiquitousItemAtURLError(url: NSURL): boolean; stringWithFileSystemRepresentationLength(str: string, len: number): string; subpathsAtPath(path: string): NSArray; subpathsOfDirectoryAtPathError(path: string): NSArray; } interface NSFileManagerDelegate extends NSObjectProtocol { fileManagerShouldCopyItemAtPathToPath?(fileManager: NSFileManager, srcPath: string, dstPath: string): boolean; fileManagerShouldCopyItemAtURLToURL?(fileManager: NSFileManager, srcURL: NSURL, dstURL: NSURL): boolean; fileManagerShouldLinkItemAtPathToPath?(fileManager: NSFileManager, srcPath: string, dstPath: string): boolean; fileManagerShouldLinkItemAtURLToURL?(fileManager: NSFileManager, srcURL: NSURL, dstURL: NSURL): boolean; fileManagerShouldMoveItemAtPathToPath?(fileManager: NSFileManager, srcPath: string, dstPath: string): boolean; fileManagerShouldMoveItemAtURLToURL?(fileManager: NSFileManager, srcURL: NSURL, dstURL: NSURL): boolean; fileManagerShouldProceedAfterErrorCopyingItemAtPathToPath?(fileManager: NSFileManager, error: NSError, srcPath: string, dstPath: string): boolean; fileManagerShouldProceedAfterErrorCopyingItemAtURLToURL?(fileManager: NSFileManager, error: NSError, srcURL: NSURL, dstURL: NSURL): boolean; fileManagerShouldProceedAfterErrorLinkingItemAtPathToPath?(fileManager: NSFileManager, error: NSError, srcPath: string, dstPath: string): boolean; fileManagerShouldProceedAfterErrorLinkingItemAtURLToURL?(fileManager: NSFileManager, error: NSError, srcURL: NSURL, dstURL: NSURL): boolean; fileManagerShouldProceedAfterErrorMovingItemAtPathToPath?(fileManager: NSFileManager, error: NSError, srcPath: string, dstPath: string): boolean; fileManagerShouldProceedAfterErrorMovingItemAtURLToURL?(fileManager: NSFileManager, error: NSError, srcURL: NSURL, dstURL: NSURL): boolean; fileManagerShouldProceedAfterErrorRemovingItemAtPath?(fileManager: NSFileManager, error: NSError, path: string): boolean; fileManagerShouldProceedAfterErrorRemovingItemAtURL?(fileManager: NSFileManager, error: NSError, URL: NSURL): boolean; fileManagerShouldRemoveItemAtPath?(fileManager: NSFileManager, path: string): boolean; fileManagerShouldRemoveItemAtURL?(fileManager: NSFileManager, URL: NSURL): boolean; } declare var NSFileManagerDelegate: { prototype: NSFileManagerDelegate; }; declare const enum NSFileManagerItemReplacementOptions { UsingNewMetadataOnly = 1, WithoutDeletingBackupItem = 2 } declare var NSFileModificationDate: string; declare var NSFileOwnerAccountID: string; declare var NSFileOwnerAccountName: string; declare var NSFilePathErrorKey: string; declare var NSFilePosixPermissions: string; interface NSFilePresenter extends NSObjectProtocol { presentedItemOperationQueue: NSOperationQueue; presentedItemURL: NSURL; accommodatePresentedItemDeletionWithCompletionHandler?(completionHandler: (p1: NSError) => void): void; accommodatePresentedSubitemDeletionAtURLCompletionHandler?(url: NSURL, completionHandler: (p1: NSError) => void): void; presentedItemDidChange?(): void; presentedItemDidGainVersion?(version: NSFileVersion): void; presentedItemDidLoseVersion?(version: NSFileVersion): void; presentedItemDidMoveToURL?(newURL: NSURL): void; presentedItemDidResolveConflictVersion?(version: NSFileVersion): void; presentedSubitemAtURLDidGainVersion?(url: NSURL, version: NSFileVersion): void; presentedSubitemAtURLDidLoseVersion?(url: NSURL, version: NSFileVersion): void; presentedSubitemAtURLDidMoveToURL?(oldURL: NSURL, newURL: NSURL): void; presentedSubitemAtURLDidResolveConflictVersion?(url: NSURL, version: NSFileVersion): void; presentedSubitemDidAppearAtURL?(url: NSURL): void; presentedSubitemDidChangeAtURL?(url: NSURL): void; relinquishPresentedItemToReader?(reader: (p1: () => void) => void): void; relinquishPresentedItemToWriter?(writer: (p1: () => void) => void): void; savePresentedItemChangesWithCompletionHandler?(completionHandler: (p1: NSError) => void): void; } declare var NSFilePresenter: { prototype: NSFilePresenter; }; declare var NSFileProtectionComplete: string; declare var NSFileProtectionCompleteUnlessOpen: string; declare var NSFileProtectionCompleteUntilFirstUserAuthentication: string; declare var NSFileProtectionKey: string; declare var NSFileProtectionNone: string; declare var NSFileReferenceCount: string; declare class NSFileSecurity extends NSObject implements NSCoding, NSCopying { static alloc(): NSFileSecurity; // inherited from NSObject static new(): NSFileSecurity; // inherited from NSObject constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare var NSFileSize: string; declare var NSFileSystemFileNumber: string; declare var NSFileSystemFreeNodes: string; declare var NSFileSystemFreeSize: string; declare var NSFileSystemNodes: string; declare var NSFileSystemNumber: string; declare var NSFileSystemSize: string; declare var NSFileType: string; declare var NSFileTypeBlockSpecial: string; declare var NSFileTypeCharacterSpecial: string; declare var NSFileTypeDirectory: string; declare var NSFileTypeRegular: string; declare var NSFileTypeSocket: string; declare var NSFileTypeSymbolicLink: string; declare var NSFileTypeUnknown: string; declare class NSFileVersion extends NSObject { static alloc(): NSFileVersion; // inherited from NSObject static currentVersionOfItemAtURL(url: NSURL): NSFileVersion; static getNonlocalVersionsOfItemAtURLCompletionHandler(url: NSURL, completionHandler: (p1: NSArray, p2: NSError) => void): void; static new(): NSFileVersion; // inherited from NSObject static otherVersionsOfItemAtURL(url: NSURL): NSArray; static removeOtherVersionsOfItemAtURLError(url: NSURL): boolean; static unresolvedConflictVersionsOfItemAtURL(url: NSURL): NSArray; static versionOfItemAtURLForPersistentIdentifier(url: NSURL, persistentIdentifier: any): NSFileVersion; /* readonly */ URL: NSURL; /* readonly */ conflict: boolean; /* readonly */ hasLocalContents: boolean; /* readonly */ hasThumbnail: boolean; /* readonly */ localizedName: string; /* readonly */ localizedNameOfSavingComputer: string; /* readonly */ modificationDate: Date; /* readonly */ persistentIdentifier: NSCoding; resolved: boolean; removeAndReturnError(): boolean; replaceItemAtURLOptionsError(url: NSURL, options: NSFileVersionReplacingOptions): NSURL; } declare const enum NSFileVersionAddingOptions { ByMoving = 1 } declare const enum NSFileVersionReplacingOptions { ByMoving = 1 } declare class NSFileWrapper extends NSObject implements NSCoding { static alloc(): NSFileWrapper; // inherited from NSObject static new(): NSFileWrapper; // inherited from NSObject /* readonly */ directory: boolean; fileAttributes: NSDictionary; /* readonly */ fileWrappers: NSDictionary; filename: string; preferredFilename: string; /* readonly */ regularFile: boolean; /* readonly */ regularFileContents: NSData; /* readonly */ serializedRepresentation: NSData; /* readonly */ symbolicLink: boolean; /* readonly */ symbolicLinkDestinationURL: NSURL; constructor(o: { directoryWithFileWrappers: NSDictionary; }); constructor(o: { regularFileWithContents: NSData; }); constructor(o: { symbolicLinkWithDestinationURL: NSURL; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { serializedRepresentation: NSData; }); constructor(o: { URL: NSURL; options: NSFileWrapperReadingOptions; }); addFileWrapper(child: NSFileWrapper): string; addRegularFileWithContentsPreferredFilename(data: NSData, fileName: string): string; encodeWithCoder(aCoder: NSCoder): void; initDirectoryWithFileWrappers(childrenByPreferredName: NSDictionary): this; initRegularFileWithContents(contents: NSData): this; initSymbolicLinkWithDestinationURL(url: NSURL): this; initWithCoder(aDecoder: NSCoder): this; initWithSerializedRepresentation(serializeRepresentation: NSData): this; initWithURLOptionsError(url: NSURL, options: NSFileWrapperReadingOptions): this; keyForFileWrapper(child: NSFileWrapper): string; matchesContentsOfURL(url: NSURL): boolean; readFromURLOptionsError(url: NSURL, options: NSFileWrapperReadingOptions): boolean; removeFileWrapper(child: NSFileWrapper): void; writeToURLOptionsOriginalContentsURLError(url: NSURL, options: NSFileWrapperWritingOptions, originalContentsURL: NSURL): boolean; } declare const enum NSFileWrapperReadingOptions { Immediate = 1, WithoutMapping = 2 } declare const enum NSFileWrapperWritingOptions { Atomic = 1, WithNameUpdating = 2 } declare class NSFormatter extends NSObject implements NSCoding, NSCopying { static alloc(): NSFormatter; // inherited from NSObject static new(): NSFormatter; // inherited from NSObject constructor(o: { coder: NSCoder; }); // inherited from NSCoding attributedStringForObjectValueWithDefaultAttributes(obj: any, attrs: NSDictionary): NSAttributedString; copyWithZone(zone: interop.Pointer | interop.Reference): any; editingStringForObjectValue(obj: any): string; encodeWithCoder(aCoder: NSCoder): void; getObjectValueForStringErrorDescription(obj: interop.Pointer | interop.Reference, string: string, error: interop.Pointer | interop.Reference): boolean; initWithCoder(aDecoder: NSCoder): this; isPartialStringValidNewEditingStringErrorDescription(partialString: string, newString: interop.Pointer | interop.Reference, error: interop.Pointer | interop.Reference): boolean; isPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription(partialStringPtr: interop.Pointer | interop.Reference, proposedSelRangePtr: interop.Pointer | interop.Reference, origString: string, origSelRange: NSRange, error: interop.Pointer | interop.Reference): boolean; stringForObjectValue(obj: any): string; } declare const enum NSFormattingContext { Unknown = 0, Dynamic = 1, Standalone = 2, ListItem = 3, BeginningOfSentence = 4, MiddleOfSentence = 5 } declare const enum NSFormattingUnitStyle { Short = 1, Medium = 2, Long = 3 } declare var NSFoundationVersionNumber: number; declare function NSFullUserName(): string; declare var NSGenericException: string; declare function NSGetSizeAndAlignment(typePtr: string, sizep: interop.Pointer | interop.Reference, alignp: interop.Pointer | interop.Reference): string; declare function NSGetUncaughtExceptionHandler(): interop.Pointer | interop.Reference void>>; declare var NSGlobalDomain: string; declare var NSGregorianCalendar: string; declare class NSHTTPCookie extends NSObject { static alloc(): NSHTTPCookie; // inherited from NSObject static cookieWithProperties(properties: NSDictionary): NSHTTPCookie; static cookiesWithResponseHeaderFieldsForURL(headerFields: NSDictionary, URL: NSURL): NSArray; static new(): NSHTTPCookie; // inherited from NSObject static requestHeaderFieldsWithCookies(cookies: NSArray): NSDictionary; /* readonly */ HTTPOnly: boolean; /* readonly */ comment: string; /* readonly */ commentURL: NSURL; /* readonly */ domain: string; /* readonly */ expiresDate: Date; /* readonly */ name: string; /* readonly */ path: string; /* readonly */ portList: NSArray; /* readonly */ properties: NSDictionary; /* readonly */ secure: boolean; /* readonly */ sessionOnly: boolean; /* readonly */ value: string; /* readonly */ version: number; constructor(o: { properties: NSDictionary; }); initWithProperties(properties: NSDictionary): this; } declare const enum NSHTTPCookieAcceptPolicy { Always = 0, Never = 1, OnlyFromMainDocumentDomain = 2 } declare var NSHTTPCookieComment: string; declare var NSHTTPCookieCommentURL: string; declare var NSHTTPCookieDiscard: string; declare var NSHTTPCookieDomain: string; declare var NSHTTPCookieExpires: string; declare var NSHTTPCookieManagerAcceptPolicyChangedNotification: string; declare var NSHTTPCookieManagerCookiesChangedNotification: string; declare var NSHTTPCookieMaximumAge: string; declare var NSHTTPCookieName: string; declare var NSHTTPCookieOriginURL: string; declare var NSHTTPCookiePath: string; declare var NSHTTPCookiePort: string; declare var NSHTTPCookieSecure: string; declare class NSHTTPCookieStorage extends NSObject { static alloc(): NSHTTPCookieStorage; // inherited from NSObject static new(): NSHTTPCookieStorage; // inherited from NSObject static sharedCookieStorageForGroupContainerIdentifier(identifier: string): NSHTTPCookieStorage; static sharedHTTPCookieStorage(): NSHTTPCookieStorage; cookieAcceptPolicy: NSHTTPCookieAcceptPolicy; /* readonly */ cookies: NSArray; cookiesForURL(URL: NSURL): NSArray; deleteCookie(cookie: NSHTTPCookie): void; getCookiesForTaskCompletionHandler(task: NSURLSessionTask, completionHandler: (p1: NSArray) => void): void; removeCookiesSinceDate(date: Date): void; setCookie(cookie: NSHTTPCookie): void; setCookiesForURLMainDocumentURL(cookies: NSArray, URL: NSURL, mainDocumentURL: NSURL): void; sortedCookiesUsingDescriptors(sortOrder: NSArray): NSArray; storeCookiesForTask(cookies: NSArray, task: NSURLSessionTask): void; } declare var NSHTTPCookieValue: string; declare var NSHTTPCookieVersion: string; declare class NSHTTPURLResponse extends NSURLResponse { static alloc(): NSHTTPURLResponse; // inherited from NSObject static localizedStringForStatusCode(statusCode: number): string; static new(): NSHTTPURLResponse; // inherited from NSObject /* readonly */ allHeaderFields: NSDictionary; /* readonly */ statusCode: number; constructor(o: { URL: NSURL; statusCode: number; HTTPVersion: string; headerFields: NSDictionary; }); initWithURLStatusCodeHTTPVersionHeaderFields(url: NSURL, statusCode: number, HTTPVersion: string, headerFields: NSDictionary): this; } declare class NSHashTable extends NSObject implements NSCoding, NSCopying, NSFastEnumeration { static alloc(): NSHashTable; // inherited from NSObject static hashTableWithOptions(options: NSPointerFunctionsOptions): NSHashTable; static new(): NSHashTable; // inherited from NSObject static weakObjectsHashTable(): NSHashTable; /* readonly */ allObjects: NSArray; /* readonly */ anyObject: ObjectType; /* readonly */ count: number; /* readonly */ pointerFunctions: NSPointerFunctions; /* readonly */ setRepresentation: NSSet; [Symbol.iterator](): Iterator; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { options: NSPointerFunctionsOptions; capacity: number; }); constructor(o: { pointerFunctions: NSPointerFunctions; capacity: number; }); addObject(object: ObjectType): void; containsObject(anObject: ObjectType): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithOptionsCapacity(options: NSPointerFunctionsOptions, initialCapacity: number): this; initWithPointerFunctionsCapacity(functions: NSPointerFunctions, initialCapacity: number): this; intersectHashTable(other: NSHashTable): void; intersectsHashTable(other: NSHashTable): boolean; isEqualToHashTable(other: NSHashTable): boolean; isSubsetOfHashTable(other: NSHashTable): boolean; member(object: ObjectType): ObjectType; minusHashTable(other: NSHashTable): void; objectEnumerator(): NSEnumerator; removeAllObjects(): void; removeObject(object: ObjectType): void; unionHashTable(other: NSHashTable): void; } declare var NSHashTableCopyIn: NSPointerFunctionsOptions; declare var NSHashTableObjectPointerPersonality: NSPointerFunctionsOptions; declare var NSHashTableStrongMemory: NSPointerFunctionsOptions; declare var NSHashTableWeakMemory: NSPointerFunctionsOptions; declare var NSHebrewCalendar: string; declare var NSHelpAnchorErrorKey: string; declare function NSHomeDirectory(): string; declare function NSHomeDirectoryForUser(userName: string): string; declare var NSISO8601Calendar: string; declare function NSIncrementExtraRefCount(object: any): void; declare class NSIndexPath extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSIndexPath; // inherited from NSObject static indexPathForItemInSection(item: number, section: number): NSIndexPath; static indexPathForRowInSection(row: number, section: number): NSIndexPath; static indexPathWithIndex(index: number): NSIndexPath; static indexPathWithIndexesLength(indexes: interop.Reference, length: number): NSIndexPath; static new(): NSIndexPath; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ item: number; /* readonly */ length: number; /* readonly */ row: number; /* readonly */ section: number; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { index: number; }); constructor(o: { indexes: interop.Reference; length: number; }); compare(otherObject: NSIndexPath): NSComparisonResult; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; getIndexes(indexes: interop.Pointer | interop.Reference): void; getIndexesRange(indexes: interop.Pointer | interop.Reference, positionRange: NSRange): void; indexAtPosition(position: number): number; indexPathByAddingIndex(index: number): NSIndexPath; indexPathByRemovingLastIndex(): NSIndexPath; initWithCoder(aDecoder: NSCoder): this; initWithIndex(index: number): this; initWithIndexesLength(indexes: interop.Reference, length: number): this; } declare class NSIndexSet extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): NSIndexSet; // inherited from NSObject static indexSet(): NSIndexSet; static indexSetWithIndex(value: number): NSIndexSet; static indexSetWithIndexesInRange(range: NSRange): NSIndexSet; static new(): NSIndexSet; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ count: number; /* readonly */ firstIndex: number; /* readonly */ lastIndex: number; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { index: number; }); constructor(o: { indexSet: NSIndexSet; }); constructor(o: { indexesInRange: NSRange; }); containsIndex(value: number): boolean; containsIndexes(indexSet: NSIndexSet): boolean; containsIndexesInRange(range: NSRange): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; countOfIndexesInRange(range: NSRange): number; encodeWithCoder(aCoder: NSCoder): void; enumerateIndexesInRangeOptionsUsingBlock(range: NSRange, opts: NSEnumerationOptions, block: (p1: number, p2: interop.Pointer | interop.Reference) => void): void; enumerateIndexesUsingBlock(block: (p1: number, p2: interop.Pointer | interop.Reference) => void): void; enumerateIndexesWithOptionsUsingBlock(opts: NSEnumerationOptions, block: (p1: number, p2: interop.Pointer | interop.Reference) => void): void; enumerateRangesInRangeOptionsUsingBlock(range: NSRange, opts: NSEnumerationOptions, block: (p1: NSRange, p2: interop.Pointer | interop.Reference) => void): void; enumerateRangesUsingBlock(block: (p1: NSRange, p2: interop.Pointer | interop.Reference) => void): void; enumerateRangesWithOptionsUsingBlock(opts: NSEnumerationOptions, block: (p1: NSRange, p2: interop.Pointer | interop.Reference) => void): void; getIndexesMaxCountInIndexRange(indexBuffer: interop.Pointer | interop.Reference, bufferSize: number, range: interop.Pointer | interop.Reference): number; indexGreaterThanIndex(value: number): number; indexGreaterThanOrEqualToIndex(value: number): number; indexInRangeOptionsPassingTest(range: NSRange, opts: NSEnumerationOptions, predicate: (p1: number, p2: interop.Pointer | interop.Reference) => boolean): number; indexLessThanIndex(value: number): number; indexLessThanOrEqualToIndex(value: number): number; indexPassingTest(predicate: (p1: number, p2: interop.Pointer | interop.Reference) => boolean): number; indexWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: number, p2: interop.Pointer | interop.Reference) => boolean): number; indexesInRangeOptionsPassingTest(range: NSRange, opts: NSEnumerationOptions, predicate: (p1: number, p2: interop.Pointer | interop.Reference) => boolean): NSIndexSet; indexesPassingTest(predicate: (p1: number, p2: interop.Pointer | interop.Reference) => boolean): NSIndexSet; indexesWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: number, p2: interop.Pointer | interop.Reference) => boolean): NSIndexSet; initWithCoder(aDecoder: NSCoder): this; initWithIndex(value: number): this; initWithIndexSet(indexSet: NSIndexSet): this; initWithIndexesInRange(range: NSRange): this; intersectsIndexesInRange(range: NSRange): boolean; isEqualToIndexSet(indexSet: NSIndexSet): boolean; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } declare var NSIndianCalendar: string; declare class NSInputStream extends NSStream { static alloc(): NSInputStream; // inherited from NSObject static inputStreamWithData(data: NSData): NSInputStream; static inputStreamWithFileAtPath(path: string): NSInputStream; static inputStreamWithURL(url: NSURL): NSInputStream; static new(): NSInputStream; // inherited from NSObject /* readonly */ hasBytesAvailable: boolean; constructor(o: { data: NSData; }); constructor(o: { fileAtPath: string; }); constructor(o: { URL: NSURL; }); getBufferLength(buffer: interop.Pointer | interop.Reference, len: interop.Pointer | interop.Reference): boolean; initWithData(data: NSData): this; initWithFileAtPath(path: string): this; initWithURL(url: NSURL): this; readMaxLength(buffer: string, len: number): number; } declare var NSInternalInconsistencyException: string; declare function NSIntersectionRange(range1: NSRange, range2: NSRange): NSRange; declare var NSInvalidArchiveOperationException: string; declare var NSInvalidArgumentException: string; declare var NSInvalidReceivePortException: string; declare var NSInvalidSendPortException: string; declare var NSInvalidUnarchiveOperationException: string; declare class NSInvocation extends NSObject { static alloc(): NSInvocation; // inherited from NSObject static invocationWithMethodSignature(sig: NSMethodSignature): NSInvocation; static new(): NSInvocation; // inherited from NSObject /* readonly */ argumentsRetained: boolean; /* readonly */ methodSignature: NSMethodSignature; selector: string; target: any; getArgumentAtIndex(argumentLocation: interop.Pointer | interop.Reference, idx: number): void; getReturnValue(retLoc: interop.Pointer | interop.Reference): void; invoke(): void; invokeWithTarget(target: any): void; retainArguments(): void; setArgumentAtIndex(argumentLocation: interop.Pointer | interop.Reference, idx: number): void; setReturnValue(retLoc: interop.Pointer | interop.Reference): void; } declare class NSInvocationOperation extends NSOperation { static alloc(): NSInvocationOperation; // inherited from NSObject static new(): NSInvocationOperation; // inherited from NSObject /* readonly */ invocation: NSInvocation; /* readonly */ result: any; constructor(o: { invocation: NSInvocation; }); constructor(o: { target: any; selector: string; object: any; }); initWithInvocation(inv: NSInvocation): this; initWithTargetSelectorObject(target: any, sel: string, arg: any): this; } declare var NSInvocationOperationCancelledException: string; declare var NSInvocationOperationVoidResultException: string; declare var NSIsNilTransformerName: string; declare var NSIsNotNilTransformerName: string; declare var NSIslamicCalendar: string; declare var NSIslamicCivilCalendar: string; declare class NSItemProvider extends NSObject implements NSCopying { static alloc(): NSItemProvider; // inherited from NSObject static new(): NSItemProvider; // inherited from NSObject previewImageHandler: (p1: (p1: NSSecureCoding, p2: NSError) => void, p2: typeof NSObject, p3: NSDictionary) => void; /* readonly */ registeredTypeIdentifiers: NSArray; constructor(o: { contentsOfURL: NSURL; }); constructor(o: { item: NSSecureCoding; typeIdentifier: string; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; hasItemConformingToTypeIdentifier(typeIdentifier: string): boolean; initWithContentsOfURL(fileURL: NSURL): this; initWithItemTypeIdentifier(item: NSSecureCoding, typeIdentifier: string): this; loadItemForTypeIdentifierOptionsCompletionHandler(typeIdentifier: string, options: NSDictionary, completionHandler: (p1: NSSecureCoding, p2: NSError) => void): void; loadPreviewImageWithOptionsCompletionHandler(options: NSDictionary, completionHandler: (p1: NSSecureCoding, p2: NSError) => void): void; registerItemForTypeIdentifierLoadHandler(typeIdentifier: string, loadHandler: (p1: (p1: NSSecureCoding, p2: NSError) => void, p2: typeof NSObject, p3: NSDictionary) => void): void; } declare const enum NSItemProviderErrorCode { UnknownError = -1, ItemUnavailableError = -1000, UnexpectedValueClassError = -1100, UnavailableCoercionError = -1200 } declare var NSItemProviderErrorDomain: string; declare var NSItemProviderPreferredImageSizeKey: string; declare const enum NSJSONReadingOptions { MutableContainers = 1, MutableLeaves = 2, AllowFragments = 4 } declare class NSJSONSerialization extends NSObject { static JSONObjectWithDataOptionsError(data: NSData, opt: NSJSONReadingOptions): any; static JSONObjectWithStreamOptionsError(stream: NSInputStream, opt: NSJSONReadingOptions): any; static alloc(): NSJSONSerialization; // inherited from NSObject static dataWithJSONObjectOptionsError(obj: any, opt: NSJSONWritingOptions): NSData; static isValidJSONObject(obj: any): boolean; static new(): NSJSONSerialization; // inherited from NSObject static writeJSONObjectToStreamOptionsError(obj: any, stream: NSOutputStream, opt: NSJSONWritingOptions): number; } declare const enum NSJSONWritingOptions { PrettyPrinted = 1 } declare var NSJapaneseCalendar: string; declare const enum NSKeyValueChange { Setting = 1, Insertion = 2, Removal = 3, Replacement = 4 } declare var NSKeyValueChangeIndexesKey: string; declare var NSKeyValueChangeKindKey: string; declare var NSKeyValueChangeNewKey: string; declare var NSKeyValueChangeNotificationIsPriorKey: string; declare var NSKeyValueChangeOldKey: string; declare const enum NSKeyValueObservingOptions { New = 1, Old = 2, Initial = 4, Prior = 8 } declare const enum NSKeyValueSetMutationKind { UnionSetMutation = 1, MinusSetMutation = 2, IntersectSetMutation = 3, SetSetMutation = 4 } declare var NSKeyedArchiveRootObjectKey: string; declare class NSKeyedArchiver extends NSCoder { static alloc(): NSKeyedArchiver; // inherited from NSObject static archiveRootObjectToFile(rootObject: any, path: string): boolean; static archivedDataWithRootObject(rootObject: any): NSData; static classNameForClass(cls: typeof NSObject): string; static new(): NSKeyedArchiver; // inherited from NSObject static setClassNameForClass(codedName: string, cls: typeof NSObject): void; delegate: NSKeyedArchiverDelegate; outputFormat: NSPropertyListFormat; requiresSecureCoding: boolean; constructor(o: { forWritingWithMutableData: NSMutableData; }); classNameForClass(cls: typeof NSObject): string; finishEncoding(): void; initForWritingWithMutableData(data: NSMutableData): this; setClassNameForClass(codedName: string, cls: typeof NSObject): void; } interface NSKeyedArchiverDelegate extends NSObjectProtocol { archiverDidEncodeObject?(archiver: NSKeyedArchiver, object: any): void; archiverDidFinish?(archiver: NSKeyedArchiver): void; archiverWillEncodeObject?(archiver: NSKeyedArchiver, object: any): any; archiverWillFinish?(archiver: NSKeyedArchiver): void; archiverWillReplaceObjectWithObject?(archiver: NSKeyedArchiver, object: any, newObject: any): void; } declare var NSKeyedArchiverDelegate: { prototype: NSKeyedArchiverDelegate; }; declare var NSKeyedUnarchiveFromDataTransformerName: string; declare class NSKeyedUnarchiver extends NSCoder { static alloc(): NSKeyedUnarchiver; // inherited from NSObject static classForClassName(codedName: string): typeof NSObject; static new(): NSKeyedUnarchiver; // inherited from NSObject static setClassForClassName(cls: typeof NSObject, codedName: string): void; static unarchiveObjectWithData(data: NSData): any; static unarchiveObjectWithFile(path: string): any; static unarchiveTopLevelObjectWithDataError(data: NSData): any; delegate: NSKeyedUnarchiverDelegate; requiresSecureCoding: boolean; constructor(o: { forReadingWithData: NSData; }); classForClassName(codedName: string): typeof NSObject; finishDecoding(): void; initForReadingWithData(data: NSData): this; setClassForClassName(cls: typeof NSObject, codedName: string): void; } interface NSKeyedUnarchiverDelegate extends NSObjectProtocol { unarchiverCannotDecodeObjectOfClassNameOriginalClasses?(unarchiver: NSKeyedUnarchiver, name: string, classNames: NSArray): typeof NSObject; unarchiverDidDecodeObject?(unarchiver: NSKeyedUnarchiver, object: any): any; unarchiverDidFinish?(unarchiver: NSKeyedUnarchiver): void; unarchiverWillFinish?(unarchiver: NSKeyedUnarchiver): void; unarchiverWillReplaceObjectWithObject?(unarchiver: NSKeyedUnarchiver, object: any, newObject: any): void; } declare var NSKeyedUnarchiverDelegate: { prototype: NSKeyedUnarchiverDelegate; }; declare class NSLengthFormatter extends NSFormatter { static alloc(): NSLengthFormatter; // inherited from NSObject static new(): NSLengthFormatter; // inherited from NSObject forPersonHeightUse: boolean; numberFormatter: NSNumberFormatter; unitStyle: NSFormattingUnitStyle; stringFromMeters(numberInMeters: number): string; stringFromValueUnit(value: number, unit: NSLengthFormatterUnit): string; unitStringFromMetersUsedUnit(numberInMeters: number, unitp: interop.Pointer | interop.Reference): string; unitStringFromValueUnit(value: number, unit: NSLengthFormatterUnit): string; } declare const enum NSLengthFormatterUnit { Millimeter = 8, Centimeter = 9, Meter = 11, Kilometer = 14, Inch = 1281, Foot = 1282, Yard = 1283, Mile = 1284 } declare var NSLinguisticTagAdjective: string; declare var NSLinguisticTagAdverb: string; declare var NSLinguisticTagClassifier: string; declare var NSLinguisticTagCloseParenthesis: string; declare var NSLinguisticTagCloseQuote: string; declare var NSLinguisticTagConjunction: string; declare var NSLinguisticTagDash: string; declare var NSLinguisticTagDeterminer: string; declare var NSLinguisticTagIdiom: string; declare var NSLinguisticTagInterjection: string; declare var NSLinguisticTagNoun: string; declare var NSLinguisticTagNumber: string; declare var NSLinguisticTagOpenParenthesis: string; declare var NSLinguisticTagOpenQuote: string; declare var NSLinguisticTagOrganizationName: string; declare var NSLinguisticTagOther: string; declare var NSLinguisticTagOtherPunctuation: string; declare var NSLinguisticTagOtherWhitespace: string; declare var NSLinguisticTagOtherWord: string; declare var NSLinguisticTagParagraphBreak: string; declare var NSLinguisticTagParticle: string; declare var NSLinguisticTagPersonalName: string; declare var NSLinguisticTagPlaceName: string; declare var NSLinguisticTagPreposition: string; declare var NSLinguisticTagPronoun: string; declare var NSLinguisticTagPunctuation: string; declare var NSLinguisticTagSchemeLanguage: string; declare var NSLinguisticTagSchemeLemma: string; declare var NSLinguisticTagSchemeLexicalClass: string; declare var NSLinguisticTagSchemeNameType: string; declare var NSLinguisticTagSchemeNameTypeOrLexicalClass: string; declare var NSLinguisticTagSchemeScript: string; declare var NSLinguisticTagSchemeTokenType: string; declare var NSLinguisticTagSentenceTerminator: string; declare var NSLinguisticTagVerb: string; declare var NSLinguisticTagWhitespace: string; declare var NSLinguisticTagWord: string; declare var NSLinguisticTagWordJoiner: string; declare class NSLinguisticTagger extends NSObject { static alloc(): NSLinguisticTagger; // inherited from NSObject static availableTagSchemesForLanguage(language: string): NSArray; static new(): NSLinguisticTagger; // inherited from NSObject string: string; /* readonly */ tagSchemes: NSArray; constructor(o: { tagSchemes: NSArray; options: number; }); enumerateTagsInRangeSchemeOptionsUsingBlock(range: NSRange, tagScheme: string, opts: NSLinguisticTaggerOptions, block: (p1: string, p2: NSRange, p3: NSRange, p4: interop.Pointer | interop.Reference) => void): void; initWithTagSchemesOptions(tagSchemes: NSArray, opts: number): this; orthographyAtIndexEffectiveRange(charIndex: number, effectiveRange: interop.Pointer | interop.Reference): NSOrthography; possibleTagsAtIndexSchemeTokenRangeSentenceRangeScores(charIndex: number, tagScheme: string, tokenRange: interop.Pointer | interop.Reference, sentenceRange: interop.Pointer | interop.Reference, scores: interop.Pointer | interop.Reference>): NSArray; sentenceRangeForRange(range: NSRange): NSRange; setOrthographyRange(orthography: NSOrthography, range: NSRange): void; stringEditedInRangeChangeInLength(newRange: NSRange, delta: number): void; tagAtIndexSchemeTokenRangeSentenceRange(charIndex: number, tagScheme: string, tokenRange: interop.Pointer | interop.Reference, sentenceRange: interop.Pointer | interop.Reference): string; tagsInRangeSchemeOptionsTokenRanges(range: NSRange, tagScheme: string, opts: NSLinguisticTaggerOptions, tokenRanges: interop.Pointer | interop.Reference>): NSArray; } declare const enum NSLinguisticTaggerOptions { OmitWords = 1, OmitPunctuation = 2, OmitWhitespace = 4, OmitOther = 8, JoinNames = 16 } declare var NSLoadedClasses: string; declare class NSLocale extends NSObject implements NSCopying, NSSecureCoding { static ISOCountryCodes(): NSArray; static ISOCurrencyCodes(): NSArray; static ISOLanguageCodes(): NSArray; static alloc(): NSLocale; // inherited from NSObject static autoupdatingCurrentLocale(): NSLocale; static availableLocaleIdentifiers(): NSArray; static canonicalLanguageIdentifierFromString(string: string): string; static canonicalLocaleIdentifierFromString(string: string): string; static characterDirectionForLanguage(isoLangCode: string): NSLocaleLanguageDirection; static commonISOCurrencyCodes(): NSArray; static componentsFromLocaleIdentifier(string: string): NSDictionary; static currentLocale(): NSLocale; static lineDirectionForLanguage(isoLangCode: string): NSLocaleLanguageDirection; static localeIdentifierFromComponents(dict: NSDictionary): string; static localeIdentifierFromWindowsLocaleCode(lcid: number): string; static localeWithLocaleIdentifier(ident: string): NSLocale; static new(): NSLocale; // inherited from NSObject static preferredLanguages(): NSArray; static supportsSecureCoding(): boolean; static systemLocale(): NSLocale; static windowsLocaleCodeFromLocaleIdentifier(localeIdentifier: string): number; /* readonly */ localeIdentifier: string; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { localeIdentifier: string; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; displayNameForKeyValue(key: any, value: any): string; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithLocaleIdentifier(string: string): this; objectForKey(key: any): any; } declare var NSLocaleAlternateQuotationBeginDelimiterKey: string; declare var NSLocaleAlternateQuotationEndDelimiterKey: string; declare var NSLocaleCalendar: string; declare var NSLocaleCollationIdentifier: string; declare var NSLocaleCollatorIdentifier: string; declare var NSLocaleCountryCode: string; declare var NSLocaleCurrencyCode: string; declare var NSLocaleCurrencySymbol: string; declare var NSLocaleDecimalSeparator: string; declare var NSLocaleExemplarCharacterSet: string; declare var NSLocaleGroupingSeparator: string; declare var NSLocaleIdentifier: string; declare var NSLocaleLanguageCode: string; declare const enum NSLocaleLanguageDirection { Unknown = 0, LeftToRight = 1, RightToLeft = 2, TopToBottom = 3, BottomToTop = 4 } declare var NSLocaleMeasurementSystem: string; declare var NSLocaleQuotationBeginDelimiterKey: string; declare var NSLocaleQuotationEndDelimiterKey: string; declare var NSLocaleScriptCode: string; declare var NSLocaleUsesMetricSystem: string; declare var NSLocaleVariantCode: string; declare var NSLocalizedDescriptionKey: string; declare var NSLocalizedFailureReasonErrorKey: string; declare var NSLocalizedRecoveryOptionsErrorKey: string; declare var NSLocalizedRecoverySuggestionErrorKey: string; declare class NSLock extends NSObject implements NSLocking { static alloc(): NSLock; // inherited from NSObject static new(): NSLock; // inherited from NSObject name: string; lock(): void; lockBeforeDate(limit: Date): boolean; tryLock(): boolean; unlock(): void; } interface NSLocking { lock(): void; unlock(): void; } declare var NSLocking: { prototype: NSLocking; }; declare function NSLogPageSize(): number; declare var NSMachErrorDomain: string; declare class NSMachPort extends NSPort { static alloc(): NSMachPort; // inherited from NSObject static new(): NSMachPort; // inherited from NSObject static portWithMachPort(machPort: number): NSPort; static portWithMachPortOptions(machPort: number, f: NSMachPortOptions): NSPort; /* readonly */ machPort: number; constructor(o: { machPort: number; }); constructor(o: { machPort: number; options: NSMachPortOptions; }); delegate(): NSMachPortDelegate; initWithMachPort(machPort: number): this; initWithMachPortOptions(machPort: number, f: NSMachPortOptions): this; setDelegate(anObject: NSMachPortDelegate): void; } interface NSMachPortDelegate extends NSPortDelegate { handleMachMessage?(msg: interop.Pointer | interop.Reference): void; } declare var NSMachPortDelegate: { prototype: NSMachPortDelegate; }; declare const enum NSMachPortOptions { DeallocateNone = 0, DeallocateSendRight = 1, DeallocateReceiveRight = 2 } declare function NSMakeCollectable(cf: any): any; declare var NSMallocException: string; declare class NSMapTable extends NSObject implements NSCoding, NSCopying, NSFastEnumeration { static alloc(): NSMapTable; // inherited from NSObject static mapTableWithKeyOptionsValueOptions(keyOptions: NSPointerFunctionsOptions, valueOptions: NSPointerFunctionsOptions): NSMapTable; static new(): NSMapTable; // inherited from NSObject static strongToStrongObjectsMapTable(): NSMapTable; static strongToWeakObjectsMapTable(): NSMapTable; static weakToStrongObjectsMapTable(): NSMapTable; static weakToWeakObjectsMapTable(): NSMapTable; /* readonly */ count: number; /* readonly */ keyPointerFunctions: NSPointerFunctions; /* readonly */ valuePointerFunctions: NSPointerFunctions; [Symbol.iterator](): Iterator; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { keyOptions: NSPointerFunctionsOptions; valueOptions: NSPointerFunctionsOptions; capacity: number; }); constructor(o: { keyPointerFunctions: NSPointerFunctions; valuePointerFunctions: NSPointerFunctions; capacity: number; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; dictionaryRepresentation(): NSDictionary; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithKeyOptionsValueOptionsCapacity(keyOptions: NSPointerFunctionsOptions, valueOptions: NSPointerFunctionsOptions, initialCapacity: number): this; initWithKeyPointerFunctionsValuePointerFunctionsCapacity(keyFunctions: NSPointerFunctions, valueFunctions: NSPointerFunctions, initialCapacity: number): this; keyEnumerator(): NSEnumerator; objectEnumerator(): NSEnumerator; objectForKey(aKey: KeyType): ObjectType; removeAllObjects(): void; removeObjectForKey(aKey: KeyType): void; setObjectForKey(anObject: ObjectType, aKey: KeyType): void; } declare var NSMapTableCopyIn: NSPointerFunctionsOptions; declare var NSMapTableObjectPointerPersonality: NSPointerFunctionsOptions; declare var NSMapTableStrongMemory: NSPointerFunctionsOptions; declare var NSMapTableWeakMemory: NSPointerFunctionsOptions; declare class NSMassFormatter extends NSFormatter { static alloc(): NSMassFormatter; // inherited from NSObject static new(): NSMassFormatter; // inherited from NSObject forPersonMassUse: boolean; numberFormatter: NSNumberFormatter; unitStyle: NSFormattingUnitStyle; stringFromKilograms(numberInKilograms: number): string; stringFromValueUnit(value: number, unit: NSMassFormatterUnit): string; unitStringFromKilogramsUsedUnit(numberInKilograms: number, unitp: interop.Pointer | interop.Reference): string; unitStringFromValueUnit(value: number, unit: NSMassFormatterUnit): string; } declare const enum NSMassFormatterUnit { Gram = 11, Kilogram = 14, Ounce = 1537, Pound = 1538, Stone = 1539 } declare const enum NSMatchingFlags { Progress = 1, Completed = 2, HitEnd = 4, RequiredEnd = 8, InternalError = 16 } declare const enum NSMatchingOptions { ReportProgress = 1, ReportCompletion = 2, Anchored = 4, WithTransparentBounds = 8, WithoutAnchoringBounds = 16 } declare var NSMaximumKeyValueOperator: string; declare class NSMessagePort extends NSPort { static alloc(): NSMessagePort; // inherited from NSObject static new(): NSMessagePort; // inherited from NSObject } declare class NSMetadataItem extends NSObject { static alloc(): NSMetadataItem; // inherited from NSObject static new(): NSMetadataItem; // inherited from NSObject /* readonly */ attributes: NSArray; valueForAttribute(key: string): any; valuesForAttributes(keys: NSArray): NSDictionary; } declare var NSMetadataItemContentTypeKey: string; declare var NSMetadataItemContentTypeTreeKey: string; declare var NSMetadataItemDisplayNameKey: string; declare var NSMetadataItemFSContentChangeDateKey: string; declare var NSMetadataItemFSCreationDateKey: string; declare var NSMetadataItemFSNameKey: string; declare var NSMetadataItemFSSizeKey: string; declare var NSMetadataItemIsUbiquitousKey: string; declare var NSMetadataItemPathKey: string; declare var NSMetadataItemURLKey: string; declare class NSMetadataQuery extends NSObject { static alloc(): NSMetadataQuery; // inherited from NSObject static new(): NSMetadataQuery; // inherited from NSObject delegate: NSMetadataQueryDelegate; /* readonly */ gathering: boolean; /* readonly */ groupedResults: NSArray; groupingAttributes: NSArray; notificationBatchingInterval: number; operationQueue: NSOperationQueue; predicate: NSPredicate; /* readonly */ resultCount: number; /* readonly */ results: NSArray; searchItems: NSArray; searchScopes: NSArray; sortDescriptors: NSArray; /* readonly */ started: boolean; /* readonly */ stopped: boolean; valueListAttributes: NSArray; /* readonly */ valueLists: NSDictionary>; disableUpdates(): void; enableUpdates(): void; enumerateResultsUsingBlock(block: (p1: any, p2: number, p3: interop.Pointer | interop.Reference) => void): void; enumerateResultsWithOptionsUsingBlock(opts: NSEnumerationOptions, block: (p1: any, p2: number, p3: interop.Pointer | interop.Reference) => void): void; indexOfResult(result: any): number; resultAtIndex(idx: number): any; startQuery(): boolean; stopQuery(): void; valueOfAttributeForResultAtIndex(attrName: string, idx: number): any; } declare var NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope: string; declare class NSMetadataQueryAttributeValueTuple extends NSObject { static alloc(): NSMetadataQueryAttributeValueTuple; // inherited from NSObject static new(): NSMetadataQueryAttributeValueTuple; // inherited from NSObject /* readonly */ attribute: string; /* readonly */ count: number; /* readonly */ value: any; } interface NSMetadataQueryDelegate extends NSObjectProtocol { metadataQueryReplacementObjectForResultObject?(query: NSMetadataQuery, result: NSMetadataItem): any; metadataQueryReplacementValueForAttributeValue?(query: NSMetadataQuery, attrName: string, attrValue: any): any; } declare var NSMetadataQueryDelegate: { prototype: NSMetadataQueryDelegate; }; declare var NSMetadataQueryDidFinishGatheringNotification: string; declare var NSMetadataQueryDidStartGatheringNotification: string; declare var NSMetadataQueryDidUpdateNotification: string; declare var NSMetadataQueryGatheringProgressNotification: string; declare var NSMetadataQueryResultContentRelevanceAttribute: string; declare class NSMetadataQueryResultGroup extends NSObject { static alloc(): NSMetadataQueryResultGroup; // inherited from NSObject static new(): NSMetadataQueryResultGroup; // inherited from NSObject /* readonly */ attribute: string; /* readonly */ resultCount: number; /* readonly */ results: NSArray; /* readonly */ subgroups: NSArray; /* readonly */ value: any; resultAtIndex(idx: number): any; } declare var NSMetadataQueryUbiquitousDataScope: string; declare var NSMetadataQueryUbiquitousDocumentsScope: string; declare var NSMetadataQueryUpdateAddedItemsKey: string; declare var NSMetadataQueryUpdateChangedItemsKey: string; declare var NSMetadataQueryUpdateRemovedItemsKey: string; declare var NSMetadataUbiquitousItemContainerDisplayNameKey: string; declare var NSMetadataUbiquitousItemDownloadRequestedKey: string; declare var NSMetadataUbiquitousItemDownloadingErrorKey: string; declare var NSMetadataUbiquitousItemDownloadingStatusCurrent: string; declare var NSMetadataUbiquitousItemDownloadingStatusDownloaded: string; declare var NSMetadataUbiquitousItemDownloadingStatusKey: string; declare var NSMetadataUbiquitousItemDownloadingStatusNotDownloaded: string; declare var NSMetadataUbiquitousItemHasUnresolvedConflictsKey: string; declare var NSMetadataUbiquitousItemIsDownloadedKey: string; declare var NSMetadataUbiquitousItemIsDownloadingKey: string; declare var NSMetadataUbiquitousItemIsExternalDocumentKey: string; declare var NSMetadataUbiquitousItemIsUploadedKey: string; declare var NSMetadataUbiquitousItemIsUploadingKey: string; declare var NSMetadataUbiquitousItemPercentDownloadedKey: string; declare var NSMetadataUbiquitousItemPercentUploadedKey: string; declare var NSMetadataUbiquitousItemURLInLocalContainerKey: string; declare var NSMetadataUbiquitousItemUploadingErrorKey: string; declare class NSMethodSignature extends NSObject { static alloc(): NSMethodSignature; // inherited from NSObject static new(): NSMethodSignature; // inherited from NSObject static signatureWithObjCTypes(types: string): NSMethodSignature; /* readonly */ frameLength: number; /* readonly */ methodReturnLength: number; /* readonly */ methodReturnType: string; /* readonly */ numberOfArguments: number; getArgumentTypeAtIndex(idx: number): string; isOneway(): boolean; } declare var NSMinimumKeyValueOperator: string; declare class NSMutableArray extends NSArray { static alloc(): NSMutableArray; // inherited from NSObject static array(): NSMutableArray; // inherited from NSArray static arrayWithArray(array: NSArray): NSMutableArray; // inherited from NSArray static arrayWithCapacity(numItems: number): NSMutableArray; static arrayWithContentsOfFile(path: string): NSMutableArray; static arrayWithContentsOfURL(url: NSURL): NSMutableArray; static arrayWithObject(anObject: ObjectType): NSMutableArray; // inherited from NSArray static arrayWithObjects(firstObj: ObjectType): NSMutableArray; // inherited from NSArray static arrayWithObjectsCount(objects: interop.Reference, cnt: number): NSMutableArray; // inherited from NSArray static new(): NSMutableArray; // inherited from NSObject constructor(o: { capacity: number; }); addObject(anObject: ObjectType): void; addObjectsFromArray(otherArray: NSArray): void; exchangeObjectAtIndexWithObjectAtIndex(idx1: number, idx2: number): void; filterUsingPredicate(predicate: NSPredicate): void; initWithCapacity(numItems: number): this; insertObjectAtIndex(anObject: ObjectType, index: number): void; insertObjectsAtIndexes(objects: NSArray, indexes: NSIndexSet): void; removeAllObjects(): void; removeLastObject(): void; removeObject(anObject: ObjectType): void; removeObjectAtIndex(index: number): void; removeObjectIdenticalTo(anObject: ObjectType): void; removeObjectIdenticalToInRange(anObject: ObjectType, range: NSRange): void; removeObjectInRange(anObject: ObjectType, range: NSRange): void; removeObjectsAtIndexes(indexes: NSIndexSet): void; removeObjectsFromIndicesNumIndices(indices: interop.Pointer | interop.Reference, cnt: number): void; removeObjectsInArray(otherArray: NSArray): void; removeObjectsInRange(range: NSRange): void; replaceObjectAtIndexWithObject(index: number, anObject: ObjectType): void; replaceObjectsAtIndexesWithObjects(indexes: NSIndexSet, objects: NSArray): void; replaceObjectsInRangeWithObjectsFromArray(range: NSRange, otherArray: NSArray): void; replaceObjectsInRangeWithObjectsFromArrayRange(range: NSRange, otherArray: NSArray, otherRange: NSRange): void; setArray(otherArray: NSArray): void; setObjectAtIndexedSubscript(obj: ObjectType, idx: number): void; sortUsingComparator(cmptr: (p1: any, p2: any) => NSComparisonResult): void; sortUsingDescriptors(sortDescriptors: NSArray): void; sortUsingFunctionContext(compare: interop.FunctionReference<(p1: ObjectType, p2: ObjectType, p3: interop.Pointer | interop.Reference) => number>, context: interop.Pointer | interop.Reference): void; sortUsingSelector(comparator: string): void; sortWithOptionsUsingComparator(opts: NSSortOptions, cmptr: (p1: any, p2: any) => NSComparisonResult): void; } declare class NSMutableAttributedString extends NSAttributedString { static alloc(): NSMutableAttributedString; // inherited from NSObject static new(): NSMutableAttributedString; // inherited from NSObject /* readonly */ mutableString: NSMutableString; addAttributeValueRange(name: string, value: any, range: NSRange): void; addAttributesRange(attrs: NSDictionary, range: NSRange): void; appendAttributedString(attrString: NSAttributedString): void; beginEditing(): void; deleteCharactersInRange(range: NSRange): void; endEditing(): void; fixAttributesInRange(range: NSRange): void; insertAttributedStringAtIndex(attrString: NSAttributedString, loc: number): void; readFromDataOptionsDocumentAttributesError(data: NSData, opts: NSDictionary, dict: interop.Pointer | interop.Reference>): boolean; readFromFileURLOptionsDocumentAttributesError(url: NSURL, opts: NSDictionary, dict: interop.Pointer | interop.Reference>): boolean; readFromURLOptionsDocumentAttributesError(url: NSURL, opts: NSDictionary, dict: interop.Pointer | interop.Reference>): boolean; removeAttributeRange(name: string, range: NSRange): void; replaceCharactersInRangeWithAttributedString(range: NSRange, attrString: NSAttributedString): void; replaceCharactersInRangeWithString(range: NSRange, str: string): void; setAttributedString(attrString: NSAttributedString): void; setAttributesRange(attrs: NSDictionary, range: NSRange): void; } declare class NSMutableCharacterSet extends NSCharacterSet implements NSCopying, NSMutableCopying { static alloc(): NSMutableCharacterSet; // inherited from NSObject static alphanumericCharacterSet(): NSMutableCharacterSet; static capitalizedLetterCharacterSet(): NSMutableCharacterSet; static characterSetWithBitmapRepresentation(data: NSData): NSMutableCharacterSet; static characterSetWithCharactersInString(aString: string): NSMutableCharacterSet; static characterSetWithContentsOfFile(fName: string): NSMutableCharacterSet; static characterSetWithRange(aRange: NSRange): NSMutableCharacterSet; static controlCharacterSet(): NSMutableCharacterSet; static decimalDigitCharacterSet(): NSMutableCharacterSet; static decomposableCharacterSet(): NSMutableCharacterSet; static illegalCharacterSet(): NSMutableCharacterSet; static letterCharacterSet(): NSMutableCharacterSet; static lowercaseLetterCharacterSet(): NSMutableCharacterSet; static new(): NSMutableCharacterSet; // inherited from NSObject static newlineCharacterSet(): NSMutableCharacterSet; static nonBaseCharacterSet(): NSMutableCharacterSet; static punctuationCharacterSet(): NSMutableCharacterSet; static symbolCharacterSet(): NSMutableCharacterSet; static uppercaseLetterCharacterSet(): NSMutableCharacterSet; static whitespaceAndNewlineCharacterSet(): NSMutableCharacterSet; static whitespaceCharacterSet(): NSMutableCharacterSet; addCharactersInRange(aRange: NSRange): void; addCharactersInString(aString: string): void; copyWithZone(zone: interop.Pointer | interop.Reference): any; formIntersectionWithCharacterSet(otherSet: NSCharacterSet): void; formUnionWithCharacterSet(otherSet: NSCharacterSet): void; invert(): void; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; removeCharactersInRange(aRange: NSRange): void; removeCharactersInString(aString: string): void; } interface NSMutableCopying { mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } declare var NSMutableCopying: { prototype: NSMutableCopying; }; declare class NSMutableData extends NSData { static alloc(): NSMutableData; // inherited from NSObject static data(): NSMutableData; // inherited from NSData static dataWithBytesLength(bytes: interop.Pointer | interop.Reference, length: number): NSMutableData; // inherited from NSData static dataWithBytesNoCopyLength(bytes: interop.Pointer | interop.Reference, length: number): NSMutableData; // inherited from NSData static dataWithBytesNoCopyLengthFreeWhenDone(bytes: interop.Pointer | interop.Reference, length: number, b: boolean): NSMutableData; // inherited from NSData static dataWithCapacity(aNumItems: number): NSMutableData; static dataWithContentsOfFile(path: string): NSMutableData; // inherited from NSData static dataWithContentsOfFileOptionsError(path: string, readOptionsMask: NSDataReadingOptions): NSMutableData; // inherited from NSData static dataWithContentsOfURL(url: NSURL): NSMutableData; // inherited from NSData static dataWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: NSDataReadingOptions): NSMutableData; // inherited from NSData static dataWithData(data: NSData): NSMutableData; // inherited from NSData static dataWithLength(length: number): NSMutableData; static new(): NSMutableData; // inherited from NSObject length: number; /* readonly */ mutableBytes: interop.Pointer | interop.Reference; constructor(o: { capacity: number; }); constructor(o: { length: number; }); appendBytesLength(bytes: interop.Pointer | interop.Reference, length: number): void; appendData(other: NSData): void; increaseLengthBy(extraLength: number): void; initWithCapacity(capacity: number): this; initWithLength(length: number): this; replaceBytesInRangeWithBytes(range: NSRange, bytes: interop.Pointer | interop.Reference): void; replaceBytesInRangeWithBytesLength(range: NSRange, replacementBytes: interop.Pointer | interop.Reference, replacementLength: number): void; resetBytesInRange(range: NSRange): void; setData(data: NSData): void; } declare class NSMutableDictionary extends NSDictionary { static alloc(): NSMutableDictionary; // inherited from NSObject static dictionary(): NSMutableDictionary; // inherited from NSDictionary static dictionaryWithCapacity(numItems: number): NSMutableDictionary; static dictionaryWithContentsOfFile(path: string): NSMutableDictionary; static dictionaryWithContentsOfURL(url: NSURL): NSMutableDictionary; static dictionaryWithDictionary(dict: NSDictionary): NSMutableDictionary; // inherited from NSDictionary static dictionaryWithObjectForKey(object: ObjectType, key: any): NSMutableDictionary; // inherited from NSDictionary static dictionaryWithObjectsAndKeys(firstObject: any): NSMutableDictionary; // inherited from NSDictionary static dictionaryWithObjectsForKeys(objects: NSArray, keys: NSArray): NSMutableDictionary; // inherited from NSDictionary static dictionaryWithObjectsForKeysCount(objects: interop.Reference, keys: interop.Reference, cnt: number): NSMutableDictionary; // inherited from NSDictionary static dictionaryWithSharedKeySet(keyset: any): NSMutableDictionary; static new(): NSMutableDictionary; // inherited from NSObject constructor(o: { capacity: number; }); addEntriesFromDictionary(otherDictionary: NSDictionary): void; initWithCapacity(numItems: number): this; removeAllObjects(): void; removeObjectForKey(aKey: KeyType): void; removeObjectsForKeys(keyArray: NSArray): void; setDictionary(otherDictionary: NSDictionary): void; setObjectForKey(anObject: ObjectType, aKey: any): void; setObjectForKeyedSubscript(obj: ObjectType, key: any): void; setValueForKey(value: ObjectType, key: string): void; } declare class NSMutableIndexSet extends NSIndexSet { static alloc(): NSMutableIndexSet; // inherited from NSObject static indexSet(): NSMutableIndexSet; // inherited from NSIndexSet static indexSetWithIndex(value: number): NSMutableIndexSet; // inherited from NSIndexSet static indexSetWithIndexesInRange(range: NSRange): NSMutableIndexSet; // inherited from NSIndexSet static new(): NSMutableIndexSet; // inherited from NSObject addIndex(value: number): void; addIndexes(indexSet: NSIndexSet): void; addIndexesInRange(range: NSRange): void; removeAllIndexes(): void; removeIndex(value: number): void; removeIndexes(indexSet: NSIndexSet): void; removeIndexesInRange(range: NSRange): void; shiftIndexesStartingAtIndexBy(index: number, delta: number): void; } declare class NSMutableOrderedSet extends NSOrderedSet { static alloc(): NSMutableOrderedSet; // inherited from NSObject static new(): NSMutableOrderedSet; // inherited from NSObject static orderedSet(): NSMutableOrderedSet; // inherited from NSOrderedSet static orderedSetWithArray(array: NSArray): NSMutableOrderedSet; // inherited from NSOrderedSet static orderedSetWithArrayRangeCopyItems(array: NSArray, range: NSRange, flag: boolean): NSMutableOrderedSet; // inherited from NSOrderedSet static orderedSetWithCapacity(numItems: number): NSMutableOrderedSet; static orderedSetWithObject(object: ObjectType): NSMutableOrderedSet; // inherited from NSOrderedSet static orderedSetWithObjects(firstObj: ObjectType): NSMutableOrderedSet; // inherited from NSOrderedSet static orderedSetWithObjectsCount(objects: interop.Reference, cnt: number): NSMutableOrderedSet; // inherited from NSOrderedSet static orderedSetWithOrderedSet(set: NSOrderedSet): NSMutableOrderedSet; // inherited from NSOrderedSet static orderedSetWithOrderedSetRangeCopyItems(set: NSOrderedSet, range: NSRange, flag: boolean): NSMutableOrderedSet; // inherited from NSOrderedSet static orderedSetWithSet(set: NSSet): NSMutableOrderedSet; // inherited from NSOrderedSet static orderedSetWithSetCopyItems(set: NSSet, flag: boolean): NSMutableOrderedSet; // inherited from NSOrderedSet constructor(o: { capacity: number; }); addObject(object: ObjectType): void; addObjectsCount(objects: interop.Reference, count: number): void; addObjectsFromArray(array: NSArray): void; exchangeObjectAtIndexWithObjectAtIndex(idx1: number, idx2: number): void; filterUsingPredicate(p: NSPredicate): void; initWithCapacity(numItems: number): this; insertObjectAtIndex(object: ObjectType, idx: number): void; insertObjectsAtIndexes(objects: NSArray, indexes: NSIndexSet): void; intersectOrderedSet(other: NSOrderedSet): void; intersectSet(other: NSSet): void; minusOrderedSet(other: NSOrderedSet): void; minusSet(other: NSSet): void; moveObjectsAtIndexesToIndex(indexes: NSIndexSet, idx: number): void; removeAllObjects(): void; removeObject(object: ObjectType): void; removeObjectAtIndex(idx: number): void; removeObjectsAtIndexes(indexes: NSIndexSet): void; removeObjectsInArray(array: NSArray): void; removeObjectsInRange(range: NSRange): void; replaceObjectAtIndexWithObject(idx: number, object: ObjectType): void; replaceObjectsAtIndexesWithObjects(indexes: NSIndexSet, objects: NSArray): void; replaceObjectsInRangeWithObjectsCount(range: NSRange, objects: interop.Reference, count: number): void; setObjectAtIndex(obj: ObjectType, idx: number): void; setObjectAtIndexedSubscript(obj: ObjectType, idx: number): void; sortRangeOptionsUsingComparator(range: NSRange, opts: NSSortOptions, cmptr: (p1: any, p2: any) => NSComparisonResult): void; sortUsingComparator(cmptr: (p1: any, p2: any) => NSComparisonResult): void; sortUsingDescriptors(sortDescriptors: NSArray): void; sortWithOptionsUsingComparator(opts: NSSortOptions, cmptr: (p1: any, p2: any) => NSComparisonResult): void; unionOrderedSet(other: NSOrderedSet): void; unionSet(other: NSSet): void; } declare class NSMutableSet extends NSSet { static alloc(): NSMutableSet; // inherited from NSObject static new(): NSMutableSet; // inherited from NSObject static set(): NSMutableSet; // inherited from NSSet static setWithArray(array: NSArray): NSMutableSet; // inherited from NSSet static setWithCapacity(numItems: number): NSMutableSet; static setWithObject(object: ObjectType): NSMutableSet; // inherited from NSSet static setWithObjects(firstObj: ObjectType): NSMutableSet; // inherited from NSSet static setWithObjectsCount(objects: interop.Reference, cnt: number): NSMutableSet; // inherited from NSSet static setWithSet(set: NSSet): NSMutableSet; // inherited from NSSet constructor(o: { capacity: number; }); addObject(object: ObjectType): void; addObjectsFromArray(array: NSArray): void; filterUsingPredicate(predicate: NSPredicate): void; initWithCapacity(numItems: number): this; intersectSet(otherSet: NSSet): void; minusSet(otherSet: NSSet): void; removeAllObjects(): void; removeObject(object: ObjectType): void; setSet(otherSet: NSSet): void; unionSet(otherSet: NSSet): void; } declare class NSMutableString extends NSString { static alloc(): NSMutableString; // inherited from NSObject static new(): NSMutableString; // inherited from NSObject static string(): NSMutableString; // inherited from NSString static stringWithCStringEncoding(cString: string, enc: number): NSMutableString; // inherited from NSString static stringWithCapacity(capacity: number): NSMutableString; static stringWithCharactersLength(characters: interop.Pointer | interop.Reference, length: number): NSMutableString; // inherited from NSString static stringWithContentsOfFileEncodingError(path: string, enc: number): NSMutableString; // inherited from NSString static stringWithContentsOfFileUsedEncodingError(path: string, enc: interop.Pointer | interop.Reference): NSMutableString; // inherited from NSString static stringWithContentsOfURLEncodingError(url: NSURL, enc: number): NSMutableString; // inherited from NSString static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: interop.Pointer | interop.Reference): NSMutableString; // inherited from NSString static stringWithString(string: string): NSMutableString; // inherited from NSString static stringWithUTF8String(nullTerminatedCString: string): NSMutableString; // inherited from NSString constructor(o: { capacity: number; }); appendString(aString: string): void; applyTransformReverseRangeUpdatedRange(transform: string, reverse: boolean, range: NSRange, resultingRange: interop.Pointer | interop.Reference): boolean; deleteCharactersInRange(range: NSRange): void; initWithCapacity(capacity: number): this; insertStringAtIndex(aString: string, loc: number): void; replaceCharactersInRangeWithString(range: NSRange, aString: string): void; replaceOccurrencesOfStringWithStringOptionsRange(target: string, replacement: string, options: NSStringCompareOptions, searchRange: NSRange): number; setString(aString: string): void; } declare class NSMutableURLRequest extends NSURLRequest { static alloc(): NSMutableURLRequest; // inherited from NSObject static new(): NSMutableURLRequest; // inherited from NSObject static requestWithURL(URL: NSURL): NSMutableURLRequest; // inherited from NSURLRequest static requestWithURLCachePolicyTimeoutInterval(URL: NSURL, cachePolicy: NSURLRequestCachePolicy, timeoutInterval: number): NSMutableURLRequest; // inherited from NSURLRequest HTTPBody: NSData; HTTPBodyStream: NSInputStream; HTTPMethod: string; HTTPShouldHandleCookies: boolean; HTTPShouldUsePipelining: boolean; URL: NSURL; allHTTPHeaderFields: NSDictionary; allowsCellularAccess: boolean; cachePolicy: NSURLRequestCachePolicy; mainDocumentURL: NSURL; networkServiceType: NSURLRequestNetworkServiceType; timeoutInterval: number; addValueForHTTPHeaderField(value: string, field: string): void; bindToHotspotHelperCommand(command: NEHotspotHelperCommand): void; setValueForHTTPHeaderField(value: string, field: string): void; } declare var NSNegateBooleanTransformerName: string; declare class NSNetService extends NSObject { static alloc(): NSNetService; // inherited from NSObject static dataFromTXTRecordDictionary(txtDictionary: NSDictionary): NSData; static dictionaryFromTXTRecordData(txtData: NSData): NSDictionary; static new(): NSNetService; // inherited from NSObject /* readonly */ addresses: NSArray; delegate: NSNetServiceDelegate; /* readonly */ domain: string; /* readonly */ hostName: string; includesPeerToPeer: boolean; /* readonly */ name: string; /* readonly */ port: number; /* readonly */ type: string; constructor(o: { domain: string; type: string; name: string; }); constructor(o: { domain: string; type: string; name: string; port: number; }); TXTRecordData(): NSData; getInputStreamOutputStream(inputStream: interop.Pointer | interop.Reference, outputStream: interop.Pointer | interop.Reference): boolean; initWithDomainTypeName(domain: string, type: string, name: string): this; initWithDomainTypeNamePort(domain: string, type: string, name: string, port: number): this; publish(): void; publishWithOptions(options: NSNetServiceOptions): void; removeFromRunLoopForMode(aRunLoop: NSRunLoop, mode: string): void; resolve(): void; resolveWithTimeout(timeout: number): void; scheduleInRunLoopForMode(aRunLoop: NSRunLoop, mode: string): void; setTXTRecordData(recordData: NSData): boolean; startMonitoring(): void; stop(): void; stopMonitoring(): void; } declare class NSNetServiceBrowser extends NSObject { static alloc(): NSNetServiceBrowser; // inherited from NSObject static new(): NSNetServiceBrowser; // inherited from NSObject delegate: NSNetServiceBrowserDelegate; includesPeerToPeer: boolean; removeFromRunLoopForMode(aRunLoop: NSRunLoop, mode: string): void; scheduleInRunLoopForMode(aRunLoop: NSRunLoop, mode: string): void; searchForBrowsableDomains(): void; searchForRegistrationDomains(): void; searchForServicesOfTypeInDomain(type: string, domainString: string): void; stop(): void; } interface NSNetServiceBrowserDelegate extends NSObjectProtocol { netServiceBrowserDidFindDomainMoreComing?(browser: NSNetServiceBrowser, domainString: string, moreComing: boolean): void; netServiceBrowserDidFindServiceMoreComing?(browser: NSNetServiceBrowser, service: NSNetService, moreComing: boolean): void; netServiceBrowserDidNotSearch?(browser: NSNetServiceBrowser, errorDict: NSDictionary): void; netServiceBrowserDidRemoveDomainMoreComing?(browser: NSNetServiceBrowser, domainString: string, moreComing: boolean): void; netServiceBrowserDidRemoveServiceMoreComing?(browser: NSNetServiceBrowser, service: NSNetService, moreComing: boolean): void; netServiceBrowserDidStopSearch?(browser: NSNetServiceBrowser): void; netServiceBrowserWillSearch?(browser: NSNetServiceBrowser): void; } declare var NSNetServiceBrowserDelegate: { prototype: NSNetServiceBrowserDelegate; }; interface NSNetServiceDelegate extends NSObjectProtocol { netServiceDidAcceptConnectionWithInputStreamOutputStream?(sender: NSNetService, inputStream: NSInputStream, outputStream: NSOutputStream): void; netServiceDidNotPublish?(sender: NSNetService, errorDict: NSDictionary): void; netServiceDidNotResolve?(sender: NSNetService, errorDict: NSDictionary): void; netServiceDidPublish?(sender: NSNetService): void; netServiceDidResolveAddress?(sender: NSNetService): void; netServiceDidStop?(sender: NSNetService): void; netServiceDidUpdateTXTRecordData?(sender: NSNetService, data: NSData): void; netServiceWillPublish?(sender: NSNetService): void; netServiceWillResolve?(sender: NSNetService): void; } declare var NSNetServiceDelegate: { prototype: NSNetServiceDelegate; }; declare const enum NSNetServiceOptions { NoAutoRename = 1, ListenForConnections = 2 } declare const enum NSNetServicesError { UnknownError = -72000, CollisionError = -72001, NotFoundError = -72002, ActivityInProgress = -72003, BadArgumentError = -72004, CancelledError = -72005, InvalidError = -72006, TimeoutError = -72007 } declare var NSNetServicesErrorCode: string; declare var NSNetServicesErrorDomain: string; declare var NSNotFound: number; declare class NSNotification extends NSObject implements NSCoding, NSCopying { static alloc(): NSNotification; // inherited from NSObject static new(): NSNotification; // inherited from NSObject static notificationWithNameObject(aName: string, anObject: any): NSNotification; static notificationWithNameObjectUserInfo(aName: string, anObject: any, aUserInfo: NSDictionary): NSNotification; /* readonly */ name: string; /* readonly */ object: any; /* readonly */ userInfo: NSDictionary; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { name: string; object: any; userInfo: NSDictionary; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithNameObjectUserInfo(name: string, object: any, userInfo: NSDictionary): this; } declare class NSNotificationCenter extends NSObject { static alloc(): NSNotificationCenter; // inherited from NSObject static defaultCenter(): NSNotificationCenter; static new(): NSNotificationCenter; // inherited from NSObject addObserverForNameObjectQueueUsingBlock(name: string, obj: any, queue: NSOperationQueue, block: (p1: NSNotification) => void): NSObjectProtocol; addObserverSelectorNameObject(observer: any, aSelector: string, aName: string, anObject: any): void; postNotification(notification: NSNotification): void; postNotificationNameObject(aName: string, anObject: any): void; postNotificationNameObjectUserInfo(aName: string, anObject: any, aUserInfo: NSDictionary): void; removeObserver(observer: any): void; removeObserverNameObject(observer: any, aName: string, anObject: any): void; } declare const enum NSNotificationCoalescing { NoCoalescing = 0, CoalescingOnName = 1, CoalescingOnSender = 2 } declare class NSNotificationQueue extends NSObject { static alloc(): NSNotificationQueue; // inherited from NSObject static defaultQueue(): NSNotificationQueue; static new(): NSNotificationQueue; // inherited from NSObject constructor(o: { notificationCenter: NSNotificationCenter; }); dequeueNotificationsMatchingCoalesceMask(notification: NSNotification, coalesceMask: number): void; enqueueNotificationPostingStyle(notification: NSNotification, postingStyle: NSPostingStyle): void; enqueueNotificationPostingStyleCoalesceMaskForModes(notification: NSNotification, postingStyle: NSPostingStyle, coalesceMask: NSNotificationCoalescing, modes: NSArray): void; initWithNotificationCenter(notificationCenter: NSNotificationCenter): this; } declare class NSNull extends NSObject implements CAAction, NSCopying, NSSecureCoding { static alloc(): NSNull; // inherited from NSObject static new(): NSNull; // inherited from NSObject static null(): NSNull; static supportsSecureCoding(): boolean; constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; runActionForKeyObjectArguments(event: string, anObject: any, dict: NSDictionary): void; } declare class NSNumber extends NSValue implements CKRecordValue { static alloc(): NSNumber; // inherited from NSObject static new(): NSNumber; // inherited from NSObject static numberWithBool(value: boolean): number; static numberWithChar(value: number): number; static numberWithDouble(value: number): number; static numberWithFloat(value: number): number; static numberWithInt(value: number): number; static numberWithInteger(value: number): number; static numberWithLong(value: number): number; static numberWithLongLong(value: number): number; static numberWithShort(value: number): number; static numberWithUnsignedChar(value: number): number; static numberWithUnsignedInt(value: number): number; static numberWithUnsignedInteger(value: number): number; static numberWithUnsignedLong(value: number): number; static numberWithUnsignedLongLong(value: number): number; static numberWithUnsignedShort(value: number): number; /* readonly */ boolValue: boolean; /* readonly */ charValue: number; /* readonly */ decimalValue: NSDecimal; /* readonly */ doubleValue: number; /* readonly */ floatValue: number; /* readonly */ intValue: number; /* readonly */ integerValue: number; /* readonly */ longLongValue: number; /* readonly */ longValue: number; /* readonly */ shortValue: number; /* readonly */ stringValue: string; /* readonly */ unsignedCharValue: number; /* readonly */ unsignedIntValue: number; /* readonly */ unsignedIntegerValue: number; /* readonly */ unsignedLongLongValue: number; /* readonly */ unsignedLongValue: number; /* readonly */ unsignedShortValue: number; /* readonly */ debugDescription: string; // inherited from NSObjectProtocol /* readonly */ description: string; // inherited from NSObjectProtocol /* readonly */ hash: number; // inherited from NSObjectProtocol /* readonly */ isProxy: boolean; // inherited from NSObjectProtocol /* readonly */ superclass: typeof NSObject; // inherited from NSObjectProtocol /* readonly */ // inherited from NSObjectProtocol constructor(o: { bool: boolean; }); constructor(o: { char: number; }); constructor(o: { double: number; }); constructor(o: { float: number; }); constructor(o: { int: number; }); constructor(o: { integer: number; }); constructor(o: { long: number; }); constructor(o: { longLong: number; }); constructor(o: { short: number; }); constructor(o: { unsignedChar: number; }); constructor(o: { unsignedInt: number; }); constructor(o: { unsignedInteger: number; }); constructor(o: { unsignedLong: number; }); constructor(o: { unsignedLongLong: number; }); constructor(o: { unsignedShort: number; }); class(): typeof NSObject; compare(otherNumber: number): NSComparisonResult; conformsToProtocol(aProtocol: any /* Protocol */): boolean; descriptionWithLocale(locale: any): string; initWithBool(value: boolean): this; initWithChar(value: number): this; initWithDouble(value: number): this; initWithFloat(value: number): this; initWithInt(value: number): this; initWithInteger(value: number): this; initWithLong(value: number): this; initWithLongLong(value: number): this; initWithShort(value: number): this; initWithUnsignedChar(value: number): this; initWithUnsignedInt(value: number): this; initWithUnsignedInteger(value: number): this; initWithUnsignedLong(value: number): this; initWithUnsignedLongLong(value: number): this; initWithUnsignedShort(value: number): this; isEqual(object: any): boolean; isEqualToNumber(number: number): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class NSNumberFormatter extends NSFormatter { static alloc(): NSNumberFormatter; // inherited from NSObject static defaultFormatterBehavior(): NSNumberFormatterBehavior; static localizedStringFromNumberNumberStyle(num: number, nstyle: NSNumberFormatterStyle): string; static new(): NSNumberFormatter; // inherited from NSObject static setDefaultFormatterBehavior(behavior: NSNumberFormatterBehavior): void; allowsFloats: boolean; alwaysShowsDecimalSeparator: boolean; currencyCode: string; currencyDecimalSeparator: string; currencyGroupingSeparator: string; currencySymbol: string; decimalSeparator: string; exponentSymbol: string; formatWidth: number; formatterBehavior: NSNumberFormatterBehavior; formattingContext: NSFormattingContext; generatesDecimalNumbers: boolean; groupingSeparator: string; groupingSize: number; internationalCurrencySymbol: string; lenient: boolean; locale: NSLocale; maximum: number; maximumFractionDigits: number; maximumIntegerDigits: number; maximumSignificantDigits: number; minimum: number; minimumFractionDigits: number; minimumIntegerDigits: number; minimumSignificantDigits: number; minusSign: string; multiplier: number; negativeFormat: string; negativeInfinitySymbol: string; negativePrefix: string; negativeSuffix: string; nilSymbol: string; notANumberSymbol: string; numberStyle: NSNumberFormatterStyle; paddingCharacter: string; paddingPosition: NSNumberFormatterPadPosition; partialStringValidationEnabled: boolean; perMillSymbol: string; percentSymbol: string; plusSign: string; positiveFormat: string; positiveInfinitySymbol: string; positivePrefix: string; positiveSuffix: string; roundingIncrement: number; roundingMode: NSNumberFormatterRoundingMode; secondaryGroupingSize: number; textAttributesForNegativeInfinity: NSDictionary; textAttributesForNegativeValues: NSDictionary; textAttributesForNil: NSDictionary; textAttributesForNotANumber: NSDictionary; textAttributesForPositiveInfinity: NSDictionary; textAttributesForPositiveValues: NSDictionary; textAttributesForZero: NSDictionary; usesGroupingSeparator: boolean; usesSignificantDigits: boolean; zeroSymbol: string; getObjectValueForStringRangeError(obj: interop.Pointer | interop.Reference, string: string, rangep: interop.Pointer | interop.Reference): boolean; numberFromString(string: string): number; stringFromNumber(number: number): string; } declare const enum NSNumberFormatterBehavior { BehaviorDefault = 0, Behavior10_4 = 1040 } declare const enum NSNumberFormatterPadPosition { BeforePrefix = 0, AfterPrefix = 1, BeforeSuffix = 2, AfterSuffix = 3 } declare const enum NSNumberFormatterRoundingMode { Ceiling = 0, Floor = 1, Down = 2, Up = 3, HalfEven = 4, HalfDown = 5, HalfUp = 6 } declare const enum NSNumberFormatterStyle { NoStyle = 0, DecimalStyle = 1, CurrencyStyle = 2, PercentStyle = 3, ScientificStyle = 4, SpellOutStyle = 5, OrdinalStyle = 6, CurrencyISOCodeStyle = 8, CurrencyPluralStyle = 9, CurrencyAccountingStyle = 10 } declare var NSOSStatusErrorDomain: string; declare var NSObjectInaccessibleException: string; declare var NSObjectNotAvailableException: string; declare var NSOldStyleException: string; declare function NSOpenStepRootDirectory(): string; interface NSOperatingSystemVersion { majorVersion: number; minorVersion: number; patchVersion: number; } declare var NSOperatingSystemVersion: interop.StructType; declare class NSOperation extends NSObject { static alloc(): NSOperation; // inherited from NSObject static new(): NSOperation; // inherited from NSObject /* readonly */ asynchronous: boolean; /* readonly */ cancelled: boolean; completionBlock: () => void; /* readonly */ concurrent: boolean; /* readonly */ dependencies: NSArray; /* readonly */ executing: boolean; /* readonly */ finished: boolean; name: string; qualityOfService: NSQualityOfService; queuePriority: NSOperationQueuePriority; /* readonly */ ready: boolean; threadPriority: number; addDependency(op: NSOperation): void; cancel(): void; main(): void; removeDependency(op: NSOperation): void; start(): void; waitUntilFinished(): void; } declare class NSOperationQueue extends NSObject { static alloc(): NSOperationQueue; // inherited from NSObject static currentQueue(): NSOperationQueue; static mainQueue(): NSOperationQueue; static new(): NSOperationQueue; // inherited from NSObject maxConcurrentOperationCount: number; name: string; /* readonly */ operationCount: number; /* readonly */ operations: NSArray; qualityOfService: NSQualityOfService; suspended: boolean; underlyingQueue: NSObject; addOperation(op: NSOperation): void; addOperationWithBlock(block: () => void): void; addOperationsWaitUntilFinished(ops: NSArray, wait: boolean): void; cancelAllOperations(): void; waitUntilAllOperationsAreFinished(): void; } declare var NSOperationQueueDefaultMaxConcurrentOperationCount: number; declare const enum NSOperationQueuePriority { VeryLow = -8, Low = -4, Normal = 0, High = 4, VeryHigh = 8 } declare class NSOrderedSet extends NSObject implements NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding { static alloc(): NSOrderedSet; // inherited from NSObject static new(): NSOrderedSet; // inherited from NSObject static orderedSet(): NSOrderedSet; static orderedSetWithArray(array: NSArray): NSOrderedSet; static orderedSetWithArrayRangeCopyItems(array: NSArray, range: NSRange, flag: boolean): NSOrderedSet; static orderedSetWithObject(object: ObjectType): NSOrderedSet; static orderedSetWithObjects(firstObj: ObjectType): NSOrderedSet; static orderedSetWithObjectsCount(objects: interop.Reference, cnt: number): NSOrderedSet; static orderedSetWithOrderedSet(set: NSOrderedSet): NSOrderedSet; static orderedSetWithOrderedSetRangeCopyItems(set: NSOrderedSet, range: NSRange, flag: boolean): NSOrderedSet; static orderedSetWithSet(set: NSSet): NSOrderedSet; static orderedSetWithSetCopyItems(set: NSSet, flag: boolean): NSOrderedSet; static supportsSecureCoding(): boolean; /* readonly */ array: NSArray; /* readonly */ count: number; /* readonly */ firstObject: ObjectType; /* readonly */ lastObject: ObjectType; /* readonly */ reversedOrderedSet: NSOrderedSet; /* readonly */ set: NSSet; [index: number]: ObjectType; [Symbol.iterator](): Iterator; constructor(o: { array: NSArray; }); constructor(o: { array: NSArray; copyItems: boolean; }); constructor(o: { array: NSArray; range: NSRange; copyItems: boolean; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { object: ObjectType; }); constructor(o: { objects: ObjectType; }); constructor(o: { objects: interop.Reference; count: number; }); constructor(o: { orderedSet: NSOrderedSet; }); constructor(o: { orderedSet: NSOrderedSet; copyItems: boolean; }); constructor(o: { orderedSet: NSOrderedSet; range: NSRange; copyItems: boolean; }); constructor(o: { set: NSSet; }); constructor(o: { set: NSSet; copyItems: boolean; }); containsObject(object: ObjectType): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; descriptionWithLocale(locale: any): string; descriptionWithLocaleIndent(locale: any, level: number): string; encodeWithCoder(aCoder: NSCoder): void; enumerateObjectsAtIndexesOptionsUsingBlock(s: NSIndexSet, opts: NSEnumerationOptions, block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => void): void; enumerateObjectsUsingBlock(block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => void): void; enumerateObjectsWithOptionsUsingBlock(opts: NSEnumerationOptions, block: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => void): void; filteredOrderedSetUsingPredicate(p: NSPredicate): NSOrderedSet; getObjectsRange(objects: interop.Reference, range: NSRange): void; indexOfObject(object: ObjectType): number; indexOfObjectAtIndexesOptionsPassingTest(s: NSIndexSet, opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => boolean): number; indexOfObjectInSortedRangeOptionsUsingComparator(object: ObjectType, range: NSRange, opts: NSBinarySearchingOptions, cmp: (p1: any, p2: any) => NSComparisonResult): number; indexOfObjectPassingTest(predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => boolean): number; indexOfObjectWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => boolean): number; indexesOfObjectsAtIndexesOptionsPassingTest(s: NSIndexSet, opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => boolean): NSIndexSet; indexesOfObjectsPassingTest(predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => boolean): NSIndexSet; indexesOfObjectsWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: number, p3: interop.Pointer | interop.Reference) => boolean): NSIndexSet; initWithArray(array: NSArray): this; initWithArrayCopyItems(set: NSArray, flag: boolean): this; initWithArrayRangeCopyItems(set: NSArray, range: NSRange, flag: boolean): this; initWithCoder(aDecoder: NSCoder): this; initWithObject(object: ObjectType): this; initWithObjects(firstObj: ObjectType): this; initWithObjectsCount(objects: interop.Reference, cnt: number): this; initWithOrderedSet(set: NSOrderedSet): this; initWithOrderedSetCopyItems(set: NSOrderedSet, flag: boolean): this; initWithOrderedSetRangeCopyItems(set: NSOrderedSet, range: NSRange, flag: boolean): this; initWithSet(set: NSSet): this; initWithSetCopyItems(set: NSSet, flag: boolean): this; intersectsOrderedSet(other: NSOrderedSet): boolean; intersectsSet(set: NSSet): boolean; isEqualToOrderedSet(other: NSOrderedSet): boolean; isSubsetOfOrderedSet(other: NSOrderedSet): boolean; isSubsetOfSet(set: NSSet): boolean; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; objectAtIndex(idx: number): ObjectType; objectAtIndexedSubscript(idx: number): ObjectType; objectEnumerator(): NSEnumerator; objectsAtIndexes(indexes: NSIndexSet): NSArray; reverseObjectEnumerator(): NSEnumerator; sortedArrayUsingComparator(cmptr: (p1: any, p2: any) => NSComparisonResult): NSArray; sortedArrayUsingDescriptors(sortDescriptors: NSArray): NSArray; sortedArrayWithOptionsUsingComparator(opts: NSSortOptions, cmptr: (p1: any, p2: any) => NSComparisonResult): NSArray; } declare class NSOrthography extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSOrthography; // inherited from NSObject static new(): NSOrthography; // inherited from NSObject static orthographyWithDominantScriptLanguageMap(script: string, map: NSDictionary>): NSOrthography; static supportsSecureCoding(): boolean; /* readonly */ allLanguages: NSArray; /* readonly */ allScripts: NSArray; /* readonly */ dominantLanguage: string; /* readonly */ dominantScript: string; /* readonly */ languageMap: NSDictionary>; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { dominantScript: string; languageMap: NSDictionary>; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; dominantLanguageForScript(script: string): string; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithDominantScriptLanguageMap(script: string, map: NSDictionary>): this; languagesForScript(script: string): NSArray; } declare class NSOutputStream extends NSStream { static alloc(): NSOutputStream; // inherited from NSObject static new(): NSOutputStream; // inherited from NSObject static outputStreamToBufferCapacity(buffer: string, capacity: number): NSOutputStream; static outputStreamToFileAtPathAppend(path: string, shouldAppend: boolean): NSOutputStream; static outputStreamToMemory(): NSOutputStream; static outputStreamWithURLAppend(url: NSURL, shouldAppend: boolean): NSOutputStream; /* readonly */ hasSpaceAvailable: boolean; constructor(o: { toBuffer: string; capacity: number; }); constructor(o: { toFileAtPath: string; append: boolean; }); constructor(o: { toMemory: void; }); constructor(o: { URL: NSURL; append: boolean; }); initToBufferCapacity(buffer: string, capacity: number): this; initToFileAtPathAppend(path: string, shouldAppend: boolean): this; initToMemory(): this; initWithURLAppend(url: NSURL, shouldAppend: boolean): this; writeMaxLength(buffer: string, len: number): number; } declare var NSPOSIXErrorDomain: string; declare function NSPageSize(): number; declare var NSParseErrorException: string; declare var NSPersianCalendar: string; declare var NSPersonNameComponentDelimiter: string; declare var NSPersonNameComponentFamilyName: string; declare var NSPersonNameComponentGivenName: string; declare var NSPersonNameComponentKey: string; declare var NSPersonNameComponentMiddleName: string; declare var NSPersonNameComponentNickname: string; declare var NSPersonNameComponentPrefix: string; declare var NSPersonNameComponentSuffix: string; declare class NSPersonNameComponents extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSPersonNameComponents; // inherited from NSObject static new(): NSPersonNameComponents; // inherited from NSObject static supportsSecureCoding(): boolean; familyName: string; givenName: string; middleName: string; namePrefix: string; nameSuffix: string; nickname: string; phoneticRepresentation: NSPersonNameComponents; constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare class NSPersonNameComponentsFormatter extends NSFormatter { static alloc(): NSPersonNameComponentsFormatter; // inherited from NSObject static localizedStringFromPersonNameComponentsStyleOptions(components: NSPersonNameComponents, nameFormatStyle: NSPersonNameComponentsFormatterStyle, nameOptions: NSPersonNameComponentsFormatterOptions): string; static new(): NSPersonNameComponentsFormatter; // inherited from NSObject phonetic: boolean; style: NSPersonNameComponentsFormatterStyle; annotatedStringFromPersonNameComponents(components: NSPersonNameComponents): NSAttributedString; stringFromPersonNameComponents(components: NSPersonNameComponents): string; } declare const enum NSPersonNameComponentsFormatterOptions { Phonetic = 2 } declare const enum NSPersonNameComponentsFormatterStyle { Default = 0, Short = 1, Medium = 2, Long = 3, Abbreviated = 4 } declare class NSPipe extends NSObject { static alloc(): NSPipe; // inherited from NSObject static new(): NSPipe; // inherited from NSObject static pipe(): NSPipe; /* readonly */ fileHandleForReading: NSFileHandle; /* readonly */ fileHandleForWriting: NSFileHandle; } declare class NSPointerArray extends NSObject implements NSCoding, NSCopying, NSFastEnumeration { static alloc(): NSPointerArray; // inherited from NSObject static new(): NSPointerArray; // inherited from NSObject static pointerArrayWithOptions(options: NSPointerFunctionsOptions): NSPointerArray; static pointerArrayWithPointerFunctions(functions: NSPointerFunctions): NSPointerArray; static strongObjectsPointerArray(): NSPointerArray; static weakObjectsPointerArray(): NSPointerArray; /* readonly */ allObjects: NSArray; count: number; /* readonly */ pointerFunctions: NSPointerFunctions; [Symbol.iterator](): Iterator; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { options: NSPointerFunctionsOptions; }); constructor(o: { pointerFunctions: NSPointerFunctions; }); addPointer(pointer: interop.Pointer | interop.Reference): void; compact(): void; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithOptions(options: NSPointerFunctionsOptions): this; initWithPointerFunctions(functions: NSPointerFunctions): this; insertPointerAtIndex(item: interop.Pointer | interop.Reference, index: number): void; pointerAtIndex(index: number): interop.Pointer | interop.Reference; removePointerAtIndex(index: number): void; replacePointerAtIndexWithPointer(index: number, item: interop.Pointer | interop.Reference): void; } declare class NSPointerFunctions extends NSObject implements NSCopying { static alloc(): NSPointerFunctions; // inherited from NSObject static new(): NSPointerFunctions; // inherited from NSObject static pointerFunctionsWithOptions(options: NSPointerFunctionsOptions): NSPointerFunctions; acquireFunction: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>, p3: boolean) => interop.Pointer | interop.Reference>; descriptionFunction: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => string>; hashFunction: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>) => number>; isEqualFunction: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>) => boolean>; relinquishFunction: interop.FunctionReference<(p1: interop.Pointer | interop.Reference, p2: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>) => void>; sizeFunction: interop.FunctionReference<(p1: interop.Pointer | interop.Reference) => number>; usesStrongWriteBarrier: boolean; usesWeakReadAndWriteBarriers: boolean; constructor(o: { options: NSPointerFunctionsOptions; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; initWithOptions(options: NSPointerFunctionsOptions): this; } declare const enum NSPointerFunctionsOptions { StrongMemory = 0, OpaqueMemory = 2, MallocMemory = 3, MachVirtualMemory = 4, WeakMemory = 5, ObjectPersonality = 0, OpaquePersonality = 256, ObjectPointerPersonality = 512, CStringPersonality = 768, StructPersonality = 1024, IntegerPersonality = 1280, CopyIn = 65536 } declare class NSPort extends NSObject implements NSCoding, NSCopying { static alloc(): NSPort; // inherited from NSObject static new(): NSPort; // inherited from NSObject static port(): NSPort; /* readonly */ reservedSpaceLength: number; /* readonly */ valid: boolean; constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; delegate(): NSPortDelegate; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; invalidate(): void; removeFromRunLoopForMode(runLoop: NSRunLoop, mode: string): void; scheduleInRunLoopForMode(runLoop: NSRunLoop, mode: string): void; sendBeforeDateComponentsFromReserved(limitDate: Date, components: NSMutableArray, receivePort: NSPort, headerSpaceReserved: number): boolean; sendBeforeDateMsgidComponentsFromReserved(limitDate: Date, msgID: number, components: NSMutableArray, receivePort: NSPort, headerSpaceReserved: number): boolean; setDelegate(anObject: NSPortDelegate): void; } interface NSPortDelegate extends NSObjectProtocol { } declare var NSPortDelegate: { prototype: NSPortDelegate; }; declare var NSPortDidBecomeInvalidNotification: string; declare var NSPortReceiveException: string; declare var NSPortSendException: string; declare var NSPortTimeoutException: string; declare const enum NSPostingStyle { WhenIdle = 1, ASAP = 2, Now = 3 } declare class NSPredicate extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSPredicate; // inherited from NSObject static new(): NSPredicate; // inherited from NSObject static predicateWithBlock(block: (p1: any, p2: NSDictionary) => boolean): NSPredicate; static predicateWithFormatArgumentArray(predicateFormat: string, _arguments: NSArray): NSPredicate; static predicateWithValue(value: boolean): NSPredicate; static supportsSecureCoding(): boolean; /* readonly */ predicateFormat: string; constructor(o: { coder: NSCoder; }); // inherited from NSCoding allowEvaluation(): void; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; evaluateWithObject(object: any): boolean; evaluateWithObjectSubstitutionVariables(object: any, bindings: NSDictionary): boolean; initWithCoder(aDecoder: NSCoder): this; predicateWithSubstitutionVariables(variables: NSDictionary): this; } declare const enum NSPredicateOperatorType { LessThanPredicateOperatorType = 0, LessThanOrEqualToPredicateOperatorType = 1, GreaterThanPredicateOperatorType = 2, GreaterThanOrEqualToPredicateOperatorType = 3, EqualToPredicateOperatorType = 4, NotEqualToPredicateOperatorType = 5, MatchesPredicateOperatorType = 6, LikePredicateOperatorType = 7, BeginsWithPredicateOperatorType = 8, EndsWithPredicateOperatorType = 9, InPredicateOperatorType = 10, CustomSelectorPredicateOperatorType = 11, ContainsPredicateOperatorType = 99, BetweenPredicateOperatorType = 100 } declare class NSProcessInfo extends NSObject { static alloc(): NSProcessInfo; // inherited from NSObject static new(): NSProcessInfo; // inherited from NSObject static processInfo(): NSProcessInfo; /* readonly */ activeProcessorCount: number; /* readonly */ arguments: NSArray; /* readonly */ environment: NSDictionary; /* readonly */ globallyUniqueString: string; /* readonly */ hostName: string; /* readonly */ lowPowerModeEnabled: boolean; /* readonly */ operatingSystemVersion: NSOperatingSystemVersion; /* readonly */ operatingSystemVersionString: string; /* readonly */ physicalMemory: number; /* readonly */ processIdentifier: number; processName: string; /* readonly */ processorCount: number; /* readonly */ systemUptime: number; beginActivityWithOptionsReason(options: NSActivityOptions, reason: string): NSObjectProtocol; endActivity(activity: NSObjectProtocol): void; isOperatingSystemAtLeastVersion(version: NSOperatingSystemVersion): boolean; operatingSystem(): number; operatingSystemName(): string; performActivityWithOptionsReasonUsingBlock(options: NSActivityOptions, reason: string, block: () => void): void; performExpiringActivityWithReasonUsingBlock(reason: string, block: (p1: boolean) => void): void; } declare var NSProcessInfoPowerStateDidChangeNotification: string; declare class NSProgress extends NSObject { static alloc(): NSProgress; // inherited from NSObject static currentProgress(): NSProgress; static discreteProgressWithTotalUnitCount(unitCount: number): NSProgress; static new(): NSProgress; // inherited from NSObject static progressWithTotalUnitCount(unitCount: number): NSProgress; static progressWithTotalUnitCountParentPendingUnitCount(unitCount: number, parent: NSProgress, portionOfParentTotalUnitCount: number): NSProgress; cancellable: boolean; cancellationHandler: () => void; /* readonly */ cancelled: boolean; completedUnitCount: number; /* readonly */ fractionCompleted: number; /* readonly */ indeterminate: boolean; kind: string; localizedAdditionalDescription: string; localizedDescription: string; pausable: boolean; /* readonly */ paused: boolean; pausingHandler: () => void; resumingHandler: () => void; totalUnitCount: number; /* readonly */ userInfo: NSDictionary; constructor(o: { parent: NSProgress; userInfo: NSDictionary; }); addChildWithPendingUnitCount(child: NSProgress, inUnitCount: number): void; becomeCurrentWithPendingUnitCount(unitCount: number): void; cancel(): void; initWithParentUserInfo(parentProgressOrNil: NSProgress, userInfoOrNil: NSDictionary): this; pause(): void; resignCurrent(): void; resume(): void; setUserInfoObjectForKey(objectOrNil: any, key: string): void; } declare var NSProgressEstimatedTimeRemainingKey: string; declare var NSProgressFileCompletedCountKey: string; declare var NSProgressFileOperationKindCopying: string; declare var NSProgressFileOperationKindDecompressingAfterDownloading: string; declare var NSProgressFileOperationKindDownloading: string; declare var NSProgressFileOperationKindKey: string; declare var NSProgressFileOperationKindReceiving: string; declare var NSProgressFileTotalCountKey: string; declare var NSProgressFileURLKey: string; declare var NSProgressKindFile: string; interface NSProgressReporting extends NSObjectProtocol { progress: NSProgress; } declare var NSProgressReporting: { prototype: NSProgressReporting; }; declare var NSProgressThroughputKey: string; declare const enum NSPropertyListFormat { OpenStepFormat = 1, XMLFormat_v1_0 = 100, BinaryFormat_v1_0 = 200 } declare const enum NSPropertyListMutabilityOptions { Immutable = 0, MutableContainers = 1, MutableContainersAndLeaves = 2 } declare class NSPropertyListSerialization extends NSObject { static alloc(): NSPropertyListSerialization; // inherited from NSObject static dataFromPropertyListFormatErrorDescription(plist: any, format: NSPropertyListFormat, errorString: interop.Pointer | interop.Reference): NSData; static dataWithPropertyListFormatOptionsError(plist: any, format: NSPropertyListFormat, opt: number): NSData; static new(): NSPropertyListSerialization; // inherited from NSObject static propertyListFromDataMutabilityOptionFormatErrorDescription(data: NSData, opt: NSPropertyListMutabilityOptions, format: interop.Pointer | interop.Reference, errorString: interop.Pointer | interop.Reference): any; static propertyListIsValidForFormat(plist: any, format: NSPropertyListFormat): boolean; static propertyListWithDataOptionsFormatError(data: NSData, opt: NSPropertyListMutabilityOptions, format: interop.Pointer | interop.Reference): any; static propertyListWithStreamOptionsFormatError(stream: NSInputStream, opt: NSPropertyListMutabilityOptions, format: interop.Pointer | interop.Reference): any; static writePropertyListToStreamFormatOptionsError(plist: any, stream: NSOutputStream, format: NSPropertyListFormat, opt: number): number; } declare function NSProtocolFromString(namestr: string): any /* Protocol */; declare class NSProxy implements NSObjectProtocol { static alloc(): NSProxy; static class(): typeof NSObject; static respondsToSelector(aSelector: string): boolean; /* readonly */ debugDescription: string; // inherited from NSObjectProtocol /* readonly */ description: string; // inherited from NSObjectProtocol /* readonly */ hash: number; // inherited from NSObjectProtocol /* readonly */ isProxy: boolean; // inherited from NSObjectProtocol /* readonly */ superclass: typeof NSObject; // inherited from NSObjectProtocol /* readonly */ // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; dealloc(): void; finalize(): void; forwardInvocation(invocation: NSInvocation): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; methodSignatureForSelector(sel: string): NSMethodSignature; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class NSPurgeableData extends NSMutableData implements NSDiscardableContent { static alloc(): NSPurgeableData; // inherited from NSObject static data(): NSPurgeableData; // inherited from NSData static dataWithBytesLength(bytes: interop.Pointer | interop.Reference, length: number): NSPurgeableData; // inherited from NSData static dataWithBytesNoCopyLength(bytes: interop.Pointer | interop.Reference, length: number): NSPurgeableData; // inherited from NSData static dataWithBytesNoCopyLengthFreeWhenDone(bytes: interop.Pointer | interop.Reference, length: number, b: boolean): NSPurgeableData; // inherited from NSData static dataWithCapacity(aNumItems: number): NSPurgeableData; // inherited from NSMutableData static dataWithContentsOfFile(path: string): NSPurgeableData; // inherited from NSData static dataWithContentsOfFileOptionsError(path: string, readOptionsMask: NSDataReadingOptions): NSPurgeableData; // inherited from NSData static dataWithContentsOfURL(url: NSURL): NSPurgeableData; // inherited from NSData static dataWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: NSDataReadingOptions): NSPurgeableData; // inherited from NSData static dataWithData(data: NSData): NSPurgeableData; // inherited from NSData static dataWithLength(length: number): NSPurgeableData; // inherited from NSMutableData static new(): NSPurgeableData; // inherited from NSObject beginContentAccess(): boolean; discardContentIfPossible(): void; endContentAccess(): void; isContentDiscarded(): boolean; } declare const enum NSQualityOfService { UserInteractive = 33, UserInitiated = 25, Utility = 17, Background = 9, Default = -1 } interface NSRange { location: number; length: number; } declare var NSRange: interop.StructType; declare var NSRangeException: string; declare function NSRangeFromString(aString: string): NSRange; declare function NSRealMemoryAvailable(): number; declare var NSRecoveryAttempterErrorKey: string; declare class NSRecursiveLock extends NSObject implements NSLocking { static alloc(): NSRecursiveLock; // inherited from NSObject static new(): NSRecursiveLock; // inherited from NSObject name: string; lock(): void; lockBeforeDate(limit: Date): boolean; tryLock(): boolean; unlock(): void; } declare function NSRecycleZone(zone: interop.Pointer | interop.Reference): void; declare var NSRegistrationDomain: string; declare class NSRegularExpression extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSRegularExpression; // inherited from NSObject static escapedPatternForString(string: string): string; static escapedTemplateForString(string: string): string; static new(): NSRegularExpression; // inherited from NSObject static regularExpressionWithPatternOptionsError(pattern: string, options: NSRegularExpressionOptions): NSRegularExpression; static supportsSecureCoding(): boolean; /* readonly */ numberOfCaptureGroups: number; /* readonly */ options: NSRegularExpressionOptions; /* readonly */ pattern: string; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { pattern: string; options: NSRegularExpressionOptions; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; enumerateMatchesInStringOptionsRangeUsingBlock(string: string, options: NSMatchingOptions, range: NSRange, block: (p1: NSTextCheckingResult, p2: NSMatchingFlags, p3: interop.Pointer | interop.Reference) => void): void; firstMatchInStringOptionsRange(string: string, options: NSMatchingOptions, range: NSRange): NSTextCheckingResult; initWithCoder(aDecoder: NSCoder): this; initWithPatternOptionsError(pattern: string, options: NSRegularExpressionOptions): this; matchesInStringOptionsRange(string: string, options: NSMatchingOptions, range: NSRange): NSArray; numberOfMatchesInStringOptionsRange(string: string, options: NSMatchingOptions, range: NSRange): number; rangeOfFirstMatchInStringOptionsRange(string: string, options: NSMatchingOptions, range: NSRange): NSRange; replaceMatchesInStringOptionsRangeWithTemplate(string: NSMutableString, options: NSMatchingOptions, range: NSRange, templ: string): number; replacementStringForResultInStringOffsetTemplate(result: NSTextCheckingResult, string: string, offset: number, templ: string): string; stringByReplacingMatchesInStringOptionsRangeWithTemplate(string: string, options: NSMatchingOptions, range: NSRange, templ: string): string; } declare const enum NSRegularExpressionOptions { CaseInsensitive = 1, AllowCommentsAndWhitespace = 2, IgnoreMetacharacters = 4, DotMatchesLineSeparators = 8, AnchorsMatchLines = 16, UseUnixLineSeparators = 32, UseUnicodeWordBoundaries = 64 } declare var NSRepublicOfChinaCalendar: string; declare function NSRoundDownToMultipleOfPageSize(bytes: number): number; declare function NSRoundUpToMultipleOfPageSize(bytes: number): number; declare const enum NSRoundingMode { Plain = 0, Down = 1, Up = 2, Bankers = 3 } declare class NSRunLoop extends NSObject { static alloc(): NSRunLoop; // inherited from NSObject static currentRunLoop(): NSRunLoop; static mainRunLoop(): NSRunLoop; static new(): NSRunLoop; // inherited from NSObject /* readonly */ currentMode: string; acceptInputForModeBeforeDate(mode: string, limitDate: Date): void; addPortForMode(aPort: NSPort, mode: string): void; addTimerForMode(timer: NSTimer, mode: string): void; cancelPerformSelectorTargetArgument(aSelector: string, target: any, arg: any): void; cancelPerformSelectorsWithTarget(target: any): void; getCFRunLoop(): any; limitDateForMode(mode: string): Date; performSelectorTargetArgumentOrderModes(aSelector: string, target: any, arg: any, order: number, modes: NSArray): void; removePortForMode(aPort: NSPort, mode: string): void; run(): void; runModeBeforeDate(mode: string, limitDate: Date): boolean; runUntilDate(limitDate: Date): void; } declare var NSRunLoopCommonModes: string; declare class NSScanner extends NSObject implements NSCopying { static alloc(): NSScanner; // inherited from NSObject static localizedScannerWithString(string: string): any; static new(): NSScanner; // inherited from NSObject static scannerWithString(string: string): NSScanner; /* readonly */ atEnd: boolean; caseSensitive: boolean; charactersToBeSkipped: NSCharacterSet; locale: any; scanLocation: number; /* readonly */ string: string; constructor(o: { string: string; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; initWithString(string: string): this; scanCharactersFromSetIntoString(set: NSCharacterSet, result: interop.Pointer | interop.Reference): boolean; scanDecimal(dcm: interop.Pointer | interop.Reference): boolean; scanDouble(result: interop.Pointer | interop.Reference): boolean; scanFloat(result: interop.Pointer | interop.Reference): boolean; scanHexDouble(result: interop.Pointer | interop.Reference): boolean; scanHexFloat(result: interop.Pointer | interop.Reference): boolean; scanHexInt(result: interop.Pointer | interop.Reference): boolean; scanHexLongLong(result: interop.Pointer | interop.Reference): boolean; scanInt(result: interop.Pointer | interop.Reference): boolean; scanInteger(result: interop.Pointer | interop.Reference): boolean; scanLongLong(result: interop.Pointer | interop.Reference): boolean; scanStringIntoString(string: string, result: interop.Pointer | interop.Reference): boolean; scanUnsignedLongLong(result: interop.Pointer | interop.Reference): boolean; scanUpToCharactersFromSetIntoString(set: NSCharacterSet, result: interop.Pointer | interop.Reference): boolean; scanUpToStringIntoString(string: string, result: interop.Pointer | interop.Reference): boolean; } declare const enum NSSearchPathDirectory { ApplicationDirectory = 1, DemoApplicationDirectory = 2, DeveloperApplicationDirectory = 3, AdminApplicationDirectory = 4, LibraryDirectory = 5, DeveloperDirectory = 6, UserDirectory = 7, DocumentationDirectory = 8, DocumentDirectory = 9, CoreServiceDirectory = 10, AutosavedInformationDirectory = 11, DesktopDirectory = 12, CachesDirectory = 13, ApplicationSupportDirectory = 14, DownloadsDirectory = 15, InputMethodsDirectory = 16, MoviesDirectory = 17, MusicDirectory = 18, PicturesDirectory = 19, PrinterDescriptionDirectory = 20, SharedPublicDirectory = 21, PreferencePanesDirectory = 22, ApplicationScriptsDirectory = 23, ItemReplacementDirectory = 99, AllApplicationsDirectory = 100, AllLibrariesDirectory = 101, TrashDirectory = 102 } declare const enum NSSearchPathDomainMask { UserDomainMask = 1, LocalDomainMask = 2, NetworkDomainMask = 4, SystemDomainMask = 8, AllDomainsMask = 65535 } declare function NSSearchPathForDirectoriesInDomains(directory: NSSearchPathDirectory, domainMask: NSSearchPathDomainMask, expandTilde: boolean): NSArray; interface NSSecureCoding extends NSCoding { } declare var NSSecureCoding: { prototype: NSSecureCoding; supportsSecureCoding(): boolean; }; declare function NSSelectorFromString(aSelectorName: string): string; declare class NSSet extends NSObject implements NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding { static alloc(): NSSet; // inherited from NSObject static new(): NSSet; // inherited from NSObject static set(): NSSet; static setWithArray(array: NSArray): NSSet; static setWithObject(object: ObjectType): NSSet; static setWithObjects(firstObj: ObjectType): NSSet; static setWithObjectsCount(objects: interop.Reference, cnt: number): NSSet; static setWithSet(set: NSSet): NSSet; static supportsSecureCoding(): boolean; /* readonly */ allObjects: NSArray; /* readonly */ count: number; [Symbol.iterator](): Iterator; constructor(o: { array: NSArray; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { objects: ObjectType; }); constructor(o: { objects: interop.Reference; count: number; }); constructor(o: { set: NSSet; }); constructor(o: { set: NSSet; copyItems: boolean; }); anyObject(): ObjectType; containsObject(anObject: ObjectType): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; descriptionWithLocale(locale: any): string; encodeWithCoder(aCoder: NSCoder): void; enumerateObjectsUsingBlock(block: (p1: ObjectType, p2: interop.Pointer | interop.Reference) => void): void; enumerateObjectsWithOptionsUsingBlock(opts: NSEnumerationOptions, block: (p1: ObjectType, p2: interop.Pointer | interop.Reference) => void): void; filteredSetUsingPredicate(predicate: NSPredicate): NSSet; initWithArray(array: NSArray): this; initWithCoder(aDecoder: NSCoder): this; initWithObjects(firstObj: ObjectType): this; initWithObjectsCount(objects: interop.Reference, cnt: number): this; initWithSet(set: NSSet): this; initWithSetCopyItems(set: NSSet, flag: boolean): this; intersectsSet(otherSet: NSSet): boolean; isEqualToSet(otherSet: NSSet): boolean; isSubsetOfSet(otherSet: NSSet): boolean; makeObjectsPerformSelector(aSelector: string): void; makeObjectsPerformSelectorWithObject(aSelector: string, argument: any): void; member(object: ObjectType): ObjectType; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; objectEnumerator(): NSEnumerator; objectsPassingTest(predicate: (p1: ObjectType, p2: interop.Pointer | interop.Reference) => boolean): NSSet; objectsWithOptionsPassingTest(opts: NSEnumerationOptions, predicate: (p1: ObjectType, p2: interop.Pointer | interop.Reference) => boolean): NSSet; setByAddingObject(anObject: ObjectType): NSSet; setByAddingObjectsFromArray(other: NSArray): NSSet; setByAddingObjectsFromSet(other: NSSet): NSSet; sortedArrayUsingDescriptors(sortDescriptors: NSArray): NSArray; } declare function NSSetUncaughtExceptionHandler(p1: interop.Pointer | interop.Reference void>>): void; declare function NSSetZoneName(zone: interop.Pointer | interop.Reference, name: string): void; declare function NSShouldRetainWithZone(anObject: any, requestedZone: interop.Pointer | interop.Reference): boolean; declare class NSSimpleCString extends NSString { static alloc(): NSSimpleCString; // inherited from NSObject static new(): NSSimpleCString; // inherited from NSObject static string(): NSSimpleCString; // inherited from NSString static stringWithCStringEncoding(cString: string, enc: number): NSSimpleCString; // inherited from NSString static stringWithCharactersLength(characters: interop.Pointer | interop.Reference, length: number): NSSimpleCString; // inherited from NSString static stringWithContentsOfFileEncodingError(path: string, enc: number): NSSimpleCString; // inherited from NSString static stringWithContentsOfFileUsedEncodingError(path: string, enc: interop.Pointer | interop.Reference): NSSimpleCString; // inherited from NSString static stringWithContentsOfURLEncodingError(url: NSURL, enc: number): NSSimpleCString; // inherited from NSString static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: interop.Pointer | interop.Reference): NSSimpleCString; // inherited from NSString static stringWithString(string: string): NSSimpleCString; // inherited from NSString static stringWithUTF8String(nullTerminatedCString: string): NSSimpleCString; // inherited from NSString } declare class NSSocketPort extends NSPort { static alloc(): NSSocketPort; // inherited from NSObject static new(): NSSocketPort; // inherited from NSObject /* readonly */ address: NSData; /* readonly */ protocol: number; /* readonly */ protocolFamily: number; /* readonly */ socket: number; /* readonly */ socketType: number; constructor(o: { remoteWithProtocolFamily: number; socketType: number; protocol: number; address: NSData; }); constructor(o: { remoteWithTCPPort: number; host: string; }); constructor(o: { protocolFamily: number; socketType: number; protocol: number; address: NSData; }); constructor(o: { protocolFamily: number; socketType: number; protocol: number; socket: number; }); constructor(o: { TCPPort: number; }); initRemoteWithProtocolFamilySocketTypeProtocolAddress(family: number, type: number, protocol: number, address: NSData): this; initRemoteWithTCPPortHost(port: number, hostName: string): this; initWithProtocolFamilySocketTypeProtocolAddress(family: number, type: number, protocol: number, address: NSData): this; initWithProtocolFamilySocketTypeProtocolSocket(family: number, type: number, protocol: number, sock: number): this; initWithTCPPort(port: number): this; } declare class NSSortDescriptor extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSSortDescriptor; // inherited from NSObject static new(): NSSortDescriptor; // inherited from NSObject static sortDescriptorWithKeyAscending(key: string, ascending: boolean): NSSortDescriptor; static sortDescriptorWithKeyAscendingComparator(key: string, ascending: boolean, cmptr: (p1: any, p2: any) => NSComparisonResult): NSSortDescriptor; static sortDescriptorWithKeyAscendingSelector(key: string, ascending: boolean, selector: string): NSSortDescriptor; static supportsSecureCoding(): boolean; /* readonly */ ascending: boolean; /* readonly */ comparator: (p1: any, p2: any) => NSComparisonResult; /* readonly */ key: string; /* readonly */ reversedSortDescriptor: any; /* readonly */ selector: string; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { key: string; ascending: boolean; }); constructor(o: { key: string; ascending: boolean; comparator: (p1: any, p2: any) => NSComparisonResult; }); constructor(o: { key: string; ascending: boolean; selector: string; }); allowEvaluation(): void; compareObjectToObject(object1: any, object2: any): NSComparisonResult; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithKeyAscending(key: string, ascending: boolean): this; initWithKeyAscendingComparator(key: string, ascending: boolean, cmptr: (p1: any, p2: any) => NSComparisonResult): this; initWithKeyAscendingSelector(key: string, ascending: boolean, selector: string): this; } declare const enum NSSortOptions { Concurrent = 1, Stable = 16 } declare class NSStream extends NSObject { static alloc(): NSStream; // inherited from NSObject static getBoundStreamsWithBufferSizeInputStreamOutputStream(bufferSize: number, inputStream: interop.Pointer | interop.Reference, outputStream: interop.Pointer | interop.Reference): void; static getStreamsToHostWithNamePortInputStreamOutputStream(hostname: string, port: number, inputStream: interop.Pointer | interop.Reference, outputStream: interop.Pointer | interop.Reference): void; static new(): NSStream; // inherited from NSObject delegate: NSStreamDelegate; /* readonly */ streamError: NSError; /* readonly */ streamStatus: NSStreamStatus; close(): void; open(): void; propertyForKey(key: string): any; removeFromRunLoopForMode(aRunLoop: NSRunLoop, mode: string): void; scheduleInRunLoopForMode(aRunLoop: NSRunLoop, mode: string): void; setPropertyForKey(property: any, key: string): boolean; } declare var NSStreamDataWrittenToMemoryStreamKey: string; interface NSStreamDelegate extends NSObjectProtocol { streamHandleEvent?(aStream: NSStream, eventCode: NSStreamEvent): void; } declare var NSStreamDelegate: { prototype: NSStreamDelegate; }; declare const enum NSStreamEvent { None = 0, OpenCompleted = 1, HasBytesAvailable = 2, HasSpaceAvailable = 4, ErrorOccurred = 8, EndEncountered = 16 } declare var NSStreamFileCurrentOffsetKey: string; declare var NSStreamNetworkServiceType: string; declare var NSStreamNetworkServiceTypeBackground: string; declare var NSStreamNetworkServiceTypeVideo: string; declare var NSStreamNetworkServiceTypeVoIP: string; declare var NSStreamNetworkServiceTypeVoice: string; declare var NSStreamSOCKSErrorDomain: string; declare var NSStreamSOCKSProxyConfigurationKey: string; declare var NSStreamSOCKSProxyHostKey: string; declare var NSStreamSOCKSProxyPasswordKey: string; declare var NSStreamSOCKSProxyPortKey: string; declare var NSStreamSOCKSProxyUserKey: string; declare var NSStreamSOCKSProxyVersion4: string; declare var NSStreamSOCKSProxyVersion5: string; declare var NSStreamSOCKSProxyVersionKey: string; declare var NSStreamSocketSSLErrorDomain: string; declare var NSStreamSocketSecurityLevelKey: string; declare var NSStreamSocketSecurityLevelNegotiatedSSL: string; declare var NSStreamSocketSecurityLevelNone: string; declare var NSStreamSocketSecurityLevelSSLv2: string; declare var NSStreamSocketSecurityLevelSSLv3: string; declare var NSStreamSocketSecurityLevelTLSv1: string; declare const enum NSStreamStatus { NotOpen = 0, Opening = 1, Open = 2, Reading = 3, Writing = 4, AtEnd = 5, Closed = 6, Error = 7 } declare class NSString extends NSObject implements CKRecordValue, CNKeyDescriptor, NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): NSString; // inherited from NSObject static availableStringEncodings(): interop.Pointer | interop.Reference; static defaultCStringEncoding(): number; static localizedNameOfStringEncoding(encoding: number): string; static new(): NSString; // inherited from NSObject static pathWithComponents(components: NSArray): string; static string(): NSString; static stringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data: NSData, opts: NSDictionary, string: interop.Pointer | interop.Reference, usedLossyConversion: interop.Pointer | interop.Reference): number; static stringWithCString(bytes: string): any; static stringWithCStringEncoding(cString: string, enc: number): NSString; static stringWithCStringLength(bytes: string, length: number): any; static stringWithCharactersLength(characters: interop.Pointer | interop.Reference, length: number): NSString; static stringWithContentsOfFile(path: string): any; static stringWithContentsOfFileEncodingError(path: string, enc: number): NSString; static stringWithContentsOfFileUsedEncodingError(path: string, enc: interop.Pointer | interop.Reference): NSString; static stringWithContentsOfURL(url: NSURL): any; static stringWithContentsOfURLEncodingError(url: NSURL, enc: number): NSString; static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: interop.Pointer | interop.Reference): NSString; static stringWithString(string: string): NSString; static stringWithUTF8String(nullTerminatedCString: string): NSString; static supportsSecureCoding(): boolean; /* readonly */ UTF8String: string; /* readonly */ absolutePath: boolean; /* readonly */ boolValue: boolean; /* readonly */ capitalizedString: string; /* readonly */ decomposedStringWithCanonicalMapping: string; /* readonly */ decomposedStringWithCompatibilityMapping: string; /* readonly */ doubleValue: number; /* readonly */ fastestEncoding: number; /* readonly */ fileSystemRepresentation: string; /* readonly */ floatValue: number; /* readonly */ intValue: number; /* readonly */ integerValue: number; /* readonly */ lastPathComponent: string; /* readonly */ length: number; /* readonly */ localizedCapitalizedString: string; /* readonly */ localizedLowercaseString: string; /* readonly */ localizedUppercaseString: string; /* readonly */ longLongValue: number; /* readonly */ lowercaseString: string; /* readonly */ pathComponents: NSArray; /* readonly */ pathExtension: string; /* readonly */ precomposedStringWithCanonicalMapping: string; /* readonly */ precomposedStringWithCompatibilityMapping: string; /* readonly */ smallestEncoding: number; /* readonly */ stringByAbbreviatingWithTildeInPath: string; /* readonly */ stringByDeletingLastPathComponent: string; /* readonly */ stringByDeletingPathExtension: string; /* readonly */ stringByExpandingTildeInPath: string; /* readonly */ stringByRemovingPercentEncoding: string; /* readonly */ stringByResolvingSymlinksInPath: string; /* readonly */ stringByStandardizingPath: string; /* readonly */ uppercaseString: string; /* readonly */ debugDescription: string; // inherited from NSObjectProtocol /* readonly */ description: string; // inherited from NSObjectProtocol /* readonly */ hash: number; // inherited from NSObjectProtocol /* readonly */ isProxy: boolean; // inherited from NSObjectProtocol /* readonly */ superclass: typeof NSObject; // inherited from NSObjectProtocol /* readonly */ // inherited from NSObjectProtocol constructor(o: { bytes: interop.Pointer | interop.Reference; length: number; encoding: number; }); constructor(o: { bytesNoCopy: interop.Pointer | interop.Reference; length: number; encoding: number; freeWhenDone: boolean; }); constructor(o: { CString: string; }); constructor(o: { CString: string; encoding: number; }); constructor(o: { CString: string; length: number; }); constructor(o: { CStringNoCopy: string; length: number; freeWhenDone: boolean; }); constructor(o: { characters: interop.Pointer | interop.Reference; length: number; }); constructor(o: { charactersNoCopy: interop.Pointer | interop.Reference; length: number; freeWhenDone: boolean; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { contentsOfFile: string; }); constructor(o: { contentsOfFile: string; encoding: number; }); constructor(o: { contentsOfFile: string; usedEncoding: interop.Pointer | interop.Reference; }); constructor(o: { contentsOfURL: NSURL; }); constructor(o: { contentsOfURL: NSURL; encoding: number; }); constructor(o: { contentsOfURL: NSURL; usedEncoding: interop.Pointer | interop.Reference; }); constructor(o: { data: NSData; encoding: number; }); constructor(o: { string: string; }); constructor(o: { UTF8String: string; }); boundingRectWithSizeOptionsAttributesContext(size: CGSize, options: NSStringDrawingOptions, attributes: NSDictionary, context: NSStringDrawingContext): CGRect; cString(): string; cStringLength(): number; cStringUsingEncoding(encoding: number): string; canBeConvertedToEncoding(encoding: number): boolean; capitalizedStringWithLocale(locale: NSLocale): string; caseInsensitiveCompare(string: string): NSComparisonResult; characterAtIndex(index: number): string; class(): typeof NSObject; commonPrefixWithStringOptions(str: string, mask: NSStringCompareOptions): string; compare(string: string): NSComparisonResult; compareOptions(string: string, mask: NSStringCompareOptions): NSComparisonResult; compareOptionsRange(string: string, mask: NSStringCompareOptions, compareRange: NSRange): NSComparisonResult; compareOptionsRangeLocale(string: string, mask: NSStringCompareOptions, compareRange: NSRange, locale: any): NSComparisonResult; completePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName: interop.Pointer | interop.Reference, flag: boolean, outputArray: interop.Pointer | interop.Reference>, filterTypes: NSArray): number; componentsSeparatedByCharactersInSet(separator: NSCharacterSet): NSArray; componentsSeparatedByString(separator: string): NSArray; conformsToProtocol(aProtocol: any /* Protocol */): boolean; containsString(str: string): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; dataUsingEncoding(encoding: number): NSData; dataUsingEncodingAllowLossyConversion(encoding: number, lossy: boolean): NSData; drawAtPointForWidthWithFontFontSizeLineBreakModeBaselineAdjustment(point: CGPoint, width: number, font: UIFont, fontSize: number, lineBreakMode: NSLineBreakMode, baselineAdjustment: UIBaselineAdjustment): CGSize; drawAtPointForWidthWithFontLineBreakMode(point: CGPoint, width: number, font: UIFont, lineBreakMode: NSLineBreakMode): CGSize; drawAtPointForWidthWithFontMinFontSizeActualFontSizeLineBreakModeBaselineAdjustment(point: CGPoint, width: number, font: UIFont, minFontSize: number, actualFontSize: interop.Pointer | interop.Reference, lineBreakMode: NSLineBreakMode, baselineAdjustment: UIBaselineAdjustment): CGSize; drawAtPointWithAttributes(point: CGPoint, attrs: NSDictionary): void; drawAtPointWithFont(point: CGPoint, font: UIFont): CGSize; drawInRectWithAttributes(rect: CGRect, attrs: NSDictionary): void; drawInRectWithFont(rect: CGRect, font: UIFont): CGSize; drawInRectWithFontLineBreakMode(rect: CGRect, font: UIFont, lineBreakMode: NSLineBreakMode): CGSize; drawInRectWithFontLineBreakModeAlignment(rect: CGRect, font: UIFont, lineBreakMode: NSLineBreakMode, alignment: NSTextAlignment): CGSize; drawWithRectOptionsAttributesContext(rect: CGRect, options: NSStringDrawingOptions, attributes: NSDictionary, context: NSStringDrawingContext): void; encodeWithCoder(aCoder: NSCoder): void; enumerateLinesUsingBlock(block: (p1: string, p2: interop.Pointer | interop.Reference) => void): void; enumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsingBlock(range: NSRange, tagScheme: string, opts: NSLinguisticTaggerOptions, orthography: NSOrthography, block: (p1: string, p2: NSRange, p3: NSRange, p4: interop.Pointer | interop.Reference) => void): void; enumerateSubstringsInRangeOptionsUsingBlock(range: NSRange, opts: NSStringEnumerationOptions, block: (p1: string, p2: NSRange, p3: NSRange, p4: interop.Pointer | interop.Reference) => void): void; getBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange(buffer: interop.Pointer | interop.Reference, maxBufferCount: number, usedBufferCount: interop.Pointer | interop.Reference, encoding: number, options: NSStringEncodingConversionOptions, range: NSRange, leftover: interop.Pointer | interop.Reference): boolean; getCString(bytes: string): void; getCStringMaxLength(bytes: string, maxLength: number): void; getCStringMaxLengthEncoding(buffer: string, maxBufferCount: number, encoding: number): boolean; getCStringMaxLengthRangeRemainingRange(bytes: string, maxLength: number, aRange: NSRange, leftoverRange: interop.Pointer | interop.Reference): void; getCharacters(buffer: interop.Pointer | interop.Reference): void; getCharactersRange(buffer: interop.Pointer | interop.Reference, range: NSRange): void; getFileSystemRepresentationMaxLength(cname: string, max: number): boolean; getLineStartEndContentsEndForRange(startPtr: interop.Pointer | interop.Reference, lineEndPtr: interop.Pointer | interop.Reference, contentsEndPtr: interop.Pointer | interop.Reference, range: NSRange): void; getParagraphStartEndContentsEndForRange(startPtr: interop.Pointer | interop.Reference, parEndPtr: interop.Pointer | interop.Reference, contentsEndPtr: interop.Pointer | interop.Reference, range: NSRange): void; hasPrefix(str: string): boolean; hasSuffix(str: string): boolean; initWithBytesLengthEncoding(bytes: interop.Pointer | interop.Reference, len: number, encoding: number): this; initWithBytesNoCopyLengthEncodingFreeWhenDone(bytes: interop.Pointer | interop.Reference, len: number, encoding: number, freeBuffer: boolean): this; initWithCString(bytes: string): this; initWithCStringEncoding(nullTerminatedCString: string, encoding: number): this; initWithCStringLength(bytes: string, length: number): this; initWithCStringNoCopyLengthFreeWhenDone(bytes: string, length: number, freeBuffer: boolean): this; initWithCharactersLength(characters: interop.Pointer | interop.Reference, length: number): this; initWithCharactersNoCopyLengthFreeWhenDone(characters: interop.Pointer | interop.Reference, length: number, freeBuffer: boolean): this; initWithCoder(aDecoder: NSCoder): this; initWithContentsOfFile(path: string): this; initWithContentsOfFileEncodingError(path: string, enc: number): this; initWithContentsOfFileUsedEncodingError(path: string, enc: interop.Pointer | interop.Reference): this; initWithContentsOfURL(url: NSURL): this; initWithContentsOfURLEncodingError(url: NSURL, enc: number): this; initWithContentsOfURLUsedEncodingError(url: NSURL, enc: interop.Pointer | interop.Reference): this; initWithDataEncoding(data: NSData, encoding: number): this; initWithString(aString: string): this; initWithUTF8String(nullTerminatedCString: string): this; isEqual(object: any): boolean; isEqualToString(aString: string): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; lengthOfBytesUsingEncoding(enc: number): number; lineRangeForRange(range: NSRange): NSRange; linguisticTagsInRangeSchemeOptionsOrthographyTokenRanges(range: NSRange, tagScheme: string, opts: NSLinguisticTaggerOptions, orthography: NSOrthography, tokenRanges: interop.Pointer | interop.Reference>): NSArray; localizedCaseInsensitiveCompare(string: string): NSComparisonResult; localizedCaseInsensitiveContainsString(str: string): boolean; localizedCompare(string: string): NSComparisonResult; localizedStandardCompare(string: string): NSComparisonResult; localizedStandardContainsString(str: string): boolean; localizedStandardRangeOfString(str: string): NSRange; lossyCString(): string; lowercaseStringWithLocale(locale: NSLocale): string; maximumLengthOfBytesUsingEncoding(enc: number): number; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; paragraphRangeForRange(range: NSRange): NSRange; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; propertyList(): any; propertyListFromStringsFileFormat(): NSDictionary; rangeOfCharacterFromSet(searchSet: NSCharacterSet): NSRange; rangeOfCharacterFromSetOptions(searchSet: NSCharacterSet, mask: NSStringCompareOptions): NSRange; rangeOfCharacterFromSetOptionsRange(searchSet: NSCharacterSet, mask: NSStringCompareOptions, searchRange: NSRange): NSRange; rangeOfComposedCharacterSequenceAtIndex(index: number): NSRange; rangeOfComposedCharacterSequencesForRange(range: NSRange): NSRange; rangeOfString(searchString: string): NSRange; rangeOfStringOptions(searchString: string, mask: NSStringCompareOptions): NSRange; rangeOfStringOptionsRange(searchString: string, mask: NSStringCompareOptions, searchRange: NSRange): NSRange; rangeOfStringOptionsRangeLocale(searchString: string, mask: NSStringCompareOptions, searchRange: NSRange, locale: NSLocale): NSRange; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; sizeWithAttributes(attrs: NSDictionary): CGSize; sizeWithFont(font: UIFont): CGSize; sizeWithFontConstrainedToSize(font: UIFont, size: CGSize): CGSize; sizeWithFontConstrainedToSizeLineBreakMode(font: UIFont, size: CGSize, lineBreakMode: NSLineBreakMode): CGSize; sizeWithFontForWidthLineBreakMode(font: UIFont, width: number, lineBreakMode: NSLineBreakMode): CGSize; sizeWithFontMinFontSizeActualFontSizeForWidthLineBreakMode(font: UIFont, minFontSize: number, actualFontSize: interop.Pointer | interop.Reference, width: number, lineBreakMode: NSLineBreakMode): CGSize; stringByAddingPercentEncodingWithAllowedCharacters(allowedCharacters: NSCharacterSet): string; stringByAddingPercentEscapesUsingEncoding(enc: number): string; stringByAppendingPathComponent(str: string): string; stringByAppendingPathExtension(str: string): string; stringByAppendingString(aString: string): string; stringByApplyingTransformReverse(transform: string, reverse: boolean): string; stringByFoldingWithOptionsLocale(options: NSStringCompareOptions, locale: NSLocale): string; stringByPaddingToLengthWithStringStartingAtIndex(newLength: number, padString: string, padIndex: number): string; stringByReplacingCharactersInRangeWithString(range: NSRange, replacement: string): string; stringByReplacingOccurrencesOfStringWithString(target: string, replacement: string): string; stringByReplacingOccurrencesOfStringWithStringOptionsRange(target: string, replacement: string, options: NSStringCompareOptions, searchRange: NSRange): string; stringByReplacingPercentEscapesUsingEncoding(enc: number): string; stringByTrimmingCharactersInSet(set: NSCharacterSet): string; stringsByAppendingPaths(paths: NSArray): NSArray; substringFromIndex(from: number): string; substringToIndex(to: number): string; substringWithRange(range: NSRange): string; uppercaseStringWithLocale(locale: NSLocale): string; variantFittingPresentationWidth(width: number): string; writeToFileAtomically(path: string, useAuxiliaryFile: boolean): boolean; writeToFileAtomicallyEncodingError(path: string, useAuxiliaryFile: boolean, enc: number): boolean; writeToURLAtomically(url: NSURL, atomically: boolean): boolean; writeToURLAtomicallyEncodingError(url: NSURL, useAuxiliaryFile: boolean, enc: number): boolean; } declare const enum NSStringCompareOptions { CaseInsensitiveSearch = 1, LiteralSearch = 2, BackwardsSearch = 4, AnchoredSearch = 8, NumericSearch = 64, DiacriticInsensitiveSearch = 128, WidthInsensitiveSearch = 256, ForcedOrderingSearch = 512, RegularExpressionSearch = 1024 } declare const enum NSStringEncodingConversionOptions { AllowLossy = 1, ExternalRepresentation = 2 } declare var NSStringEncodingDetectionAllowLossyKey: string; declare var NSStringEncodingDetectionDisallowedEncodingsKey: string; declare var NSStringEncodingDetectionFromWindowsKey: string; declare var NSStringEncodingDetectionLikelyLanguageKey: string; declare var NSStringEncodingDetectionLossySubstitutionKey: string; declare var NSStringEncodingDetectionSuggestedEncodingsKey: string; declare var NSStringEncodingDetectionUseOnlySuggestedEncodingsKey: string; declare var NSStringEncodingErrorKey: string; declare const enum NSStringEnumerationOptions { ByLines = 0, ByParagraphs = 1, ByComposedCharacterSequences = 2, ByWords = 3, BySentences = 4, Reverse = 256, SubstringNotRequired = 512, Localized = 1024 } declare function NSStringFromClass(aClass: typeof NSObject): string; declare function NSStringFromProtocol(proto: any /* Protocol */): string; declare function NSStringFromRange(range: NSRange): string; declare function NSStringFromSelector(aSelector: string): string; declare var NSStringTransformFullwidthToHalfwidth: string; declare var NSStringTransformHiraganaToKatakana: string; declare var NSStringTransformLatinToArabic: string; declare var NSStringTransformLatinToCyrillic: string; declare var NSStringTransformLatinToGreek: string; declare var NSStringTransformLatinToHangul: string; declare var NSStringTransformLatinToHebrew: string; declare var NSStringTransformLatinToHiragana: string; declare var NSStringTransformLatinToKatakana: string; declare var NSStringTransformLatinToThai: string; declare var NSStringTransformMandarinToLatin: string; declare var NSStringTransformStripCombiningMarks: string; declare var NSStringTransformStripDiacritics: string; declare var NSStringTransformToLatin: string; declare var NSStringTransformToUnicodeName: string; declare var NSStringTransformToXMLHex: string; declare var NSSumKeyValueOperator: string; interface NSSwappedDouble { v: number; } declare var NSSwappedDouble: interop.StructType; interface NSSwappedFloat { v: number; } declare var NSSwappedFloat: interop.StructType; declare var NSSystemClockDidChangeNotification: string; declare var NSSystemTimeZoneDidChangeNotification: string; declare function NSTemporaryDirectory(): string; declare var NSTextCheckingAirlineKey: string; declare var NSTextCheckingCityKey: string; declare var NSTextCheckingCountryKey: string; declare var NSTextCheckingFlightKey: string; declare var NSTextCheckingJobTitleKey: string; declare var NSTextCheckingNameKey: string; declare var NSTextCheckingOrganizationKey: string; declare var NSTextCheckingPhoneKey: string; declare class NSTextCheckingResult extends NSObject implements NSCopying, NSSecureCoding { static addressCheckingResultWithRangeComponents(range: NSRange, components: NSDictionary): NSTextCheckingResult; static alloc(): NSTextCheckingResult; // inherited from NSObject static correctionCheckingResultWithRangeReplacementString(range: NSRange, replacementString: string): NSTextCheckingResult; static correctionCheckingResultWithRangeReplacementStringAlternativeStrings(range: NSRange, replacementString: string, alternativeStrings: NSArray): NSTextCheckingResult; static dashCheckingResultWithRangeReplacementString(range: NSRange, replacementString: string): NSTextCheckingResult; static dateCheckingResultWithRangeDate(range: NSRange, date: Date): NSTextCheckingResult; static dateCheckingResultWithRangeDateTimeZoneDuration(range: NSRange, date: Date, timeZone: NSTimeZone, duration: number): NSTextCheckingResult; static grammarCheckingResultWithRangeDetails(range: NSRange, details: NSArray): NSTextCheckingResult; static linkCheckingResultWithRangeURL(range: NSRange, url: NSURL): NSTextCheckingResult; static new(): NSTextCheckingResult; // inherited from NSObject static orthographyCheckingResultWithRangeOrthography(range: NSRange, orthography: NSOrthography): NSTextCheckingResult; static phoneNumberCheckingResultWithRangePhoneNumber(range: NSRange, phoneNumber: string): NSTextCheckingResult; static quoteCheckingResultWithRangeReplacementString(range: NSRange, replacementString: string): NSTextCheckingResult; static regularExpressionCheckingResultWithRangesCountRegularExpression(ranges: interop.Pointer | interop.Reference, count: number, regularExpression: NSRegularExpression): NSTextCheckingResult; static replacementCheckingResultWithRangeReplacementString(range: NSRange, replacementString: string): NSTextCheckingResult; static spellCheckingResultWithRange(range: NSRange): NSTextCheckingResult; static supportsSecureCoding(): boolean; static transitInformationCheckingResultWithRangeComponents(range: NSRange, components: NSDictionary): NSTextCheckingResult; /* readonly */ URL: NSURL; /* readonly */ addressComponents: NSDictionary; /* readonly */ alternativeStrings: NSArray; /* readonly */ components: NSDictionary; /* readonly */ date: Date; /* readonly */ duration: number; /* readonly */ grammarDetails: NSArray; /* readonly */ numberOfRanges: number; /* readonly */ orthography: NSOrthography; /* readonly */ phoneNumber: string; /* readonly */ range: NSRange; /* readonly */ regularExpression: NSRegularExpression; /* readonly */ replacementString: string; /* readonly */ resultType: NSTextCheckingType; /* readonly */ timeZone: NSTimeZone; constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; rangeAtIndex(idx: number): NSRange; resultByAdjustingRangesWithOffset(offset: number): NSTextCheckingResult; } declare var NSTextCheckingStateKey: string; declare var NSTextCheckingStreetKey: string; declare const enum NSTextCheckingType { Orthography = 1, Spelling = 2, Grammar = 4, Date = 8, Address = 16, Link = 32, Quote = 64, Dash = 128, Replacement = 256, Correction = 512, RegularExpression = 1024, PhoneNumber = 2048, TransitInformation = 4096 } declare var NSTextCheckingZIPKey: string; declare class NSThread extends NSObject { static alloc(): NSThread; // inherited from NSObject static callStackReturnAddresses(): NSArray; static callStackSymbols(): NSArray; static currentThread(): NSThread; static detachNewThreadSelectorToTargetWithObject(selector: string, target: any, argument: any): void; static exit(): void; static isMainThread(): boolean; static isMultiThreaded(): boolean; static mainThread(): NSThread; static new(): NSThread; // inherited from NSObject static setThreadPriority(p: number): boolean; static sleepForTimeInterval(ti: number): void; static sleepUntilDate(date: Date): void; static threadPriority(): number; /* readonly */ cancelled: boolean; /* readonly */ executing: boolean; /* readonly */ finished: boolean; /* readonly */ isMainThread: boolean; name: string; qualityOfService: NSQualityOfService; stackSize: number; /* readonly */ threadDictionary: NSMutableDictionary; threadPriority: number; constructor(o: { target: any; selector: string; object: any; }); cancel(): void; initWithTargetSelectorObject(target: any, selector: string, argument: any): this; main(): void; start(): void; } declare var NSThreadWillExitNotification: string; declare var NSThumbnail1024x1024SizeKey: string; declare class NSTimeZone extends NSObject implements NSCopying, NSSecureCoding { static abbreviationDictionary(): NSDictionary; static alloc(): NSTimeZone; // inherited from NSObject static defaultTimeZone(): NSTimeZone; static knownTimeZoneNames(): NSArray; static localTimeZone(): NSTimeZone; static new(): NSTimeZone; // inherited from NSObject static resetSystemTimeZone(): void; static setAbbreviationDictionary(dict: NSDictionary): void; static setDefaultTimeZone(aTimeZone: NSTimeZone): void; static supportsSecureCoding(): boolean; static systemTimeZone(): NSTimeZone; static timeZoneDataVersion(): string; static timeZoneForSecondsFromGMT(seconds: number): NSTimeZone; static timeZoneWithAbbreviation(abbreviation: string): NSTimeZone; static timeZoneWithName(tzName: string): NSTimeZone; static timeZoneWithNameData(tzName: string, aData: NSData): NSTimeZone; /* readonly */ abbreviation: string; /* readonly */ data: NSData; /* readonly */ daylightSavingTime: boolean; /* readonly */ daylightSavingTimeOffset: number; /* readonly */ name: string; /* readonly */ nextDaylightSavingTimeTransition: Date; /* readonly */ secondsFromGMT: number; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { name: string; }); constructor(o: { name: string; data: NSData; }); abbreviationForDate(aDate: Date): string; copyWithZone(zone: interop.Pointer | interop.Reference): any; daylightSavingTimeOffsetForDate(aDate: Date): number; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithName(tzName: string): this; initWithNameData(tzName: string, aData: NSData): this; isDaylightSavingTimeForDate(aDate: Date): boolean; isEqualToTimeZone(aTimeZone: NSTimeZone): boolean; localizedNameLocale(style: NSTimeZoneNameStyle, locale: NSLocale): string; nextDaylightSavingTimeTransitionAfterDate(aDate: Date): Date; secondsFromGMTForDate(aDate: Date): number; } declare const enum NSTimeZoneNameStyle { Standard = 0, ShortStandard = 1, DaylightSaving = 2, ShortDaylightSaving = 3, Generic = 4, ShortGeneric = 5 } declare class NSTimer extends NSObject { static alloc(): NSTimer; // inherited from NSObject static new(): NSTimer; // inherited from NSObject static scheduledTimerWithTimeIntervalInvocationRepeats(ti: number, invocation: NSInvocation, yesOrNo: boolean): NSTimer; static scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti: number, aTarget: any, aSelector: string, userInfo: any, yesOrNo: boolean): NSTimer; static timerWithTimeIntervalInvocationRepeats(ti: number, invocation: NSInvocation, yesOrNo: boolean): NSTimer; static timerWithTimeIntervalTargetSelectorUserInfoRepeats(ti: number, aTarget: any, aSelector: string, userInfo: any, yesOrNo: boolean): NSTimer; fireDate: Date; /* readonly */ timeInterval: number; tolerance: number; /* readonly */ userInfo: any; /* readonly */ valid: boolean; constructor(o: { fireDate: Date; interval: number; target: any; selector: string; userInfo: any; repeats: boolean; }); fire(): void; initWithFireDateIntervalTargetSelectorUserInfoRepeats(date: Date, ti: number, t: any, s: string, ui: any, rep: boolean): this; invalidate(): void; } declare class NSURL extends NSObject implements NSCopying, NSSecureCoding, QLPreviewItem { static URLByResolvingAliasFileAtURLOptionsError(url: NSURL, options: NSURLBookmarkResolutionOptions): NSURL; static URLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData: NSData, options: NSURLBookmarkResolutionOptions, relativeURL: NSURL, isStale: interop.Pointer | interop.Reference): NSURL; static URLWithDataRepresentationRelativeToURL(data: NSData, baseURL: NSURL): NSURL; static URLWithString(URLString: string): NSURL; static URLWithStringRelativeToURL(URLString: string, baseURL: NSURL): NSURL; static absoluteURLWithDataRepresentationRelativeToURL(data: NSData, baseURL: NSURL): NSURL; static alloc(): NSURL; // inherited from NSObject static bookmarkDataWithContentsOfURLError(bookmarkFileURL: NSURL): NSData; static fileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path: string, isDir: boolean, baseURL: NSURL): NSURL; static fileURLWithPath(path: string): NSURL; static fileURLWithPathComponents(components: NSArray): NSURL; static fileURLWithPathIsDirectory(path: string, isDir: boolean): NSURL; static fileURLWithPathIsDirectoryRelativeToURL(path: string, isDir: boolean, baseURL: NSURL): NSURL; static fileURLWithPathRelativeToURL(path: string, baseURL: NSURL): NSURL; static new(): NSURL; // inherited from NSObject static resourceValuesForKeysFromBookmarkData(keys: NSArray, bookmarkData: NSData): NSDictionary; static supportsSecureCoding(): boolean; static writeBookmarkDataToURLOptionsError(bookmarkData: NSData, bookmarkFileURL: NSURL, options: number): boolean; /* readonly */ URLByDeletingLastPathComponent: NSURL; /* readonly */ URLByDeletingPathExtension: NSURL; /* readonly */ URLByResolvingSymlinksInPath: NSURL; /* readonly */ URLByStandardizingPath: NSURL; /* readonly */ absoluteString: string; /* readonly */ absoluteURL: NSURL; /* readonly */ baseURL: NSURL; /* readonly */ dataRepresentation: NSData; /* readonly */ filePathURL: NSURL; /* readonly */ fileSystemRepresentation: string; /* readonly */ fileURL: boolean; /* readonly */ fragment: string; /* readonly */ hasDirectoryPath: boolean; /* readonly */ host: string; /* readonly */ lastPathComponent: string; /* readonly */ parameterString: string; /* readonly */ password: string; /* readonly */ path: string; /* readonly */ pathComponents: NSArray; /* readonly */ pathExtension: string; /* readonly */ port: number; /* readonly */ query: string; /* readonly */ relativePath: string; /* readonly */ relativeString: string; /* readonly */ resourceSpecifier: string; /* readonly */ scheme: string; /* readonly */ standardizedURL: NSURL; /* readonly */ user: string; /* readonly */ debugDescription: string; // inherited from NSObjectProtocol /* readonly */ description: string; // inherited from NSObjectProtocol /* readonly */ hash: number; // inherited from NSObjectProtocol /* readonly */ isProxy: boolean; // inherited from NSObjectProtocol /* readonly */ previewItemTitle: string; // inherited from QLPreviewItem /* readonly */ previewItemURL: NSURL; // inherited from QLPreviewItem /* readonly */ superclass: typeof NSObject; // inherited from NSObjectProtocol /* readonly */ // inherited from NSObjectProtocol constructor(o: { absoluteURLWithDataRepresentation: NSData; relativeToURL: NSURL; }); constructor(o: { byResolvingBookmarkData: NSData; options: NSURLBookmarkResolutionOptions; relativeToURL: NSURL; bookmarkDataIsStale: interop.Pointer | interop.Reference; }); constructor(o: { fileURLWithFileSystemRepresentation: string; isDirectory: boolean; relativeToURL: NSURL; }); constructor(o: { fileURLWithPath: string; }); constructor(o: { fileURLWithPath: string; isDirectory: boolean; }); constructor(o: { fileURLWithPath: string; isDirectory: boolean; relativeToURL: NSURL; }); constructor(o: { fileURLWithPath: string; relativeToURL: NSURL; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { dataRepresentation: NSData; relativeToURL: NSURL; }); constructor(o: { scheme: string; host: string; path: string; }); constructor(o: { string: string; }); constructor(o: { string: string; relativeToURL: NSURL; }); URLByAppendingPathComponent(pathComponent: string): NSURL; URLByAppendingPathComponentIsDirectory(pathComponent: string, isDirectory: boolean): NSURL; URLByAppendingPathExtension(pathExtension: string): NSURL; bookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options: NSURLBookmarkCreationOptions, keys: NSArray, relativeURL: NSURL): NSData; checkPromisedItemIsReachableAndReturnError(): boolean; checkResourceIsReachableAndReturnError(): boolean; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; fileReferenceURL(): NSURL; getFileSystemRepresentationMaxLength(buffer: string, maxBufferLength: number): boolean; getPromisedItemResourceValueForKeyError(value: interop.Pointer | interop.Reference, key: string): boolean; getResourceValueForKeyError(value: interop.Pointer | interop.Reference, key: string): boolean; initAbsoluteURLWithDataRepresentationRelativeToURL(data: NSData, baseURL: NSURL): this; initByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData: NSData, options: NSURLBookmarkResolutionOptions, relativeURL: NSURL, isStale: interop.Pointer | interop.Reference): this; initFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path: string, isDir: boolean, baseURL: NSURL): this; initFileURLWithPath(path: string): this; initFileURLWithPathIsDirectory(path: string, isDir: boolean): this; initFileURLWithPathIsDirectoryRelativeToURL(path: string, isDir: boolean, baseURL: NSURL): this; initFileURLWithPathRelativeToURL(path: string, baseURL: NSURL): this; initWithCoder(aDecoder: NSCoder): this; initWithDataRepresentationRelativeToURL(data: NSData, baseURL: NSURL): this; initWithSchemeHostPath(scheme: string, host: string, path: string): this; initWithString(URLString: string): this; initWithStringRelativeToURL(URLString: string, baseURL: NSURL): this; isEqual(object: any): boolean; isFileReferenceURL(): 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; promisedItemResourceValuesForKeysError(keys: NSArray): NSDictionary; removeAllCachedResourceValues(): void; removeCachedResourceValueForKey(key: string): void; resourceValuesForKeysError(keys: NSArray): NSDictionary; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; setResourceValueForKeyError(value: any, key: string): boolean; setResourceValuesError(keyedValues: NSDictionary): boolean; setTemporaryResourceValueForKey(value: any, key: string): void; startAccessingSecurityScopedResource(): boolean; stopAccessingSecurityScopedResource(): void; } declare var NSURLAddedToDirectoryDateKey: string; declare var NSURLAttributeModificationDateKey: string; declare class NSURLAuthenticationChallenge extends NSObject implements NSSecureCoding { static alloc(): NSURLAuthenticationChallenge; // inherited from NSObject static new(): NSURLAuthenticationChallenge; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ error: NSError; /* readonly */ failureResponse: NSURLResponse; /* readonly */ previousFailureCount: number; /* readonly */ proposedCredential: NSURLCredential; /* readonly */ protectionSpace: NSURLProtectionSpace; /* readonly */ sender: NSURLAuthenticationChallengeSender; constructor(o: { authenticationChallenge: NSURLAuthenticationChallenge; sender: NSURLAuthenticationChallengeSender; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { protectionSpace: NSURLProtectionSpace; proposedCredential: NSURLCredential; previousFailureCount: number; failureResponse: NSURLResponse; error: NSError; sender: NSURLAuthenticationChallengeSender; }); encodeWithCoder(aCoder: NSCoder): void; initWithAuthenticationChallengeSender(challenge: NSURLAuthenticationChallenge, sender: NSURLAuthenticationChallengeSender): this; initWithCoder(aDecoder: NSCoder): this; initWithProtectionSpaceProposedCredentialPreviousFailureCountFailureResponseErrorSender(space: NSURLProtectionSpace, credential: NSURLCredential, previousFailureCount: number, response: NSURLResponse, error: NSError, sender: NSURLAuthenticationChallengeSender): this; } interface NSURLAuthenticationChallengeSender extends NSObjectProtocol { cancelAuthenticationChallenge(challenge: NSURLAuthenticationChallenge): void; continueWithoutCredentialForAuthenticationChallenge(challenge: NSURLAuthenticationChallenge): void; performDefaultHandlingForAuthenticationChallenge?(challenge: NSURLAuthenticationChallenge): void; rejectProtectionSpaceAndContinueWithChallenge?(challenge: NSURLAuthenticationChallenge): void; useCredentialForAuthenticationChallenge(credential: NSURLCredential, challenge: NSURLAuthenticationChallenge): void; } declare var NSURLAuthenticationChallengeSender: { prototype: NSURLAuthenticationChallengeSender; }; declare var NSURLAuthenticationMethodClientCertificate: string; declare var NSURLAuthenticationMethodDefault: string; declare var NSURLAuthenticationMethodHTMLForm: string; declare var NSURLAuthenticationMethodHTTPBasic: string; declare var NSURLAuthenticationMethodHTTPDigest: string; declare var NSURLAuthenticationMethodNTLM: string; declare var NSURLAuthenticationMethodNegotiate: string; declare var NSURLAuthenticationMethodServerTrust: string; declare const enum NSURLBookmarkCreationOptions { PreferFileIDResolution = 256, MinimalBookmark = 512, SuitableForBookmarkFile = 1024, WithSecurityScope = 2048, SecurityScopeAllowOnlyReadAccess = 4096 } declare const enum NSURLBookmarkResolutionOptions { WithoutUI = 256, WithoutMounting = 512, WithSecurityScope = 1024 } declare class NSURLCache extends NSObject { static alloc(): NSURLCache; // inherited from NSObject static new(): NSURLCache; // inherited from NSObject static setSharedURLCache(cache: NSURLCache): void; static sharedURLCache(): NSURLCache; /* readonly */ currentDiskUsage: number; /* readonly */ currentMemoryUsage: number; diskCapacity: number; memoryCapacity: number; constructor(o: { memoryCapacity: number; diskCapacity: number; diskPath: string; }); cachedResponseForRequest(request: NSURLRequest): NSCachedURLResponse; getCachedResponseForDataTaskCompletionHandler(dataTask: NSURLSessionDataTask, completionHandler: (p1: NSCachedURLResponse) => void): void; initWithMemoryCapacityDiskCapacityDiskPath(memoryCapacity: number, diskCapacity: number, path: string): this; removeAllCachedResponses(): void; removeCachedResponseForDataTask(dataTask: NSURLSessionDataTask): void; removeCachedResponseForRequest(request: NSURLRequest): void; removeCachedResponsesSinceDate(date: Date): void; storeCachedResponseForDataTask(cachedResponse: NSCachedURLResponse, dataTask: NSURLSessionDataTask): void; storeCachedResponseForRequest(cachedResponse: NSCachedURLResponse, request: NSURLRequest): void; } declare const enum NSURLCacheStoragePolicy { Allowed = 0, AllowedInMemoryOnly = 1, NotAllowed = 2 } declare class NSURLComponents extends NSObject implements NSCopying { static alloc(): NSURLComponents; // inherited from NSObject static componentsWithString(URLString: string): NSURLComponents; static componentsWithURLResolvingAgainstBaseURL(url: NSURL, resolve: boolean): NSURLComponents; static new(): NSURLComponents; // inherited from NSObject /* readonly */ URL: NSURL; fragment: string; host: string; password: string; path: string; percentEncodedFragment: string; percentEncodedHost: string; percentEncodedPassword: string; percentEncodedPath: string; percentEncodedQuery: string; percentEncodedUser: string; port: number; query: string; queryItems: NSArray; /* readonly */ rangeOfFragment: NSRange; /* readonly */ rangeOfHost: NSRange; /* readonly */ rangeOfPassword: NSRange; /* readonly */ rangeOfPath: NSRange; /* readonly */ rangeOfPort: NSRange; /* readonly */ rangeOfQuery: NSRange; /* readonly */ rangeOfScheme: NSRange; /* readonly */ rangeOfUser: NSRange; scheme: string; /* readonly */ string: string; user: string; constructor(o: { string: string; }); constructor(o: { URL: NSURL; resolvingAgainstBaseURL: boolean; }); URLRelativeToURL(baseURL: NSURL): NSURL; copyWithZone(zone: interop.Pointer | interop.Reference): any; initWithString(URLString: string): this; initWithURLResolvingAgainstBaseURL(url: NSURL, resolve: boolean): this; } declare class NSURLConnection extends NSObject { static alloc(): NSURLConnection; // inherited from NSObject static canHandleRequest(request: NSURLRequest): boolean; static connectionWithRequestDelegate(request: NSURLRequest, delegate: any): NSURLConnection; static new(): NSURLConnection; // inherited from NSObject static sendAsynchronousRequestQueueCompletionHandler(request: NSURLRequest, queue: NSOperationQueue, handler: (p1: NSURLResponse, p2: NSData, p3: NSError) => void): void; static sendSynchronousRequestReturningResponseError(request: NSURLRequest, response: interop.Pointer | interop.Reference): NSData; /* readonly */ currentRequest: NSURLRequest; /* readonly */ newsstandAssetDownload: NKAssetDownload; /* readonly */ originalRequest: NSURLRequest; constructor(o: { request: NSURLRequest; delegate: any; }); constructor(o: { request: NSURLRequest; delegate: any; startImmediately: boolean; }); cancel(): void; initWithRequestDelegate(request: NSURLRequest, delegate: any): this; initWithRequestDelegateStartImmediately(request: NSURLRequest, delegate: any, startImmediately: boolean): this; scheduleInRunLoopForMode(aRunLoop: NSRunLoop, mode: string): void; setDelegateQueue(queue: NSOperationQueue): void; start(): void; unscheduleFromRunLoopForMode(aRunLoop: NSRunLoop, mode: string): void; } interface NSURLConnectionDataDelegate extends NSURLConnectionDelegate { connectionDidFinishLoading?(connection: NSURLConnection): void; connectionDidReceiveData?(connection: NSURLConnection, data: NSData): void; connectionDidReceiveResponse?(connection: NSURLConnection, response: NSURLResponse): void; connectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite?(connection: NSURLConnection, bytesWritten: number, totalBytesWritten: number, totalBytesExpectedToWrite: number): void; connectionNeedNewBodyStream?(connection: NSURLConnection, request: NSURLRequest): NSInputStream; connectionWillCacheResponse?(connection: NSURLConnection, cachedResponse: NSCachedURLResponse): NSCachedURLResponse; connectionWillSendRequestRedirectResponse?(connection: NSURLConnection, request: NSURLRequest, response: NSURLResponse): NSURLRequest; } declare var NSURLConnectionDataDelegate: { prototype: NSURLConnectionDataDelegate; }; interface NSURLConnectionDelegate extends NSObjectProtocol { connectionCanAuthenticateAgainstProtectionSpace?(connection: NSURLConnection, protectionSpace: NSURLProtectionSpace): boolean; connectionDidCancelAuthenticationChallenge?(connection: NSURLConnection, challenge: NSURLAuthenticationChallenge): void; connectionDidFailWithError?(connection: NSURLConnection, error: NSError): void; connectionDidReceiveAuthenticationChallenge?(connection: NSURLConnection, challenge: NSURLAuthenticationChallenge): void; connectionShouldUseCredentialStorage?(connection: NSURLConnection): boolean; connectionWillSendRequestForAuthenticationChallenge?(connection: NSURLConnection, challenge: NSURLAuthenticationChallenge): void; } declare var NSURLConnectionDelegate: { prototype: NSURLConnectionDelegate; }; interface NSURLConnectionDownloadDelegate extends NSURLConnectionDelegate { connectionDidFinishDownloadingDestinationURL(connection: NSURLConnection, destinationURL: NSURL): void; connectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes?(connection: NSURLConnection, totalBytesWritten: number, expectedTotalBytes: number): void; connectionDidWriteDataTotalBytesWrittenExpectedTotalBytes?(connection: NSURLConnection, bytesWritten: number, totalBytesWritten: number, expectedTotalBytes: number): void; } declare var NSURLConnectionDownloadDelegate: { prototype: NSURLConnectionDownloadDelegate; }; declare var NSURLContentAccessDateKey: string; declare var NSURLContentModificationDateKey: string; declare var NSURLCreationDateKey: string; declare class NSURLCredential extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSURLCredential; // inherited from NSObject static credentialForTrust(trust: any): NSURLCredential; static credentialWithIdentityCertificatesPersistence(identity: any, certArray: NSArray, persistence: NSURLCredentialPersistence): NSURLCredential; static credentialWithUserPasswordPersistence(user: string, password: string, persistence: NSURLCredentialPersistence): NSURLCredential; static new(): NSURLCredential; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ certificates: NSArray; /* readonly */ hasPassword: boolean; /* readonly */ identity: any; /* readonly */ password: string; /* readonly */ persistence: NSURLCredentialPersistence; /* readonly */ user: string; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { identity: any; certificates: NSArray; persistence: NSURLCredentialPersistence; }); constructor(o: { trust: any; }); constructor(o: { user: string; password: string; persistence: NSURLCredentialPersistence; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithIdentityCertificatesPersistence(identity: any, certArray: NSArray, persistence: NSURLCredentialPersistence): this; initWithTrust(trust: any): this; initWithUserPasswordPersistence(user: string, password: string, persistence: NSURLCredentialPersistence): this; } declare const enum NSURLCredentialPersistence { None = 0, ForSession = 1, Permanent = 2, Synchronizable = 3 } declare class NSURLCredentialStorage extends NSObject { static alloc(): NSURLCredentialStorage; // inherited from NSObject static new(): NSURLCredentialStorage; // inherited from NSObject static sharedCredentialStorage(): NSURLCredentialStorage; /* readonly */ allCredentials: NSDictionary>; credentialsForProtectionSpace(space: NSURLProtectionSpace): NSDictionary; defaultCredentialForProtectionSpace(space: NSURLProtectionSpace): NSURLCredential; getCredentialsForProtectionSpaceTaskCompletionHandler(protectionSpace: NSURLProtectionSpace, task: NSURLSessionTask, completionHandler: (p1: NSDictionary) => void): void; getDefaultCredentialForProtectionSpaceTaskCompletionHandler(space: NSURLProtectionSpace, task: NSURLSessionTask, completionHandler: (p1: NSURLCredential) => void): void; removeCredentialForProtectionSpace(credential: NSURLCredential, space: NSURLProtectionSpace): void; removeCredentialForProtectionSpaceOptions(credential: NSURLCredential, space: NSURLProtectionSpace, options: NSDictionary): void; removeCredentialForProtectionSpaceOptionsTask(credential: NSURLCredential, protectionSpace: NSURLProtectionSpace, options: NSDictionary, task: NSURLSessionTask): void; setCredentialForProtectionSpace(credential: NSURLCredential, space: NSURLProtectionSpace): void; setCredentialForProtectionSpaceTask(credential: NSURLCredential, protectionSpace: NSURLProtectionSpace, task: NSURLSessionTask): void; setDefaultCredentialForProtectionSpace(credential: NSURLCredential, space: NSURLProtectionSpace): void; setDefaultCredentialForProtectionSpaceTask(credential: NSURLCredential, protectionSpace: NSURLProtectionSpace, task: NSURLSessionTask): void; } declare var NSURLCredentialStorageChangedNotification: string; declare var NSURLCredentialStorageRemoveSynchronizableCredentials: string; declare var NSURLCustomIconKey: string; declare var NSURLDocumentIdentifierKey: string; declare var NSURLEffectiveIconKey: string; declare var NSURLErrorBackgroundTaskCancelledReasonKey: string; declare var NSURLErrorDomain: string; declare var NSURLErrorFailingURLErrorKey: string; declare var NSURLErrorFailingURLPeerTrustErrorKey: string; declare var NSURLErrorFailingURLStringErrorKey: string; declare var NSURLErrorKey: string; declare var NSURLFileAllocatedSizeKey: string; declare var NSURLFileProtectionComplete: string; declare var NSURLFileProtectionCompleteUnlessOpen: string; declare var NSURLFileProtectionCompleteUntilFirstUserAuthentication: string; declare var NSURLFileProtectionKey: string; declare var NSURLFileProtectionNone: string; declare var NSURLFileResourceIdentifierKey: string; declare var NSURLFileResourceTypeBlockSpecial: string; declare var NSURLFileResourceTypeCharacterSpecial: string; declare var NSURLFileResourceTypeDirectory: string; declare var NSURLFileResourceTypeKey: string; declare var NSURLFileResourceTypeNamedPipe: string; declare var NSURLFileResourceTypeRegular: string; declare var NSURLFileResourceTypeSocket: string; declare var NSURLFileResourceTypeSymbolicLink: string; declare var NSURLFileResourceTypeUnknown: string; declare var NSURLFileScheme: string; declare var NSURLFileSecurityKey: string; declare var NSURLFileSizeKey: string; declare var NSURLGenerationIdentifierKey: string; declare var NSURLHasHiddenExtensionKey: string; declare var NSURLIsAliasFileKey: string; declare var NSURLIsApplicationKey: string; declare var NSURLIsDirectoryKey: string; declare var NSURLIsExcludedFromBackupKey: string; declare var NSURLIsExecutableKey: string; declare var NSURLIsHiddenKey: string; declare var NSURLIsMountTriggerKey: string; declare var NSURLIsPackageKey: string; declare var NSURLIsReadableKey: string; declare var NSURLIsRegularFileKey: string; declare var NSURLIsSymbolicLinkKey: string; declare var NSURLIsSystemImmutableKey: string; declare var NSURLIsUbiquitousItemKey: string; declare var NSURLIsUserImmutableKey: string; declare var NSURLIsVolumeKey: string; declare var NSURLIsWritableKey: string; declare var NSURLKeysOfUnsetValuesKey: string; declare var NSURLLabelColorKey: string; declare var NSURLLabelNumberKey: string; declare var NSURLLinkCountKey: string; declare var NSURLLocalizedLabelKey: string; declare var NSURLLocalizedNameKey: string; declare var NSURLLocalizedTypeDescriptionKey: string; declare var NSURLNameKey: string; declare var NSURLParentDirectoryURLKey: string; declare var NSURLPathKey: string; declare var NSURLPreferredIOBlockSizeKey: string; declare class NSURLProtectionSpace extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSURLProtectionSpace; // inherited from NSObject static new(): NSURLProtectionSpace; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ authenticationMethod: string; /* readonly */ distinguishedNames: NSArray; /* readonly */ host: string; /* readonly */ isProxy: boolean; /* readonly */ port: number; /* readonly */ protocol: string; /* readonly */ proxyType: string; /* readonly */ realm: string; /* readonly */ receivesCredentialSecurely: boolean; /* readonly */ serverTrust: any; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { host: string; port: number; protocol: string; realm: string; authenticationMethod: string; }); constructor(o: { proxyHost: string; port: number; type: string; realm: string; authenticationMethod: string; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithHostPortProtocolRealmAuthenticationMethod(host: string, port: number, protocol: string, realm: string, authenticationMethod: string): this; initWithProxyHostPortTypeRealmAuthenticationMethod(host: string, port: number, type: string, realm: string, authenticationMethod: string): this; } declare var NSURLProtectionSpaceFTP: string; declare var NSURLProtectionSpaceFTPProxy: string; declare var NSURLProtectionSpaceHTTP: string; declare var NSURLProtectionSpaceHTTPProxy: string; declare var NSURLProtectionSpaceHTTPS: string; declare var NSURLProtectionSpaceHTTPSProxy: string; declare var NSURLProtectionSpaceSOCKSProxy: string; declare class NSURLProtocol extends NSObject { static alloc(): NSURLProtocol; // inherited from NSObject static canInitWithRequest(request: NSURLRequest): boolean; static canInitWithTask(task: NSURLSessionTask): boolean; static canonicalRequestForRequest(request: NSURLRequest): NSURLRequest; static new(): NSURLProtocol; // inherited from NSObject static propertyForKeyInRequest(key: string, request: NSURLRequest): any; static registerClass(protocolClass: typeof NSObject): boolean; static removePropertyForKeyInRequest(key: string, request: NSMutableURLRequest): void; static requestIsCacheEquivalentToRequest(a: NSURLRequest, b: NSURLRequest): boolean; static setPropertyForKeyInRequest(value: any, key: string, request: NSMutableURLRequest): void; static unregisterClass(protocolClass: typeof NSObject): void; /* readonly */ cachedResponse: NSCachedURLResponse; /* readonly */ client: NSURLProtocolClient; /* readonly */ request: NSURLRequest; /* readonly */ task: NSURLSessionTask; constructor(o: { request: NSURLRequest; cachedResponse: NSCachedURLResponse; client: NSURLProtocolClient; }); constructor(o: { task: NSURLSessionTask; cachedResponse: NSCachedURLResponse; client: NSURLProtocolClient; }); initWithRequestCachedResponseClient(request: NSURLRequest, cachedResponse: NSCachedURLResponse, client: NSURLProtocolClient): this; initWithTaskCachedResponseClient(task: NSURLSessionTask, cachedResponse: NSCachedURLResponse, client: NSURLProtocolClient): this; startLoading(): void; stopLoading(): void; } interface NSURLProtocolClient extends NSObjectProtocol { URLProtocolCachedResponseIsValid(protocol: NSURLProtocol, cachedResponse: NSCachedURLResponse): void; URLProtocolDidCancelAuthenticationChallenge(protocol: NSURLProtocol, challenge: NSURLAuthenticationChallenge): void; URLProtocolDidFailWithError(protocol: NSURLProtocol, error: NSError): void; URLProtocolDidFinishLoading(protocol: NSURLProtocol): void; URLProtocolDidLoadData(protocol: NSURLProtocol, data: NSData): void; URLProtocolDidReceiveAuthenticationChallenge(protocol: NSURLProtocol, challenge: NSURLAuthenticationChallenge): void; URLProtocolDidReceiveResponseCacheStoragePolicy(protocol: NSURLProtocol, response: NSURLResponse, policy: NSURLCacheStoragePolicy): void; URLProtocolWasRedirectedToRequestRedirectResponse(protocol: NSURLProtocol, request: NSURLRequest, redirectResponse: NSURLResponse): void; } declare var NSURLProtocolClient: { prototype: NSURLProtocolClient; }; declare class NSURLQueryItem extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSURLQueryItem; // inherited from NSObject static new(): NSURLQueryItem; // inherited from NSObject static queryItemWithNameValue(name: string, value: string): NSURLQueryItem; static supportsSecureCoding(): boolean; /* readonly */ name: string; /* readonly */ value: string; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { name: string; value: string; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithNameValue(name: string, value: string): this; } declare const enum NSURLRelationship { Contains = 0, Same = 1, Other = 2 } declare class NSURLRequest extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): NSURLRequest; // inherited from NSObject static new(): NSURLRequest; // inherited from NSObject static requestWithURL(URL: NSURL): NSURLRequest; static requestWithURLCachePolicyTimeoutInterval(URL: NSURL, cachePolicy: NSURLRequestCachePolicy, timeoutInterval: number): NSURLRequest; static supportsSecureCoding(): boolean; /* readonly */ HTTPBody: NSData; /* readonly */ HTTPBodyStream: NSInputStream; /* readonly */ HTTPMethod: string; /* readonly */ HTTPShouldHandleCookies: boolean; /* readonly */ HTTPShouldUsePipelining: boolean; /* readonly */ URL: NSURL; /* readonly */ allHTTPHeaderFields: NSDictionary; /* readonly */ allowsCellularAccess: boolean; /* readonly */ cachePolicy: NSURLRequestCachePolicy; /* readonly */ mainDocumentURL: NSURL; /* readonly */ networkServiceType: NSURLRequestNetworkServiceType; /* readonly */ timeoutInterval: number; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { URL: NSURL; }); constructor(o: { URL: NSURL; cachePolicy: NSURLRequestCachePolicy; timeoutInterval: number; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithURL(URL: NSURL): this; initWithURLCachePolicyTimeoutInterval(URL: NSURL, cachePolicy: NSURLRequestCachePolicy, timeoutInterval: number): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; valueForHTTPHeaderField(field: string): string; } declare const enum NSURLRequestCachePolicy { UseProtocolCachePolicy = 0, ReloadIgnoringLocalCacheData = 1, ReloadIgnoringLocalAndRemoteCacheData = 4, ReloadIgnoringCacheData = 1, ReturnCacheDataElseLoad = 2, ReturnCacheDataDontLoad = 3, ReloadRevalidatingCacheData = 5 } declare const enum NSURLRequestNetworkServiceType { NetworkServiceTypeDefault = 0, NetworkServiceTypeVoIP = 1, NetworkServiceTypeVideo = 2, NetworkServiceTypeBackground = 3, NetworkServiceTypeVoice = 4 } declare class NSURLResponse extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSURLResponse; // inherited from NSObject static new(): NSURLResponse; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ MIMEType: string; /* readonly */ URL: NSURL; /* readonly */ expectedContentLength: number; /* readonly */ suggestedFilename: string; /* readonly */ textEncodingName: string; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { URL: NSURL; MIMEType: string; expectedContentLength: number; textEncodingName: string; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithURLMIMETypeExpectedContentLengthTextEncodingName(URL: NSURL, MIMEType: string, length: number, name: string): this; } declare class NSURLSession extends NSObject { static alloc(): NSURLSession; // inherited from NSObject static new(): NSURLSession; // inherited from NSObject static sessionWithConfiguration(configuration: NSURLSessionConfiguration): NSURLSession; static sessionWithConfigurationDelegateDelegateQueue(configuration: NSURLSessionConfiguration, delegate: NSURLSessionDelegate, queue: NSOperationQueue): NSURLSession; static sharedSession(): NSURLSession; /* readonly */ configuration: NSURLSessionConfiguration; /* readonly */ delegate: NSURLSessionDelegate; /* readonly */ delegateQueue: NSOperationQueue; sessionDescription: string; dataTaskWithRequest(request: NSURLRequest): NSURLSessionDataTask; dataTaskWithRequestCompletionHandler(request: NSURLRequest, completionHandler: (p1: NSData, p2: NSURLResponse, p3: NSError) => void): NSURLSessionDataTask; dataTaskWithURL(url: NSURL): NSURLSessionDataTask; dataTaskWithURLCompletionHandler(url: NSURL, completionHandler: (p1: NSData, p2: NSURLResponse, p3: NSError) => void): NSURLSessionDataTask; downloadTaskWithRequest(request: NSURLRequest): NSURLSessionDownloadTask; downloadTaskWithRequestCompletionHandler(request: NSURLRequest, completionHandler: (p1: NSURL, p2: NSURLResponse, p3: NSError) => void): NSURLSessionDownloadTask; downloadTaskWithResumeData(resumeData: NSData): NSURLSessionDownloadTask; downloadTaskWithResumeDataCompletionHandler(resumeData: NSData, completionHandler: (p1: NSURL, p2: NSURLResponse, p3: NSError) => void): NSURLSessionDownloadTask; downloadTaskWithURL(url: NSURL): NSURLSessionDownloadTask; downloadTaskWithURLCompletionHandler(url: NSURL, completionHandler: (p1: NSURL, p2: NSURLResponse, p3: NSError) => void): NSURLSessionDownloadTask; finishTasksAndInvalidate(): void; flushWithCompletionHandler(completionHandler: () => void): void; getAllTasksWithCompletionHandler(completionHandler: (p1: NSArray) => void): void; getTasksWithCompletionHandler(completionHandler: (p1: NSArray, p2: NSArray, p3: NSArray) => void): void; invalidateAndCancel(): void; resetWithCompletionHandler(completionHandler: () => void): void; streamTaskWithHostNamePort(hostname: string, port: number): NSURLSessionStreamTask; streamTaskWithNetService(service: NSNetService): NSURLSessionStreamTask; uploadTaskWithRequestFromData(request: NSURLRequest, bodyData: NSData): NSURLSessionUploadTask; uploadTaskWithRequestFromDataCompletionHandler(request: NSURLRequest, bodyData: NSData, completionHandler: (p1: NSData, p2: NSURLResponse, p3: NSError) => void): NSURLSessionUploadTask; uploadTaskWithRequestFromFile(request: NSURLRequest, fileURL: NSURL): NSURLSessionUploadTask; uploadTaskWithRequestFromFileCompletionHandler(request: NSURLRequest, fileURL: NSURL, completionHandler: (p1: NSData, p2: NSURLResponse, p3: NSError) => void): NSURLSessionUploadTask; uploadTaskWithStreamedRequest(request: NSURLRequest): NSURLSessionUploadTask; } declare const enum NSURLSessionAuthChallengeDisposition { UseCredential = 0, PerformDefaultHandling = 1, CancelAuthenticationChallenge = 2, RejectProtectionSpace = 3 } declare class NSURLSessionConfiguration extends NSObject implements NSCopying { static alloc(): NSURLSessionConfiguration; // inherited from NSObject static backgroundSessionConfiguration(identifier: string): NSURLSessionConfiguration; static backgroundSessionConfigurationWithIdentifier(identifier: string): NSURLSessionConfiguration; static defaultSessionConfiguration(): NSURLSessionConfiguration; static ephemeralSessionConfiguration(): NSURLSessionConfiguration; static new(): NSURLSessionConfiguration; // inherited from NSObject HTTPAdditionalHeaders: NSDictionary; HTTPCookieAcceptPolicy: NSHTTPCookieAcceptPolicy; HTTPCookieStorage: NSHTTPCookieStorage; HTTPMaximumConnectionsPerHost: number; HTTPShouldSetCookies: boolean; HTTPShouldUsePipelining: boolean; TLSMaximumSupportedProtocol: SSLProtocol; TLSMinimumSupportedProtocol: SSLProtocol; URLCache: NSURLCache; URLCredentialStorage: NSURLCredentialStorage; allowsCellularAccess: boolean; connectionProxyDictionary: NSDictionary; discretionary: boolean; /* readonly */ identifier: string; networkServiceType: NSURLRequestNetworkServiceType; protocolClasses: NSArray; requestCachePolicy: NSURLRequestCachePolicy; sessionSendsLaunchEvents: boolean; sharedContainerIdentifier: string; shouldUseExtendedBackgroundIdleMode: boolean; timeoutIntervalForRequest: number; timeoutIntervalForResource: number; copyWithZone(zone: interop.Pointer | interop.Reference): any; } interface NSURLSessionDataDelegate extends NSURLSessionTaskDelegate { URLSessionDataTaskDidBecomeDownloadTask?(session: NSURLSession, dataTask: NSURLSessionDataTask, downloadTask: NSURLSessionDownloadTask): void; URLSessionDataTaskDidBecomeStreamTask?(session: NSURLSession, dataTask: NSURLSessionDataTask, streamTask: NSURLSessionStreamTask): void; URLSessionDataTaskDidReceiveData?(session: NSURLSession, dataTask: NSURLSessionDataTask, data: NSData): void; URLSessionDataTaskDidReceiveResponseCompletionHandler?(session: NSURLSession, dataTask: NSURLSessionDataTask, response: NSURLResponse, completionHandler: (p1: NSURLSessionResponseDisposition) => void): void; URLSessionDataTaskWillCacheResponseCompletionHandler?(session: NSURLSession, dataTask: NSURLSessionDataTask, proposedResponse: NSCachedURLResponse, completionHandler: (p1: NSCachedURLResponse) => void): void; } declare var NSURLSessionDataDelegate: { prototype: NSURLSessionDataDelegate; }; declare class NSURLSessionDataTask extends NSURLSessionTask { static alloc(): NSURLSessionDataTask; // inherited from NSObject static new(): NSURLSessionDataTask; // inherited from NSObject } interface NSURLSessionDelegate extends NSObjectProtocol { URLSessionDidBecomeInvalidWithError?(session: NSURLSession, error: NSError): void; URLSessionDidFinishEventsForBackgroundURLSession?(session: NSURLSession): void; URLSessionDidReceiveChallengeCompletionHandler?(session: NSURLSession, challenge: NSURLAuthenticationChallenge, completionHandler: (p1: NSURLSessionAuthChallengeDisposition, p2: NSURLCredential) => void): void; } declare var NSURLSessionDelegate: { prototype: NSURLSessionDelegate; }; interface NSURLSessionDownloadDelegate extends NSURLSessionTaskDelegate { URLSessionDownloadTaskDidFinishDownloadingToURL(session: NSURLSession, downloadTask: NSURLSessionDownloadTask, location: NSURL): void; URLSessionDownloadTaskDidResumeAtOffsetExpectedTotalBytes?(session: NSURLSession, downloadTask: NSURLSessionDownloadTask, fileOffset: number, expectedTotalBytes: number): void; URLSessionDownloadTaskDidWriteDataTotalBytesWrittenTotalBytesExpectedToWrite?(session: NSURLSession, downloadTask: NSURLSessionDownloadTask, bytesWritten: number, totalBytesWritten: number, totalBytesExpectedToWrite: number): void; } declare var NSURLSessionDownloadDelegate: { prototype: NSURLSessionDownloadDelegate; }; declare class NSURLSessionDownloadTask extends NSURLSessionTask { static alloc(): NSURLSessionDownloadTask; // inherited from NSObject static new(): NSURLSessionDownloadTask; // inherited from NSObject cancelByProducingResumeData(completionHandler: (p1: NSData) => void): void; } declare var NSURLSessionDownloadTaskResumeData: string; declare const enum NSURLSessionResponseDisposition { Cancel = 0, Allow = 1, BecomeDownload = 2, BecomeStream = 3 } interface NSURLSessionStreamDelegate extends NSURLSessionTaskDelegate { URLSessionBetterRouteDiscoveredForStreamTask?(session: NSURLSession, streamTask: NSURLSessionStreamTask): void; URLSessionReadClosedForStreamTask?(session: NSURLSession, streamTask: NSURLSessionStreamTask): void; URLSessionStreamTaskDidBecomeInputStreamOutputStream?(session: NSURLSession, streamTask: NSURLSessionStreamTask, inputStream: NSInputStream, outputStream: NSOutputStream): void; URLSessionWriteClosedForStreamTask?(session: NSURLSession, streamTask: NSURLSessionStreamTask): void; } declare var NSURLSessionStreamDelegate: { prototype: NSURLSessionStreamDelegate; }; declare class NSURLSessionStreamTask extends NSURLSessionTask { static alloc(): NSURLSessionStreamTask; // inherited from NSObject static new(): NSURLSessionStreamTask; // inherited from NSObject captureStreams(): void; closeRead(): void; closeWrite(): void; readDataOfMinLengthMaxLengthTimeoutCompletionHandler(minBytes: number, maxBytes: number, timeout: number, completionHandler: (p1: NSData, p2: boolean, p3: NSError) => void): void; startSecureConnection(): void; stopSecureConnection(): void; writeDataTimeoutCompletionHandler(data: NSData, timeout: number, completionHandler: (p1: NSError) => void): void; } declare class NSURLSessionTask extends NSObject implements NSCopying { static alloc(): NSURLSessionTask; // inherited from NSObject static new(): NSURLSessionTask; // inherited from NSObject /* readonly */ countOfBytesExpectedToReceive: number; /* readonly */ countOfBytesExpectedToSend: number; /* readonly */ countOfBytesReceived: number; /* readonly */ countOfBytesSent: number; /* readonly */ currentRequest: NSURLRequest; /* readonly */ error: NSError; /* readonly */ originalRequest: NSURLRequest; priority: number; /* readonly */ response: NSURLResponse; /* readonly */ state: NSURLSessionTaskState; taskDescription: string; /* readonly */ taskIdentifier: number; cancel(): void; copyWithZone(zone: interop.Pointer | interop.Reference): any; resume(): void; suspend(): void; } interface NSURLSessionTaskDelegate extends NSURLSessionDelegate { URLSessionTaskDidCompleteWithError?(session: NSURLSession, task: NSURLSessionTask, error: NSError): void; URLSessionTaskDidReceiveChallengeCompletionHandler?(session: NSURLSession, task: NSURLSessionTask, challenge: NSURLAuthenticationChallenge, completionHandler: (p1: NSURLSessionAuthChallengeDisposition, p2: NSURLCredential) => void): void; URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend?(session: NSURLSession, task: NSURLSessionTask, bytesSent: number, totalBytesSent: number, totalBytesExpectedToSend: number): void; URLSessionTaskNeedNewBodyStream?(session: NSURLSession, task: NSURLSessionTask, completionHandler: (p1: NSInputStream) => void): void; URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler?(session: NSURLSession, task: NSURLSessionTask, response: NSHTTPURLResponse, request: NSURLRequest, completionHandler: (p1: NSURLRequest) => void): void; } declare var NSURLSessionTaskDelegate: { prototype: NSURLSessionTaskDelegate; }; declare var NSURLSessionTaskPriorityDefault: number; declare var NSURLSessionTaskPriorityHigh: number; declare var NSURLSessionTaskPriorityLow: number; declare const enum NSURLSessionTaskState { Running = 0, Suspended = 1, Canceling = 2, Completed = 3 } declare var NSURLSessionTransferSizeUnknown: number; declare class NSURLSessionUploadTask extends NSURLSessionDataTask { static alloc(): NSURLSessionUploadTask; // inherited from NSObject static new(): NSURLSessionUploadTask; // inherited from NSObject } declare var NSURLThumbnailDictionaryKey: string; declare var NSURLTotalFileAllocatedSizeKey: string; declare var NSURLTotalFileSizeKey: string; declare var NSURLTypeIdentifierKey: string; declare var NSURLUbiquitousItemContainerDisplayNameKey: string; declare var NSURLUbiquitousItemDownloadRequestedKey: string; declare var NSURLUbiquitousItemDownloadingErrorKey: string; declare var NSURLUbiquitousItemDownloadingStatusCurrent: string; declare var NSURLUbiquitousItemDownloadingStatusDownloaded: string; declare var NSURLUbiquitousItemDownloadingStatusKey: string; declare var NSURLUbiquitousItemDownloadingStatusNotDownloaded: string; declare var NSURLUbiquitousItemHasUnresolvedConflictsKey: string; declare var NSURLUbiquitousItemIsDownloadedKey: string; declare var NSURLUbiquitousItemIsDownloadingKey: string; declare var NSURLUbiquitousItemIsUploadedKey: string; declare var NSURLUbiquitousItemIsUploadingKey: string; declare var NSURLUbiquitousItemPercentDownloadedKey: string; declare var NSURLUbiquitousItemPercentUploadedKey: string; declare var NSURLUbiquitousItemUploadingErrorKey: string; declare var NSURLVolumeAvailableCapacityKey: string; declare var NSURLVolumeCreationDateKey: string; declare var NSURLVolumeIdentifierKey: string; declare var NSURLVolumeIsAutomountedKey: string; declare var NSURLVolumeIsBrowsableKey: string; declare var NSURLVolumeIsEjectableKey: string; declare var NSURLVolumeIsInternalKey: string; declare var NSURLVolumeIsJournalingKey: string; declare var NSURLVolumeIsLocalKey: string; declare var NSURLVolumeIsReadOnlyKey: string; declare var NSURLVolumeIsRemovableKey: string; declare var NSURLVolumeLocalizedFormatDescriptionKey: string; declare var NSURLVolumeLocalizedNameKey: string; declare var NSURLVolumeMaximumFileSizeKey: string; declare var NSURLVolumeNameKey: string; declare var NSURLVolumeResourceCountKey: string; declare var NSURLVolumeSupportsAdvisoryFileLockingKey: string; declare var NSURLVolumeSupportsCasePreservedNamesKey: string; declare var NSURLVolumeSupportsCaseSensitiveNamesKey: string; declare var NSURLVolumeSupportsExtendedSecurityKey: string; declare var NSURLVolumeSupportsHardLinksKey: string; declare var NSURLVolumeSupportsJournalingKey: string; declare var NSURLVolumeSupportsPersistentIDsKey: string; declare var NSURLVolumeSupportsRenamingKey: string; declare var NSURLVolumeSupportsRootDirectoryDatesKey: string; declare var NSURLVolumeSupportsSparseFilesKey: string; declare var NSURLVolumeSupportsSymbolicLinksKey: string; declare var NSURLVolumeSupportsVolumeSizesKey: string; declare var NSURLVolumeSupportsZeroRunsKey: string; declare var NSURLVolumeTotalCapacityKey: string; declare var NSURLVolumeURLForRemountingKey: string; declare var NSURLVolumeURLKey: string; declare var NSURLVolumeUUIDStringKey: string; declare class NSUUID extends NSObject implements NSCopying, NSSecureCoding { static UUID(): NSUUID; static alloc(): NSUUID; // inherited from NSObject static new(): NSUUID; // inherited from NSObject static supportsSecureCoding(): boolean; /* readonly */ UUIDString: string; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { UUIDBytes: interop.Reference; }); constructor(o: { UUIDString: string; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; getUUIDBytes(uuid: interop.Reference): void; initWithCoder(aDecoder: NSCoder): this; initWithUUIDBytes(bytes: interop.Reference): this; initWithUUIDString(string: string): this; } declare class NSUbiquitousKeyValueStore extends NSObject { static alloc(): NSUbiquitousKeyValueStore; // inherited from NSObject static defaultStore(): NSUbiquitousKeyValueStore; static new(): NSUbiquitousKeyValueStore; // inherited from NSObject /* readonly */ dictionaryRepresentation: NSDictionary; arrayForKey(aKey: string): NSArray; boolForKey(aKey: string): boolean; dataForKey(aKey: string): NSData; dictionaryForKey(aKey: string): NSDictionary; doubleForKey(aKey: string): number; longLongForKey(aKey: string): number; objectForKey(aKey: string): any; removeObjectForKey(aKey: string): void; setArrayForKey(anArray: NSArray, aKey: string): void; setBoolForKey(value: boolean, aKey: string): void; setDataForKey(aData: NSData, aKey: string): void; setDictionaryForKey(aDictionary: NSDictionary, aKey: string): void; setDoubleForKey(value: number, aKey: string): void; setLongLongForKey(value: number, aKey: string): void; setObjectForKey(anObject: any, aKey: string): void; setStringForKey(aString: string, aKey: string): void; stringForKey(aKey: string): string; synchronize(): boolean; } declare var NSUbiquitousKeyValueStoreChangeReasonKey: string; declare var NSUbiquitousKeyValueStoreChangedKeysKey: string; declare var NSUbiquitousKeyValueStoreDidChangeExternallyNotification: string; declare var NSUbiquitousUserDefaultsCompletedInitialSyncNotification: string; declare var NSUbiquitousUserDefaultsDidChangeAccountsNotification: string; declare var NSUbiquityIdentityDidChangeNotification: string; declare var NSUnarchiveFromDataTransformerName: string; declare var NSUndefinedKeyException: string; declare var NSUnderlyingErrorKey: string; declare var NSUndoCloseGroupingRunLoopOrdering: number; declare class NSUndoManager extends NSObject { static alloc(): NSUndoManager; // inherited from NSObject static new(): NSUndoManager; // inherited from NSObject /* readonly */ canRedo: boolean; /* readonly */ canUndo: boolean; /* readonly */ groupingLevel: number; groupsByEvent: boolean; levelsOfUndo: number; /* readonly */ redoActionIsDiscardable: boolean; /* readonly */ redoActionName: string; /* readonly */ redoMenuItemTitle: string; /* readonly */ redoing: boolean; runLoopModes: NSArray; /* readonly */ undoActionIsDiscardable: boolean; /* readonly */ undoActionName: string; /* readonly */ undoMenuItemTitle: string; /* readonly */ undoRegistrationEnabled: boolean; /* readonly */ undoing: boolean; beginUndoGrouping(): void; disableUndoRegistration(): void; enableUndoRegistration(): void; endUndoGrouping(): void; prepareWithInvocationTarget(target: any): any; redo(): void; redoMenuTitleForUndoActionName(actionName: string): string; registerUndoWithTargetHandler(target: any, undoHandler: (p1: any) => void): void; registerUndoWithTargetSelectorObject(target: any, selector: string, anObject: any): void; removeAllActions(): void; removeAllActionsWithTarget(target: any): void; setActionIsDiscardable(discardable: boolean): void; setActionName(actionName: string): void; undo(): void; undoMenuTitleForUndoActionName(actionName: string): string; undoNestedGroup(): void; } declare var NSUndoManagerCheckpointNotification: string; declare var NSUndoManagerDidCloseUndoGroupNotification: string; declare var NSUndoManagerDidOpenUndoGroupNotification: string; declare var NSUndoManagerDidRedoChangeNotification: string; declare var NSUndoManagerDidUndoChangeNotification: string; declare var NSUndoManagerGroupIsDiscardableKey: string; declare var NSUndoManagerWillCloseUndoGroupNotification: string; declare var NSUndoManagerWillRedoChangeNotification: string; declare var NSUndoManagerWillUndoChangeNotification: string; declare var NSUnionOfArraysKeyValueOperator: string; declare var NSUnionOfObjectsKeyValueOperator: string; declare var NSUnionOfSetsKeyValueOperator: string; declare function NSUnionRange(range1: NSRange, range2: NSRange): NSRange; declare class NSUserActivity extends NSObject { static alloc(): NSUserActivity; // inherited from NSObject static new(): NSUserActivity; // inherited from NSObject /* readonly */ activityType: string; contentAttributeSet: CSSearchableItemAttributeSet; delegate: NSUserActivityDelegate; eligibleForHandoff: boolean; eligibleForPublicIndexing: boolean; eligibleForSearch: boolean; expirationDate: Date; keywords: NSSet; needsSave: boolean; requiredUserInfoKeys: NSSet; supportsContinuationStreams: boolean; title: string; userInfo: NSDictionary; webpageURL: NSURL; constructor(o: { activityType: string; }); addUserInfoEntriesFromDictionary(otherDictionary: NSDictionary): void; becomeCurrent(): void; getContinuationStreamsWithCompletionHandler(completionHandler: (p1: NSInputStream, p2: NSOutputStream, p3: NSError) => void): void; initWithActivityType(activityType: string): this; invalidate(): void; resignCurrent(): void; } interface NSUserActivityDelegate extends NSObjectProtocol { userActivityDidReceiveInputStreamOutputStream?(userActivity: NSUserActivity, inputStream: NSInputStream, outputStream: NSOutputStream): void; userActivityWasContinued?(userActivity: NSUserActivity): void; userActivityWillSave?(userActivity: NSUserActivity): void; } declare var NSUserActivityDelegate: { prototype: NSUserActivityDelegate; }; declare var NSUserActivityTypeBrowsingWeb: string; declare class NSUserDefaults extends NSObject { static alloc(): NSUserDefaults; // inherited from NSObject static new(): NSUserDefaults; // inherited from NSObject static resetStandardUserDefaults(): void; static standardUserDefaults(): NSUserDefaults; /* readonly */ volatileDomainNames: NSArray; constructor(o: { suiteName: string; }); constructor(o: { user: string; }); URLForKey(defaultName: string): NSURL; addSuiteNamed(suiteName: string): void; arrayForKey(defaultName: string): NSArray; boolForKey(defaultName: string): boolean; dataForKey(defaultName: string): NSData; dictionaryForKey(defaultName: string): NSDictionary; dictionaryRepresentation(): NSDictionary; doubleForKey(defaultName: string): number; floatForKey(defaultName: string): number; initWithSuiteName(suitename: string): this; initWithUser(username: string): this; integerForKey(defaultName: string): number; objectForKey(defaultName: string): any; objectIsForcedForKey(key: string): boolean; objectIsForcedForKeyInDomain(key: string, domain: string): boolean; persistentDomainForName(domainName: string): NSDictionary; persistentDomainNames(): NSArray; registerDefaults(registrationDictionary: NSDictionary): void; removeObjectForKey(defaultName: string): void; removePersistentDomainForName(domainName: string): void; removeSuiteNamed(suiteName: string): void; removeVolatileDomainForName(domainName: string): void; setBoolForKey(value: boolean, defaultName: string): void; setDoubleForKey(value: number, defaultName: string): void; setFloatForKey(value: number, defaultName: string): void; setIntegerForKey(value: number, defaultName: string): void; setObjectForKey(value: any, defaultName: string): void; setPersistentDomainForName(domain: NSDictionary, domainName: string): void; setURLForKey(url: NSURL, defaultName: string): void; setVolatileDomainForName(domain: NSDictionary, domainName: string): void; stringArrayForKey(defaultName: string): NSArray; stringForKey(defaultName: string): string; synchronize(): boolean; volatileDomainForName(domainName: string): NSDictionary; } declare var NSUserDefaultsDidChangeNotification: string; declare var NSUserDefaultsSizeLimitExceededNotification: string; declare function NSUserName(): string; declare class NSValue extends NSObject implements NSCopying, NSSecureCoding { static alloc(): NSValue; // inherited from NSObject static new(): NSValue; // inherited from NSObject static supportsSecureCoding(): boolean; static valueWithBytesObjCType(value: interop.Pointer | interop.Reference, type: string): NSValue; static valueWithCATransform3D(t: CATransform3D): NSValue; static valueWithCGAffineTransform(transform: CGAffineTransform): NSValue; static valueWithCGPoint(point: CGPoint): NSValue; static valueWithCGRect(rect: CGRect): NSValue; static valueWithCGSize(size: CGSize): NSValue; static valueWithCGVector(vector: CGVector): NSValue; static valueWithCMTime(time: CMTime): NSValue; static valueWithCMTimeMapping(timeMapping: CMTimeMapping): NSValue; static valueWithCMTimeRange(timeRange: CMTimeRange): NSValue; static valueWithMKCoordinate(coordinate: CLLocationCoordinate2D): NSValue; static valueWithMKCoordinateSpan(span: MKCoordinateSpan): NSValue; static valueWithNonretainedObject(anObject: any): NSValue; static valueWithObjCType(value: interop.Pointer | interop.Reference, type: string): NSValue; static valueWithPointer(pointer: interop.Pointer | interop.Reference): NSValue; static valueWithRange(range: NSRange): NSValue; static valueWithSCNMatrix4(v: SCNMatrix4): NSValue; static valueWithSCNVector3(v: SCNVector3): NSValue; static valueWithSCNVector4(v: SCNVector4): NSValue; static valueWithUIEdgeInsets(insets: UIEdgeInsets): NSValue; static valueWithUIOffset(insets: UIOffset): NSValue; /* readonly */ CATransform3DValue: CATransform3D; /* readonly */ CMTimeMappingValue: CMTimeMapping; /* readonly */ CMTimeRangeValue: CMTimeRange; /* readonly */ CMTimeValue: CMTime; /* readonly */ MKCoordinateSpanValue: MKCoordinateSpan; /* readonly */ MKCoordinateValue: CLLocationCoordinate2D; /* readonly */ SCNMatrix4Value: SCNMatrix4; /* readonly */ SCNVector3Value: SCNVector3; /* readonly */ SCNVector4Value: SCNVector4; /* readonly */ nonretainedObjectValue: any; /* readonly */ objCType: string; /* readonly */ pointerValue: interop.Pointer | interop.Reference; /* readonly */ rangeValue: NSRange; constructor(o: { bytes: interop.Pointer | interop.Reference; objCType: string; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding CGAffineTransformValue(): CGAffineTransform; CGPointValue(): CGPoint; CGRectValue(): CGRect; CGSizeValue(): CGSize; CGVectorValue(): CGVector; UIEdgeInsetsValue(): UIEdgeInsets; UIOffsetValue(): UIOffset; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; getValue(value: interop.Pointer | interop.Reference): void; initWithBytesObjCType(value: interop.Pointer | interop.Reference, type: string): this; initWithCoder(aDecoder: NSCoder): this; isEqualToValue(value: NSValue): boolean; } declare class NSValueTransformer extends NSObject { static alloc(): NSValueTransformer; // inherited from NSObject static allowsReverseTransformation(): boolean; static new(): NSValueTransformer; // inherited from NSObject static setValueTransformerForName(transformer: NSValueTransformer, name: string): void; static transformedValueClass(): typeof NSObject; static valueTransformerForName(name: string): NSValueTransformer; static valueTransformerNames(): NSArray; reverseTransformedValue(value: any): any; transformedValue(value: any): any; } declare const enum NSVolumeEnumerationOptions { SkipHiddenVolumes = 2, ProduceFileReferenceURLs = 4 } declare var NSWillBecomeMultiThreadedNotification: string; declare class NSXMLParser extends NSObject { static alloc(): NSXMLParser; // inherited from NSObject static new(): NSXMLParser; // inherited from NSObject allowedExternalEntityURLs: NSSet; /* readonly */ columnNumber: number; delegate: NSXMLParserDelegate; externalEntityResolvingPolicy: NSXMLParserExternalEntityResolvingPolicy; /* readonly */ lineNumber: number; /* readonly */ parserError: NSError; /* readonly */ publicID: string; shouldProcessNamespaces: boolean; shouldReportNamespacePrefixes: boolean; shouldResolveExternalEntities: boolean; /* readonly */ systemID: string; constructor(o: { contentsOfURL: NSURL; }); constructor(o: { data: NSData; }); constructor(o: { stream: NSInputStream; }); abortParsing(): void; initWithContentsOfURL(url: NSURL): this; initWithData(data: NSData): this; initWithStream(stream: NSInputStream): this; parse(): boolean; } interface NSXMLParserDelegate extends NSObjectProtocol { parserDidEndDocument?(parser: NSXMLParser): void; parserDidEndElementNamespaceURIQualifiedName?(parser: NSXMLParser, elementName: string, namespaceURI: string, qName: string): void; parserDidEndMappingPrefix?(parser: NSXMLParser, prefix: string): void; parserDidStartDocument?(parser: NSXMLParser): void; parserDidStartElementNamespaceURIQualifiedNameAttributes?(parser: NSXMLParser, elementName: string, namespaceURI: string, qName: string, attributeDict: NSDictionary): void; parserDidStartMappingPrefixToURI?(parser: NSXMLParser, prefix: string, namespaceURI: string): void; parserFoundAttributeDeclarationWithNameForElementTypeDefaultValue?(parser: NSXMLParser, attributeName: string, elementName: string, type: string, defaultValue: string): void; parserFoundCDATA?(parser: NSXMLParser, CDATABlock: NSData): void; parserFoundCharacters?(parser: NSXMLParser, string: string): void; parserFoundComment?(parser: NSXMLParser, comment: string): void; parserFoundElementDeclarationWithNameModel?(parser: NSXMLParser, elementName: string, model: string): void; parserFoundExternalEntityDeclarationWithNamePublicIDSystemID?(parser: NSXMLParser, name: string, publicID: string, systemID: string): void; parserFoundIgnorableWhitespace?(parser: NSXMLParser, whitespaceString: string): void; parserFoundInternalEntityDeclarationWithNameValue?(parser: NSXMLParser, name: string, value: string): void; parserFoundNotationDeclarationWithNamePublicIDSystemID?(parser: NSXMLParser, name: string, publicID: string, systemID: string): void; parserFoundProcessingInstructionWithTargetData?(parser: NSXMLParser, target: string, data: string): void; parserFoundUnparsedEntityDeclarationWithNamePublicIDSystemIDNotationName?(parser: NSXMLParser, name: string, publicID: string, systemID: string, notationName: string): void; parserParseErrorOccurred?(parser: NSXMLParser, parseError: NSError): void; parserResolveExternalEntityNameSystemID?(parser: NSXMLParser, name: string, systemID: string): NSData; parserValidationErrorOccurred?(parser: NSXMLParser, validationError: NSError): void; } declare var NSXMLParserDelegate: { prototype: NSXMLParserDelegate; }; declare const enum NSXMLParserError { InternalError = 1, OutOfMemoryError = 2, DocumentStartError = 3, EmptyDocumentError = 4, PrematureDocumentEndError = 5, InvalidHexCharacterRefError = 6, InvalidDecimalCharacterRefError = 7, InvalidCharacterRefError = 8, InvalidCharacterError = 9, CharacterRefAtEOFError = 10, CharacterRefInPrologError = 11, CharacterRefInEpilogError = 12, CharacterRefInDTDError = 13, EntityRefAtEOFError = 14, EntityRefInPrologError = 15, EntityRefInEpilogError = 16, EntityRefInDTDError = 17, ParsedEntityRefAtEOFError = 18, ParsedEntityRefInPrologError = 19, ParsedEntityRefInEpilogError = 20, ParsedEntityRefInInternalSubsetError = 21, EntityReferenceWithoutNameError = 22, EntityReferenceMissingSemiError = 23, ParsedEntityRefNoNameError = 24, ParsedEntityRefMissingSemiError = 25, UndeclaredEntityError = 26, UnparsedEntityError = 28, EntityIsExternalError = 29, EntityIsParameterError = 30, UnknownEncodingError = 31, EncodingNotSupportedError = 32, StringNotStartedError = 33, StringNotClosedError = 34, NamespaceDeclarationError = 35, EntityNotStartedError = 36, EntityNotFinishedError = 37, LessThanSymbolInAttributeError = 38, AttributeNotStartedError = 39, AttributeNotFinishedError = 40, AttributeHasNoValueError = 41, AttributeRedefinedError = 42, LiteralNotStartedError = 43, LiteralNotFinishedError = 44, CommentNotFinishedError = 45, ProcessingInstructionNotStartedError = 46, ProcessingInstructionNotFinishedError = 47, NotationNotStartedError = 48, NotationNotFinishedError = 49, AttributeListNotStartedError = 50, AttributeListNotFinishedError = 51, MixedContentDeclNotStartedError = 52, MixedContentDeclNotFinishedError = 53, ElementContentDeclNotStartedError = 54, ElementContentDeclNotFinishedError = 55, XMLDeclNotStartedError = 56, XMLDeclNotFinishedError = 57, ConditionalSectionNotStartedError = 58, ConditionalSectionNotFinishedError = 59, ExternalSubsetNotFinishedError = 60, DOCTYPEDeclNotFinishedError = 61, MisplacedCDATAEndStringError = 62, CDATANotFinishedError = 63, MisplacedXMLDeclarationError = 64, SpaceRequiredError = 65, SeparatorRequiredError = 66, NMTOKENRequiredError = 67, NAMERequiredError = 68, PCDATARequiredError = 69, URIRequiredError = 70, PublicIdentifierRequiredError = 71, LTRequiredError = 72, GTRequiredError = 73, LTSlashRequiredError = 74, EqualExpectedError = 75, TagNameMismatchError = 76, UnfinishedTagError = 77, StandaloneValueError = 78, InvalidEncodingNameError = 79, CommentContainsDoubleHyphenError = 80, InvalidEncodingError = 81, ExternalStandaloneEntityError = 82, InvalidConditionalSectionError = 83, EntityValueRequiredError = 84, NotWellBalancedError = 85, ExtraContentError = 86, InvalidCharacterInEntityError = 87, ParsedEntityRefInInternalError = 88, EntityRefLoopError = 89, EntityBoundaryError = 90, InvalidURIError = 91, URIFragmentError = 92, NoDTDError = 94, DelegateAbortedParseError = 512 } declare var NSXMLParserErrorDomain: string; declare const enum NSXMLParserExternalEntityResolvingPolicy { ResolveExternalEntitiesNever = 0, ResolveExternalEntitiesNoNetwork = 1, ResolveExternalEntitiesSameOriginOnly = 2, ResolveExternalEntitiesAlways = 3 } declare function NSZoneCalloc(zone: interop.Pointer | interop.Reference, numElems: number, byteSize: number): interop.Pointer | interop.Reference; declare function NSZoneFree(zone: interop.Pointer | interop.Reference, ptr: interop.Pointer | interop.Reference): void; declare function NSZoneFromPointer(ptr: interop.Pointer | interop.Reference): interop.Pointer | interop.Reference; declare function NSZoneMalloc(zone: interop.Pointer | interop.Reference, size: number): interop.Pointer | interop.Reference; declare function NSZoneName(zone: interop.Pointer | interop.Reference): string; declare function NSZoneRealloc(zone: interop.Pointer | interop.Reference, ptr: interop.Pointer | interop.Reference, size: number): interop.Pointer | interop.Reference; declare var _NSConstantStringClassReference: interop.Pointer | interop.Reference; interface _expressionFlags { _evaluationBlocked: number; _reservedExpressionFlags: number; } declare var _expressionFlags: interop.StructType<_expressionFlags>; interface _predicateFlags { _evaluationBlocked: number; _reservedPredicateFlags: number; } declare var _predicateFlags: interop.StructType<_predicateFlags>;