/** * @since 18.0 */ declare const enum BEAccessibilityContainerType { None = 0, Landmark = 1, Table = 2, List = 4, Fieldset = 8, Dialog = 16, Tree = 32, Frame = 64, Article = 128, SemanticGroup = 256, ScrollArea = 512, Alert = 1024, DescriptionList = 2048 } /** * @since 18.0 */ declare const enum BEAccessibilityPressedState { Undefined = 0, False = 1, True = 2, Mixed = 3 } /** * @since 26.0 */ declare class BEAccessibilityRemoteElement extends NSObject { static alloc(): BEAccessibilityRemoteElement; // inherited from NSObject static new(): BEAccessibilityRemoteElement; // inherited from NSObject constructor(o: { identifier: string; hostPid: number; }); initWithIdentifierHostPid(identifier: string, hostPid: number): this; } /** * @since 26.0 */ declare class BEAccessibilityRemoteHostElement extends NSObject { static alloc(): BEAccessibilityRemoteHostElement; // inherited from NSObject static new(): BEAccessibilityRemoteHostElement; // inherited from NSObject accessibilityContainer: any; constructor(o: { identifier: string; remotePid: number; }); initWithIdentifierRemotePid(identifier: string, remotePid: number): this; } /** * @since 18.0 */ declare var BEAccessibilitySelectionChangedNotification: number; /** * @since 18.2 */ declare class BEAccessibilityTextMarker extends NSObject implements NSCopying, NSSecureCoding { static alloc(): BEAccessibilityTextMarker; // inherited from NSObject static new(): BEAccessibilityTextMarker; // inherited from NSObject static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(coder: NSCoder): void; initWithCoder(coder: NSCoder): this; } /** * @since 18.2 */ declare class BEAccessibilityTextMarkerRange extends NSObject implements NSCopying, NSSecureCoding { static alloc(): BEAccessibilityTextMarkerRange; // inherited from NSObject static new(): BEAccessibilityTextMarkerRange; // inherited from NSObject endMarker: BEAccessibilityTextMarker; startMarker: BEAccessibilityTextMarker; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(coder: NSCoder): void; initWithCoder(coder: NSCoder): this; } /** * @since 18.2 */ interface BEAccessibilityTextMarkerSupport extends NSObjectProtocol { accessibilityBoundsForTextMarkerRange(range: BEAccessibilityTextMarkerRange): CGRect; accessibilityContentForTextMarkerRange(range: BEAccessibilityTextMarkerRange): string; accessibilityLineEndMarkerForMarker(marker: BEAccessibilityTextMarker): BEAccessibilityTextMarker; accessibilityLineStartMarkerForMarker(marker: BEAccessibilityTextMarker): BEAccessibilityTextMarker; accessibilityMarkerForPoint(point: CGPoint): BEAccessibilityTextMarker; accessibilityNextTextMarker(marker: BEAccessibilityTextMarker): BEAccessibilityTextMarker; accessibilityPreviousTextMarker(marker: BEAccessibilityTextMarker): BEAccessibilityTextMarker; accessibilityRangeForTextMarkerRange(range: BEAccessibilityTextMarkerRange): NSRange; accessibilityTextMarkerForPosition(position: number): BEAccessibilityTextMarker; accessibilityTextMarkerRange(): BEAccessibilityTextMarkerRange; accessibilityTextMarkerRangeForCurrentSelection(): BEAccessibilityTextMarkerRange; accessibilityTextMarkerRangeForRange(range: NSRange): BEAccessibilityTextMarkerRange; } declare var BEAccessibilityTextMarkerSupport: { prototype: BEAccessibilityTextMarkerSupport; }; /** * @since 18.0 */ declare var BEAccessibilityTraitMenuItem: number; /** * @since 18.0 */ declare var BEAccessibilityTraitPopUpButton: number; /** * @since 18.0 */ declare var BEAccessibilityTraitRadioButton: number; /** * @since 18.0 */ declare var BEAccessibilityTraitReadOnly: number; /** * @since 18.0 */ declare var BEAccessibilityTraitVisited: number; /** * @since 18.0 */ declare var BEAccessibilityValueChangedNotification: number; /** * @since 17.4 */ declare class BEAutoFillTextSuggestion extends BETextSuggestion { static alloc(): BEAutoFillTextSuggestion; // inherited from NSObject static new(): BEAutoFillTextSuggestion; // inherited from NSObject readonly contents: NSDictionary; } /** * @since 17.4 */ declare class BEContextMenuConfiguration extends UIContextMenuConfiguration { static alloc(): BEContextMenuConfiguration; // inherited from NSObject static configurationWithIdentifierPreviewProviderActionProvider(identifier: any, previewProvider: () => UIViewController, actionProvider: (p1: NSArray) => UIMenu): BEContextMenuConfiguration; // inherited from UIContextMenuConfiguration static new(): BEContextMenuConfiguration; // inherited from NSObject fulfillUsingConfiguration(configuration: UIContextMenuConfiguration): boolean; } interface BEDirectionalTextRange { offset: number; length: number; } declare var BEDirectionalTextRange: interop.StructType; /** * @since 18.2 */ declare class BEDownloadMonitor extends NSObject { static alloc(): BEDownloadMonitor; // inherited from NSObject static createAccessToken(): NSData; static new(): BEDownloadMonitor; // inherited from NSObject readonly destinationURL: NSURL; readonly identifier: NSUUID; readonly sourceURL: NSURL; constructor(o: { sourceURL: NSURL; destinationURL: NSURL; observedProgress: NSProgress; liveActivityAccessToken: NSData; }); beginMonitoring(completion: (p1: BEDownloadMonitorLocation, p2: NSError) => void): void; initWithSourceURLDestinationURLObservedProgressLiveActivityAccessToken(sourceURL: NSURL, destinationURL: NSURL, observedProgress: NSProgress, liveActivityAccessToken: NSData): this; resumeMonitoringCompletionHandler(url: NSURL, completionHandler: (p1: NSError) => void): void; useDownloadsFolderWithPlaceholderTypeFinalFileCreatedHandler(type: UTType, finalFileCreatedHandler: (p1: BEDownloadMonitorLocation) => void): void; } /** * @since 18.2 */ declare class BEDownloadMonitorLocation extends NSObject { static alloc(): BEDownloadMonitorLocation; // inherited from NSObject static new(): BEDownloadMonitorLocation; // inherited from NSObject readonly bookmarkData: NSData; readonly url: NSURL; } /** * @since 17.4 */ declare class BEDragInteraction extends UIDragInteraction { static alloc(): BEDragInteraction; // inherited from NSObject static new(): BEDragInteraction; // inherited from NSObject readonly delegate: BEDragInteractionDelegate; constructor(o: { delegate: BEDragInteractionDelegate; }); initWithDelegate(delegate: BEDragInteractionDelegate): this; } /** * @since 17.4 */ interface BEDragInteractionDelegate extends UIDragInteractionDelegate { dragInteractionItemsForAddingToSessionForTouchAtPointCompletion?(dragInteraction: BEDragInteraction, session: UIDragSession, point: CGPoint, completion: (p1: NSArray) => boolean): void; dragInteractionPrepareDragSessionCompletion?(dragInteraction: BEDragInteraction, session: UIDragSession, completion: () => boolean): void; } declare var BEDragInteractionDelegate: { prototype: BEDragInteractionDelegate; }; /** * @since 17.4 */ interface BEExtendedTextInputTraits extends UITextInputTraits { insertionPointColor?: UIColor; selectionHandleColor?: UIColor; selectionHighlightColor?: UIColor; singleLineDocument?: boolean; typingAdaptationEnabled?: boolean; } declare var BEExtendedTextInputTraits: { prototype: BEExtendedTextInputTraits; }; /** * @since 26.0 */ interface BEExtensionProcess extends NSObjectProtocol { invalidate(): void; makeLibXPCConnectionError(error?: interop.Reference): NSObject & OS_xpc_object; } declare var BEExtensionProcess: { prototype: BEExtensionProcess; }; /** * @since 17.4 */ declare const enum BEGestureType { Loupe = 0, OneFingerTap = 1, DoubleTapAndHold = 2, DoubleTap = 3, OneFingerDoubleTap = 8, OneFingerTripleTap = 9, TwoFingerSingleTap = 10, TwoFingerRangedSelectGesture = 11, IMPhraseBoundaryDrag = 14, ForceTouch = 15 } /** * @since 17.4 */ declare class BEKeyEntry extends NSObject { static alloc(): BEKeyEntry; // inherited from NSObject static new(): BEKeyEntry; // inherited from NSObject readonly key: UIKey; readonly keyRepeating: boolean; readonly state: BEKeyPressState; readonly timestamp: number; } /** * @since 17.4 */ declare class BEKeyEntryContext extends NSObject { static alloc(): BEKeyEntryContext; // inherited from NSObject static new(): BEKeyEntryContext; // inherited from NSObject documentEditable: boolean; readonly keyEntry: BEKeyEntry; shouldEvaluateForInputSystemHandling: boolean; shouldInsertCharacter: boolean; constructor(o: { keyEntry: BEKeyEntry; }); initWithKeyEntry(keyEntry: BEKeyEntry): this; } /** * @since 17.4 */ declare const enum BEKeyModifierFlags { None = 0, Shift = 1, CapsLock = 2 } /** * @since 17.4 */ declare const enum BEKeyPressState { Down = 1, Up = 2 } /** * @since 17.4 */ declare class BELayerHierarchy extends NSObject { static alloc(): BELayerHierarchy; // inherited from NSObject static layerHierarchyWithError(error?: interop.Reference): BELayerHierarchy; static new(): BELayerHierarchy; // inherited from NSObject readonly handle: BELayerHierarchyHandle; layer: CALayer; invalidate(): void; } /** * @since 17.4 */ declare class BELayerHierarchyHandle extends NSObject implements NSSecureCoding { static alloc(): BELayerHierarchyHandle; // inherited from NSObject /** * @since 26.0 */ static handleWithPortDataError(port: number, data: NSData, error?: interop.Reference): BELayerHierarchyHandle; static handleWithXPCRepresentationError(xpcRepresentation: NSObject & OS_xpc_object, error?: interop.Reference): BELayerHierarchyHandle; static new(): BELayerHierarchyHandle; // inherited from NSObject static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding createXPCRepresentation(): NSObject & OS_xpc_object; /** * @since 26.0 */ encodeWithBlock(block: (p1: number, p2: NSData) => void): void; encodeWithCoder(coder: NSCoder): void; initWithCoder(coder: NSCoder): this; } /** * @since 17.4 */ declare class BELayerHierarchyHostingTransactionCoordinator extends NSObject implements NSSecureCoding { static alloc(): BELayerHierarchyHostingTransactionCoordinator; // inherited from NSObject static coordinatorWithError(error?: interop.Reference): BELayerHierarchyHostingTransactionCoordinator; /** * @since 26.0 */ static coordinatorWithPortDataError(port: number, data: NSData, error?: interop.Reference): BELayerHierarchyHostingTransactionCoordinator; static coordinatorWithXPCRepresentationError(xpcRepresentation: NSObject & OS_xpc_object, error?: interop.Reference): BELayerHierarchyHostingTransactionCoordinator; static new(): BELayerHierarchyHostingTransactionCoordinator; // inherited from NSObject static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding addLayerHierarchy(layerHierarchy: BELayerHierarchy): void; addLayerHierarchyHostingView(hostingView: BELayerHierarchyHostingView): void; commit(): void; createXPCRepresentation(): NSObject & OS_xpc_object; /** * @since 26.0 */ encodeWithBlock(block: (p1: number, p2: NSData) => void): void; encodeWithCoder(coder: NSCoder): void; initWithCoder(coder: NSCoder): this; } /** * @since 17.4 */ declare class BELayerHierarchyHostingView extends UIView { static alloc(): BELayerHierarchyHostingView; // inherited from NSObject static appearance(): BELayerHierarchyHostingView; // inherited from UIAppearance /** * @since 8.0 */ static appearanceForTraitCollection(trait: UITraitCollection): BELayerHierarchyHostingView; // inherited from UIAppearance /** * @since 8.0 * @deprecated 9.0 */ static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): BELayerHierarchyHostingView; // inherited from UIAppearance /** * @since 9.0 */ static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): BELayerHierarchyHostingView; // inherited from UIAppearance /** * @since 5.0 * @deprecated 9.0 */ static appearanceWhenContainedIn(ContainerClass: typeof NSObject): BELayerHierarchyHostingView; // inherited from UIAppearance /** * @since 9.0 */ static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): BELayerHierarchyHostingView; // inherited from UIAppearance static new(): BELayerHierarchyHostingView; // inherited from NSObject handle: BELayerHierarchyHandle; } /** * @since 17.4 */ declare class BEMediaEnvironment extends NSObject { static alloc(): BEMediaEnvironment; // inherited from NSObject static new(): BEMediaEnvironment; // inherited from NSObject constructor(o: { webPageURL: NSURL; }); constructor(o: { XPCRepresentation: NSObject & OS_xpc_object; }); activateWithError(error?: interop.Reference): boolean; createXPCRepresentation(): NSObject & OS_xpc_object; initWithWebPageURL(url: NSURL): this; initWithXPCRepresentationError(xpcRepresentation: NSObject & OS_xpc_object, error?: interop.Reference): this; makeCaptureSessionWithError(error?: interop.Reference): AVCaptureSession; suspendWithError(error?: interop.Reference): boolean; } /** * @since 17.4 */ declare class BENetworkingProcess extends NSObject implements BEExtensionProcess { static alloc(): BENetworkingProcess; // inherited from NSObject /** * @since 18.2 */ static networkProcessWithBundleIDInterruptionHandlerCompletion(bundleID: string, interruptionHandler: () => void, completion: (p1: BENetworkingProcess, p2: NSError) => void): void; static networkProcessWithInterruptionHandlerCompletion(interruptionHandler: () => void, completion: (p1: BENetworkingProcess, p2: NSError) => void): void; static new(): BENetworkingProcess; // inherited from NSObject 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; grantCapabilityError(capability: BEProcessCapability, error?: interop.Reference): BEProcessCapabilityGrant; grantCapabilityErrorInvalidationHandler(capability: BEProcessCapability, error: interop.Pointer | interop.Reference, invalidationHandler: () => void): BEProcessCapabilityGrant; invalidate(): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; makeLibXPCConnectionError(error?: interop.Reference): NSObject & OS_xpc_object; 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; } /** * @since 17.4 */ declare class BEProcessCapability extends NSObject { static alloc(): BEProcessCapability; // inherited from NSObject static background(): BEProcessCapability; static foreground(): BEProcessCapability; static mediaPlaybackAndCaptureWithEnvironment(environment: BEMediaEnvironment): BEProcessCapability; static new(): BEProcessCapability; // inherited from NSObject static suspended(): BEProcessCapability; requestWithError(error?: interop.Reference): BEProcessCapabilityGrant; } /** * @since 17.4 */ interface BEProcessCapabilityGrant extends NSObjectProtocol { valid: boolean; invalidate(): boolean; } declare var BEProcessCapabilityGrant: { prototype: BEProcessCapabilityGrant; }; /** * @since 17.4 */ declare class BERenderingProcess extends NSObject implements BEExtensionProcess { static alloc(): BERenderingProcess; // inherited from NSObject static new(): BERenderingProcess; // inherited from NSObject /** * @since 18.2 */ static renderingProcessWithBundleIDInterruptionHandlerCompletion(bundleID: string, interruptionHandler: () => void, completion: (p1: BERenderingProcess, p2: NSError) => void): void; static renderingProcessWithInterruptionHandlerCompletion(interruptionHandler: () => void, completion: (p1: BERenderingProcess, p2: NSError) => void): void; 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; createVisibilityPropagationInteraction(): UIInteraction; grantCapabilityError(capability: BEProcessCapability, error?: interop.Reference): BEProcessCapabilityGrant; grantCapabilityErrorInvalidationHandler(capability: BEProcessCapability, error: interop.Pointer | interop.Reference, invalidationHandler: () => void): BEProcessCapabilityGrant; invalidate(): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; makeLibXPCConnectionError(error?: interop.Reference): NSObject & OS_xpc_object; 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; } /** * @since 17.4 */ interface BEResponderEditActions extends UIResponderStandardEditActions { addShortcut?(sender: any): void; findSelected?(sender: any): void; lookup?(sender: any): void; promptForReplace?(sender: any): void; replace?(sender: any): void; share?(sender: any): void; translate?(sender: any): void; transliterateChinese?(sender: any): void; } declare var BEResponderEditActions: { prototype: BEResponderEditActions; }; /** * @since 17.4 */ declare class BEScrollView extends UIScrollView { static alloc(): BEScrollView; // inherited from NSObject static appearance(): BEScrollView; // inherited from UIAppearance /** * @since 8.0 */ static appearanceForTraitCollection(trait: UITraitCollection): BEScrollView; // inherited from UIAppearance /** * @since 8.0 * @deprecated 9.0 */ static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): BEScrollView; // inherited from UIAppearance /** * @since 9.0 */ static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): BEScrollView; // inherited from UIAppearance /** * @since 5.0 * @deprecated 9.0 */ static appearanceWhenContainedIn(ContainerClass: typeof NSObject): BEScrollView; // inherited from UIAppearance /** * @since 9.0 */ static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): BEScrollView; // inherited from UIAppearance static new(): BEScrollView; // inherited from NSObject delegate: BEScrollViewDelegate; } /** * @since 17.4 */ interface BEScrollViewDelegate extends UIScrollViewDelegate { parentScrollViewForScrollView?(scrollView: BEScrollView): BEScrollView; scrollViewHandleScrollUpdateCompletion?(scrollView: BEScrollView, scrollUpdate: BEScrollViewScrollUpdate, completion: (p1: boolean) => void): void; } declare var BEScrollViewDelegate: { prototype: BEScrollViewDelegate; }; /** * @since 17.4 */ declare class BEScrollViewScrollUpdate extends NSObject { static alloc(): BEScrollViewScrollUpdate; // inherited from NSObject static new(): BEScrollViewScrollUpdate; // inherited from NSObject readonly phase: BEScrollViewScrollUpdatePhase; readonly timestamp: number; locationInView(view: UIView): CGPoint; translationInView(view: UIView): CGPoint; } /** * @since 17.4 */ declare const enum BEScrollViewScrollUpdatePhase { Began = 0, Changed = 1, Ended = 2, Cancelled = 3 } /** * @since 17.4 */ declare const enum BESelectionFlags { SelectionFlagsNone = 0, WordIsNearTap = 1, SelectionFlipped = 2, PhraseBoundaryChanged = 4 } /** * @since 17.4 */ declare const enum BESelectionTouchPhase { Started = 0, Moved = 1, Ended = 2, EndedMovingForward = 3, EndedMovingBackward = 4, EndedNotMoving = 5 } /** * @since 17.4 */ declare class BETextAlternatives extends NSObject { static alloc(): BETextAlternatives; // inherited from NSObject static new(): BETextAlternatives; // inherited from NSObject readonly alternativeStrings: NSArray; readonly primaryString: string; } /** * @since 17.4 */ declare class BETextDocumentContext extends NSObject { static alloc(): BETextDocumentContext; // inherited from NSObject static new(): BETextDocumentContext; // inherited from NSObject autocorrectedRanges: NSArray; constructor(o: { attributedSelectedText: NSAttributedString; contextBefore: NSAttributedString; contextAfter: NSAttributedString; markedText: NSAttributedString; selectedRangeInMarkedText: NSRange; }); constructor(o: { selectedText: string; contextBefore: string; contextAfter: string; markedText: string; selectedRangeInMarkedText: NSRange; }); addTextRectForCharacterRange(rect: CGRect, range: NSRange): void; initWithAttributedSelectedTextContextBeforeContextAfterMarkedTextSelectedRangeInMarkedText(selectedText: NSAttributedString, contextBefore: NSAttributedString, contextAfter: NSAttributedString, markedText: NSAttributedString, selectedRangeInMarkedText: NSRange): this; initWithSelectedTextContextBeforeContextAfterMarkedTextSelectedRangeInMarkedText(selectedText: string, contextBefore: string, contextAfter: string, markedText: string, selectedRangeInMarkedText: NSRange): this; } /** * @since 17.4 */ declare class BETextDocumentRequest extends NSObject { static alloc(): BETextDocumentRequest; // inherited from NSObject static new(): BETextDocumentRequest; // inherited from NSObject granularityCount: number; options: BETextDocumentRequestOptions; surroundingGranularity: UITextGranularity; } /** * @since 17.4 */ declare const enum BETextDocumentRequestOptions { OptionNone = 0, OptionText = 1, OptionAttributedText = 2, OptionTextRects = 4, OptionMarkedTextRects = 32, OptionAutocorrectedRanges = 128 } /** * @since 17.4 */ interface BETextInput extends BEResponderEditActions, BETextSelectionDirectionNavigation, UIKeyInput { asyncInputDelegate: BETextInputDelegate; attributedMarkedText: NSAttributedString; automaticallyPresentEditMenu: boolean; editable: boolean; extendedTextInputTraits: BEExtendedTextInputTraits; hasMarkedText: boolean; markedText: string; markedTextRange: UITextRange; replaceAllowed: boolean; selectedText: string; selectedTextRange: UITextRange; selectionAtDocumentStart: boolean; selectionClipRect: CGRect; /** * @since 26.0 */ selectionContainerViewAboveText?: UIView; /** * @since 26.0 */ selectionContainerViewBelowText?: UIView; textFirstRect: CGRect; textInputView: UIView; textLastRect: CGRect; unobscuredContentRect: CGRect; unscaledView: UIView; addTextAlternatives(alternatives: BETextAlternatives): void; adjustSelectionBoundaryToPointTouchPhaseBaseIsStartFlags(point: CGPoint, touch: BESelectionTouchPhase, boundaryIsStart: boolean, flags: BESelectionFlags): void; adjustSelectionByRangeCompletionHandler(range: BEDirectionalTextRange, completionHandler: () => void): void; alternativesForSelectedText(): NSArray; autoscrollToPoint(point: CGPoint): void; canPerformActionWithSender(action: string, sender: any): boolean; cancelAutoscroll(): void; caretRectForPosition(position: UITextPosition): CGRect; deleteInDirectionToGranularity(direction: UITextStorageDirection, granularity: UITextGranularity): void; didInsertFinalDictationResult(): void; handleKeyEntryWithCompletionHandler(entry: BEKeyEntry, completionHandler: (p1: BEKeyEntry, p2: boolean) => void): void; insertTextAlternatives(alternatives: BETextAlternatives): void; insertTextPlaceholderWithSizeCompletionHandler(size: CGSize, completionHandler: (p1: UITextPlaceholder) => void): void; insertTextSuggestion(textSuggestion: BETextSuggestion): void; isPointNearMarkedText(point: CGPoint): boolean; /** * @since 18.0 */ keyboardWillDismiss?(): void; moveByOffset(offset: number): void; moveSelectionAtBoundaryInStorageDirectionCompletionHandler(granularity: UITextGranularity, direction: UITextStorageDirection, completionHandler: () => void): void; offsetFromPositionToPosition(from: UITextPosition, toPosition: UITextPosition): number; /** * @since 18.0 */ removeTextAlternatives?(): void; removeTextPlaceholderWillInsertTextCompletionHandler(placeholder: UITextPlaceholder, willInsertText: boolean, completionHandler: () => void): void; replaceDictatedTextWithText(oldText: string, newText: string): void; replaceSelectedTextWithText(text: string, replacementText: string): void; replaceTextWithTextOptionsCompletionHandler(originalText: string, replacementText: string, options: BETextReplacementOptions, completionHandler: (p1: NSArray) => void): void; requestDocumentContextCompletionHandler(request: BETextDocumentRequest, completionHandler: (p1: BETextDocumentContext) => void): void; requestPreferredArrowDirectionForEditMenuWithCompletionHandler(completionHandler: (p1: UIEditMenuArrowDirection) => void): void; requestTextContextForAutocorrectionWithCompletionHandler(completionHandler: (p1: BETextDocumentContext) => void): void; requestTextRectsForStringWithCompletionHandler(input: string, completionHandler: (p1: NSArray) => void): void; selectPositionAtPointCompletionHandler(point: CGPoint, completionHandler: () => void): void; selectPositionAtPointWithContextRequestCompletionHandler(point: CGPoint, request: BETextDocumentRequest, completionHandler: (p1: BETextDocumentContext) => void): void; selectTextForEditMenuWithLocationInViewCompletionHandler(locationInView: CGPoint, completionHandler: (p1: boolean, p2: string, p3: NSRange) => void): void; selectTextInGranularityAtPointCompletionHandler(granularity: UITextGranularity, point: CGPoint, completionHandler: () => void): void; selectWordForReplacement(): void; selectionRectsForRange(range: UITextRange): NSArray; setAttributedMarkedTextSelectedRange(markedText: NSAttributedString, selectedRange: NSRange): void; setBaseWritingDirectionForRange(writingDirection: NSWritingDirection, range: UITextRange): void; setMarkedTextSelectedRange(markedText: string, selectedRange: NSRange): void; setSelectionFromPointToPointGestureState(from: CGPoint, to: CGPoint, gesture: BEGestureType, state: UIGestureRecognizerState): void; shiftKeyStateChangedFromStateToState(oldState: BEKeyModifierFlags, newState: BEKeyModifierFlags): void; systemWillDismissEditMenuWithAnimator(animator: UIEditMenuInteractionAnimating): void; systemWillPresentEditMenuWithAnimator(animator: UIEditMenuInteractionAnimating): void; textInRange(range: UITextRange): string; textInteractionGestureShouldBeginAtPoint(gestureType: BEGestureType, point: CGPoint): boolean; textStylingAtPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): NSDictionary; transposeCharactersAroundSelection(): void; unmarkText(): void; updateCurrentSelectionToFromGestureInState(point: CGPoint, gestureType: BEGestureType, state: UIGestureRecognizerState): void; updateSelectionWithExtentPointBoundaryCompletionHandler(point: CGPoint, granularity: UITextGranularity, completionHandler: (p1: boolean) => void): void; willInsertFinalDictationResult(): void; } declare var BETextInput: { prototype: BETextInput; }; /** * @since 17.4 */ interface BETextInputDelegate { invalidateTextEntryContextForTextInput(textInput: BETextInput): void; selectionDidChangeForTextInput(textInput: BETextInput): void; selectionWillChangeForTextInput(textInput: BETextInput): void; shouldDeferEventHandlingToSystemForTextInputContext(textInput: BETextInput, keyEventContext: BEKeyEntryContext): boolean; textInputDeferReplaceTextActionToSystem(textInput: BETextInput, sender: any): void; textInputSetCandidateSuggestions(textInput: BETextInput, suggestions: NSArray | BETextSuggestion[]): void; } declare var BETextInputDelegate: { prototype: BETextInputDelegate; }; /** * @since 17.4 */ declare class BETextInteraction extends NSObject implements UIInteraction { static alloc(): BETextInteraction; // inherited from NSObject static new(): BETextInteraction; // inherited from NSObject readonly contextMenuInteraction: UIContextMenuInteraction; contextMenuInteractionDelegate: UIContextMenuInteractionDelegate; delegate: BETextInteractionDelegate; readonly textSelectionDisplayInteraction: UITextSelectionDisplayInteraction; 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 view: UIView; // inherited from UIInteraction readonly // inherited from NSObjectProtocol addShortcutForTextFromRect(text: string, presentationRect: CGRect): void; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; didMoveToView(view: UIView): void; dismissEditMenuForSelection(): void; editabilityChanged(): void; 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; presentEditMenuForSelection(): void; refreshKeyboardUI(): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; selectionBoundaryAdjustedToPointTouchPhaseFlags(point: CGPoint, touch: BESelectionTouchPhase, flags: BESelectionFlags): void; selectionChangedWithGestureAtPointGestureStateFlags(point: CGPoint, gestureType: BEGestureType, gestureState: UIGestureRecognizerState, flags: BESelectionFlags): void; self(): this; shareTextFromRect(text: string, presentationRect: CGRect): void; showDictionaryForTextInContextDefiningTextInRangeFromRect(textWithContext: string, range: NSRange, presentationRect: CGRect): void; showReplacementsForText(text: string): void; translateTextFromRect(text: string, presentationRect: CGRect): void; transliterateChineseForText(text: string): void; willMoveToView(view: UIView): void; } /** * @since 17.4 */ interface BETextInteractionDelegate { systemDidChangeSelectionForInteraction(textInteraction: BETextInteraction): void; systemWillChangeSelectionForInteraction(textInteraction: BETextInteraction): void; } declare var BETextInteractionDelegate: { prototype: BETextInteractionDelegate; }; /** * @since 17.4 */ declare const enum BETextReplacementOptions { None = 0, AddUnderline = 1 } /** * @since 17.4 */ interface BETextSelectionDirectionNavigation { extendInLayoutDirection(direction: UITextLayoutDirection): void; extendInStorageDirectionByGranularity(direction: UITextStorageDirection, granularity: UITextGranularity): void; moveInLayoutDirection(direction: UITextLayoutDirection): void; moveInStorageDirectionByGranularity(direction: UITextStorageDirection, granularity: UITextGranularity): void; } declare var BETextSelectionDirectionNavigation: { prototype: BETextSelectionDirectionNavigation; }; /** * @since 17.4 */ declare class BETextSuggestion extends NSObject { static alloc(): BETextSuggestion; // inherited from NSObject static new(): BETextSuggestion; // inherited from NSObject readonly inputText: string; constructor(o: { inputText: string; }); initWithInputText(inputText: string): this; } /** * @since 17.5 */ declare class BEWebAppManifest extends NSObject { static alloc(): BEWebAppManifest; // inherited from NSObject static new(): BEWebAppManifest; // inherited from NSObject readonly jsonData: NSData; readonly manifestURL: NSURL; constructor(o: { JSONData: NSData; manifestURL: NSURL; }); initWithJSONDataManifestURL(jsonData: NSData, manifestURL: NSURL): this; } /** * @since 17.4 */ declare class BEWebContentProcess extends NSObject implements BEExtensionProcess { static alloc(): BEWebContentProcess; // inherited from NSObject static new(): BEWebContentProcess; // inherited from NSObject /** * @since 18.2 */ static webContentProcessWithBundleIDInterruptionHandlerCompletion(bundleID: string, interruptionHandler: () => void, completion: (p1: BEWebContentProcess, p2: NSError) => void): void; static webContentProcessWithInterruptionHandlerCompletion(interruptionHandler: () => void, completion: (p1: BEWebContentProcess, p2: NSError) => void): void; 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; createVisibilityPropagationInteraction(): UIInteraction; grantCapabilityError(capability: BEProcessCapability, error?: interop.Reference): BEProcessCapabilityGrant; grantCapabilityErrorInvalidationHandler(capability: BEProcessCapability, error: interop.Pointer | interop.Reference, invalidationHandler: () => void): BEProcessCapabilityGrant; invalidate(): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; makeLibXPCConnectionError(error?: interop.Reference): NSObject & OS_xpc_object; 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; }