UNPKG

nativescript-ios-declarations

Version:

iOS TypeScript declarations for NativeScript for accessing native objects

1,673 lines (879 loc) 491 kB
declare function CGAffineTransformFromString(string: string): CGAffineTransform; declare function CGPointFromString(string: string): CGPoint; declare function CGRectFromString(string: string): CGRect; declare function CGSizeFromString(string: string): CGSize; declare function CGVectorFromString(string: string): CGVector; declare var NSAttachmentAttributeName: string; declare const NSAttachmentCharacter: number; declare var NSBackgroundColorAttributeName: string; declare var NSBackgroundColorDocumentAttribute: string; declare var NSBaselineOffsetAttributeName: string; declare var NSCharacterEncodingDocumentAttribute: string; declare var NSCharacterEncodingDocumentOption: string; declare const enum NSControlCharacterAction { ZeroAdvancement = 1, Whitespace = 2, HorizontalTab = 4, LineBreak = 8, ParagraphBreak = 16, ContainerBreak = 32 } declare const NSControlCharacterContainerBreakAction: number; declare const NSControlCharacterHorizontalTabAction: number; declare const NSControlCharacterLineBreakAction: number; declare const NSControlCharacterParagraphBreakAction: number; declare const NSControlCharacterWhitespaceAction: number; declare const NSControlCharacterZeroAdvancementAction: number; declare class NSDataAsset extends NSObject implements NSCopying { static alloc(): NSDataAsset; // inherited from NSObject static new(): NSDataAsset; // inherited from NSObject readonly data: NSData; readonly name: string; readonly typeIdentifier: string; constructor(o: { name: string; }); constructor(o: { name: string; bundle: NSBundle; }); copyWithZone(zone: interop.Pointer | interop.Reference<any>): any; initWithName(name: string): this; initWithNameBundle(name: string, bundle: NSBundle): this; } declare var NSDefaultAttributesDocumentAttribute: string; declare var NSDefaultAttributesDocumentOption: string; declare var NSDefaultTabIntervalDocumentAttribute: string; interface NSDirectionalEdgeInsets { top: number; leading: number; bottom: number; trailing: number; } declare var NSDirectionalEdgeInsets: interop.StructType<NSDirectionalEdgeInsets>; declare function NSDirectionalEdgeInsetsFromString(string: string): NSDirectionalEdgeInsets; declare var NSDirectionalEdgeInsetsZero: NSDirectionalEdgeInsets; declare var NSDocumentTypeDocumentAttribute: string; declare var NSDocumentTypeDocumentOption: string; declare var NSExpansionAttributeName: string; declare var NSFontAttributeName: string; declare var NSForegroundColorAttributeName: string; declare const enum NSGlyphProperty { Null = 1, ControlCharacter = 2, Elastic = 4, NonBaseCharacter = 8 } declare var NSHTMLTextDocumentType: string; declare var NSHyphenationFactorDocumentAttribute: string; declare var NSKernAttributeName: string; declare class NSLayoutAnchor<AnchorType> extends NSObject { static alloc<AnchorType>(): NSLayoutAnchor<AnchorType>; // inherited from NSObject static new<AnchorType>(): NSLayoutAnchor<AnchorType>; // inherited from NSObject constraintEqualToAnchor(anchor: NSLayoutAnchor<AnchorType>): NSLayoutConstraint; constraintEqualToAnchorConstant(anchor: NSLayoutAnchor<AnchorType>, c: number): NSLayoutConstraint; constraintGreaterThanOrEqualToAnchor(anchor: NSLayoutAnchor<AnchorType>): NSLayoutConstraint; constraintGreaterThanOrEqualToAnchorConstant(anchor: NSLayoutAnchor<AnchorType>, c: number): NSLayoutConstraint; constraintLessThanOrEqualToAnchor(anchor: NSLayoutAnchor<AnchorType>): NSLayoutConstraint; constraintLessThanOrEqualToAnchorConstant(anchor: NSLayoutAnchor<AnchorType>, c: number): NSLayoutConstraint; } declare const enum NSLayoutAttribute { Left = 1, Right = 2, Top = 3, Bottom = 4, Leading = 5, Trailing = 6, Width = 7, Height = 8, CenterX = 9, CenterY = 10, LastBaseline = 11, Baseline = 11, FirstBaseline = 12, LeftMargin = 13, RightMargin = 14, TopMargin = 15, BottomMargin = 16, LeadingMargin = 17, TrailingMargin = 18, CenterXWithinMargins = 19, CenterYWithinMargins = 20, NotAnAttribute = 0 } declare class NSLayoutConstraint extends NSObject { static activateConstraints(constraints: NSArray<NSLayoutConstraint>): void; static alloc(): NSLayoutConstraint; // inherited from NSObject static constraintWithItemAttributeRelatedByToItemAttributeMultiplierConstant(view1: any, attr1: NSLayoutAttribute, relation: NSLayoutRelation, view2: any, attr2: NSLayoutAttribute, multiplier: number, c: number): NSLayoutConstraint; static constraintsWithVisualFormatOptionsMetricsViews(format: string, opts: NSLayoutFormatOptions, metrics: NSDictionary<string, any>, views: NSDictionary<string, any>): NSArray<NSLayoutConstraint>; static deactivateConstraints(constraints: NSArray<NSLayoutConstraint>): void; static new(): NSLayoutConstraint; // inherited from NSObject active: boolean; constant: number; readonly firstAnchor: NSLayoutAnchor<any>; readonly firstAttribute: NSLayoutAttribute; readonly firstItem: any; identifier: string; readonly multiplier: number; priority: number; readonly relation: NSLayoutRelation; readonly secondAnchor: NSLayoutAnchor<any>; readonly secondAttribute: NSLayoutAttribute; readonly secondItem: any; shouldBeArchived: boolean; } declare class NSLayoutDimension extends NSLayoutAnchor<NSLayoutDimension> { static alloc(): NSLayoutDimension; // inherited from NSObject static new(): NSLayoutDimension; // inherited from NSObject constraintEqualToAnchorMultiplier(anchor: NSLayoutDimension, m: number): NSLayoutConstraint; constraintEqualToAnchorMultiplierConstant(anchor: NSLayoutDimension, m: number, c: number): NSLayoutConstraint; constraintEqualToConstant(c: number): NSLayoutConstraint; constraintGreaterThanOrEqualToAnchorMultiplier(anchor: NSLayoutDimension, m: number): NSLayoutConstraint; constraintGreaterThanOrEqualToAnchorMultiplierConstant(anchor: NSLayoutDimension, m: number, c: number): NSLayoutConstraint; constraintGreaterThanOrEqualToConstant(c: number): NSLayoutConstraint; constraintLessThanOrEqualToAnchorMultiplier(anchor: NSLayoutDimension, m: number): NSLayoutConstraint; constraintLessThanOrEqualToAnchorMultiplierConstant(anchor: NSLayoutDimension, m: number, c: number): NSLayoutConstraint; constraintLessThanOrEqualToConstant(c: number): NSLayoutConstraint; } declare const enum NSLayoutFormatOptions { AlignAllLeft = 2, AlignAllRight = 4, AlignAllTop = 8, AlignAllBottom = 16, AlignAllLeading = 32, AlignAllTrailing = 64, AlignAllCenterX = 512, AlignAllCenterY = 1024, AlignAllLastBaseline = 2048, AlignAllBaseline = 2048, AlignAllFirstBaseline = 4096, AlignmentMask = 65535, DirectionLeadingToTrailing = 0, DirectionLeftToRight = 65536, DirectionRightToLeft = 131072, DirectionMask = 196608, SpacingEdgeToEdge = 0, SpacingBaselineToBaseline = 524288, SpacingMask = 524288 } declare class NSLayoutManager extends NSObject implements NSCoding { static alloc(): NSLayoutManager; // inherited from NSObject static new(): NSLayoutManager; // inherited from NSObject allowsNonContiguousLayout: boolean; delegate: NSLayoutManagerDelegate; readonly extraLineFragmentRect: CGRect; readonly extraLineFragmentTextContainer: NSTextContainer; readonly extraLineFragmentUsedRect: CGRect; readonly hasNonContiguousLayout: boolean; hyphenationFactor: number; readonly numberOfGlyphs: number; showsControlCharacters: boolean; showsInvisibleCharacters: boolean; readonly textContainers: NSArray<NSTextContainer>; textStorage: NSTextStorage; usesFontLeading: boolean; constructor(o: { coder: NSCoder; }); // inherited from NSCoding CGGlyphAtIndex(glyphIndex: number): number; CGGlyphAtIndexIsValidIndex(glyphIndex: number, isValidIndex: interop.Pointer | interop.Reference<boolean>): number; addTextContainer(container: NSTextContainer): void; attachmentSizeForGlyphAtIndex(glyphIndex: number): CGSize; boundingRectForGlyphRangeInTextContainer(glyphRange: NSRange, container: NSTextContainer): CGRect; characterIndexForGlyphAtIndex(glyphIndex: number): number; characterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints(point: CGPoint, container: NSTextContainer, partialFraction: interop.Pointer | interop.Reference<number>): number; characterRangeForGlyphRangeActualGlyphRange(glyphRange: NSRange, actualGlyphRange: interop.Pointer | interop.Reference<NSRange>): NSRange; drawBackgroundForGlyphRangeAtPoint(glyphsToShow: NSRange, origin: CGPoint): void; drawGlyphsForGlyphRangeAtPoint(glyphsToShow: NSRange, origin: CGPoint): void; drawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, strikethroughVal: NSUnderlineStyle, baselineOffset: number, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void; drawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, underlineVal: NSUnderlineStyle, baselineOffset: number, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void; drawsOutsideLineFragmentForGlyphAtIndex(glyphIndex: number): boolean; encodeWithCoder(aCoder: NSCoder): void; ensureGlyphsForCharacterRange(charRange: NSRange): void; ensureGlyphsForGlyphRange(glyphRange: NSRange): void; ensureLayoutForBoundingRectInTextContainer(bounds: CGRect, container: NSTextContainer): void; ensureLayoutForCharacterRange(charRange: NSRange): void; ensureLayoutForGlyphRange(glyphRange: NSRange): void; ensureLayoutForTextContainer(container: NSTextContainer): void; enumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock(glyphRange: NSRange, selectedRange: NSRange, textContainer: NSTextContainer, block: (p1: CGRect, p2: interop.Pointer | interop.Reference<boolean>) => void): void; enumerateLineFragmentsForGlyphRangeUsingBlock(glyphRange: NSRange, block: (p1: CGRect, p2: CGRect, p3: NSTextContainer, p4: NSRange, p5: interop.Pointer | interop.Reference<boolean>) => void): void; fillBackgroundRectArrayCountForCharacterRangeColor(rectArray: interop.Pointer | interop.Reference<CGRect>, rectCount: number, charRange: NSRange, color: UIColor): void; firstUnlaidCharacterIndex(): number; firstUnlaidGlyphIndex(): number; fractionOfDistanceThroughGlyphForPointInTextContainer(point: CGPoint, container: NSTextContainer): number; getFirstUnlaidCharacterIndexGlyphIndex(charIndex: interop.Pointer | interop.Reference<number>, glyphIndex: interop.Pointer | interop.Reference<number>): void; getGlyphsInRangeGlyphsPropertiesCharacterIndexesBidiLevels(glyphRange: NSRange, glyphBuffer: interop.Pointer | interop.Reference<number>, props: interop.Pointer | interop.Reference<NSGlyphProperty>, charIndexBuffer: interop.Pointer | interop.Reference<number>, bidiLevelBuffer: string): number; getLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes(charIndex: number, aFlag: boolean, dFlag: boolean, positions: interop.Pointer | interop.Reference<number>, charIndexes: interop.Pointer | interop.Reference<number>): number; glyphAtIndex(glyphIndex: number): number; glyphAtIndexIsValidIndex(glyphIndex: number, isValidIndex: interop.Pointer | interop.Reference<boolean>): number; glyphIndexForCharacterAtIndex(charIndex: number): number; glyphIndexForPointInTextContainer(point: CGPoint, container: NSTextContainer): number; glyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph(point: CGPoint, container: NSTextContainer, partialFraction: interop.Pointer | interop.Reference<number>): number; glyphRangeForBoundingRectInTextContainer(bounds: CGRect, container: NSTextContainer): NSRange; glyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer(bounds: CGRect, container: NSTextContainer): NSRange; glyphRangeForCharacterRangeActualCharacterRange(charRange: NSRange, actualCharRange: interop.Pointer | interop.Reference<NSRange>): NSRange; glyphRangeForTextContainer(container: NSTextContainer): NSRange; initWithCoder(aDecoder: NSCoder): this; insertTextContainerAtIndex(container: NSTextContainer, index: number): void; invalidateDisplayForCharacterRange(charRange: NSRange): void; invalidateDisplayForGlyphRange(glyphRange: NSRange): void; invalidateGlyphsForCharacterRangeChangeInLengthActualCharacterRange(charRange: NSRange, delta: number, actualCharRange: interop.Pointer | interop.Reference<NSRange>): void; invalidateLayoutForCharacterRangeActualCharacterRange(charRange: NSRange, actualCharRange: interop.Pointer | interop.Reference<NSRange>): void; isValidGlyphIndex(glyphIndex: number): boolean; lineFragmentRectForGlyphAtIndexEffectiveRange(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>): CGRect; lineFragmentRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>, flag: boolean): CGRect; lineFragmentUsedRectForGlyphAtIndexEffectiveRange(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>): CGRect; lineFragmentUsedRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>, flag: boolean): CGRect; locationForGlyphAtIndex(glyphIndex: number): CGPoint; notShownAttributeForGlyphAtIndex(glyphIndex: number): boolean; processEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(textStorage: NSTextStorage, editMask: NSTextStorageEditActions, newCharRange: NSRange, delta: number, invalidatedCharRange: NSRange): void; propertyForGlyphAtIndex(glyphIndex: number): NSGlyphProperty; rangeOfNominallySpacedGlyphsContainingIndex(glyphIndex: number): NSRange; removeTextContainerAtIndex(index: number): void; setAttachmentSizeForGlyphRange(attachmentSize: CGSize, glyphRange: NSRange): void; setDrawsOutsideLineFragmentForGlyphAtIndex(flag: boolean, glyphIndex: number): void; setExtraLineFragmentRectUsedRectTextContainer(fragmentRect: CGRect, usedRect: CGRect, container: NSTextContainer): void; setGlyphsPropertiesCharacterIndexesFontForGlyphRange(glyphs: interop.Pointer | interop.Reference<number>, props: interop.Pointer | interop.Reference<NSGlyphProperty>, charIndexes: interop.Pointer | interop.Reference<number>, aFont: UIFont, glyphRange: NSRange): void; setLineFragmentRectForGlyphRangeUsedRect(fragmentRect: CGRect, glyphRange: NSRange, usedRect: CGRect): void; setLocationForStartOfGlyphRange(location: CGPoint, glyphRange: NSRange): void; setNotShownAttributeForGlyphAtIndex(flag: boolean, glyphIndex: number): void; setTextContainerForGlyphRange(container: NSTextContainer, glyphRange: NSRange): void; showCGGlyphsPositionsCountFontMatrixAttributesInContext(glyphs: interop.Pointer | interop.Reference<number>, positions: interop.Pointer | interop.Reference<CGPoint>, glyphCount: number, font: UIFont, textMatrix: CGAffineTransform, attributes: NSDictionary<string, any>, graphicsContext: any): void; strikethroughGlyphRangeStrikethroughTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, strikethroughVal: NSUnderlineStyle, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void; textContainerChangedGeometry(container: NSTextContainer): void; textContainerForGlyphAtIndexEffectiveRange(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>): NSTextContainer; textContainerForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>, flag: boolean): NSTextContainer; truncatedGlyphRangeInLineFragmentForGlyphAtIndex(glyphIndex: number): NSRange; underlineGlyphRangeUnderlineTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, underlineVal: NSUnderlineStyle, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void; usedRectForTextContainer(container: NSTextContainer): CGRect; } interface NSLayoutManagerDelegate extends NSObjectProtocol { layoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex?(layoutManager: NSLayoutManager, glyphIndex: number, textContainer: NSTextContainer, proposedRect: CGRect, glyphPosition: CGPoint, charIndex: number): CGRect; layoutManagerDidCompleteLayoutForTextContainerAtEnd?(layoutManager: NSLayoutManager, textContainer: NSTextContainer, layoutFinishedFlag: boolean): void; layoutManagerDidInvalidateLayout?(sender: NSLayoutManager): void; layoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect?(layoutManager: NSLayoutManager, glyphIndex: number, rect: CGRect): number; layoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect?(layoutManager: NSLayoutManager, glyphIndex: number, rect: CGRect): number; layoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect?(layoutManager: NSLayoutManager, glyphIndex: number, rect: CGRect): number; layoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex?(layoutManager: NSLayoutManager, charIndex: number): boolean; layoutManagerShouldBreakLineByWordBeforeCharacterAtIndex?(layoutManager: NSLayoutManager, charIndex: number): boolean; layoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange?(layoutManager: NSLayoutManager, glyphs: interop.Pointer | interop.Reference<number>, props: interop.Pointer | interop.Reference<NSGlyphProperty>, charIndexes: interop.Pointer | interop.Reference<number>, aFont: UIFont, glyphRange: NSRange): number; layoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange?(layoutManager: NSLayoutManager, lineFragmentRect: interop.Pointer | interop.Reference<CGRect>, lineFragmentUsedRect: interop.Pointer | interop.Reference<CGRect>, baselineOffset: interop.Pointer | interop.Reference<number>, textContainer: NSTextContainer, glyphRange: NSRange): boolean; layoutManagerShouldUseActionForControlCharacterAtIndex?(layoutManager: NSLayoutManager, action: NSControlCharacterAction, charIndex: number): NSControlCharacterAction; layoutManagerTextContainerDidChangeGeometryFromSize?(layoutManager: NSLayoutManager, textContainer: NSTextContainer, oldSize: CGSize): void; } declare var NSLayoutManagerDelegate: { prototype: NSLayoutManagerDelegate; }; declare const enum NSLayoutRelation { LessThanOrEqual = -1, Equal = 0, GreaterThanOrEqual = 1 } declare class NSLayoutXAxisAnchor extends NSLayoutAnchor<NSLayoutXAxisAnchor> { static alloc(): NSLayoutXAxisAnchor; // inherited from NSObject static new(): NSLayoutXAxisAnchor; // inherited from NSObject anchorWithOffsetToAnchor(otherAnchor: NSLayoutXAxisAnchor): NSLayoutDimension; constraintEqualToSystemSpacingAfterAnchorMultiplier(anchor: NSLayoutXAxisAnchor, multiplier: number): NSLayoutConstraint; constraintGreaterThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor: NSLayoutXAxisAnchor, multiplier: number): NSLayoutConstraint; constraintLessThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor: NSLayoutXAxisAnchor, multiplier: number): NSLayoutConstraint; } declare class NSLayoutYAxisAnchor extends NSLayoutAnchor<NSLayoutYAxisAnchor> { static alloc(): NSLayoutYAxisAnchor; // inherited from NSObject static new(): NSLayoutYAxisAnchor; // inherited from NSObject anchorWithOffsetToAnchor(otherAnchor: NSLayoutYAxisAnchor): NSLayoutDimension; constraintEqualToSystemSpacingBelowAnchorMultiplier(anchor: NSLayoutYAxisAnchor, multiplier: number): NSLayoutConstraint; constraintGreaterThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor: NSLayoutYAxisAnchor, multiplier: number): NSLayoutConstraint; constraintLessThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor: NSLayoutYAxisAnchor, multiplier: number): NSLayoutConstraint; } declare var NSLigatureAttributeName: string; declare const enum NSLineBreakMode { ByWordWrapping = 0, ByCharWrapping = 1, ByClipping = 2, ByTruncatingHead = 3, ByTruncatingTail = 4, ByTruncatingMiddle = 5 } declare var NSLinkAttributeName: string; declare class NSMutableParagraphStyle extends NSParagraphStyle { static alloc(): NSMutableParagraphStyle; // inherited from NSObject static new(): NSMutableParagraphStyle; // inherited from NSObject alignment: NSTextAlignment; allowsDefaultTighteningForTruncation: boolean; baseWritingDirection: NSWritingDirection; defaultTabInterval: number; firstLineHeadIndent: number; headIndent: number; hyphenationFactor: number; lineBreakMode: NSLineBreakMode; lineHeightMultiple: number; lineSpacing: number; maximumLineHeight: number; minimumLineHeight: number; paragraphSpacing: number; paragraphSpacingBefore: number; tabStops: NSArray<NSTextTab>; tailIndent: number; addTabStop(anObject: NSTextTab): void; removeTabStop(anObject: NSTextTab): void; setParagraphStyle(obj: NSParagraphStyle): void; } declare var NSObliquenessAttributeName: string; declare var NSPaperMarginDocumentAttribute: string; declare var NSPaperSizeDocumentAttribute: string; declare class NSParagraphStyle extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): NSParagraphStyle; // inherited from NSObject static defaultWritingDirectionForLanguage(languageName: string): NSWritingDirection; static new(): NSParagraphStyle; // inherited from NSObject readonly alignment: NSTextAlignment; readonly allowsDefaultTighteningForTruncation: boolean; readonly baseWritingDirection: NSWritingDirection; readonly defaultTabInterval: number; readonly firstLineHeadIndent: number; readonly headIndent: number; readonly hyphenationFactor: number; readonly lineBreakMode: NSLineBreakMode; readonly lineHeightMultiple: number; readonly lineSpacing: number; readonly maximumLineHeight: number; readonly minimumLineHeight: number; readonly paragraphSpacing: number; readonly paragraphSpacingBefore: number; readonly tabStops: NSArray<NSTextTab>; readonly tailIndent: number; static readonly defaultParagraphStyle: NSParagraphStyle; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference<any>): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference<any>): any; } declare var NSParagraphStyleAttributeName: string; declare var NSPlainTextDocumentType: string; declare var NSRTFDTextDocumentType: string; declare var NSRTFTextDocumentType: string; declare var NSReadOnlyDocumentAttribute: string; declare class NSShadow extends NSObject implements NSCoding, NSCopying { static alloc(): NSShadow; // inherited from NSObject static new(): NSShadow; // inherited from NSObject shadowBlurRadius: number; shadowColor: any; shadowOffset: CGSize; constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference<any>): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare var NSShadowAttributeName: string; declare var NSStrikethroughColorAttributeName: string; declare var NSStrikethroughStyleAttributeName: string; declare class NSStringDrawingContext extends NSObject { static alloc(): NSStringDrawingContext; // inherited from NSObject static new(): NSStringDrawingContext; // inherited from NSObject readonly actualScaleFactor: number; readonly actualTrackingAdjustment: number; minimumScaleFactor: number; minimumTrackingAdjustment: number; readonly totalBounds: CGRect; } declare const enum NSStringDrawingOptions { UsesLineFragmentOrigin = 1, UsesFontLeading = 2, UsesDeviceMetrics = 8, TruncatesLastVisibleLine = 32 } declare function NSStringFromCGAffineTransform(transform: CGAffineTransform): string; declare function NSStringFromCGPoint(point: CGPoint): string; declare function NSStringFromCGRect(rect: CGRect): string; declare function NSStringFromCGSize(size: CGSize): string; declare function NSStringFromCGVector(vector: CGVector): string; declare function NSStringFromDirectionalEdgeInsets(insets: NSDirectionalEdgeInsets): string; declare function NSStringFromUIEdgeInsets(insets: UIEdgeInsets): string; declare function NSStringFromUIOffset(offset: UIOffset): string; declare var NSStrokeColorAttributeName: string; declare var NSStrokeWidthAttributeName: string; declare var NSTabColumnTerminatorsAttributeName: string; declare const enum NSTextAlignment { Left = 0, Center = 1, Right = 2, Justified = 3, Natural = 4 } declare function NSTextAlignmentFromCTTextAlignment(ctTextAlignment: CTTextAlignment): NSTextAlignment; declare function NSTextAlignmentToCTTextAlignment(nsTextAlignment: NSTextAlignment): CTTextAlignment; declare class NSTextAttachment extends NSObject implements NSCoding, NSTextAttachmentContainer, UIAccessibilityContentSizeCategoryImageAdjusting { static alloc(): NSTextAttachment; // inherited from NSObject static new(): NSTextAttachment; // inherited from NSObject bounds: CGRect; contents: NSData; fileType: string; fileWrapper: NSFileWrapper; image: UIImage; adjustsImageSizeForAccessibilityContentSizeCategory: boolean; // inherited from UIAccessibilityContentSizeCategoryImageAdjusting 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: { data: NSData; ofType: string; }); attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer: NSTextContainer, lineFrag: CGRect, position: CGPoint, charIndex: number): CGRect; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; encodeWithCoder(aCoder: NSCoder): void; imageForBoundsTextContainerCharacterIndex(imageBounds: CGRect, textContainer: NSTextContainer, charIndex: number): UIImage; initWithCoder(aDecoder: NSCoder): this; initWithDataOfType(contentData: NSData, uti: string): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } interface NSTextAttachmentContainer extends NSObjectProtocol { attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer: NSTextContainer, lineFrag: CGRect, position: CGPoint, charIndex: number): CGRect; imageForBoundsTextContainerCharacterIndex(imageBounds: CGRect, textContainer: NSTextContainer, charIndex: number): UIImage; } declare var NSTextAttachmentContainer: { prototype: NSTextAttachmentContainer; }; declare class NSTextContainer extends NSObject implements NSCoding, NSTextLayoutOrientationProvider { static alloc(): NSTextContainer; // inherited from NSObject static new(): NSTextContainer; // inherited from NSObject exclusionPaths: NSArray<UIBezierPath>; heightTracksTextView: boolean; layoutManager: NSLayoutManager; lineBreakMode: NSLineBreakMode; lineFragmentPadding: number; maximumNumberOfLines: number; readonly simpleRectangularTextContainer: boolean; size: CGSize; widthTracksTextView: boolean; readonly layoutOrientation: NSTextLayoutOrientation; // inherited from NSTextLayoutOrientationProvider constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { size: CGSize; }); encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithSize(size: CGSize): this; lineFragmentRectForProposedRectAtIndexWritingDirectionRemainingRect(proposedRect: CGRect, characterIndex: number, baseWritingDirection: NSWritingDirection, remainingRect: interop.Pointer | interop.Reference<CGRect>): CGRect; replaceLayoutManager(newLayoutManager: NSLayoutManager): void; } declare var NSTextEffectAttributeName: string; declare var NSTextEffectLetterpressStyle: string; declare const enum NSTextLayoutOrientation { Horizontal = 0, Vertical = 1 } interface NSTextLayoutOrientationProvider { layoutOrientation: NSTextLayoutOrientation; } declare var NSTextLayoutOrientationProvider: { prototype: NSTextLayoutOrientationProvider; }; declare var NSTextLayoutSectionOrientation: string; declare var NSTextLayoutSectionRange: string; declare var NSTextLayoutSectionsAttribute: string; declare class NSTextStorage extends NSMutableAttributedString { static alloc(): NSTextStorage; // inherited from NSObject static new(): NSTextStorage; // inherited from NSObject static objectWithItemProviderDataTypeIdentifierError(data: NSData, typeIdentifier: string): NSTextStorage; // inherited from NSItemProviderReading readonly changeInLength: number; delegate: NSTextStorageDelegate; readonly editedMask: NSTextStorageEditActions; readonly editedRange: NSRange; readonly fixesAttributesLazily: boolean; readonly layoutManagers: NSArray<NSLayoutManager>; addLayoutManager(aLayoutManager: NSLayoutManager): void; editedRangeChangeInLength(editedMask: NSTextStorageEditActions, editedRange: NSRange, delta: number): void; ensureAttributesAreFixedInRange(range: NSRange): void; invalidateAttributesInRange(range: NSRange): void; processEditing(): void; removeLayoutManager(aLayoutManager: NSLayoutManager): void; } interface NSTextStorageDelegate extends NSObjectProtocol { textStorageDidProcessEditingRangeChangeInLength?(textStorage: NSTextStorage, editedMask: NSTextStorageEditActions, editedRange: NSRange, delta: number): void; textStorageWillProcessEditingRangeChangeInLength?(textStorage: NSTextStorage, editedMask: NSTextStorageEditActions, editedRange: NSRange, delta: number): void; } declare var NSTextStorageDelegate: { prototype: NSTextStorageDelegate; }; declare var NSTextStorageDidProcessEditingNotification: string; declare const enum NSTextStorageEditActions { EditedAttributes = 1, EditedCharacters = 2 } declare var NSTextStorageWillProcessEditingNotification: string; declare class NSTextTab extends NSObject implements NSCoding, NSCopying, NSSecureCoding { static alloc(): NSTextTab; // inherited from NSObject static columnTerminatorsForLocale(aLocale: NSLocale): NSCharacterSet; static new(): NSTextTab; // inherited from NSObject readonly alignment: NSTextAlignment; readonly location: number; readonly options: NSDictionary<string, any>; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { textAlignment: NSTextAlignment; location: number; options: NSDictionary<string, any>; }); copyWithZone(zone: interop.Pointer | interop.Reference<any>): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithTextAlignmentLocationOptions(alignment: NSTextAlignment, loc: number, options: NSDictionary<string, any>): this; } declare const enum NSTextWritingDirection { Embedding = 0, Override = 2 } declare var NSUnderlineColorAttributeName: string; declare const enum NSUnderlineStyle { StyleNone = 0, StyleSingle = 1, StyleThick = 2, StyleDouble = 9, PatternSolid = 0, PatternDot = 256, PatternDash = 512, PatternDashDot = 768, PatternDashDotDot = 1024, ByWord = 32768 } declare var NSUnderlineStyleAttributeName: string; declare var NSUserActivityDocumentURLKey: string; declare var NSVerticalGlyphFormAttributeName: string; declare var NSViewModeDocumentAttribute: string; declare var NSViewSizeDocumentAttribute: string; declare var NSViewZoomDocumentAttribute: string; declare const enum NSWritingDirection { Natural = -1, LeftToRight = 0, RightToLeft = 1 } declare var NSWritingDirectionAttributeName: string; declare const enum NSWritingDirectionFormatType { Embedding = 0, Override = 2 } declare class UIAcceleration extends NSObject { static alloc(): UIAcceleration; // inherited from NSObject static new(): UIAcceleration; // inherited from NSObject readonly timestamp: number; readonly x: number; readonly y: number; readonly z: number; } declare class UIAccelerometer extends NSObject { static alloc(): UIAccelerometer; // inherited from NSObject static new(): UIAccelerometer; // inherited from NSObject static sharedAccelerometer(): UIAccelerometer; delegate: UIAccelerometerDelegate; updateInterval: number; } interface UIAccelerometerDelegate extends NSObjectProtocol { accelerometerDidAccelerate?(accelerometer: UIAccelerometer, acceleration: UIAcceleration): void; } declare var UIAccelerometerDelegate: { prototype: UIAccelerometerDelegate; }; declare var UIAccessibilityAnnouncementDidFinishNotification: string; declare var UIAccessibilityAnnouncementKeyStringValue: string; declare var UIAccessibilityAnnouncementKeyWasSuccessful: string; declare var UIAccessibilityAnnouncementNotification: number; declare var UIAccessibilityAssistiveTechnologyKey: string; declare var UIAccessibilityAssistiveTouchStatusDidChangeNotification: string; declare var UIAccessibilityBoldTextStatusDidChangeNotification: string; declare var UIAccessibilityClosedCaptioningStatusDidChangeNotification: string; interface UIAccessibilityContainerDataTable extends NSObjectProtocol { accessibilityColumnCount(): number; accessibilityDataTableCellElementForRowColumn(row: number, column: number): UIAccessibilityContainerDataTableCell; accessibilityHeaderElementsForColumn?(column: number): NSArray<UIAccessibilityContainerDataTableCell>; accessibilityHeaderElementsForRow?(row: number): NSArray<UIAccessibilityContainerDataTableCell>; accessibilityRowCount(): number; } declare var UIAccessibilityContainerDataTable: { prototype: UIAccessibilityContainerDataTable; }; interface UIAccessibilityContainerDataTableCell extends NSObjectProtocol { accessibilityColumnRange(): NSRange; accessibilityRowRange(): NSRange; } declare var UIAccessibilityContainerDataTableCell: { prototype: UIAccessibilityContainerDataTableCell; }; declare const enum UIAccessibilityContainerType { None = 0, DataTable = 1, List = 2, Landmark = 3 } interface UIAccessibilityContentSizeCategoryImageAdjusting extends NSObjectProtocol { adjustsImageSizeForAccessibilityContentSizeCategory: boolean; } declare var UIAccessibilityContentSizeCategoryImageAdjusting: { prototype: UIAccessibilityContentSizeCategoryImageAdjusting; }; declare function UIAccessibilityConvertFrameToScreenCoordinates(rect: CGRect, view: UIView): CGRect; declare function UIAccessibilityConvertPathToScreenCoordinates(path: UIBezierPath, view: UIView): UIBezierPath; declare class UIAccessibilityCustomAction extends NSObject { static alloc(): UIAccessibilityCustomAction; // inherited from NSObject static new(): UIAccessibilityCustomAction; // inherited from NSObject attributedName: NSAttributedString; name: string; selector: string; target: any; constructor(o: { attributedName: NSAttributedString; target: any; selector: string; }); constructor(o: { name: string; target: any; selector: string; }); initWithAttributedNameTargetSelector(attributedName: NSAttributedString, target: any, selector: string): this; initWithNameTargetSelector(name: string, target: any, selector: string): this; } declare class UIAccessibilityCustomRotor extends NSObject { static alloc(): UIAccessibilityCustomRotor; // inherited from NSObject static new(): UIAccessibilityCustomRotor; // inherited from NSObject attributedName: NSAttributedString; itemSearchBlock: (p1: UIAccessibilityCustomRotorSearchPredicate) => UIAccessibilityCustomRotorItemResult; name: string; readonly systemRotorType: UIAccessibilityCustomSystemRotorType; constructor(o: { attributedName: NSAttributedString; itemSearchBlock: (p1: UIAccessibilityCustomRotorSearchPredicate) => UIAccessibilityCustomRotorItemResult; }); constructor(o: { name: string; itemSearchBlock: (p1: UIAccessibilityCustomRotorSearchPredicate) => UIAccessibilityCustomRotorItemResult; }); constructor(o: { systemType: UIAccessibilityCustomSystemRotorType; itemSearchBlock: (p1: UIAccessibilityCustomRotorSearchPredicate) => UIAccessibilityCustomRotorItemResult; }); initWithAttributedNameItemSearchBlock(attributedName: NSAttributedString, itemSearchBlock: (p1: UIAccessibilityCustomRotorSearchPredicate) => UIAccessibilityCustomRotorItemResult): this; initWithNameItemSearchBlock(name: string, itemSearchBlock: (p1: UIAccessibilityCustomRotorSearchPredicate) => UIAccessibilityCustomRotorItemResult): this; initWithSystemTypeItemSearchBlock(type: UIAccessibilityCustomSystemRotorType, itemSearchBlock: (p1: UIAccessibilityCustomRotorSearchPredicate) => UIAccessibilityCustomRotorItemResult): this; } declare const enum UIAccessibilityCustomRotorDirection { Previous = 0, Next = 1 } declare class UIAccessibilityCustomRotorItemResult extends NSObject { static alloc(): UIAccessibilityCustomRotorItemResult; // inherited from NSObject static new(): UIAccessibilityCustomRotorItemResult; // inherited from NSObject targetElement: NSObjectProtocol; targetRange: UITextRange; constructor(o: { targetElement: NSObjectProtocol; targetRange: UITextRange; }); initWithTargetElementTargetRange(targetElement: NSObjectProtocol, targetRange: UITextRange): this; } declare class UIAccessibilityCustomRotorSearchPredicate extends NSObject { static alloc(): UIAccessibilityCustomRotorSearchPredicate; // inherited from NSObject static new(): UIAccessibilityCustomRotorSearchPredicate; // inherited from NSObject currentItem: UIAccessibilityCustomRotorItemResult; searchDirection: UIAccessibilityCustomRotorDirection; } declare const enum UIAccessibilityCustomSystemRotorType { None = 0, Link = 1, VisitedLink = 2, Heading = 3, HeadingLevel1 = 4, HeadingLevel2 = 5, HeadingLevel3 = 6, HeadingLevel4 = 7, HeadingLevel5 = 8, HeadingLevel6 = 9, BoldText = 10, ItalicText = 11, UnderlineText = 12, MisspelledWord = 13, Image = 14, TextField = 15, Table = 16, List = 17, Landmark = 18 } declare function UIAccessibilityDarkerSystemColorsEnabled(): boolean; declare var UIAccessibilityDarkerSystemColorsStatusDidChangeNotification: string; declare class UIAccessibilityElement extends NSObject implements UIAccessibilityIdentification { static alloc(): UIAccessibilityElement; // inherited from NSObject static new(): UIAccessibilityElement; // inherited from NSObject accessibilityContainer: any; accessibilityFrameInContainerSpace: CGRect; accessibilityIdentifier: string; // inherited from UIAccessibilityIdentification 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: { accessibilityContainer: any; }); class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; initWithAccessibilityContainer(container: any): 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 UIAccessibilityElementFocusedNotification: string; declare function UIAccessibilityFocusedElement(assistiveTechnologyIdentifier: string): any; declare var UIAccessibilityFocusedElementKey: string; declare var UIAccessibilityGrayscaleStatusDidChangeNotification: string; declare var UIAccessibilityGuidedAccessStatusDidChangeNotification: string; declare const enum UIAccessibilityHearingDeviceEar { None = 0, Left = 2, Right = 4, Both = 6 } declare function UIAccessibilityHearingDevicePairedEar(): UIAccessibilityHearingDeviceEar; declare var UIAccessibilityHearingDevicePairedEarDidChangeNotification: string; interface UIAccessibilityIdentification extends NSObjectProtocol { accessibilityIdentifier: string; } declare var UIAccessibilityIdentification: { prototype: UIAccessibilityIdentification; }; declare var UIAccessibilityInvertColorsStatusDidChangeNotification: string; declare function UIAccessibilityIsAssistiveTouchRunning(): boolean; declare function UIAccessibilityIsBoldTextEnabled(): boolean; declare function UIAccessibilityIsClosedCaptioningEnabled(): boolean; declare function UIAccessibilityIsGrayscaleEnabled(): boolean; declare function UIAccessibilityIsGuidedAccessEnabled(): boolean; declare function UIAccessibilityIsInvertColorsEnabled(): boolean; declare function UIAccessibilityIsMonoAudioEnabled(): boolean; declare function UIAccessibilityIsReduceMotionEnabled(): boolean; declare function UIAccessibilityIsReduceTransparencyEnabled(): boolean; declare function UIAccessibilityIsShakeToUndoEnabled(): boolean; declare function UIAccessibilityIsSpeakScreenEnabled(): boolean; declare function UIAccessibilityIsSpeakSelectionEnabled(): boolean; declare function UIAccessibilityIsSwitchControlRunning(): boolean; declare function UIAccessibilityIsVoiceOverRunning(): boolean; declare var UIAccessibilityLayoutChangedNotification: number; declare class UIAccessibilityLocationDescriptor extends NSObject { static alloc(): UIAccessibilityLocationDescriptor; // inherited from NSObject static new(): UIAccessibilityLocationDescriptor; // inherited from NSObject readonly attributedName: NSAttributedString; readonly name: string; readonly point: CGPoint; readonly view: UIView; constructor(o: { attributedName: NSAttributedString; point: CGPoint; inView: UIView; }); constructor(o: { name: string; point: CGPoint; inView: UIView; }); constructor(o: { name: string; view: UIView; }); initWithAttributedNamePointInView(attributedName: NSAttributedString, point: CGPoint, view: UIView): this; initWithNamePointInView(name: string, point: CGPoint, view: UIView): this; initWithNameView(name: string, view: UIView): this; } declare var UIAccessibilityMonoAudioStatusDidChangeNotification: string; declare const enum UIAccessibilityNavigationStyle { Automatic = 0, Separate = 1, Combined = 2 } declare var UIAccessibilityNotificationSwitchControlIdentifier: string; declare var UIAccessibilityNotificationVoiceOverIdentifier: string; declare var UIAccessibilityPageScrolledNotification: number; declare var UIAccessibilityPauseAssistiveTechnologyNotification: number; declare function UIAccessibilityPostNotification(notification: number, argument: any): void; interface UIAccessibilityReadingContent { accessibilityAttributedContentForLineNumber?(lineNumber: number): NSAttributedString; accessibilityAttributedPageContent?(): NSAttributedString; accessibilityContentForLineNumber(lineNumber: number): string; accessibilityFrameForLineNumber(lineNumber: number): CGRect; accessibilityLineNumberForPoint(point: CGPoint): number; accessibilityPageContent(): string; } declare var UIAccessibilityReadingContent: { prototype: UIAccessibilityReadingContent; }; declare var UIAccessibilityReduceMotionStatusDidChangeNotification: string; declare var UIAccessibilityReduceTransparencyStatusDidChangeNotification: string; declare function UIAccessibilityRegisterGestureConflictWithZoom(): void; declare function UIAccessibilityRequestGuidedAccessSession(enable: boolean, completionHandler: (p1: boolean) => void): void; declare var UIAccessibilityResumeAssistiveTechnologyNotification: number; declare var UIAccessibilityScreenChangedNotification: number; declare const enum UIAccessibilityScrollDirection { Right = 1, Left = 2, Up = 3, Down = 4, Next = 5, Previous = 6 } declare var UIAccessibilityShakeToUndoDidChangeNotification: string; declare var UIAccessibilitySpeakScreenStatusDidChangeNotification: string; declare var UIAccessibilitySpeakSelectionStatusDidChangeNotification: string; declare var UIAccessibilitySpeechAttributeIPANotation: string; declare var UIAccessibilitySpeechAttributeLanguage: string; declare var UIAccessibilitySpeechAttributePitch: string; declare var UIAccessibilitySpeechAttributePunctuation: string; declare var UIAccessibilitySpeechAttributeQueueAnnouncement: string; declare var UIAccessibilitySwitchControlStatusDidChangeNotification: string; declare var UIAccessibilityTextAttributeCustom: string; declare var UIAccessibilityTextAttributeHeadingLevel: string; declare var UIAccessibilityTraitAdjustable: number; declare var UIAccessibilityTraitAllowsDirectInteraction: number; declare var UIAccessibilityTraitButton: number; declare var UIAccessibilityTraitCausesPageTurn: number; declare var UIAccessibilityTraitHeader: number; declare var UIAccessibilityTraitImage: number; declare var UIAccessibilityTraitKeyboardKey: number; declare var UIAccessibilityTraitLink: number; declare var UIAccessibilityTraitNone: number; declare var UIAccessibilityTraitNotEnabled: number; declare var UIAccessibilityTraitPlaysSound: number; declare var UIAccessibilityTraitSearchField: number; declare var UIAccessibilityTraitSelected: number; declare var UIAccessibilityTraitStartsMediaSession: number; declare var UIAccessibilityTraitStaticText: number; declare var UIAccessibilityTraitSummaryElement: number; declare var UIAccessibilityTraitTabBar: number; declare var UIAccessibilityTraitUpdatesFrequently: number; declare var UIAccessibilityUnfocusedElementKey: string; declare var UIAccessibilityVoiceOverStatusChanged: string; declare var UIAccessibilityVoiceOverStatusDidChangeNotification: string; declare function UIAccessibilityZoomFocusChanged(type: UIAccessibilityZoomType, frame: CGRect, view: UIView): void; declare const enum UIAccessibilityZoomType { InsertionPoint = 0 } declare class UIActionSheet extends UIView { static alloc(): UIActionSheet; // inherited from NSObject static appearance(): UIActionSheet; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIActionSheet; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIActionSheet; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject>): UIActionSheet; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIActionSheet; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject>): UIActionSheet; // inherited from UIAppearance static new(): UIActionSheet; // inherited from NSObject actionSheetStyle: UIActionSheetStyle; cancelButtonIndex: number; delegate: UIActionSheetDelegate; destructiveButtonIndex: number; readonly firstOtherButtonIndex: number; readonly numberOfButtons: number; title: string; readonly visible: boolean; constructor(o: { title: string; delegate: UIActionSheetDelegate; cancelButtonTitle: string; destructiveButtonTitle: string; otherButtonTitles: string; }); addButtonWithTitle(title: string): number; buttonTitleAtIndex(buttonIndex: number): string; dismissWithClickedButtonIndexAnimated(buttonIndex: number, animated: boolean): void; initWithTitleDelegateCancelButtonTitleDestructiveButtonTitleOtherButtonTitles(title: string, delegate: UIActionSheetDelegate, cancelButtonTitle: string, destructiveButtonTitle: string, otherButtonTitles: string): this; showFromBarButtonItemAnimated(item: UIBarButtonItem, animated: boolean): void; showFromRectInViewAnimated(rect: CGRect, view: UIView, animated: boolean): void; showFromTabBar(view: UITabBar): void; showFromToolbar(view: UIToolbar): void; showInView(view: UIView): void; } interface UIActionSheetDelegate extends NSObjectProtocol { actionSheetCancel?(actionSheet: UIActionSheet): void; actionSheetClickedButtonAtIndex?(actionSheet: UIActionSheet, buttonIndex: number): void; actionSheetDidDismissWithButtonIndex?(actionSheet: UIActionSheet, buttonIndex: number): void; actionSheetWillDismissWithButtonIndex?(actionSheet: UIActionSheet, buttonIndex: number): void; didPresentActionSheet?(actionSheet: UIActionSheet): void; willPresentActionSheet?(actionSheet: UIActionSheet): void; } declare var UIActionSheetDelegate: { prototype: UIActionSheetDelegate; }; declare const enum UIActionSheetStyle { Automatic = -1, Default = 0, BlackTranslucent = 2, BlackOpaque = 1 } declare class UIActivity extends NSObject { static alloc(): UIActivity; // inherited from NSObject static new(): UIActivity; // inherited from NSObject readonly activityImage: UIImage; readonly activityTitle: string; readonly activityType: string; readonly